================================================================== 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:2110 Read of size 8 at addr ffff8801bf7c2140 by task syzkaller342907/3801 CPU: 1 PID: 3801 Comm: syzkaller342907 Not tainted 4.9.88-gbb52bba #59 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801d7627940 ffffffff81d95f19 ffffea0006fdf080 ffff8801bf7c2140 0000000000000000 ffff8801bf7c2140 ffff8801d7738238 ffff8801d7627978 ffffffff8153e793 ffff8801bf7c2140 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:256 [] kasan_report_error mm/kasan/report.c:355 [inline] [] kasan_report+0x255/0x380 mm/kasan/report.c:412 [] __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 [] __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:2110 [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1827 [] sg_read+0xa16/0x1440 drivers/scsi/sg.c:526 [] do_loop_readv_writev.part.17+0xc8/0x2b0 fs/read_write.c:715 [] do_loop_readv_writev fs/read_write.c:879 [inline] [] do_readv_writev+0x5fd/0x740 fs/read_write.c:873 [] vfs_readv+0x84/0xc0 fs/read_write.c:897 [] do_readv+0xe6/0x250 fs/read_write.c:923 [] SYSC_readv fs/read_write.c:1010 [inline] [] SyS_readv+0x27/0x30 fs/read_write.c:1007 [] do_syscall_64+0x1a4/0x490 arch/x86/entry/common.c:282 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Allocated by task 0: (stack is not available) Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8801bf7c2100 which belongs to the cache fasync_cache of size 96 The buggy address is located 64 bytes inside of 96-byte region [ffff8801bf7c2100, ffff8801bf7c2160) The buggy address belongs to the page: page:ffffea0006fdf080 count:1 mapcount:0 mapping: (null) index:0x0 flags: 0x8000000000000080(slab) page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801bf7c2000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ffff8801bf7c2080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801bf7c2100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801bf7c2180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801bf7c2200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================