loop0: detected capacity change from 0 to 32768 gfs2: fsid=syz:syz: Trying to join cluster "lock_nolock", "syz:syz" gfs2: fsid=syz:syz: Now mounting FS (format 1801)... gfs2: fsid=syz:syz.0: journal 0 mapped with 1 extents in 0ms gfs2: fsid=syz:syz.0: first mount done, others may mount gfs2: fsid=syz:syz.0: can't create logd thread: -4 ================================================================== BUG: KFENCE: use-after-free read in workqueue_sysfs_unregister kernel/workqueue.c:7364 [inline] BUG: KFENCE: use-after-free read in destroy_workqueue+0x41/0xc40 kernel/workqueue.c:5773 Use-after-free read at 0xffff88805f05e128 (in kfence-#46): workqueue_sysfs_unregister kernel/workqueue.c:7364 [inline] destroy_workqueue+0x41/0xc40 kernel/workqueue.c:5773 gfs2_fill_super+0x128a/0x2500 fs/gfs2/ops_fstype.c:1310 get_tree_bdev+0x3f7/0x570 fs/super.c:1635 gfs2_get_tree+0x54/0x220 fs/gfs2/ops_fstype.c:1329 vfs_get_tree+0x90/0x2a0 fs/super.c:1800 do_new_mount+0x2be/0xb40 fs/namespace.c:3472 do_mount fs/namespace.c:3812 [inline] __do_sys_mount fs/namespace.c:4020 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3997 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f kfence-#46: 0xffff88805f05e000-0xffff88805f05e1ff, size=512, cache=kmalloc-512 allocated by task 5120 on cpu 0 at 76.299417s: kmalloc_noprof include/linux/slab.h:685 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] alloc_workqueue+0x1b0/0x1fe0 kernel/workqueue.c:5641 gfs2_fill_super+0x1149/0x2500 fs/gfs2/ops_fstype.c:1191 get_tree_bdev+0x3f7/0x570 fs/super.c:1635 gfs2_get_tree+0x54/0x220 fs/gfs2/ops_fstype.c:1329 vfs_get_tree+0x90/0x2a0 fs/super.c:1800 do_new_mount+0x2be/0xb40 fs/namespace.c:3472 do_mount fs/namespace.c:3812 [inline] __do_sys_mount fs/namespace.c:4020 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3997 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f freed by task 73 on cpu 0 at 76.819083s: rcu_do_batch kernel/rcu/tree.c:2569 [inline] rcu_core+0xafd/0x1830 kernel/rcu/tree.c:2843 handle_softirqs+0x2c4/0x970 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu+0xf4/0x1c0 kernel/softirq.c:637 irq_exit_rcu+0x9/0x30 kernel/softirq.c:649 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline] _raw_spin_unlock_irq+0x29/0x50 kernel/locking/spinlock.c:202 spin_unlock_irq include/linux/spinlock.h:401 [inline] evict_folios+0x53f0/0x7b60 mm/vmscan.c:4575 try_to_shrink_lruvec+0x9ab/0xbb0 mm/vmscan.c:4775 shrink_one+0x3b9/0x850 mm/vmscan.c:4813 shrink_many mm/vmscan.c:4876 [inline] lru_gen_shrink_node mm/vmscan.c:4954 [inline] shrink_node+0x3799/0x3de0 mm/vmscan.c:5934 kswapd_shrink_node mm/vmscan.c:6762 [inline] balance_pgdat mm/vmscan.c:6954 [inline] kswapd+0x1bcd/0x35a0 mm/vmscan.c:7223 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 CPU: 0 UID: 0 PID: 5120 Comm: syz.0.0 Not tainted 6.11.0-rc4-syzkaller-00008-g6e4436539ae1 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:workqueue_sysfs_unregister kernel/workqueue.c:7364 [inline] RIP: 0010:destroy_workqueue+0x41/0xc40 kernel/workqueue.c:5773 Code: 00 00 00 00 00 fc ff df e8 2c de 35 00 49 8d ad 28 01 00 00 48 89 eb 48 c1 eb 03 42 80 3c 3b 00 74 08 48 89 ef e8 df 1f 9d 00 <4c> 8b 75 00 4d 85 f6 74 2a e8 01 de 35 00 42 80 3c 3b 00 74 08 48 RSP: 0018:ffffc9000b9ef950 EFLAGS: 00010246 RAX: ffffffff815dad14 RBX: 1ffff1100be0bc25 RCX: 0000000000040000 RDX: ffffc9000b331000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffff88805f05e128 R08: ffffffff9373393f R09: 1ffffffff26e6727 R10: dffffc0000000000 R11: fffffbfff26e6728 R12: 1ffff110031cc0c7 R13: ffff88805f05e000 R14: ffff88803a838a50 R15: dffffc0000000000 FS: 00007efcabaf86c0(0000) GS:ffff888020800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff88805f05e128 CR3: 0000000011eb2000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_fill_super+0x128a/0x2500 fs/gfs2/ops_fstype.c:1310 get_tree_bdev+0x3f7/0x570 fs/super.c:1635 gfs2_get_tree+0x54/0x220 fs/gfs2/ops_fstype.c:1329 vfs_get_tree+0x90/0x2a0 fs/super.c:1800 do_new_mount+0x2be/0xb40 fs/namespace.c:3472 do_mount fs/namespace.c:3812 [inline] __do_sys_mount fs/namespace.c:4020 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3997 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7efcaad7b61a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007efcabaf7e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007efcabaf7ef0 RCX: 00007efcaad7b61a RDX: 000000002001f680 RSI: 0000000020000040 RDI: 00007efcabaf7eb0 RBP: 000000002001f680 R08: 00007efcabaf7ef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000040 R13: 00007efcabaf7eb0 R14: 000000000001f679 R15: 0000000020000500 ================================================================== ---------------- Code disassembly (best guess), 7 bytes skipped: 0: df e8 fucomip %st(0),%st 2: 2c de sub $0xde,%al 4: 35 00 49 8d ad xor $0xad8d4900,%eax 9: 28 01 sub %al,(%rcx) b: 00 00 add %al,(%rax) d: 48 89 eb mov %rbp,%rbx 10: 48 c1 eb 03 shr $0x3,%rbx 14: 42 80 3c 3b 00 cmpb $0x0,(%rbx,%r15,1) 19: 74 08 je 0x23 1b: 48 89 ef mov %rbp,%rdi 1e: e8 df 1f 9d 00 call 0x9d2002 * 23: 4c 8b 75 00 mov 0x0(%rbp),%r14 <-- trapping instruction 27: 4d 85 f6 test %r14,%r14 2a: 74 2a je 0x56 2c: e8 01 de 35 00 call 0x35de32 31: 42 80 3c 3b 00 cmpb $0x0,(%rbx,%r15,1) 36: 74 08 je 0x40 38: 48 rex.W