================================================================== 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:2120 Read of size 8 at addr ffff8801d178b2c0 by task syzkaller382858/3313 CPU: 1 PID: 3313 Comm: syzkaller382858 Not tainted 4.4.113-ge70c132 #34 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 ec482e645b647ad9 ffff8800b4677ab0 ffffffff81d0278d ffffea000745e2c0 ffff8801d178b2c0 0000000000000000 ffff8801d178b2c0 ffff8801cfcc8238 ffff8800b4677ae8 ffffffff814fd053 ffff8801d178b2c0 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:2120 [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1837 [] sg_read+0xa1b/0x1490 drivers/scsi/sg.c:537 [] __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+0x1c/0x98 Allocated by task 0: (stack is not available) Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8801d178b280 which belongs to the cache fasync_cache of size 96 The buggy address is located 64 bytes inside of 96-byte region [ffff8801d178b280, ffff8801d178b2e0) The buggy address belongs to the page: BUG: unable to handle kernel NULL pointer dereference at (null) IP: [< (null)>] (null) PGD 80000001d04d9067 PUD 1d0628067 PMD 0 Oops: 0010 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 3309 Comm: syzkaller382858 Not tainted 4.4.113-ge70c132 #34 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8800b52bdf00 task.stack: ffff8801d1058000 RIP: 0010:[<0000000000000000>] [< (null)>] (null) RSP: 0018:ffff8801d105fbc8 EFLAGS: 00010046 RAX: ffff8800b45c7a20 RBX: 0000000000000000 RCX: 0000000000000041 RDX: 0000000000000001 RSI: 0000000000000001 RDI: ffff8800b45c7a20 RBP: ffff8801d105fc10 R08: 0000000000000041 R09: ffffffff85111510 R10: 0000000000000001 R11: 1ffff1003a20bf4a R12: ffff8801d2f5eab8 R13: dffffc0000000000 R14: ffffffff838a8dc8 R15: 0000000000000041 FS: 00000000018c2880(0063) GS:ffff8801db200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000001d0a60000 CR4: 0000000000160670 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffffffff8121e6e4 0000000000000041 0000000100000001 0000000100000001 ffff8801d2f5ea80 0000000000000001 0000000000000041 0000000000000001 0000000000000292 ffff8801d105fc48 ffffffff8121f110 ffff8801d2f5ea00 Call Trace: [] __wake_up_sync_key+0x40/0x60 kernel/sched/wait.c:145 [] pipe_write+0x662/0xd80 fs/pipe.c:469 [] new_sync_write fs/read_write.c:478 [inline] [] __vfs_write+0x33c/0x450 fs/read_write.c:491 [] vfs_write+0x18a/0x530 fs/read_write.c:538 [] SYSC_write fs/read_write.c:585 [inline] [] SyS_write+0xd9/0x1b0 fs/read_write.c:577 [] entry_SYSCALL_64_fastpath+0x1c/0x98 Code: Bad RIP value. RIP [< (null)>] (null) RSP CR2: 0000000000000000 ---[ end trace 683064a2a4c1d9b1 ]---