------------[ cut here ]------------ VFS: brelse: Trying to free free buffer WARNING: CPU: 0 PID: 12 at fs/buffer.c:1229 __brelse fs/buffer.c:1229 [inline] WARNING: CPU: 0 PID: 12 at fs/buffer.c:1229 brelse include/linux/buffer_head.h:324 [inline] WARNING: CPU: 0 PID: 12 at fs/buffer.c:1229 __invalidate_bh_lrus fs/buffer.c:1498 [inline] WARNING: CPU: 0 PID: 12 at fs/buffer.c:1229 invalidate_bh_lru+0x102/0x1b0 fs/buffer.c:1511 Modules linked in: CPU: 0 UID: 0 PID: 12 Comm: kworker/u8:1 Not tainted 6.13.0-rc1-syzkaller-00025-gfeffde684ac2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: netns cleanup_net 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 f4 da ff f0 ff 0b eb 25 e8 9a 35 73 ff 41 80 3c 2e 00 75 2a eb 30 e8 8c 35 73 ff 90 48 c7 c7 a0 ce 18 8c e8 3f dc 33 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:ffffc90000007f30 EFLAGS: 00010046 RAX: ce898478c265c800 RBX: ffff888078c79060 RCX: ffff88801bee5a00 RDX: 0000000000010000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff81601b22 R09: 1ffff110170c519a R10: dffffc0000000000 R11: ffffed10170c519b R12: ffff8880b8639838 R13: 0000000000000000 R14: 1ffff110170c7307 R15: ffff8880b8639838 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffed8b1ec08 CR3: 00000000343cc000 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/0x1620 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:memset_orig+0x3a/0xb0 arch/x86/lib/memset_64.S:69 Code: 01 01 01 01 01 48 0f af c1 41 89 f9 41 83 e1 07 75 70 48 89 d1 48 c1 e9 06 74 35 0f 1f 44 00 00 48 ff c9 48 89 07 48 89 47 08 <48> 89 47 10 48 89 47 18 48 89 47 20 48 89 47 28 48 89 47 30 48 89 RSP: 0018:ffffc90000117278 EFLAGS: 00000206 RAX: 0000000000000000 RBX: ffffc90000117280 RCX: 0000000000000003 RDX: 0000000000000200 RSI: 0000000000000000 RDI: ffffc90000117380 RBP: ffffc900001174a8 R08: ffffffff814d423c R09: 0000000000000000 R10: ffffc90000117280 R11: fffffbfff203036f R12: ffffffff824537d0 R13: 1ffff92000022ea8 R14: 0000000000000000 R15: 0000000000000000 kasan_save_stack+0x30/0x60 mm/kasan/common.c:44 __kasan_record_aux_stack+0xac/0xc0 mm/kasan/generic.c:544 __call_rcu_common kernel/rcu/tree.c:3086 [inline] call_rcu+0x167/0xa70 kernel/rcu/tree.c:3190 kernfs_put+0x1dc/0x370 fs/kernfs/dir.c:578 kernfs_remove_by_name_ns+0xe4/0x160 fs/kernfs/dir.c:1695 kernfs_remove_by_name include/linux/kernfs.h:625 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0xfe/0x2c0 fs/sysfs/group.c:322 sysfs_remove_groups+0x54/0xb0 fs/sysfs/group.c:346 device_remove_groups drivers/base/core.c:2819 [inline] device_remove_attrs+0x1dc/0x290 drivers/base/core.c:2949 device_del+0x572/0x9b0 drivers/base/core.c:3853 unregister_netdevice_many_notify+0x1859/0x1da0 net/core/dev.c:11556 cleanup_net+0x75d/0xcc0 net/core/net_namespace.c:627 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa66/0x1840 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: 01 01 add %eax,(%rcx) 2: 01 01 add %eax,(%rcx) 4: 01 48 0f add %ecx,0xf(%rax) 7: af scas %es:(%rdi),%eax 8: c1 41 89 f9 roll $0xf9,-0x77(%rcx) c: 41 83 e1 07 and $0x7,%r9d 10: 75 70 jne 0x82 12: 48 89 d1 mov %rdx,%rcx 15: 48 c1 e9 06 shr $0x6,%rcx 19: 74 35 je 0x50 1b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 20: 48 ff c9 dec %rcx 23: 48 89 07 mov %rax,(%rdi) 26: 48 89 47 08 mov %rax,0x8(%rdi) * 2a: 48 89 47 10 mov %rax,0x10(%rdi) <-- trapping instruction 2e: 48 89 47 18 mov %rax,0x18(%rdi) 32: 48 89 47 20 mov %rax,0x20(%rdi) 36: 48 89 47 28 mov %rax,0x28(%rdi) 3a: 48 89 47 30 mov %rax,0x30(%rdi) 3e: 48 rex.W 3f: 89 .byte 0x89