------------[ cut here ]------------ VFS: brelse: Trying to free free buffer WARNING: CPU: 0 PID: 18610 at fs/buffer.c:1145 __brelse fs/buffer.c:1145 [inline] WARNING: CPU: 0 PID: 18610 at fs/buffer.c:1145 brelse+0x78/0xa0 include/linux/buffer_head.h:326 Modules linked in: CPU: 0 PID: 18610 Comm: syz-executor.1 Not tainted 6.1.0-rc1-syzkaller-00134-ge35184f32151 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 RIP: 0010:__brelse fs/buffer.c:1145 [inline] RIP: 0010:brelse+0x78/0xa0 include/linux/buffer_head.h:326 Code: df be 04 00 00 00 e8 97 44 e0 ff f0 ff 0b eb 1c e8 fd 7c 8b ff eb 15 e8 f6 7c 8b ff 48 c7 c7 c0 83 bd 8a 31 c0 e8 58 7f 52 ff <0f> 0b 5b 5d c3 89 d9 80 e1 07 80 c1 03 38 c1 7c af 48 89 df e8 9f RSP: 0018:ffffc90000007f18 EFLAGS: 00010046 RAX: 8a740609d0312b00 RBX: ffff88809dd1dc28 RCX: ffff888023bb57c0 RDX: 0000000080010001 RSI: 0000000080010001 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff816cec5d R09: ffffed1017344f13 R10: ffffed1017344f13 R11: 1ffff11017344f12 R12: ffff8880b9a35d08 R13: 1ffff11017348416 R14: ffff8880b9a35cf8 R15: dffffc0000000000 FS: 00007f8082d91700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e924000 CR3: 0000000089dbf000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __invalidate_bh_lrus+0xaa/0x3c0 fs/buffer.c:1380 invalidate_bh_lru+0x66/0xb0 fs/buffer.c:1393 __flush_smp_call_function_queue+0x2cc/0xcd0 kernel/smp.c:630 __sysvec_call_function_single+0x62/0x70 arch/x86/kernel/smp.c:248 sysvec_call_function_single+0x8c/0xb0 arch/x86/kernel/smp.c:243 asm_sysvec_call_function_single+0x16/0x20 arch/x86/include/asm/idtentry.h:657 RIP: 0010:____rb_erase_color lib/rbtree.c:368 [inline] RIP: 0010:rb_erase+0x8f8/0xe60 lib/rbtree.c:445 Code: ef e8 5c 3f 9d f7 4c 8b 6d 00 4d 85 ed 74 21 4c 89 e8 48 c1 e8 03 42 80 3c 38 00 74 08 4c 89 ef e8 3d 3f 9d f7 41 f6 45 00 01 <0f> 84 32 03 00 00 4c 89 e0 48 c1 e8 03 42 80 3c 38 00 74 08 4c 89 RSP: 0018:ffffc90006fb68a0 EFLAGS: 00000202 RAX: 1ffff11037b3f747 RBX: 1ffff11037b3f765 RCX: dffffc0000000000 RDX: ffffc900052a2000 RSI: ffff8881c1c1be08 RDI: ffff8881bd9fbc10 RBP: ffff8881bd9fbb28 R08: ffffffff8216d6c6 R09: fffffbfff1c4eece R10: fffffbfff1c4eece R11: 1ffffffff1c4eecd R12: ffff8881bd9fbb20 R13: ffff8881bd9fba38 R14: ffff8881b9b1a040 R15: dffffc0000000000 kernfs_unlink_sibling fs/kernfs/dir.c:407 [inline] __kernfs_remove+0x8c9/0xa90 fs/kernfs/dir.c:1430 kernfs_remove_by_name_ns+0xd3/0x150 fs/kernfs/dir.c:1626 kernfs_remove_by_name include/linux/kernfs.h:618 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0x102/0x2b0 fs/sysfs/group.c:288 sysfs_remove_groups+0x5b/0xb0 fs/sysfs/group.c:312 device_remove_groups drivers/base/core.c:2579 [inline] device_remove_attrs+0x236/0x290 drivers/base/core.c:2799 device_del+0x6e4/0xbe0 drivers/base/core.c:3703 unregister_netdevice_many+0x14aa/0x1a30 net/core/dev.c:10874 unregister_netdevice_queue+0x2e6/0x350 net/core/dev.c:10778 unregister_netdevice include/linux/netdevice.h:3032 [inline] veth_newlink+0xa83/0xd10 drivers/net/veth.c:1825 rtnl_newlink_create net/core/rtnetlink.c:3364 [inline] __rtnl_newlink net/core/rtnetlink.c:3581 [inline] rtnl_newlink+0x14ed/0x2060 net/core/rtnetlink.c:3594 rtnetlink_rcv_msg+0x7b8/0xe90 net/core/rtnetlink.c:6091 netlink_rcv_skb+0x1f0/0x460 net/netlink/af_netlink.c:2540 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x7e7/0x9c0 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x9b3/0xcd0 net/netlink/af_netlink.c:1921 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg net/socket.c:734 [inline] ____sys_sendmsg+0x597/0x8e0 net/socket.c:2482 ___sys_sendmsg net/socket.c:2536 [inline] __sys_sendmsg+0x28e/0x390 net/socket.c:2565 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f8081c8b5f9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8082d91168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f8081dabf80 RCX: 00007f8081c8b5f9 RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000003 RBP: 00007f8081ce67b0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffac20776f R14: 00007f8082d91300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: ef out %eax,(%dx) 1: e8 5c 3f 9d f7 callq 0xf79d3f62 6: 4c 8b 6d 00 mov 0x0(%rbp),%r13 a: 4d 85 ed test %r13,%r13 d: 74 21 je 0x30 f: 4c 89 e8 mov %r13,%rax 12: 48 c1 e8 03 shr $0x3,%rax 16: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) 1b: 74 08 je 0x25 1d: 4c 89 ef mov %r13,%rdi 20: e8 3d 3f 9d f7 callq 0xf79d3f62 25: 41 f6 45 00 01 testb $0x1,0x0(%r13) * 2a: 0f 84 32 03 00 00 je 0x362 <-- trapping instruction 30: 4c 89 e0 mov %r12,%rax 33: 48 c1 e8 03 shr $0x3,%rax 37: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) 3c: 74 08 je 0x46 3e: 4c rex.WR 3f: 89 .byte 0x89