FAT-fs (loop6): bogus number of reserved sectors
FAT-fs (loop6): Can't find a valid FAT filesystem
------------[ cut here ]------------
kernfs_put: syz0/pids.events: released with incorrect active_ref 0
WARNING: CPU: 1 PID: 32 at fs/kernfs/dir.c:531 kernfs_put.part.0+0x433/0x540
Modules linked in:
CPU: 1 PID: 32 Comm: kworker/1:1 Not tainted 5.19.0-rc4-next-20220704 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
Workqueue: events kernfs_notify_workfn
RIP: 0010:kernfs_put.part.0+0x433/0x540
Code: 03 80 3c 18 00 0f 85 ea 00 00 00 4d 8b 7d 38 e8 73 0b a7 ff 48 8b 14 24 44 89 f1 4c 89 fe 48 c7 c7 e0 58 72 84 e8 93 9c 6c 02 <0f> 0b e9 b9 fc ff ff 48 89 ef e8 0e b3 d9 ff e9 c1 fd ff ff e8 04
RSP: 0018:ffff888008ecfbd8 EFLAGS: 00010286
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: ffff888008ec0000 RSI: ffffffff812bd348 RDI: ffffed10011d9f6d
------------[ cut here ]------------
RBP: ffff8880176aa778 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000001 R12: ffff8880176aa740
R13: ffff88800d0c13a0 R14: 0000000000000000 R15: ffff88800cecc2f8
FS: 0000000000000000(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
WARNING: CPU: 0 PID: 47 at fs/kernfs/dir.c:504 kernfs_get.part.0+0x69/0x80
CR2: 00007f1696661344 CR3: 000000003db72000 CR4: 0000000000350ee0
Modules linked in:
CPU: 0 PID: 47 Comm: kworker/u4:3 Not tainted 5.19.0-rc4-next-20220704 #1
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
DR3: 0000000000000000 DR6: 00000000ffff4ff0 DR7: 0000000000000400
Workqueue: phy13 ieee80211_iface_work
Call Trace:
RIP: 0010:kernfs_get.part.0+0x69/0x80
Code: 31 ff 89 ee e8 c8 0c a7 ff 85 ed 74 18 e8 ef 0f a7 ff be 04 00 00 00 48 89 df e8 d2 ba d9 ff f0 ff 03 5b 5d c3 e8 d7 0f a7 ff <0f> 0b eb df 48 89 df e8 7b b7 d9 ff eb c6 66 0f 1f 84 00 00 00 00
kernfs_put+0x42/0x50
RSP: 0018:ffff88806ce09c80 EFLAGS: 00010046
kernfs_notify_workfn+0x417/0x560
RAX: 0000000000000000 RBX: ffff8880176aa740 RCX: 0000000000000100
RDX: ffff88800f305040 RSI: ffffffff819de5c9 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
process_one_work+0xa0f/0x1690
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001
R13: 1ffffffff0a01e40 R14: ffff8880176aa740 R15: ffff88800f5eb930
FS: 0000000000000000(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020002640 CR3: 000000000ff56000 CR4: 0000000000350ef0
worker_thread+0x637/0x1250
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff4ff0 DR7: 0000000000000400
Call Trace:
kthread+0x2ed/0x3a0
kernfs_get+0x1b/0x30
kernfs_notify+0x180/0x350
ret_from_fork+0x22/0x30
cgroup_file_notify+0xf5/0x1a0
irq event stamp: 673845
call_timer_fn+0x17d/0x5f0
hardirqs last enabled at (673855): [] console_emit_next_record.constprop.0+0x648/0x800
hardirqs last disabled at (673864): [] console_emit_next_record.constprop.0+0x667/0x800
softirqs last enabled at (672822): [] __irq_exit_rcu+0x113/0x170
softirqs last disabled at (672449): [] __irq_exit_rcu+0x113/0x170
---[ end trace 0000000000000000 ]---
__run_timers.part.0+0x65e/0xa50
==================================================================
BUG: KASAN: use-after-free in llist_del_first+0x89/0xa0
Read of size 8 at addr ffff8880176aa7c0 by task kworker/1:1/32
CPU: 1 PID: 32 Comm: kworker/1:1 Tainted: G W 5.19.0-rc4-next-20220704 #1
run_timer_softirq+0xae/0x1a0
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
__do_softirq+0x1c8/0x8cc
Workqueue: events kernfs_notify_workfn
__irq_exit_rcu+0x113/0x170
Call Trace:
irq_exit_rcu+0x5/0x20
dump_stack_lvl+0x8b/0xb3
sysvec_apic_timer_interrupt+0x8e/0xc0
print_report.cold+0x5e/0x5e1
kasan_report+0xb1/0x1b0
asm_sysvec_apic_timer_interrupt+0x1b/0x20
RIP: 0010:unwind_next_frame+0x14fc/0x20a0
llist_del_first+0x89/0xa0
Code: 0c 0e 48 89 fe 83 e6 07 40 38 f2 40 0f 9e c6 84 d2 0f 95 c2 40 84 d6 0f 85 7b 06 00 00 83 e0 07 38 c1 0f 9e c2 84 c9 0f 95 c0 <84> c2 0f 85 66 06 00 00 49 0f bf 68 02 48 03 6c 24 18 ba 08 00 00
kernfs_notify_workfn+0x78/0x560
RSP: 0018:ffff88800f3c7570 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
process_one_work+0xa0f/0x1690
RDX: 0000000000000001 RSI: 0000000000000001 RDI: ffffffff85cb6c00
RBP: ffff88800f3c7648 R08: ffffffff85cb6bfe R09: ffffffff85cb6c02
R10: ffffed1001e78ecb R11: ffff88800f3c7630 R12: ffff88800f3c7631
R13: ffff88800f3c7650 R14: ffff88800f3c75f0 R15: 0000000000000003
worker_thread+0x637/0x1250
kthread+0x2ed/0x3a0
arch_stack_walk+0x83/0xf0
ret_from_fork+0x22/0x30
stack_trace_save+0x8c/0xc0
Allocated by task 291:
kasan_save_stack+0x1e/0x40
__kasan_slab_alloc+0x66/0x80
kasan_save_stack+0x1e/0x40
kmem_cache_alloc+0x1b1/0x490
__kernfs_new_node+0xd4/0x8b0
kernfs_new_node+0x93/0x120
__kernfs_create_file+0x51/0x350
cgroup_addrm_files+0x3e2/0x9d0
css_populate_dir+0x19b/0x450
cgroup_apply_control_enable+0x3ae/0xa40
cgroup_mkdir+0x824/0x11f0
kernfs_iop_mkdir+0x149/0x1d0
vfs_mkdir+0x417/0x6a0
do_mkdirat+0x17b/0x2e0
__x64_sys_mkdir+0xf2/0x140
do_syscall_64+0x3b/0x90
__kasan_kmalloc+0x81/0xa0
entry_SYSCALL_64_after_hwframe+0x46/0xb0
ieee802_11_parse_elems_crc+0x14a/0xf70
Freed by task 32:
kasan_save_stack+0x1e/0x40
kasan_set_track+0x21/0x30
kasan_set_free_info+0x20/0x30
__kasan_slab_free+0x108/0x190
kmem_cache_free+0xfb/0x600
kernfs_put.part.0+0x2c7/0x540
ieee80211_ibss_rx_queued_mgmt+0xc8b/0x2ef0
kernfs_put+0x42/0x50
kernfs_notify_workfn+0x417/0x560
process_one_work+0xa0f/0x1690
worker_thread+0x637/0x1250
kthread+0x2ed/0x3a0
ret_from_fork+0x22/0x30
The buggy address belongs to the object at ffff8880176aa740
which belongs to the cache kernfs_node_cache of size 168
The buggy address is located 128 bytes inside of
168-byte region [ffff8880176aa740, ffff8880176aa7e8)
The buggy address belongs to the physical page:
page:000000008923605e refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x176aa
flags: 0x100000000000200(slab|node=0|zone=1)
ieee80211_iface_work+0x9c5/0xc80
raw: 0100000000000200 0000000000000000 dead000000000122 ffff8880080358c0
process_one_work+0xa0f/0x1690
raw: 0000000000000000 0000000000110011 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff8880176aa680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff8880176aa700: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb
worker_thread+0x637/0x1250
>ffff8880176aa780: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc
^
ffff8880176aa800: fc fc fc fc fc 00 00 00 00 00 00 00 00 00 00 00
kthread+0x2ed/0x3a0
ffff8880176aa880: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc
==================================================================
ret_from_fork+0x22/0x30
irq event stamp: 3495321
hardirqs last enabled at (3495320): [] _raw_spin_unlock_irq+0x1f/0x40
hardirqs last disabled at (3495321): [] _raw_spin_lock_irqsave+0x4e/0x50
softirqs last enabled at (3495292): [] ieee80211_ibss_work+0x2e8/0xdf0
softirqs last disabled at (3495317): [] __irq_exit_rcu+0x113/0x170
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
0: 0c 0e or $0xe,%al
2: 48 89 fe mov %rdi,%rsi
5: 83 e6 07 and $0x7,%esi
8: 40 38 f2 cmp %sil,%dl
b: 40 0f 9e c6 setle %sil
f: 84 d2 test %dl,%dl
11: 0f 95 c2 setne %dl
14: 40 84 d6 test %dl,%sil
17: 0f 85 7b 06 00 00 jne 0x698
1d: 83 e0 07 and $0x7,%eax
20: 38 c1 cmp %al,%cl
22: 0f 9e c2 setle %dl
25: 84 c9 test %cl,%cl
27: 0f 95 c0 setne %al
* 2a: 84 c2 test %al,%dl <-- trapping instruction
2c: 0f 85 66 06 00 00 jne 0x698
32: 49 0f bf 68 02 movswq 0x2(%r8),%rbp
37: 48 03 6c 24 18 add 0x18(%rsp),%rbp
3c: ba .byte 0xba
3d: 08 00 or %al,(%rax)