================================================================== 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 ffff8800b8306140 by task syzkaller889517/3320 CPU: 0 PID: 3320 Comm: syzkaller889517 Not tainted 4.4.111-gc2f631b #20 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 8b7d9ea9ae32a00b ffff8801cd5ff970 ffffffff81d0513d ffffea0002e0c180 ffff8800b8306140 0000000000000000 ffff8800b8306140 ffff8801d0bd8238 ffff8801cd5ff9a8 ffffffff814fd433 ffff8800b8306140 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 [] compat_do_readv_writev+0x5df/0x6e0 fs/read_write.c:984 [] compat_readv+0xd9/0x140 fs/read_write.c:1013 [] C_SYSC_readv fs/read_write.c:1033 [inline] [] compat_SyS_readv+0xd8/0x1b0 fs/read_write.c:1022 [] do_syscall_32_irqs_on arch/x86/entry/common.c:390 [inline] [] do_fast_syscall_32+0x314/0x890 arch/x86/entry/common.c:457 [] sysenter_flags_fixed+0xd/0x17 Allocated by task 0: (stack is not available) Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8800b8306100 which belongs to the cache fasync_cache of size 96 The buggy address is located 64 bytes inside of 96-byte region [ffff8800b8306100, ffff8800b8306160) The buggy address belongs to the page: BUG: unable to handle kernel paging request at fffffffdef7aa300 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: 155 Comm: kworker/1:1 Not tainted 4.4.111-gc2f631b #20 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events vmstat_shepherd task: ffff8800bbad2f80 task.stack: ffff8801d9b50000 RIP: 0010:[] [] cpuacct_charge+0x155/0x390 kernel/sched/cpuacct.c:247 RSP: 0018:ffff8801d9b57890 EFLAGS: 00010046 RAX: 1ffffffff0854dff RBX: 0000000000018528 RCX: ffffffff847ea080 RDX: fffffbffbdef5460 RSI: fffffffdef7aa300 RDI: ffffffff842a6ff8 RBP: ffff8801d9b578d8 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000000 R11: 1ffff1003b36aede R12: ffffffff842a6f20 R13: dffffc0000000000 R14: 0000000038057dbe R15: ffffffffcd5f8050 FS: 0000000000000000(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffffffdef7aa300 CR3: 00000000b4512000 CR4: 0000000000160670 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffffffff8122a4a0 ffff8801d9b578c0 0000000000000046 0000000000000003 ffff8801d22a2fe0 ffffffff83843900 0000000038057dbe ffff8801d22a3030 ffff8801d22a2f80 ffff8801d9b57928 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: fffffffdef7aa300 ---[ end trace 04be45cc973c702c ]---