================================================================== kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 3343 Comm: syzkaller423073 Not tainted 4.4.107-g79f138a #3 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801d1e40000 task.stack: ffff8801d1de0000 RIP: 0010:[] [] __lock_acquire+0x61f/0x4b50 kernel/locking/lockdep.c:3100 RSP: 0018:ffff8801d1de77b0 EFLAGS: 00010086 RAX: dffffc0000000000 RBX: dead4ead00000000 RCX: ffffffff81237ade RDX: 1ffff1003a1c8420 RSI: 0000000000000008 RDI: ffff8801d0e42100 RBP: ffff8801d1de7950 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000001 R11: 1ffff1003a3bcf08 R12: 0000000000000000 R13: ffff8801d1e40000 R14: ffff8801d0e420f8 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8801db300000(0063) knlGS:00000000f6792b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000020a00000 CR3: 00000000b6b23000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffff8800b56fd828 ffff8800b0c307c0 ffff8801d1de7930 ffffffff8149e232 ffff8801d1de77e0 ffffffff00000000 ffff8801d1e40000 ffff8801d1e40870 0000000000000286 ffff8801d1e40000 0000000000000002 0000000000000002 Call Trace: [] lock_acquire+0x15e/0x460 kernel/locking/lockdep.c:3592 [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:186 [inline] [] _raw_write_lock_irqsave+0x4e/0x70 kernel/locking/spinlock.c:303 [] sg_remove_request+0x69/0x110 drivers/scsi/sg.c:2132 [] 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 Code: 00 fc ff df 44 89 e3 49 8d 7c de 08 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 b6 37 00 00 49 8b 5c de 08 48 85 db 0f 84 28 fb ff ff ff 83 98 01 00 00 49 8d 85 68 08 00 00 48 89 c2 48 89 44 24 RIP [] __lock_acquire+0x61f/0x4b50 kernel/locking/lockdep.c:3100 RSP ---[ end trace 239785570b8a9738 ]--- Kernel panic - not syncing: Fatal exception 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 ffff8800b40f91c0 by task syzkaller423073/3340 CPU: 0 PID: 3340 Comm: syzkaller423073 Tainted: G D 4.4.107-g79f138a #3 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 86f046b455ab8def ffff8801d06ef970 ffffffff81d0457d ffffea0002d03e40 ffff8800b40f91c0 0000000000000000 ffff8800b40f91c0 ffff8800b401c438 ffff8801d06ef9a8 ffffffff814fbb23 ffff8800b40f91c0 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 ffff8800b40f9180 which belongs to the cache fasync_cache of size 96 The buggy address is located 64 bytes inside of 96-byte region [ffff8800b40f9180, ffff8800b40f91e0) The buggy address belongs to the page: Shutting down cpus with NMI Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled Rebooting in 86400 seconds..