FAT-fs (loop7): count of clusters too big (25166846)
FAT-fs (loop7): Can't find a valid FAT filesystem
loop0: detected capacity change from 0 to 40
==================================================================
BUG: KASAN: use-after-free in __lock_acquire+0x4346/0x6120
Read of size 8 at addr ffff888042203968 by task syz-executor/12303
CPU: 1 PID: 12303 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:0x7fcb91c3c5c3
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:00007ffc13d3dde8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007ffc13d3e428 RCX: 00007fcb91c3c5c3
RDX: 0000000000000004 RSI: 00007fcb91cf2ed9 RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000000000000b36 R09: 00007ffc13d7b080
R10: 00007ffc13d7b090 R11: 0000000000000246 R12: 00007fcb91c3eb10
R13: 00007ffc13d3fee2 R14: 0000000000000000 R15: 00000000002bcdc1
Allocated by task 12303:
kasan_save_stack+0x1e/0x40
__kasan_slab_alloc+0x66/0x80
kmem_cache_alloc+0x1b1/0x490
__create_object.isra.0+0x3d/0xc10
kmem_cache_alloc_node+0x255/0x4a0
__alloc_skb+0x211/0x340
skb_copy+0x139/0x3c0
mac80211_hwsim_tx_frame_no_nl.isra.0+0xb6d/0x1440
mac80211_hwsim_tx_frame+0x1ee/0x2a0
mac80211_hwsim_beacon_tx+0x53f/0xa10
__iterate_interfaces+0x1f0/0x570
ieee80211_iterate_active_interfaces_atomic+0x70/0x180
mac80211_hwsim_beacon+0xfd/0x200
__hrtimer_run_queues+0x5e8/0xbd0
hrtimer_run_softirq+0x172/0x340
__do_softirq+0x270/0x8c7
Freed by task 19:
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
kfree_skbmem+0xef/0x1b0
kfree_skb_reason+0x85/0x110
ieee80211_iface_work+0x41b/0xce0
process_one_work+0xa1c/0x16a0
worker_thread+0x637/0x1250
kthread+0x2f2/0x3b0
ret_from_fork+0x22/0x30
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_bulk+0x307/0x850
kfree_rcu_work+0x3fa/0xbd0
process_one_work+0xa1c/0x16a0
worker_thread+0x637/0x1250
kthread+0x2f2/0x3b0
ret_from_fork+0x22/0x30
The buggy address belongs to the object at ffff888042203950
which belongs to the cache kmemleak_object of size 368
The buggy address is located 24 bytes inside of
368-byte region [ffff888042203950, ffff888042203ac0)
The buggy address belongs to the physical page:
page:0000000096355f8f refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x42202
head:0000000096355f8f order:1 compound_mapcount:0 compound_pincount:0
flags: 0x100000000010200(slab|head|node=0|zone=1)
raw: 0100000000010200 0000000000000000 dead000000000001 ffff88800784f780
raw: 0000000000000000 0000000000120012 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff888042203800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888042203880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888042203900: fb fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb
^
ffff888042203980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888042203a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
watchdog: BUG: soft lockup - CPU#0 stuck for 26s! [kworker/u4:3:7991]
Modules linked in:
irq event stamp: 2294166
hardirqs last enabled at (2294165): [] _raw_spin_unlock_irq+0x1f/0x40
hardirqs last disabled at (2294166): [] __schedule+0x1223/0x2490
softirqs last enabled at (2293802): [] ieee80211_ibss_work+0x2e8/0xdf0
softirqs last disabled at (2293800): [] ieee80211_ibss_work+0x138/0xdf0
CPU: 0 PID: 7991 Comm: kworker/u4:3 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:ffff888044107aa8 EFLAGS: 00000293
RAX: 0000000000000000 RBX: ffff88806cf3d420 RCX: 0000000000000000
RDX: ffff88800fe38000 RSI: ffffffff813a7419 RDI: 0000000000000005
RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffffed100d9e7a85
R13: 0000000000000001 R14: ffff88806cf3d428 R15: 0000000000000001
FS: 0000000000000000(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f22dabb2ae0 CR3: 0000000005026000 CR4: 0000000000350ef0
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 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 12303 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:queued_spin_lock_slowpath+0x120/0xc80
Code: 8b 84 24 80 00 00 00 65 48 2b 04 25 28 00 00 00 0f 85 97 0a 00 00 48 81 c4 88 00 00 00 5b 5d 41 5c 41 5d 41 5e 41 5f c3 f3 90 75 ff ff ff 44 8b 74 24 48 41 81 fe 00 01 00 00 0f 84 e5 00 00
RSP: 0018:ffff88800fdb7ae8 EFLAGS: 00000006
RAX: 0000000000000000 RBX: 000000001746a000 RCX: ffffffff812990c0
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff888042203950
RBP: ffff888042203950 R08: 0000000000000000 R09: ffff888042203953
R10: ffffed100844072a R11: 0000000000000001 R12: 0000000000000003
R13: ffffed100844072a R14: 0000000000000001 R15: 1ffff11001fb6f5e
FS: 000055555694f400(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005637c12137f0 CR3: 0000000044806000 CR4: 0000000000350ee0
Call Trace:
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:0x7fcb91c3c5c3
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:00007ffc13d3dde8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007ffc13d3e428 RCX: 00007fcb91c3c5c3
RDX: 0000000000000004 RSI: 00007fcb91cf2ed9 RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000000000000b36 R09: 00007ffc13d7b080
R10: 00007ffc13d7b090 R11: 0000000000000246 R12: 00007fcb91c3eb10
R13: 00007ffc13d3fee2 R14: 0000000000000000 R15: 00000000002bcdc1
----------------
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