================================================================== 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: 3377 Comm: syzkaller685434 Not tainted 4.4.107-g610c835 #4 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8800b823c740 task.stack: ffff8801d94c8000 RIP: 0010:[] [] __lock_acquire+0x61f/0x4b50 kernel/locking/lockdep.c:3100 RSP: 0018:ffff8801d94cf880 EFLAGS: 00010086 RAX: dffffc0000000000 RBX: dead4ead00000000 RCX: ffffffff81237ade RDX: 1ffff1003a313890 RSI: 0000000000000008 RDI: ffff8801d189c480 RBP: ffff8801d94cfa20 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000001 R11: 1ffff1003b299f22 R12: 0000000000000000 R13: ffff8800b823c740 R14: ffff8801d189c478 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8801db300000(0063) knlGS:00000000f47d3b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000206f6000 CR3: 00000001d0a15000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffff8801d0ee0818 ffff8800b4b59d90 ffff8801d94cfa00 ffffffff8149e232 ffff8801d94cf8b0 ffffffff00000000 ffff8800b823c740 ffff8800b823cfb0 0000000000000288 ffff8800b823c740 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 [] __vfs_read+0x103/0x440 fs/read_write.c:432 [] vfs_read+0x123/0x3a0 fs/read_write.c:454 [] SYSC_read fs/read_write.c:569 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:562 [] 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 ba8c3c110e6701ba ]--- Kernel panic - not syncing: Fatal exception BUG: KASAN: slab-out-of-bounds in __lock_acquire+0x387e/0x4b50 kernel/locking/lockdep.c:3092 Read of size 8 at addr ffff8801d189c378 by task syzkaller685434/3379 CPU: 0 PID: 3379 Comm: syzkaller685434 Tainted: G D 4.4.107-g610c835 #4 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 5f95027bfc99f209 ffff8801cd1bf7e0 ffffffff81d0457d ffffea0007462700 ffff8801d189c378 0000000000000000 ffff8801d189c378 0000000000000000 ffff8801cd1bf818 ffffffff814fbb23 ffff8801d189c378 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 [] __lock_acquire+0x387e/0x4b50 kernel/locking/lockdep.c:3092 [] 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 [] __vfs_read+0x103/0x440 fs/read_write.c:432 [] vfs_read+0x123/0x3a0 fs/read_write.c:454 [] SYSC_read fs/read_write.c:569 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:562 [] 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 3384: [] save_stack_trace+0x26/0x50 arch/x86/kernel/stacktrace.c:63 [] save_stack+0x43/0xd0 mm/kasan/kasan.c:512 [] set_track mm/kasan/kasan.c:524 [inline] [] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:616 [] kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:554 [] slab_post_alloc_hook mm/slub.c:1349 [inline] [] slab_alloc_node mm/slub.c:2615 [inline] [] slab_alloc mm/slub.c:2623 [inline] [] kmem_cache_alloc+0xba/0x290 mm/slub.c:2628 [] fasync_alloc fs/fcntl.c:603 [inline] [] fasync_add_entry fs/fcntl.c:661 [inline] [] fasync_helper+0x37/0xb0 fs/fcntl.c:690 [] sg_fasync+0x86/0xb0 drivers/scsi/sg.c:1213 [] setfl fs/fcntl.c:69 [inline] [] do_fcntl fs/fcntl.c:266 [inline] [] SYSC_fcntl fs/fcntl.c:371 [inline] [] SyS_fcntl+0x64f/0xc40 fs/fcntl.c:356 [] C_SYSC_fcntl64 fs/compat.c:483 [inline] [] compat_SyS_fcntl64+0xce/0x4f0 fs/compat.c:417 [] 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 Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8801d189c300 which belongs to the cache fasync_cache of size 96 The buggy address is located 24 bytes to the right of 96-byte region [ffff8801d189c300, ffff8801d189c360) 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..