FAULT_FLAG_ALLOW_RETRY missing a0 CPU: 0 PID: 10748 Comm: syz-executor4 Not tainted 4.9.70-g9542d2a #5 ================================================================== BUG: KASAN: slab-out-of-bounds in __lock_acquire+0x2eff/0x3640 kernel/locking/lockdep.c:3224 at addr ffff8801ca1e83f8 Read of size 8 by task syz-executor3/10773 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c3d574c8 ffffffff81d90a29 ffff8801c3d577a8 0000000000000000 ffff8801ce71c710 ffff8801c3d57698 ffff8801ce71c600 ffff8801c3d576c0 ffffffff8165e557 0000000000000000 0000000000005e64 ffff8801c7a920f0 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] handle_userfault+0xa37/0x1300 fs/userfaultfd.c:323 [] do_anonymous_page mm/memory.c:2747 [inline] [] handle_pte_fault mm/memory.c:3488 [inline] [] __handle_mm_fault mm/memory.c:3577 [inline] [] handle_mm_fault+0x1fd1/0x2530 mm/memory.c:3614 [] faultin_page mm/gup.c:386 [inline] [] __get_user_pages+0x39a/0x1010 mm/gup.c:585 [] __get_user_pages_locked mm/gup.c:797 [inline] [] __get_user_pages_unlocked+0x19d/0x310 mm/gup.c:872 [] process_vm_rw_single_vec mm/process_vm_access.c:110 [inline] [] process_vm_rw_core.isra.3+0x452/0xa70 mm/process_vm_access.c:218 [] compat_process_vm_rw+0x1f0/0x210 mm/process_vm_access.c:342 [] C_SYSC_process_vm_readv mm/process_vm_access.c:358 [inline] [] compat_SyS_process_vm_readv+0x4a/0x60 mm/process_vm_access.c:351 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 CPU: 1 PID: 10773 Comm: syz-executor3 Not tainted 4.9.70-g9542d2a #5 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801d552f7b0 ffffffff81d90a29 ffff8801d77fe500 ffff8801ca1e8380 ffff8801ca1e83e0 ffffed003943d07f ffff8801ca1e83f8 ffff8801d552f7d8 ffffffff8153a45c[ 54.272468] FAULT_FLAG_ALLOW_RETRY missing a0 ffffed003943d07f ffff8801d77fe500 0000000000000000 [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:330 [inline] [] __asan_report_load8_noabort+0x29/0x30 mm/kasan/report.c:330 [] __lock_acquire+0x2eff/0x3640 kernel/locking/lockdep.c:3224 [] lock_acquire+0x12e/0x410 kernel/locking/lockdep.c:3756 [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:186 [inline] [] _raw_write_lock_irqsave+0x4e/0x62 kernel/locking/spinlock.c:303 [] sg_remove_request+0x70/0x120 drivers/scsi/sg.c:2122 [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1838 [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 [] __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 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 Object at ffff8801ca1e8380, in cache fasync_cache size: 96 CPU: 0 PID: 10765 Comm: syz-executor4 Not tainted 4.9.70-g9542d2a #5 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c7b4f4c8 ffffffff81d90a29 ffff8801c7b4f7a8 0000000000000000 ffff8801ce71c890 ffff8801c7b4f698 ffff8801ce71c780 ffff8801c7b4f6c0 ffffffff8165e557 0000000000000000 0000000000005e64 ffff8801c40fd0f0 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] handle_userfault+0xa37/0x1300 fs/userfaultfd.c:323 [] do_anonymous_page mm/memory.c:2747 [inline] [] handle_pte_fault mm/memory.c:3488 [inline] [] __handle_mm_fault mm/memory.c:3577 [inline] [] handle_mm_fault+0x1fd1/0x2530 mm/memory.c:3614 [] faultin_page mm/gup.c:386 [inline] [] __get_user_pages+0x39a/0x1010 mm/gup.c:585 [] __get_user_pages_locked mm/gup.c:797 [inline] [] __get_user_pages_unlocked+0x19d/0x310 mm/gup.c:872 [] process_vm_rw_single_vec mm/process_vm_access.c:110 [inline] [] process_vm_rw_core.isra.3+0x452/0xa70 mm/process_vm_access.c:218 [] compat_process_vm_rw+0x1f0/0x210 mm/process_vm_access.c:342 [] C_SYSC_process_vm_readv mm/process_vm_access.c:358 [inline] [] compat_SyS_process_vm_readv+0x4a/0x60 mm/process_vm_access.c:351 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 Allocated: PID = 10773 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 fasync_alloc fs/fcntl.c:604 [inline] fasync_add_entry fs/fcntl.c:662 [inline] fasync_helper+0x37/0xb0 fs/fcntl.c:691 sg_fasync+0x86/0xb0 drivers/scsi/sg.c:1203 setfl fs/fcntl.c:70 [inline] do_fcntl fs/fcntl.c:267 [inline] SYSC_fcntl fs/fcntl.c:372 [inline] SyS_fcntl+0x658/0xc70 fs/fcntl.c:357 C_SYSC_fcntl64 fs/compat.c:469 [inline] compat_SyS_fcntl64+0xce/0x4f0 fs/compat.c:403 do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 Freed: PID = 4401 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kmem_cache_free+0xb2/0x2e0 mm/slub.c:2980 fasync_free_rcu+0x1d/0x20 fs/fcntl.c:563 __rcu_reclaim kernel/rcu/rcu.h:118 [inline] rcu_do_batch kernel/rcu/tree.c:2789 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:3053 [inline] __rcu_process_callbacks kernel/rcu/tree.c:3020 [inline] rcu_process_callbacks+0x871/0x12c0 kernel/rcu/tree.c:3037 __do_softirq+0x206/0x951 kernel/softirq.c:284 Memory state around the buggy address: ffff8801ca1e8280: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff8801ca1e8300: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc >ffff8801ca1e8380: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ^ ffff8801ca1e8400: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ffff8801ca1e8480: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ================================================================== 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: 10773 Comm: syz-executor3 Tainted: G B 4.9.70-g9542d2a #5 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801c55cb000 task.stack: ffff8801d5528000 RIP: 0010:[] [] __lock_acquire+0x194/0x3640 kernel/locking/lockdep.c:3234 RSP: 0018:ffff8801d552f880 EFLAGS: 00010086 RAX: dead4ead00000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 1ffff1003943d080 RSI: 0000000000000000 RDI: ffff8801ca1e8400 RBP: ffff8801d552fa40 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000000 R11: ffff8801c55cb000 R12: 0000000000000001 R13: 0000000000000001 R14: 0000000000000000 R15: ffff8801ca1e83f8 FS: 0000000000000000(0000) GS:ffff8801db300000(0063) knlGS:00000000f7733b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000205c5fc7 CR3: 00000001ca38d000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffffffff814cb7b0 0000000000000004 ffff8801c55cb000 ffffed0038ab9715 dffffc0000000000 ffff8801d8bd2080 0000000000000000 ffff8801c55cb8b0 ffff8801c55cb888 ffff8801d552f980 0000000000000246 ffff8801c55cb000 Call Trace: [] lock_acquire+0x12e/0x410 kernel/locking/lockdep.c:3756 [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:186 [inline] [] _raw_write_lock_irqsave+0x4e/0x62 kernel/locking/spinlock.c:303 [] sg_remove_request+0x70/0x120 drivers/scsi/sg.c:2122 [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1838 [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 [] __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 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 Code: 9e ff ff 44 8b 94 24 98 00 00 00 48 85 c0 8b 8c 24 90 00 00 00 44 8b 8c 24 88 00 00 00 4c 8b 9c 24 80 00 00 00 0f 84 ff 07 00 00 ff 80 98 01 00 00 49 8d b3 a8 08 00 00 48 ba 00 00 00 00 00 RIP [] __lock_acquire+0x194/0x3640 kernel/locking/lockdep.c:3234 RSP ---[ end trace 5046716e8b47b779 ]---