mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-27 01:11:31 +00:00
A lock-unlock is missing in ASHMEM_SET_SIZE ioctl which can result in a race condition when mmap is called. After the !asma->file check, before setting asma->size, asma->file can be set in mmap. That would result in having different asma->size than the mapped memory size. Combined with ASHMEM_UNPIN ioctl and shrinker invocation, this can result in memory corruption. Signed-off-by: Viktor Slavkovic <viktors@google.com> Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|---|---|---|
| .. | ||
| android | ||
| board | ||
| ccree | ||
| clocking-wizard | ||
| comedi | ||
| dgnc | ||
| emxx_udc | ||
| fbtft | ||
| fsl-dpaa2 | ||
| fsl-mc | ||
| fwserial | ||
| gdm724x | ||
| goldfish | ||
| greybus | ||
| gs_fpgaboot | ||
| iio | ||
| irda | ||
| ks7010 | ||
| lustre | ||
| media | ||
| most | ||
| mt29f_spinand | ||
| netlogic | ||
| nvec | ||
| octeon | ||
| octeon-usb | ||
| olpc_dcon | ||
| pi433 | ||
| rtl8188eu | ||
| rtl8192e | ||
| rtl8192u | ||
| rtl8712 | ||
| rtl8723bs | ||
| rtlwifi | ||
| rts5208 | ||
| skein | ||
| sm750fb | ||
| speakup | ||
| typec | ||
| unisys | ||
| vboxvideo | ||
| vc04_services | ||
| vme | ||
| vt6655 | ||
| vt6656 | ||
| wilc1000 | ||
| wlan-ng | ||
| xgifb | ||
| Kconfig | ||
| Makefile | ||