================================================================== BUG: KASAN: slab-out-of-bounds in list_empty include/linux/list.h:189 [inline] BUG: KASAN: slab-out-of-bounds in sg_remove_request+0xf9/0x110 drivers/scsi/sg.c:2130 Read of size 8 at addr ffff8801d0b0c240 by task syzkaller344361/3329 CPU: 0 PID: 3329 Comm: syzkaller344361 Not tainted 4.4.111-gf851888 #23 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 426244f8e70a0c1f ffff8801d03a7ab0 ffffffff81d0507d ffffea000742c300 ffff8801d0b0c240 0000000000000000 ffff8801d0b0c240 ffff8801d4cd4438 ffff8801d03a7ae8 ffffffff814fd433 ffff8801d0b0c240 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x124 lib/dump_stack.c:51 [] print_address_description+0x73/0x260 mm/kasan/report.c:252 [] kasan_report_error mm/kasan/report.c:351 [inline] [] kasan_report+0x285/0x370 mm/kasan/report.c:408 [] __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:429 [] list_empty include/linux/list.h:189 [inline] [] sg_remove_request+0xf9/0x110 drivers/scsi/sg.c:2130 [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1848 [] sg_read+0xa21/0x1490 drivers/scsi/sg.c:538 [] __vfs_read+0x103/0x440 fs/read_write.c:432 [] vfs_read+0x123/0x3a0 fs/read_write.c:454 [] SYSC_read fs/read_write.c:569 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:562 [] entry_SYSCALL_64_fastpath+0x16/0x92 Allocated by task 0: (stack is not available) Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8801d0b0c200 which belongs to the cache fasync_cache of size 96 The buggy address is located 64 bytes inside of 96-byte region [ffff8801d0b0c200, ffff8801d0b0c260) The buggy address belongs to the page: BUG: unable to handle kernel paging request at ffffebe000000028 IP: [] __list_del_entry+0x30/0x1d0 lib/list_debug.c:49 PGD 0 Oops: 0000 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 7 Comm: rcu_preempt Not tainted 4.4.111-gf851888 #23 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801da3717c0 task.stack: ffff8801da388000 RIP: 0010:[] [] __list_del_entry+0x30/0x1d0 lib/list_debug.c:49 RSP: 0018:ffff8801da38f900 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffffebe000000020 RCX: ffffebe000000020 RDX: ffffebe000000020 RSI: ffff8801da372030 RDI: ffffebe000000028 RBP: ffff8801da38f918 R08: 0000000000000001 R09: ffffffff850e28e0 R10: 0000000000000001 R11: 1ffff1003b471ef0 R12: ffff8801cc940a00 R13: 0000000080000000 R14: 000077ff80000000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffebe000000028 CR3: 00000001d0b7c000 CR4: 0000000000160670 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: 0000000000000000 ffffebe000000020 ffff8801cc940a00 ffff8801da38f930 ffffffff81d6541d 0000000000000000 ffff8801da38f960 ffffffff810e93e3 ffff8801cc940a00 ffff8801cc940d40 0000000000000000 0000000000000000 Call Trace: [] list_del+0xd/0x70 lib/list_debug.c:77 [] pgd_list_del arch/x86/mm/pgtable.c:98 [inline] [] pgd_dtor arch/x86/mm/pgtable.c:142 [inline] [] pgd_free+0x63/0x100 arch/x86/mm/pgtable.c:407 [] mm_free_pgd kernel/fork.c:552 [inline] [] __mmdrop+0x66/0x260 kernel/fork.c:698 [] mmdrop include/linux/sched.h:2776 [inline] [] finish_task_switch+0x213/0x4e0 kernel/sched/core.c:2679 [] context_switch kernel/sched/core.c:2803 [inline] [] __schedule+0xa9d/0x1c70 kernel/sched/core.c:3322 [] schedule+0x9a/0x1c0 kernel/sched/core.c:3351 [] schedule_timeout+0x356/0x970 kernel/time/timer.c:1531 [] rcu_gp_kthread+0xe09/0x2220 kernel/rcu/tree.c:2121 [] kthread+0x268/0x300 kernel/kthread.c:211 [] ret_from_fork+0x3f/0x70 arch/x86/entry/entry_64.S:494 Code: 00 00 fc ff df 48 89 f9 55 48 83 c7 08 48 89 fa 48 89 e5 41 54 48 c1 ea 03 53 48 83 ec 08 80 3c 02 00 0f 85 87 01 00 00 48 89 ca <48> 8b 59 08 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 RIP [] __list_del_entry+0x30/0x1d0 lib/list_debug.c:49 RSP CR2: ffffebe000000028 ---[ end trace e82b13d9aad6e8f3 ]---