EXT4-fs (loop5): ext4_check_descriptors: Block bitmap for group 0 overlaps superblock
EXT4-fs (loop5): group descriptors corrupted!
loop4: detected capacity change from 0 to 186
==================================================================
BUG: KASAN: use-after-free in __lock_acquire+0x4346/0x6120
Read of size 8 at addr ffff88800e698888 by task syz-executor/9384
CPU: 1 PID: 9384 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:0x7f78d301d5c3
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:00007ffc07cb5ba8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007ffc07cb61e8 RCX: 00007f78d301d5c3
RDX: 0000000000000004 RSI: 00007f78d30d3ed9 RDI: 0000000000000003
RBP: 0000000000000003 R08: 00000000000006f9 R09: 00007ffc07d0d080
R10: 00007ffc07d0d090 R11: 0000000000000246 R12: 00007f78d301fb10
R13: 00007ffc07cb7ee2 R14: 0000000000000000 R15: 00000000001b3e6a
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
kfree+0x1e1/0x5b0
ieee802_11_parse_elems_crc+0xad3/0xf70
ieee80211_ibss_rx_queued_mgmt+0xc95/0x2ef0
ieee80211_iface_work+0xa71/0xce0
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 ffff88800e698870
which belongs to the cache kmemleak_object of size 368
The buggy address is located 24 bytes inside of
368-byte region [ffff88800e698870, ffff88800e6989e0)
The buggy address belongs to the physical page:
page:000000008f7fa41e refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xe698
head:000000008f7fa41e order:1 compound_mapcount:0 compound_pincount:0
flags: 0x100000000010200(slab|head|node=0|zone=1)
raw: 0100000000010200 ffffea0001073380 dead000000000004 ffff88800784f780
raw: 0000000000000000 0000000000120012 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff88800e698780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88800e698800: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fa fb
>ffff88800e698880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88800e698900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88800e698980: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
==================================================================
watchdog: BUG: soft lockup - CPU#0 stuck for 26s! [kworker/u4:6:7630]
Modules linked in:
irq event stamp: 1089475
hardirqs last enabled at (1089475): [] asm_sysvec_apic_timer_interrupt+0x1b/0x20
hardirqs last disabled at (1089474): [] sysvec_apic_timer_interrupt+0xb/0xc0
softirqs last enabled at (1089088): [] ieee80211_ibss_work+0x2e8/0xdf0
softirqs last disabled at (1089086): [] ieee80211_ibss_work+0x138/0xdf0
CPU: 0 PID: 7630 Comm: kworker/u4:6 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:ffff888044327aa8 EFLAGS: 00000293
RAX: 0000000000000000 RBX: ffff88806cf3d420 RCX: 0000000000000000
RDX: ffff88800f9fb580 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: 00007ffc2d73ddd8 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: 9384 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:ffff8880460f7ae8 EFLAGS: 00000006
RAX: 0000000000000000 RBX: 00000000434ac000 RCX: ffffffff812990c0
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff88800e698870
RBP: ffff88800e698870 R08: 0000000000000000 R09: ffff88800e698873
R10: ffffed1001cd310e R11: 0000000000000001 R12: 0000000000000003
R13: ffffed1001cd310e R14: 0000000000000001 R15: 1ffff11008c1ef5e
FS: 0000555557388400(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557866d9c0e0 CR3: 00000000189da000 CR4: 0000000000350ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff4ff0 DR7: 0000000000000400
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:0x7f78d301d5c3
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:00007ffc07cb5ba8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007ffc07cb61e8 RCX: 00007f78d301d5c3
RDX: 0000000000000004 RSI: 00007f78d30d3ed9 RDI: 0000000000000003
RBP: 0000000000000003 R08: 00000000000006f9 R09: 00007ffc07d0d080
R10: 00007ffc07d0d090 R11: 0000000000000246 R12: 00007f78d301fb10
R13: 00007ffc07cb7ee2 R14: 0000000000000000 R15: 00000000001b3e6a
----------------
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