linux/drivers/staging
Suren Baghdasaryan 6d67b0290b staging: android: ashmem: Disallow ashmem memory from being remapped
When ashmem file is mmapped, the resulting vma->vm_file points to the
backing shmem file with the generic fops that do not check ashmem
permissions like fops of ashmem do. If an mremap is done on the ashmem
region, then the permission checks will be skipped. Fix that by disallowing
mapping operation on the backing shmem file.

Reported-by: Jann Horn <jannh@google.com>
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Cc: stable <stable@vger.kernel.org> # 4.4,4.9,4.14,4.18,5.4
Signed-off-by: Todd Kjos <tkjos@google.com>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Link: https://lore.kernel.org/r/20200127235616.48920-1-tkjos@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-02-10 08:49:11 -08:00
..
android staging: android: ashmem: Disallow ashmem memory from being remapped 2020-02-10 08:49:11 -08:00
axis-fifo staging: axis-fifo: replace spinlock with mutex 2020-01-22 09:58:01 +01:00
board
clocking-wizard staging: clocking-wizard: use devm_platform_ioremap_resource() to simplify code 2019-10-10 11:00:59 +02:00
comedi staging: comedi: drivers: fix spelling mistake "to" -> "too" 2020-01-23 19:16:13 +01:00
emxx_udc staging: emxx_udc: Fix invalid reference error 2019-10-30 10:38:46 +01:00
exfat staging: exfat: remove fs_func struct. 2020-01-23 19:16:13 +01:00
fbtft fbtft: Fix the initialization from property algorithm 2019-12-10 15:55:55 +01:00
fieldbus staging: fieldbus: anybuss: use devm_platform_ioremap_resource helper 2019-10-27 08:15:43 +01:00
fsl-dpaa2 staging: dpaa2-ethsw: ordered workqueue should be per ethsw 2019-11-13 00:10:16 +01:00
fwserial staging: fwserial: Fix Kconfig indentation (seven spaces) 2019-11-22 11:32:54 +01:00
gasket remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
gdm724x
goldfish
greybus
gs_fpgaboot
hp Merge 5.5-rc2 into staging-next 2019-12-16 09:06:50 +01:00
iio iio: adis: Remove startup_delay 2020-01-12 11:34:13 +00:00
kpc2000 Staging/IIO patches for 5.6-rc1 2020-01-29 10:15:11 -08:00
ks7010 netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
media media updates for v5.6-rc1 2020-01-31 14:43:23 -08:00
most staging: most: usb: check for NULL device 2020-01-24 10:08:41 +01:00
mt7621-dma staging: mt7621-dma: align to match open parenthesis 2019-11-07 16:14:10 +01:00
mt7621-dts staging: mt7621-dts: fix register range of memc node in mt7621.dtsi 2020-01-10 13:49:18 +01:00
mt7621-pci MIPS: ralink: enable PCI support only if driver for mt7621 SoC is selected 2019-11-14 13:09:37 +08:00
mt7621-pci-phy
mt7621-pinctrl
netlogic Staging: Netlogic: Fix spelling mistake 2019-10-24 23:08:32 -04:00
nvec staging: nvec: check return value 2019-12-19 19:23:29 +01:00
olpc_dcon
pi433 compat_ioctl: remove most of fs/compat_ioctl.c 2019-12-01 13:46:15 -08:00
qlge Staging/IIO patches for 5.6-rc1 2020-01-29 10:15:11 -08:00
ralink-gdma staging: ralink-gdma: use devm_platform_ioremap_resource() to simplify code 2019-10-24 22:40:38 -04:00
rtl8188eu staging: rtl8188eu: remove unused enum and defines 2020-01-22 09:44:44 +01:00
rtl8192e Staging/IIO patches for 5.6-rc1 2020-01-29 10:15:11 -08:00
rtl8192u proc: convert everything to "struct proc_ops" 2020-02-04 03:05:26 +00:00
rtl8712 staging: rtl8712: simplify evm_db2percentage() 2020-01-22 09:44:45 +01:00
rtl8723bs staging: rtl8723bs: remove ODM_GetRightChnlPlaceforIQK() 2020-01-14 14:56:37 +01:00
rts5208 Staging/IIO patches for 5.6-rc1 2020-01-29 10:15:11 -08:00
sm750fb remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
speakup
unisys netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
uwb remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
vc04_services staging: vc04_services: remove header include path to vc04_services 2020-01-10 17:33:41 +01:00
vme compat_ioctl: move more drivers to compat_ptr_ioctl 2019-10-23 17:23:44 +02:00
vt6655 staging: vt6655: remove redundant assignment to variable ret 2020-01-15 13:11:41 +01:00
vt6656 staging: vt6656: fix sign of rx_dbm to bb_pre_ed_rssi. 2020-02-10 08:49:10 -08:00
wfx staging: wfx: update TODO 2020-01-16 20:59:54 +01:00
wilc1000 staging: wilc1000: avoid mutex unlock without lock in wilc_wlan_handle_txq() 2020-01-23 19:16:12 +01:00
wlan-ng Staging/IIO patches for 5.6-rc1 2020-01-29 10:15:11 -08:00
wusbcore
Kconfig staging: octeon-usb: delete the octeon usb host controller driver 2019-12-17 12:54:55 +01:00
Makefile staging: exfat: add STAGING prefix to config names 2020-01-03 11:04:58 +01:00