Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge stable 4.19.44 #47

Merged
merged 3,917 commits into from
May 20, 2019
Merged
Changes from 1 commit
Commits
Show all changes
3917 commits
Select commit Hold shift + click to select a range
a82cfd7
xsysace: Fix error handling in ace_setup
groeck Feb 19, 2019
04b4d5f
fs: stream_open - opener for stream-like files so that read and write…
navytux Mar 26, 2019
39839f3
ARM: orion: don't use using 64-bit DMA masks
arndb Mar 25, 2019
14f3c36
ARM: iop: don't use using 64-bit DMA masks
arndb Mar 25, 2019
96e4471
block: pass no-op callback to INIT_WORK().
Jan 30, 2019
3f8497c
perf/x86/amd: Update generic hardware cache events for Family 17h
kimphillamd May 2, 2019
f5ad05e
Bluetooth: btusb: request wake pin with NOAUTOEN
computersforpeace Apr 9, 2019
8897bf0
Bluetooth: mediatek: fix up an error path to restore bdev->tx_state
moore-bros Feb 14, 2019
2ccaef7
clk: qcom: Add missing freq for usb30_master_clk on 8998
Jan 4, 2019
7041e3d
staging: iio: adt7316: allow adt751x to use internal vref for all dacs
jfertic Dec 12, 2018
ad77428
staging: iio: adt7316: fix the dac read calculation
jfertic Dec 23, 2018
f16e831
staging: iio: adt7316: fix the dac write calculation
jfertic Dec 23, 2018
9d696f4
scsi: RDMA/srpt: Fix a credit leak for aborted commands
bvanassche Jan 25, 2019
3b958d5
ASoC: Intel: bytcr_rt5651: Revert "Fix DMIC map headsetmic mapping"
jwrdegoede Dec 29, 2018
7d3f710
ASoC: wm_adsp: Correct handling of compressed streams that restart
charleskeepax Mar 19, 2019
d4f1e3e
ASoC: stm32: fix sai driver name initialisation
arnopo Apr 5, 2019
51e777c
platform/x86: intel_pmc_core: Fix PCH IP name
Feb 1, 2019
d1698f7
platform/x86: intel_pmc_core: Handle CFL regmap properly
Feb 1, 2019
dabcbe5
IB/core: Unregister notifier before freeing MAD security
danielj-mellanox Feb 2, 2019
8414874
IB/core: Fix potential memory leak while creating MAD agents
danielj-mellanox Feb 2, 2019
8d5c1c0
IB/core: Destroy QP if XRC QP fails
Jan 22, 2019
a99b9c8
Input: snvs_pwrkey - initialize necessary driver data before enabling…
Anson-Huang Apr 3, 2019
a10c88b
Input: stmfts - acknowledge that setting brightness is a blocking call
dtor Feb 5, 2019
53ffa56
gpio: mxc: add check to return defer probe if clock tree NOT ready
Anson-Huang Feb 23, 2019
6b13ae5
selinux: avoid silent denials in permissive mode under RCU walk
stephensmalley Dec 12, 2018
574be22
selinux: never allow relabeling on context mounts
WOnder93 Dec 21, 2018
a78c389
mac80211: Honor SW_CRYPTO_CONTROL for unicast keys in AP VLAN mode
alexw65500 Feb 9, 2019
c7e220e
powerpc/mm/hash: Handle mmap_min_addr correctly in get_unmapped_area …
kvaneesh Feb 26, 2019
61ff440
x86/mce: Improve error message when kernel cannot recover, p2
aegl Feb 25, 2019
d572a3a
clk: x86: Add system specific quirk to mark clocks as critical
DavidMueller0 Apr 8, 2019
052c78f
x86/mm/KASLR: Fix the size of the direct mapping section
Apr 4, 2019
c48b027
x86/mm: Fix a crash with kmemleak_scan()
Apr 23, 2019
7a32cbf
x86/mm/tlb: Revert "x86/mm: Align TLB invalidation info"
Apr 16, 2019
5f18c95
i2c: i2c-stm32f7: Fix SDADEL minimum formula
nlebayon Mar 6, 2019
c5c74e6
media: v4l2: i2c: ov7670: Fix PLL bypass register values
Dec 29, 2017
5b94768
ASoC: wm_adsp: Check for buffer in trigger stop
charleskeepax Apr 2, 2019
e7c2d06
mm/kmemleak.c: fix unused-function warning
arndb Apr 19, 2019
21de7eb
Linux 4.19.41
gregkh May 8, 2019
e629cab
net: stmmac: Use bfsize1 in ndesc_init_rx_desc
Apr 17, 2019
0f18e43
scsi: libsas: fix a race condition when smp task timeout
JasonYanHw Sep 25, 2018
eb7b8d1
Drivers: hv: vmbus: Remove the undesired put_cpu_ptr() in hv_synic_cl…
dcui Apr 12, 2019
35d2c86
ubsan: Fix nasty -Wbuiltin-declaration-mismatch GCC-9 warnings
aryabinin May 6, 2019
2197e11
staging: greybus: power_supply: fix prop-descriptor request size
jhovold Apr 4, 2019
34ae4c6
staging: most: cdev: fix chrdev_region leak in mod_exit
sudipi Apr 24, 2019
98a8039
ASoC: tlv320aic3x: fix reset gpio reference counting
Feb 27, 2019
6544b49
ASoC: hdmi-codec: fix S/PDIF DAI
Feb 28, 2019
2aeceaa
ASoC: stm32: sai: fix iec958 controls indexation
Feb 28, 2019
c37f734
ASoC: stm32: sai: fix exposed capabilities in spdif mode
Feb 28, 2019
581a8bd
ASoC:soc-pcm:fix a codec fixup issue in TDM case
RanderWang Mar 8, 2019
29f1b97
ASoC:intel:skl:fix a simultaneous playback & capture issue on hda pla…
RanderWang Mar 8, 2019
c2119de
ASoC: nau8824: fix the issue of the widget with prefix name
John-Hsu Mar 11, 2019
7525d61
ASoC: nau8810: fix the issue of widget with prefixed name
John-Hsu Mar 13, 2019
afcbb3c
ASoC: samsung: odroid: Fix clock configuration for 44100 sample rate
Mar 12, 2019
2ece73f
ASoC: rt5682: recording has no sound after booting
shumingfan Mar 18, 2019
8aa62dc
ASoC: wm_adsp: Add locking to wm_adsp2_bus_error
charleskeepax Mar 19, 2019
74f5898
clk: meson-gxbb: round the vdec dividers to closest
Elyotna Mar 19, 2019
33ffe08
ASoC: stm32: dfsdm: manage multiple prepare
Mar 4, 2019
8f5077c
ASoC: stm32: dfsdm: fix debugfs warnings on entry creation
Mar 4, 2019
6f69661
ASoC: cs4270: Set auto-increment bit for register writes
zonque Mar 20, 2019
d356db0
ASoC: dapm: Fix NULL pointer dereference in snd_soc_dapm_free_kcontrol
bpankajl Mar 22, 2019
1ed91af
drm/omap: hdmi4_cec: Fix CEC clock handling for PM
tmlind Mar 26, 2019
3abd4ae
IB/hfi1: Eliminate opcode tests on mr deref
kwan-intc Mar 18, 2019
09c6954
IB/hfi1: Fix the allocation of RSM table
kwan-intc Mar 18, 2019
e6efcbf
MIPS: KGDB: fix kgdb support for SMP platforms.
qiaomartin Mar 27, 2019
0fb785e
ASoC: tlv320aic32x4: Fix Common Pins
mcdermj Mar 30, 2019
929d019
drm/mediatek: Fix an error code in mtk_hdmi_dt_parse_pdata()
Mar 28, 2019
2b791e8
perf/x86/intel: Fix handling of wakeup_events for multi-entry PEBS
Mar 6, 2019
7d10436
perf/x86/intel: Initialize TFA MSR
Mar 21, 2019
9558727
linux/kernel.h: Use parentheses around argument in u64_to_user_ptr()
thejh Mar 29, 2019
8829465
ASoC: rockchip: pdm: fix regmap_ops hang issue
Apr 3, 2019
dd015a3
drm/amd/display: fix cursor black issue
Apr 1, 2019
e66e727
ASoC: cs35l35: Disable regulators on driver removal
charleskeepax Apr 4, 2019
cf6cb79
objtool: Add rewind_stack_do_exit() to the noreturn list
jpoimboe Apr 4, 2019
78bc982
slab: fix a crash by reading /proc/slab_allocators
Apr 6, 2019
a8f5c1b
drm/sun4i: tcon top: Fix NULL/invalid pointer dereference in sun8i_tc…
Apr 5, 2019
5984fd6
virtio_pci: fix a NULL pointer reference in vp_del_vqs
Mar 9, 2019
8dfb289
RDMA/vmw_pvrdma: Fix memory leak on pvrdma_pci_remove
Kamalheib Apr 3, 2019
fb357b9
RDMA/hns: Fix bug that caused srq creation to fail
oulijun Apr 7, 2019
8f4dbd1
scsi: csiostor: fix missing data copy in csio_scsi_err_handler()
Apr 5, 2019
e5c749a
drm/mediatek: fix possible object reference leak
taskset Apr 3, 2019
d955bb0
ASoC: Intel: kbl: fix wrong number of channels
Apr 8, 2019
0e8e67b
virtio-blk: limit number of hw queues by nr_cpu_ids
Mar 27, 2019
777943c
nvme-fc: correct csn initialization and increments on error
jsmart-gh Apr 8, 2019
c1189d6
platform/x86: pmc_atom: Drop __initconst on dmi table
bebarino Apr 11, 2019
42638d6
perf/core: Fix perf_event_disable_inatomic() race
Apr 4, 2019
29184cb
iommu/amd: Set exclusion range correctly
joergroedel Apr 12, 2019
33f2aa8
genirq: Prevent use-after-free and work list corruption
Mar 24, 2019
caa5680
usb: dwc3: Fix default lpm_nyet_threshold value
Apr 25, 2019
bce2b9d
USB: serial: f81232: fix interrupt worker not stop
hpeter Apr 30, 2019
18e6f30
USB: cdc-acm: fix unthrottle races
jhovold Apr 25, 2019
5b2ba94
usb-storage: Set virt_boundary_mask to avoid SG overflows
AlanStern Apr 15, 2019
6b7daf1
intel_th: pci: Add Comet Lake support
virtuoso Apr 17, 2019
557be57
cpufreq: armada-37xx: fix frequency calculation for opp
gclement Mar 8, 2019
8b330b3
soc: sunxi: Fix missing dependency on REGMAP_MMIO
smaeul Apr 30, 2019
7a793ca
scsi: lpfc: change snprintf to scnprintf for possible overflow
silviocesare Mar 21, 2019
ef7014d
scsi: qla2xxx: Fix incorrect region-size setting in optrom SYSFS rout…
Apr 2, 2019
de7fe08
scsi: qla2xxx: Fix device staying in blocked state
Apr 23, 2019
c6d1f9b
Bluetooth: hidp: fix buffer overflow
Yoha-test Apr 12, 2019
38f092c
Bluetooth: Align minimum encryption key size for LE and BR/EDR connec…
holtmann Apr 24, 2019
c3b3955
UAS: fix alignment of scatter/gather segments
oneukum Apr 30, 2019
6fee398
ASoC: Intel: avoid Oops if DMA setup fails
Apr 29, 2019
0f4ef8f
locking/futex: Allow low-level atomic operations to return -EAGAIN
wildea01 Feb 28, 2019
9ccdbde
arm64: futex: Bound number of LDXR/STXR loops in FUTEX_WAKE_OP
wildea01 Apr 8, 2019
9c2556f
Linux 4.19.42
gregkh May 10, 2019
34aae15
Documentation/l1tf: Fix small spelling typo
carnil Aug 15, 2018
1f1bc82
x86/cpu: Sanitize FAM6_ATOM naming
Aug 7, 2018
ca0056d
kvm: x86: Report STIBP on GET_SUPPORTED_CPUID
ehabkost Dec 5, 2018
e09450f
x86/msr-index: Cleanup bit defines
KAGA-KOKO Feb 21, 2019
00b7632
x86/speculation: Consolidate CPU whitelists
KAGA-KOKO Feb 27, 2019
2e9104a
x86/speculation/mds: Add basic bug infrastructure for MDS
Jan 19, 2019
aca9e8d
x86/speculation/mds: Add BUG_MSBDS_ONLY
KAGA-KOKO Mar 1, 2019
de89ff6
x86/kvm: Expose X86_FEATURE_MD_CLEAR to guests
Jan 19, 2019
1f7c31b
x86/speculation/mds: Add mds_clear_cpu_buffers()
KAGA-KOKO Feb 18, 2019
e4fa775
x86/speculation/mds: Clear CPU buffers on exit to user
KAGA-KOKO Feb 18, 2019
b39dc9a
x86/kvm/vmx: Add MDS protection when L1D Flush is not active
KAGA-KOKO Feb 27, 2019
4df98b3
x86/speculation/mds: Conditionally clear CPU buffers on idle entry
KAGA-KOKO Feb 18, 2019
2951067
x86/speculation/mds: Add mitigation control for MDS
KAGA-KOKO Feb 18, 2019
8230c20
x86/speculation/mds: Add sysfs reporting for MDS
KAGA-KOKO Feb 18, 2019
c50e81f
x86/speculation/mds: Add mitigation mode VMWERV
KAGA-KOKO Feb 20, 2019
e380309
Documentation: Move L1TF to separate directory
KAGA-KOKO Feb 19, 2019
cfaa3d7
Documentation: Add MDS vulnerability documentation
KAGA-KOKO Feb 18, 2019
f7a119a
x86/speculation/mds: Add mds=full,nosmt cmdline option
jpoimboe Apr 2, 2019
b3a63d9
x86/speculation: Move arch_smt_update() call to after mitigation deci…
jpoimboe Apr 2, 2019
b9faa46
x86/speculation/mds: Add SMT warning message
jpoimboe Apr 2, 2019
e9ae322
x86/speculation/mds: Fix comment
Apr 12, 2019
7ba793a
x86/speculation/mds: Print SMT vulnerable on MSBDS with mitigations off
konradwilk Apr 12, 2019
8cb932a
cpu/speculation: Add 'mitigations=' cmdline option
jpoimboe Apr 12, 2019
af5332d
x86/speculation: Support 'mitigations=' cmdline option
jpoimboe Apr 12, 2019
74857f6
powerpc/speculation: Support 'mitigations=' cmdline option
jpoimboe Apr 12, 2019
59a14fb
s390/speculation: Support 'mitigations=' cmdline option
jpoimboe Apr 12, 2019
12a0dad
x86/speculation/mds: Add 'mitigations=' support for MDS
jpoimboe Apr 17, 2019
2e4c548
x86/mds: Add MDSUM variant to the MDS documentation
May 6, 2019
8e65568
Documentation: Correct the possible MDS sysfs values
tyhicks May 6, 2019
b21bde4
x86/speculation/mds: Fix documentation typo
jpoimboe May 7, 2019
3351e9d
Linux 4.19.43
gregkh May 14, 2019
824c212
bfq: update internal depth state when queue depth changes
axboe May 10, 2019
efe6802
platform/x86: sony-laptop: Fix unintentional fall-through
GustavoARSilva Apr 24, 2019
381eaca
platform/x86: thinkpad_acpi: Disable Bluetooth for some machines
FlyGoat Mar 7, 2019
87cc345
platform/x86: dell-laptop: fix rfkill functionality
Mar 27, 2019
f1917f2
hwmon: (pwm-fan) Disable PWM if fetching cooling data fails
lategoodbye Apr 3, 2019
e361ccc
kernfs: fix barrier usage in __kernfs_new_node()
Apr 16, 2019
4c416ee
virt: vbox: Sanity-check parameter types for hgcm-calls coming from u…
jwrdegoede Apr 4, 2019
5640d07
USB: serial: fix unthrottle races
jhovold Apr 25, 2019
06d5ea3
iio: adc: xilinx: fix potential use-after-free on remove
Mar 10, 2019
6400212
iio: adc: xilinx: fix potential use-after-free on probe
Mar 10, 2019
f07db1f
iio: adc: xilinx: prevent touching unclocked h/w on remove
Mar 10, 2019
5f72e3a
acpi/nfit: Always dump _DSM output payload
djbw Mar 12, 2019
e94f852
libnvdimm/namespace: Fix a potential NULL pointer dereference
kengiter Mar 12, 2019
dc30867
HID: input: add mapping for Expose/Overview key
dtor Jan 18, 2019
bbdccc1
HID: input: add mapping for keyboard Brightness Up/Down/Toggle keys
dtor Jan 18, 2019
f7ab481
HID: input: add mapping for "Toggle Display" key
dtor Jan 18, 2019
af5b7a1
libnvdimm/btt: Fix a kmemdup failure check
Mar 25, 2019
e28e505
s390/dasd: Fix capacity calculation for large volumes
oberpar Mar 22, 2019
bbe1ab3
mac80211: fix unaligned access in mesh table hash function
nbd168 Mar 13, 2019
35e2abb
mac80211: Increase MAX_MSG_LEN
aotchere Mar 15, 2019
9d4da01
cfg80211: Handle WMM rules in regulatory domain intersection
ilanpeer2 Mar 15, 2019
1d91812
mac80211: fix memory accounting with A-MSDU aggregation
nbd168 Mar 16, 2019
f2565d0
nl80211: Add NL80211_FLAG_CLEAR_SKB flag for other NL commands
Feb 25, 2019
4c8c9d5
libnvdimm/pmem: fix a possible OOB access when read and write pmem
lrq-max Apr 4, 2019
2773e74
s390/3270: fix lockdep false positive on view->lock
Apr 3, 2019
068d1cc
drm/amd/display: extending AUX SW Timeout
leungmartin Mar 26, 2019
6a414ef
clocksource/drivers/npcm: select TIMER_OF
arndb Mar 5, 2019
7828986
clocksource/drivers/oxnas: Fix OX820 compatible
superna9999 Mar 12, 2019
e4525c9
selftests: fib_tests: Fix 'Command line is not complete' errors
dsahern Apr 9, 2019
f83beff
mISDN: Check address length before reading address family
Apr 12, 2019
090b740
vxge: fix return of a free'd memblock on a failed dma mapping
Apr 12, 2019
08f2c29
qede: fix write to free'd pointer error and double free of ptp
Apr 12, 2019
58be7c1
afs: Unlock pages for __pagevec_release()
Apr 13, 2019
e360515
drm/amd/display: If one stream full updates, full update all planes
fdavid-amd Mar 29, 2019
8eb6469
s390/pkey: add one more argument space for debug feature entry
hfreude Apr 12, 2019
3b51d71
x86/build/lto: Fix truncated .bss with -fdata-sections
samitolvanen Apr 15, 2019
4074bc3
x86/reboot, efi: Use EFI reboot for Acer TravelMate X514-51T
starnight Apr 12, 2019
d39f3cc
KVM: fix spectrev1 gadgets
bonzini Apr 11, 2019
0c8afd5
KVM: x86: avoid misreporting level-triggered irqs as edge-triggered i…
vittyvk Mar 27, 2019
7d4d868
tools lib traceevent: Fix missing equality check for strcmp
rikardfalkeborn Apr 9, 2019
9e4fd5e
ipmi: ipmi_si_hardcode.c: init si_type array to fix a crash
camuso Apr 9, 2019
ba87f54
ocelot: Don't sleep in atomic context (irqs_disabled())
claudiu-m Apr 16, 2019
1134736
scsi: aic7xxx: fix EISA support
Apr 18, 2019
6536de8
mm: fix inactive list balancing between NUMA nodes and cgroups
hnaz Apr 19, 2019
74e9b76
init: initialize jump labels before command line option parsing
djbw Apr 19, 2019
cb9a11d
selftests: netfilter: check icmp pkttoobig errors are set as related
Mar 25, 2019
4e1994e
ipvs: do not schedule icmp errors from tunnels
Mar 31, 2019
7b11575
netfilter: ctnetlink: don't use conntrack/expect object addresses as id
Apr 1, 2019
743a5a9
netfilter: nf_tables: prevent shift wrap in nft_chain_parse_hook()
Apr 6, 2019
ca86488
MIPS: perf: ath79: Fix perfcount IRQ assignment
ynezz Apr 12, 2019
005325b
s390: ctcm: fix ctcm_new_device error return code
arndb Apr 17, 2019
1973df1
drm/sun4i: Set device driver data at bind time for use in unbind
paulkocialkowski Apr 18, 2019
24b1c84
drm/sun4i: Fix component unbinding and component master deletion
paulkocialkowski Apr 18, 2019
5bc3d44
selftests/net: correct the return value for run_netsocktests
Cypresslin Apr 18, 2019
3a53fa4
netfilter: fix nf_l4proto_log_invalid to log invalid packets
avagin Apr 17, 2019
df3a97d
gpu: ipu-v3: dp: fix CSC handling
lynxeye-dev Apr 12, 2019
521ae4d
drm/imx: don't skip DP channel disable for background plane
lynxeye-dev Apr 12, 2019
3835cb5
ARM: 8856/1: NOMMU: Fix CCR register faulty initialization when MPU i…
Apr 5, 2019
09185e3
spi: Micrel eth switch: declare missing of table
dkruces Apr 22, 2019
21b71e1
spi: ST ST95HF NFC: declare missing of table
dkruces Apr 22, 2019
f621bc1
drm/sun4i: Unbind components before releasing DRM and memory
paulkocialkowski Apr 24, 2019
afc7ceb
Input: synaptics-rmi4 - fix possible double free
SinkFinder Apr 19, 2019
fb67c97
RDMA/hns: Bugfix for mapping user db
oulijun Apr 23, 2019
6a60fb6
mm/memory_hotplug.c: drop memory device reference after find_memory_b…
davidhildenbrand Apr 26, 2019
f8bd34d
powerpc/smp: Fix NMI IPI timeout
npiggin Nov 26, 2018
19f4f94
powerpc/smp: Fix NMI IPI xmon timeout
npiggin Nov 26, 2018
bc33614
net: dsa: mv88e6xxx: fix few issues in mv88e6390x_port_set_cmode
hkallweit Mar 23, 2019
6832199
mm/memory.c: fix modifying of page protection by insert_pfn()
jankara Mar 29, 2019
9965da0
usb: typec: Fix unchecked return value
GustavoARSilva Mar 18, 2019
5014aa9
netfilter: nf_tables: use-after-free in dynamic operations
ummakynes Mar 11, 2019
c18731c
netfilter: nf_tables: add missing ->release_ops() in error path of ne…
TaeheeYoo Mar 19, 2019
fb7c783
net: fec: manage ahb clock in runtime pm
fugangduan Apr 9, 2019
a80f62f
mlxsw: spectrum_switchdev: Add MDB entries in prepare phase
idosch Apr 10, 2019
880a328
mlxsw: core: Do not use WQ_MEM_RECLAIM for EMAD workqueue
idosch Apr 10, 2019
835ae6c
mlxsw: core: Do not use WQ_MEM_RECLAIM for mlxsw ordered workqueue
idosch Apr 10, 2019
e38c674
mlxsw: core: Do not use WQ_MEM_RECLAIM for mlxsw workqueue
idosch Apr 10, 2019
85b9e86
net/tls: fix the IV leaks
Apr 10, 2019
21e9515
net: strparser: partially revert "strparser: Call skb_unclone conditi…
Apr 10, 2019
f5e6056
NFC: nci: Add some bounds checking in nci_hci_cmd_received()
Apr 3, 2019
322a575
nfc: nci: Potential off by one in ->pipes[] array
Apr 3, 2019
5752605
x86/kprobes: Avoid kretprobe recursion bug
mhiramat Feb 23, 2019
c300c98
cw1200: fix missing unlock on error in cw1200_hw_scan()
Dec 22, 2018
d756d1d
mwl8k: Fix rate_idx underflow
ynezz Apr 11, 2019
ace28a8
rtlwifi: rtl8723ae: Fix missing break in switch statement
GustavoARSilva Apr 16, 2019
85f3479
Don't jump to compute_result state from check_result state
ncroxon Mar 29, 2019
db1b4aa
um: Don't hardcode path as it is architecture dependent
rickysarraf Sep 20, 2018
0dc9ad4
powerpc/64s: Include cpu header
leitao Oct 22, 2018
9c2cda3
bonding: fix arp_validate toggling in active-backup mode
jarodwilson May 10, 2019
a79feef
bridge: Fix error path for kobject_init_and_add()
May 10, 2019
c7b5e55
dpaa_eth: fix SG frame cleanup
tudorl May 3, 2019
947fec6
fib_rules: return 0 directly if an exactly same rule exists when NLM_…
liuhangbin May 7, 2019
da2e770
ipv4: Fix raw socket lookup for local traffic
dsahern May 8, 2019
9284895
net: dsa: Fix error cleanup path in dsa_init_module
May 6, 2019
68df838
net: ethernet: stmmac: dwmac-sun8i: enable support of unicast filtering
montjoie May 13, 2019
dfd9192
net: macb: Change interrupt and napi enable order in open
harini-katakam May 7, 2019
210057b
net: seeq: fix crash caused by not set dev.parent
May 13, 2019
2e95eb9
net: ucc_geth - fix Oops when changing number of buffers in the ring
chleroy May 3, 2019
9f51d6f
packet: Fix error path in packet_init
May 9, 2019
dfdfad3
selinux: do not report error on connect(AF_UNSPEC)
May 8, 2019
e384060
vlan: disable SIOCSHWTSTAMP in container
liuhangbin May 9, 2019
737713e
vrf: sit mtu should not be updated when vrf netdev is the link
ssuryaextr May 6, 2019
9c79732
tuntap: fix dividing by zero in ebpf queue selection
jasowang May 9, 2019
17d8a9e
tuntap: synchronize through tfiles array instead of tun->numqueues
jasowang May 9, 2019
98652e0
isdn: bas_gigaset: use usb_fill_int_urb() properly
pebolle May 1, 2019
afa485d
tipc: fix hanging clients using poll with EPOLLOUT flag
parbhu May 9, 2019
ee3b53d
drivers/virt/fsl_hypervisor.c: dereferencing error pointers in ioctl
May 14, 2019
e9ec507
drivers/virt/fsl_hypervisor.c: prevent integer overflow in ioctl
May 14, 2019
69c2b71
powerpc/book3s/64: check for NULL pointer in pgd_alloc()
May 6, 2019
71b20cd
powerpc/powernv/idle: Restore IAMR after idle
ruscur Apr 18, 2019
4179b85
powerpc/booke64: set RI in default MSR
tudorl Apr 15, 2019
a47e005
PCI: hv: Fix a memory leak in hv_eject_device_work()
dcui Mar 4, 2019
76888d1
PCI: hv: Add hv_pci_remove_slots() when we unload the driver
dcui Mar 4, 2019
9fa23ea
PCI: hv: Add pci_destroy_slot() in pci_devices_present_work(), if nec…
dcui Mar 4, 2019
dafc674
Linux 4.19.44
gregkh May 16, 2019
6ea3d95
Merge tag 'v4.19.44' into 4.19.x+fslc
schnitzeltony May 17, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
selinux: avoid silent denials in permissive mode under RCU walk
commit 3a28cff upstream.

