================================================================== BUG: KASAN: slab-out-of-bounds in __read_once_size include/linux/compiler.h:243 [inline] 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+0x103/0x120 drivers/scsi/sg.c:2120 Read of size 8 at addr ffff8801cbfad140 by task syzkaller023453/3325 CPU: 0 PID: 3325 Comm: syzkaller023453 Not tainted 4.9.75-gb54d99a #18 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c0c27940 ffffffff81d93049 ffffea00072feb40 ffff8801cbfad140 0000000000000000 ffff8801cbfad140 ffff8801c8578238 ffff8801c0c27978 ffffffff8153ca53 ffff8801cbfad140 0000000000000008 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] print_address_description+0x73/0x280 mm/kasan/report.c:252 [] kasan_report_error mm/kasan/report.c:351 [inline] [] kasan_report+0x275/0x360 mm/kasan/report.c:408 [] __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:429 [] __read_once_size include/linux/compiler.h:243 [inline] [] list_empty include/linux/list.h:189 [inline] [] sg_remove_request+0x103/0x120 drivers/scsi/sg.c:2120 [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1838 [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 [] do_loop_readv_writev.part.17+0x141/0x1e0 fs/read_write.c:714 [] do_loop_readv_writev fs/read_write.c:1105 [inline] [] compat_do_readv_writev+0x522/0x760 fs/read_write.c:1099 [] compat_readv+0xe3/0x150 fs/read_write.c:1128 [] do_compat_readv+0xf4/0x1d0 fs/read_write.c:1148 [] C_SYSC_readv fs/read_write.c:1160 [inline] [] compat_SyS_readv+0x26/0x30 fs/read_write.c:1156 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] entry_SYSENTER_compat+0x74/0x83 arch/x86/entry/entry_64_compat.S:127 Allocated by task 0: (stack is not available) Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8801cbfad100 which belongs to the cache fasync_cache of size 96 The buggy address is located 64 bytes inside of 96-byte region [ffff8801cbfad100, ffff8801cbfad160) The buggy address belongs to the page: page:ffffea00072feb40 count:1 mapcount:0 mapping: (null) index:0x0 flags: 0x8000000000000080(slab) page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801cbfad000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ffff8801cbfad080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801cbfad100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801cbfad180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801cbfad200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================