------------[ cut here ]------------ VFS: brelse: Trying to free free buffer WARNING: CPU: 1 PID: 25 at fs/buffer.c:1229 __brelse fs/buffer.c:1229 [inline] WARNING: CPU: 1 PID: 25 at fs/buffer.c:1229 brelse include/linux/buffer_head.h:324 [inline] WARNING: CPU: 1 PID: 25 at fs/buffer.c:1229 __invalidate_bh_lrus fs/buffer.c:1498 [inline] WARNING: CPU: 1 PID: 25 at fs/buffer.c:1229 invalidate_bh_lru+0x102/0x1b0 fs/buffer.c:1511 Modules linked in: CPU: 1 UID: 0 PID: 25 Comm: kworker/1:0 Not tainted 6.12.0-next-20241122-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: events free_ipc RIP: 0010:__brelse fs/buffer.c:1229 [inline] RIP: 0010:brelse include/linux/buffer_head.h:324 [inline] RIP: 0010:__invalidate_bh_lrus fs/buffer.c:1498 [inline] RIP: 0010:invalidate_bh_lru+0x102/0x1b0 fs/buffer.c:1511 Code: 44 ee da ff f0 ff 0b eb 25 e8 ba fa 6f ff 41 80 3c 2e 00 75 2a eb 30 e8 ac fa 6f ff 90 48 c7 c7 20 e1 18 8c e8 2f 99 30 ff 90 <0f> 0b 90 90 48 bd 00 00 00 00 00 fc ff df 41 80 3c 2e 00 74 08 4c RSP: 0018:ffffc90000a18f30 EFLAGS: 00010046 RAX: 278e8a7b10ae9100 RBX: ffff888072846a58 RCX: ffff88801d2e9e00 RDX: 0000000000010000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff81601b32 R09: 1ffff110170e519a R10: dffffc0000000000 R11: ffffed10170e519b R12: ffff8880b8739838 R13: 0000000000000010 R14: 1ffff110170e7309 R15: ffff8880b8739848 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc6e8bbd28 CR3: 000000000e736000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: csd_do_func kernel/smp.c:134 [inline] __flush_smp_call_function_queue+0x3fc/0x1690 kernel/smp.c:540 __sysvec_call_function_single+0xb8/0x430 arch/x86/kernel/smp.c:271 instr_sysvec_call_function_single arch/x86/kernel/smp.c:266 [inline] sysvec_call_function_single+0x9e/0xc0 arch/x86/kernel/smp.c:266 asm_sysvec_call_function_single+0x1a/0x20 arch/x86/include/asm/idtentry.h:709 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xd8/0x140 kernel/locking/spinlock.c:194 Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 ae 59 3f f6 f6 44 24 21 02 75 52 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 c3 71 a2 f5 65 8b 05 a4 c4 38 74 85 c0 74 43 48 c7 04 24 0e 36 RSP: 0018:ffffc900001f7940 EFLAGS: 00000206 RAX: 278e8a7b10ae9100 RBX: 1ffff9200003ef2c RCX: ffffffff817b230a RDX: dffffc0000000000 RSI: ffffffff8c0a9640 RDI: 0000000000000001 RBP: ffffc900001f79d0 R08: ffffffff9428a967 R09: 1ffffffff285152c R10: dffffc0000000000 R11: fffffbfff285152d R12: dffffc0000000000 R13: 1ffff9200003ef28 R14: ffffc900001f7960 R15: 0000000000000246 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] free_percpu+0xb34/0x1150 mm/percpu.c:2273 percpu_counter_destroy_many+0x24b/0x410 lib/percpu_counter.c:248 percpu_counter_destroy include/linux/percpu_counter.h:52 [inline] msg_exit_ns+0x4c/0x70 ipc/msg.c:1335 free_ipc_ns ipc/namespace.c:156 [inline] free_ipc+0x125/0x290 ipc/namespace.c:181 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 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 ---------------- Code disassembly (best guess): 0: 9c pushf 1: 8f 44 24 20 pop 0x20(%rsp) 5: 42 80 3c 23 00 cmpb $0x0,(%rbx,%r12,1) a: 74 08 je 0x14 c: 4c 89 f7 mov %r14,%rdi f: e8 ae 59 3f f6 call 0xf63f59c2 14: f6 44 24 21 02 testb $0x2,0x21(%rsp) 19: 75 52 jne 0x6d 1b: 41 f7 c7 00 02 00 00 test $0x200,%r15d 22: 74 01 je 0x25 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 c3 71 a2 f5 call 0xf5a271f2 <-- trapping instruction 2f: 65 8b 05 a4 c4 38 74 mov %gs:0x7438c4a4(%rip),%eax # 0x7438c4da 36: 85 c0 test %eax,%eax 38: 74 43 je 0x7d 3a: 48 rex.W 3b: c7 .byte 0xc7 3c: 04 24 add $0x24,%al 3e: 0e (bad) 3f: 36 ss