commit 0dc1ba2 ("SELINUX: Make selinux cache VFS RCU walks safe")
results in no audit messages at all if in permissive mode because the
cache is updated during the rcu walk and thus no denial occurs on
the subsequent ref walk.  Fix this by not updating the cache when
performing a non-blocking permission check.  This only affects search
and symlink read checks during rcu walk.

Fixes: 0dc1ba2 ("SELINUX: Make selinux cache VFS RCU walks safe")
Reported-by: BMK <[email protected]>
Signed-off-by: Stephen Smalley <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
stephensmalley authored and gregkh committed May 8, 2019
commit 6b13ae52ac75da7970fde9d08c495a5671605473
23 changes: 21 additions & 2 deletions security/selinux/avc.c
Original file line number Diff line number Diff line change
@@ -838,6 +838,7 @@ int __init avc_add_callback(int (*callback)(u32 event), u32 events)
* @ssid,@tsid,@tclass : identifier of an AVC entry
* @seqno : sequence number when decision was made
* @xpd: extended_perms_decision to be added to the node
* @flags: the AVC_* flags, e.g. AVC_NONBLOCKING, AVC_EXTENDED_PERMS, or 0.
*
* if a valid AVC entry doesn't exist,this function returns -ENOENT.
* if kmalloc() called internal returns NULL, this function returns -ENOMEM.
@@ -856,6 +857,23 @@ static int avc_update_node(struct selinux_avc *avc,
struct hlist_head *head;
spinlock_t *lock;

/*
* If we are in a non-blocking code path, e.g. VFS RCU walk,
* then we must not add permissions to a cache entry
* because we cannot safely audit the denial. Otherwise,
* during the subsequent blocking retry (e.g. VFS ref walk), we
* will find the permissions already granted in the cache entry
* and won't audit anything at all, leading to silent denials in
* permissive mode that only appear when in enforcing mode.
*
* See the corresponding handling in slow_avc_audit(), and the
* logic in selinux_inode_follow_link and selinux_inode_permission
* for the VFS MAY_NOT_BLOCK flag, which is transliterated into
* AVC_NONBLOCKING for avc_has_perm_noaudit().
*/
if (flags & AVC_NONBLOCKING)
return 0;

node = avc_alloc_node(avc);
if (!node) {
rc = -ENOMEM;
@@ -1115,7 +1133,7 @@ int avc_has_extended_perms(struct selinux_state *state,
* @tsid: target security identifier
* @tclass: target security class
* @requested: requested permissions, interpreted based on @tclass
* @flags: AVC_STRICT or 0
* @flags: AVC_STRICT, AVC_NONBLOCKING, or 0
* @avd: access vector decisions
*
* Check the AVC to determine whether the @requested permissions are granted
@@ -1199,7 +1217,8 @@ int avc_has_perm_flags(struct selinux_state *state,
struct av_decision avd;
int rc, rc2;

rc = avc_has_perm_noaudit(state, ssid, tsid, tclass, requested, 0,
rc = avc_has_perm_noaudit(state, ssid, tsid, tclass, requested,
(flags & MAY_NOT_BLOCK) ? AVC_NONBLOCKING : 0,
&avd);

rc2 = avc_audit(state, ssid, tsid, tclass, requested, &avd, rc,
4 changes: 3 additions & 1 deletion security/selinux/hooks.c
Original file line number Diff line number Diff line change
@@ -3199,7 +3199,9 @@ static int selinux_inode_permission(struct inode *inode, int mask)
return PTR_ERR(isec);

rc = avc_has_perm_noaudit(&selinux_state,
sid, isec->sid, isec->sclass, perms, 0, &avd);
sid, isec->sid, isec->sclass, perms,
(flags & MAY_NOT_BLOCK) ? AVC_NONBLOCKING : 0,
&avd);
audited = avc_audit_required(perms, &avd, rc,
from_access ? FILE__AUDIT_ACCESS : 0,
&denied);
1 change: 1 addition & 0 deletions security/selinux/include/avc.h
Original file line number Diff line number Diff line change
@@ -142,6 +142,7 @@ static inline int avc_audit(struct selinux_state *state,

#define AVC_STRICT 1 /* Ignore permissive mode. */
#define AVC_EXTENDED_PERMS 2 /* update extended permissions */
#define AVC_NONBLOCKING 4 /* non blocking */
int avc_has_perm_noaudit(struct selinux_state *state,
u32 ssid, u32 tsid,
u16 tclass, u32 requested,