2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 20:53:53 +08:00
linux-next/drivers/staging/android
Tetsuo Handa fb4415a126 staging: android: ashmem: Don't call fallocate() with ashmem_mutex held.
syzbot is hitting lockdep warnings [1][2][3]. This patch tries to fix
the warning by eliminating ashmem_shrink_scan() => {shmem|vfs}_fallocate()
sequence.

[1] https://syzkaller.appspot.com/bug?id=87c399f6fa6955006080b24142e2ce7680295ad4
[2] https://syzkaller.appspot.com/bug?id=7ebea492de7521048355fc84210220e1038a7908
[3] https://syzkaller.appspot.com/bug?id=e02419c12131c24e2a957ea050c2ab6dcbbc3270

Reported-by: syzbot <syzbot+a76129f18c89f3e2ddd4@syzkaller.appspotmail.com>
Reported-by: syzbot <syzbot+148c2885d71194f18d28@syzkaller.appspotmail.com>
Reported-by: syzbot <syzbot+4b8b031b89e6b96c4b2e@syzkaller.appspotmail.com>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: stable@vger.kernel.org
Acked-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-02-19 11:28:43 +01:00
..
ion staging: android: ion: fix sys heap pool's gfp_flags 2019-02-19 11:12:08 +01:00
uapi staging: android: ion: Add the GPL exception for syscalls 2019-02-14 10:47:20 +01:00
ashmem.c staging: android: ashmem: Don't call fallocate() with ashmem_mutex held. 2019-02-19 11:28:43 +01:00
ashmem.h staging: android: Clean up license identifiers 2018-05-08 13:24:15 +02:00
Kconfig staging: android: Kconfig; Remove excessive hyphens 2018-05-08 13:24:15 +02:00
Makefile staging: Android: Add 'vsoc' driver for cuttlefish. 2018-04-23 14:51:37 +02:00
TODO staging: Android: vsoc: Create wc kernel mapping for region shm. 2018-05-03 13:53:03 -07:00
vsoc.c staging/android/vsoc: Remove duplicate header 2019-01-15 16:07:41 +01:00