================================================================== BUG: KASAN: stack-out-of-bounds in locks_remove_flock+0x33c/0x350 fs/locks.c:2567 Read of size 8 at addr ffff880182c9f048 by task syz-executor5/18849 CPU: 0 PID: 18849 Comm: syz-executor5 Not tainted 4.20.0-rc1-next-20181107+ #107 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x244/0x39d lib/dump_stack.c:113 kernel tried to execute NX-protected page - exploit attempt? (uid: 0) print_address_description.cold.7+0x9/0x1ff mm/kasan/report.c:256 BUG: unable to handle kernel paging request at ffff8801b7eafa38 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.8+0x242/0x309 mm/kasan/report.c:412 PGD be01067 P4D be01067 PUD 1b7401063 PMD 80000001b7e001e3 Oops: 0011 [#1] PREEMPT SMP KASAN __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 CPU: 1 PID: 11084 Comm: udevd Not tainted 4.20.0-rc1-next-20181107+ #107 locks_remove_flock+0x33c/0x350 fs/locks.c:2567 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:0xffff8801b7eafa38 Code: ff ff 48 d0 60 8a ff ff ff ff 28 fa ea b7 01 88 ff ff b6 9e 7f 81 ff ff ff ff 90 fb ea b7 01 88 ff ff 00 c0 5f a1 b8 25 8c a9 b5 2f b7 01 88 ff ff 00 f5 6a c8 01 88 ff ff a8 fa ea b7 01 88 RSP: 0018:ffff8801b7eaf878 EFLAGS: 00010293 RAX: ffff88018899a700 RBX: ffff8801b7eafa38 RCX: ffffffff81ed5dac RDX: 0000000000000000 RSI: ffffffff81ed5c9e RDI: ffff8801b7eaf8f8 RBP: ffff8801b7eafa60 R08: ffff88018899a700 R09: ffffed003b5e5b67 R10: ffffed003b5e5b67 R11: ffff8801daf2db3b R12: ffff8801c86af500 R13: ffff8801b7eaf8f8 R14: 1ffff10036fd5f13 R15: dffffc0000000000 FS: 00007f354ea0d7a0(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff8801b7eafa38 CR3: 00000001d2521000 CR4: 00000000001426e0 Call Trace: locks_remove_file+0x148/0x5c0 fs/locks.c:2607 __fput+0x2f0/0xa70 fs/file_table.c:271 locks_remove_file+0x148/0x5c0 fs/locks.c:2607 ____fput+0x15/0x20 fs/file_table.c:312 task_work_run+0x1e8/0x2a0 kernel/task_work.c:113 __fput+0x2f0/0xa70 fs/file_table.c:271 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x1ad1/0x26d0 kernel/exit.c:867 ____fput+0x15/0x20 fs/file_table.c:312 task_work_run+0x1e8/0x2a0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x318/0x380 arch/x86/entry/common.c:166 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x6be/0x820 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f354e1152b0 Code: 40 75 0b 31 c0 48 83 c4 08 e9 0c ff ff ff 48 8d 3d c5 32 08 00 e8 c0 07 02 00 83 3d 45 a3 2b 00 00 75 10 b8 03 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 ce 8a 01 00 48 89 04 24 RSP: 002b:00007ffe352c3908 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 000000000217f250 RCX: 00007f354e1152b0 RDX: 00007ffe352c6b60 RSI: 0000000000000002 RDI: 0000000000000007 RBP: 0000000000625500 R08: 00007ffe353e50b0 R09: 00007ffe353e5080 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe352c39e0 R13: 0000000000000001 R14: 00007ffe352c3974 R15: 000000000217f250 Modules linked in: CR2: ffff8801b7eafa38 ---[ end trace c2927bbc88a0fc77 ]--- do_group_exit+0x177/0x440 kernel/exit.c:970 RIP: 0010:0xffff8801b7eafa38 Code: ff ff 48 d0 60 8a ff ff ff ff 28 fa ea b7 01 88 ff ff b6 9e 7f 81 ff ff ff ff 90 fb ea b7 01 88 ff ff 00 c0 5f a1 b8 25 8c a9 b5 2f b7 01 88 ff ff 00 f5 6a c8 01 88 ff ff a8 fa ea b7 01 88 RSP: 0018:ffff8801b7eaf878 EFLAGS: 00010293 get_signal+0x8a8/0x1970 kernel/signal.c:2517 RAX: ffff88018899a700 RBX: ffff8801b7eafa38 RCX: ffffffff81ed5dac RDX: 0000000000000000 RSI: ffffffff81ed5c9e RDI: ffff8801b7eaf8f8 RBP: ffff8801b7eafa60 R08: ffff88018899a700 R09: ffffed003b5e5b67 R10: ffffed003b5e5b67 R11: ffff8801daf2db3b R12: ffff8801c86af500 do_signal+0x9c/0x21c0 arch/x86/kernel/signal.c:816 R13: ffff8801b7eaf8f8 R14: 1ffff10036fd5f13 R15: dffffc0000000000 FS: 00007f354ea0d7a0(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff8801b7eafa38 CR3: 00000001d2521000 CR4: 00000000001426e0