loop3: rw=2049, sector=40, nr_sectors = 4 limit=40 Buffer I/O error on dev loop3, logical block 10, lost async page write loop2: detected capacity change from 0 to 40 ================================================================== BUG: KASAN: use-after-free in __lock_acquire+0x4346/0x6120 Read of size 8 at addr ffff88801757f7b8 by task syz-executor/14346 CPU: 0 PID: 14346 Comm: syz-executor Not tainted 5.19.0-rc3-next-20220623 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: dump_stack_lvl+0x8b/0xb3 print_report.cold+0x5e/0x5e8 kasan_report+0xbe/0x1c0 __lock_acquire+0x4346/0x6120 lock_acquire+0x1a2/0x530 _raw_spin_lock_irq+0x32/0x50 kmemleak_scan+0x21d/0x16b0 kmemleak_write+0x56c/0x680 full_proxy_write+0x11d/0x190 vfs_write+0x264/0xac0 ksys_write+0x127/0x250 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7fdf23ff15c3 Code: 16 00 00 00 eb ae 90 b8 6e 00 00 00 eb a6 e8 44 ef 04 00 0f 1f 40 00 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 55 c3 0f 1f 40 00 48 83 ec 28 48 89 54 24 18 RSP: 002b:00007ffe10c47c08 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007ffe10c48248 RCX: 00007fdf23ff15c3 RDX: 0000000000000004 RSI: 00007fdf240a7ed9 RDI: 0000000000000003 RBP: 0000000000000003 R08: 000000000000071e R09: 00007ffe10dd6080 R10: 00007ffe10dd6090 R11: 0000000000000246 R12: 00007fdf23ff3b10 R13: 00007ffe10c48ee2 R14: 0000000000000000 R15: 00000000001bcdcc Allocated by task 129: kasan_save_stack+0x1e/0x40 __kasan_slab_alloc+0x66/0x80 kmem_cache_alloc+0x1b1/0x490 __create_object.isra.0+0x3d/0xc10 kmem_cache_alloc+0x247/0x490 __alloc_file+0x21/0x230 alloc_empty_file+0x6d/0x170 path_openat+0xe1/0x2870 do_filp_open+0x1aa/0x400 do_sys_openat2+0x16d/0x4c0 __x64_sys_openat+0x13f/0x1f0 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x46/0xb0 Freed by task 13: kasan_save_stack+0x1e/0x40 kasan_set_track+0x21/0x30 kasan_set_free_info+0x20/0x30 ____kasan_slab_free+0x14b/0x1a0 kmem_cache_free+0xe7/0x5e0 rcu_core+0x7e2/0x2070 __do_softirq+0x270/0x8c7 Last potentially related work creation: kasan_save_stack+0x1e/0x40 __kasan_record_aux_stack+0x97/0xa0 call_rcu+0x6a/0xa20 kmem_cache_free+0x26e/0x5e0 rcu_core+0x7e2/0x2070 __do_softirq+0x270/0x8c7 Second to last potentially related work creation: kasan_save_stack+0x1e/0x40 __kasan_record_aux_stack+0x97/0xa0 call_rcu+0x6a/0xa20 kmem_cache_free+0x26e/0x5e0 rcu_core+0x7e2/0x2070 __do_softirq+0x270/0x8c7 The buggy address belongs to the object at ffff88801757f7a0 which belongs to the cache kmemleak_object of size 368 The buggy address is located 24 bytes inside of 368-byte region [ffff88801757f7a0, ffff88801757f910) The buggy address belongs to the physical page: page:00000000d587d027 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1757e head:00000000d587d027 order:1 compound_mapcount:0 compound_pincount:0 flags: 0x100000000010200(slab|head|node=0|zone=1) raw: 0100000000010200 ffffea0000372280 dead000000000002 ffff88800784f780 raw: 0000000000000000 0000000000120012 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88801757f680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88801757f700: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc >ffff88801757f780: fc fc fc fc fa fb fb fb fb fb fb fb fb fb fb fb ^ ffff88801757f800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88801757f880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== watchdog: BUG: soft lockup - CPU#1 stuck for 22s! [kworker/u4:2:33] Modules linked in: irq event stamp: 3785428 hardirqs last enabled at (3785427): [] _raw_spin_unlock_irq+0x1f/0x40 hardirqs last disabled at (3785428): [] __schedule+0x1223/0x2490 softirqs last enabled at (3785364): [] ieee80211_ibss_work+0x2e8/0xdf0 softirqs last disabled at (3785362): [] ieee80211_ibss_work+0x138/0xdf0 CPU: 1 PID: 33 Comm: kworker/u4:2 Tainted: G B 5.19.0-rc3-next-20220623 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Workqueue: events_unbound enable_ptr_key_workfn RIP: 0010:smp_call_function_many_cond+0x41b/0xb30 Code: 0a 00 85 ed 74 4d 48 b8 00 00 00 00 00 fc ff df 4d 89 f4 4c 89 f5 49 c1 ec 03 83 e5 07 49 01 c4 83 c5 03 e8 87 0e 0a 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 ad 05 00 00 8b 43 08 31 RSP: 0018:ffff888008e97aa8 EFLAGS: 00000293 RAX: 0000000000000000 RBX: ffff88806ce3f180 RCX: 0000000000000000 RDX: ffff888008c43580 RSI: ffffffff813a7419 RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffffed100d9c7e31 R13: 0000000000000000 R14: ffff88806ce3f188 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffed66f1fe8 CR3: 0000000005026000 CR4: 0000000000350ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff4ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x56/0xa0 text_poke_bp_batch+0x236/0x6d0 text_poke_finish+0x16/0x30 arch_jump_label_transform_apply+0x13/0x20 jump_label_update+0x32f/0x410 static_key_enable_cpuslocked+0x1b1/0x260 static_key_enable+0x16/0x20 process_one_work+0xa1c/0x16a0 worker_thread+0x637/0x1250 kthread+0x2f2/0x3b0 ret_from_fork+0x22/0x30 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 14346 Comm: syz-executor Tainted: G B 5.19.0-rc3-next-20220623 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 RIP: 0010:kasan_report+0x12/0x1c0 Code: 5d 41 5c c3 e9 1a 6d 94 02 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 41 56 41 55 41 54 55 53 48 83 ec 38 9c 41 5e 0f 01 ca <65> 48 8b 04 25 c0 6e 02 00 8b 80 f8 13 00 00 85 c0 0f 85 37 01 00 RSP: 0018:ffff88804548fa60 EFLAGS: 00000086 RAX: 0000000000000003 RBX: ffffed1002eafef5 RCX: ffffffff81298687 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff88801757f7a0 RBP: ffffed1002eafef4 R08: 0000000000000000 R09: ffff88801757f7a3 R10: ffffed1002eafef4 R11: 0000000000000001 R12: 0000000000000003 R13: ffffed1002eafef4 R14: 0000000000000086 R15: 1ffff11008a91f5e FS: 00005555567dc400(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffed66f1fe8 CR3: 0000000044074000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff4ff0 DR7: 0000000000000400 Call Trace: kasan_check_range+0xf9/0x1e0 queued_spin_lock_slowpath+0xa7/0xc80 do_raw_spin_lock+0x1d8/0x260 kmemleak_scan+0x21d/0x16b0 kmemleak_write+0x56c/0x680 full_proxy_write+0x11d/0x190 vfs_write+0x264/0xac0 ksys_write+0x127/0x250 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7fdf23ff15c3 Code: 16 00 00 00 eb ae 90 b8 6e 00 00 00 eb a6 e8 44 ef 04 00 0f 1f 40 00 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 55 c3 0f 1f 40 00 48 83 ec 28 48 89 54 24 18 RSP: 002b:00007ffe10c47c08 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007ffe10c48248 RCX: 00007fdf23ff15c3 RDX: 0000000000000004 RSI: 00007fdf240a7ed9 RDI: 0000000000000003 RBP: 0000000000000003 R08: 000000000000071e R09: 00007ffe10dd6080 R10: 00007ffe10dd6090 R11: 0000000000000246 R12: 00007fdf23ff3b10 R13: 00007ffe10c48ee2 R14: 0000000000000000 R15: 00000000001bcdcc ---------------- Code disassembly (best guess): 0: 0a 00 or (%rax),%al 2: 85 ed test %ebp,%ebp 4: 74 4d je 0x53 6: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax d: fc ff df 10: 4d 89 f4 mov %r14,%r12 13: 4c 89 f5 mov %r14,%rbp 16: 49 c1 ec 03 shr $0x3,%r12 1a: 83 e5 07 and $0x7,%ebp 1d: 49 01 c4 add %rax,%r12 20: 83 c5 03 add $0x3,%ebp 23: e8 87 0e 0a 00 callq 0xa0eaf 28: f3 90 pause * 2a: 41 0f b6 04 24 movzbl (%r12),%eax <-- trapping instruction 2f: 40 38 c5 cmp %al,%bpl 32: 7c 08 jl 0x3c 34: 84 c0 test %al,%al 36: 0f 85 ad 05 00 00 jne 0x5e9 3c: 8b 43 08 mov 0x8(%rbx),%eax 3f: 31 .byte 0x31