================================================================== 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 ffff8801d1bd52c0 by task syzkaller507831/3328 CPU: 0 PID: 3328 Comm: syzkaller507831 Not tainted 4.4.111-gc2f631b #27 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 77a8f23f3951bab3 ffff8800b43a79f0 ffffffff81d0513d ffffea000746f540 ffff8801d1bd52c0 0000000000000000 ffff8801d1bd52c0 ffff8800b810a338 ffff8800b43a7a28 ffffffff814fd433 ffff8801d1bd52c0 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 [] do_loop_readv_writev+0x141/0x1e0 fs/read_write.c:680 [] do_readv_writev+0x5dd/0x6e0 fs/read_write.c:810 [] vfs_readv+0x78/0xb0 fs/read_write.c:834 [] SYSC_readv fs/read_write.c:860 [inline] [] SyS_readv+0xd9/0x240 fs/read_write.c:852 [] 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 ffff8801d1bd5280 which belongs to the cache fasync_cache of size 96 The buggy address is located 64 bytes inside of 96-byte region [ffff8801d1bd5280, ffff8801d1bd52e0) The buggy address belongs to the page: BUG: unable to handle kernel paging request at fffffffd264ea300 IP: [] cpuacct_charge+0x155/0x390 kernel/sched/cpuacct.c:247 PGD 420f067 PUD 0 Oops: 0000 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 15 Comm: kworker/1:0 Not tainted 4.4.111-gc2f631b #27 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events vmstat_shepherd task: ffff8801da3e8000 task.stack: ffff8801da3f0000 RIP: 0010:[] [] cpuacct_charge+0x155/0x390 kernel/sched/cpuacct.c:247 RSP: 0018:ffff8801da3f7890 EFLAGS: 00010046 RAX: 1ffffffff0854dff RBX: 0000000000018528 RCX: ffffffff847ea080 RDX: fffffbffa4c9d460 RSI: fffffffd264ea300 RDI: ffffffff842a6ff8 RBP: ffff8801da3f78d8 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000000 R11: 1ffff1003b47eede R12: ffffffff842a6f20 R13: dffffc0000000000 R14: 000000002f74e2de R15: ffffffffb43a0050 FS: 0000000000000000(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffffffd264ea300 CR3: 00000001d1aae000 CR4: 0000000000160670 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffffffff8122a4a0 ffff8801da3f78c0 0000000000000046 0000000000000003 ffff8801d05eafe0 ffffffff83843900 000000002f74e2de ffff8801d05eb030 ffff8801d05eaf80 ffff8801da3f7928 ffffffff811dc017 ffff8801db21f4c0 Call Trace: [] update_curr+0x2c7/0x6c0 kernel/sched/fair.c:882 [] enqueue_entity kernel/sched/fair.c:3511 [inline] [] enqueue_task_fair+0x313/0x2940 kernel/sched/fair.c:4694 [] enqueue_task kernel/sched/core.c:856 [inline] [] activate_task+0x148/0x270 kernel/sched/core.c:872 [] ttwu_activate kernel/sched/core.c:1734 [inline] [] ttwu_do_activate.constprop.131+0xbf/0x1e0 kernel/sched/core.c:1787 [] ttwu_queue kernel/sched/core.c:1932 [inline] [] try_to_wake_up+0x68d/0xf60 kernel/sched/core.c:2066 [] wake_up_process+0x15/0x20 kernel/sched/core.c:2140 [] wake_up_worker kernel/workqueue.c:846 [inline] [] insert_work+0x171/0x210 kernel/workqueue.c:1318 [] __queue_work+0x3dc/0xea0 kernel/workqueue.c:1433 [] __queue_delayed_work+0x237/0x390 kernel/workqueue.c:1495 [] queue_delayed_work_on+0x59/0xb0 kernel/workqueue.c:1533 [] vmstat_shepherd+0x1c9/0x230 mm/vmstat.c:1488 [] process_one_work+0x7d7/0x16e0 kernel/workqueue.c:2064 [] worker_thread+0xdf/0xfe0 kernel/workqueue.c:2196 [] kthread+0x268/0x300 kernel/kthread.c:211 [] ret_from_fork+0x3f/0x70 arch/x86/entry/entry_64.S:494 Code: 49 8d bc 24 d8 00 00 00 48 89 f8 48 c1 e8 03 42 80 3c 28 00 0f 85 9e 01 00 00 49 8b 9c 24 d8 00 00 00 80 3a 00 0f 85 0a 02 00 00 <4a> 03 1c f9 48 89 d8 48 c1 e8 03 42 80 3c 28 00 0f 85 cf 01 00 RIP [] cpuacct_charge+0x155/0x390 kernel/sched/cpuacct.c:247 RSP CR2: fffffffd264ea300 ---[ end trace a13551adbe3e3fe6 ]---