================================================================== 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 ffff8801cb230140 by task syzkaller866364/3322 CPU: 0 PID: 3322 Comm: syzkaller866364 Not tainted 4.9.78-gf518fe4 #22 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c9b5fab0 ffffffff81d943a9 ffffea00072c8c00 ffff8801cb230140 0000000000000000 ffff8801cb230140 ffff8801c8de2338 ffff8801c9b5fae8 ffffffff8153dc23 ffff8801cb230140 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:2110 [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1827 [] sg_read+0xa16/0x1440 drivers/scsi/sg.c:526 [] __vfs_read+0x103/0x670 fs/read_write.c:452 [] vfs_read+0x11e/0x380 fs/read_write.c:475 [] SYSC_read fs/read_write.c:591 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:584 [] entry_SYSCALL_64_fastpath+0x29/0xe8 Allocated by task 0: (stack is not available) Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8801cb230100 which belongs to the cache fasync_cache of size 96 The buggy address is located 64 bytes inside of 96-byte region [ffff8801cb230100, ffff8801cb230160) The buggy address belongs to the page: page:ffffea00072c8c00 count:1 mapcount:0 mapping: (null) index:0x0 flags: 0x8000000000000080(slab) page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801cb230000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ffff8801cb230080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801cb230100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801cb230180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801cb230200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================