[PATCH v2] staging: android: ion: fix ION_IOC_{MAP, SHARE} use-after-free

2018-09-04 Thread Greg Hackmann
of 4.4.y, and applies to older kernels too. 4.9.y was fixed separately. Kernels 4.12 and later are unaffected, since all the underlying ion_handle infrastructure has been ripped out. Cc: sta...@vger.kernel.org # v4.4- Signed-off-by: Greg Hackmann --- v2: remove Change-Id line from commit m

[PATCH] staging: android: ion: fix ION_IOC_{MAP, SHARE} use-after-free

2018-08-31 Thread Greg Hackmann
of 4.4.y, and applies to older kernels too. 4.9.y was fixed separately. Kernels 4.12 and later are unaffected, since all the underlying ion_handle infrastructure has been ripped out. Change-Id: Ia0542dd8134e81cd5e1412e126545303c766f738 Cc: sta...@vger.kernel.org # v4.4- Signed-off-by: Greg Ha

[PATCH] staging: android: ion: fix ION_IOC_{MAP, SHARE} use-after-free

2018-08-31 Thread Greg Hackmann
of 4.9.y. Kernels 4.12 and later are unaffected, since all the underlying ion_handle infrastructure has been ripped out. Cc: sta...@vger.kernel.org # v4.11- Signed-off-by: Greg Hackmann --- drivers/staging/android/ion/ion-ioctl.c | 12 --- drivers/staging/android/ion/ion.c