------------[ cut here ]------------ VFS: brelse: Trying to free free buffer WARNING: CPU: 1 PID: 10156 at fs/buffer.c:1145 __brelse fs/buffer.c:1145 [inline] WARNING: CPU: 1 PID: 10156 at fs/buffer.c:1145 brelse+0x78/0xa0 include/linux/buffer_head.h:326 Modules linked in: CPU: 1 PID: 10156 Comm: udevadm Not tainted 6.1.0-rc7-syzkaller-00200-gc2bf05db6c78 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/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 7e e0 ff f0 ff 0b eb 1c e8 9d 5a 8c ff eb 15 e8 96 5a 8c ff 48 c7 c7 c0 03 fe 8a 31 c0 e8 08 f7 53 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:ffffc900001e0f18 EFLAGS: 00010046 RAX: 373d046c1a574700 RBX: ffff8880714a0d10 RCX: ffff88802d989d40 RDX: 0000000080010001 RSI: 0000000080010001 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff816e560d R09: ffffed1017324f1c R10: ffffed1017324f1c R11: 1ffff11017324f1b R12: 0000000000000000 R13: 1ffff11017328022 R14: ffff8880b9935d38 R15: dffffc0000000000 FS: 00007f295ac91840(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd5d0ce0000 CR3: 0000000077417000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __invalidate_bh_lrus+0x37/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:__debug_check_no_obj_freed lib/debugobjects.c:1007 [inline] RIP: 0010:debug_check_no_obj_freed+0x4c/0x650 lib/debugobjects.c:1020 Code: 49 89 fc 49 81 e4 00 f0 ff ff 49 89 df 4d 29 e7 49 81 c7 ff 0f 00 00 45 31 f6 49 81 ff 00 10 00 00 73 2c 44 3b 35 a8 a4 38 0a <7e> 07 44 89 35 9f a4 38 0a 80 3d f4 2c d2 0d 00 0f 84 79 05 00 00 RSP: 0018:ffffc90015627410 EFLAGS: 00000297 RAX: 373d046c1a574700 RBX: ffff88802cde7000 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffffffff8aedb2a0 RDI: 0000000000000001 RBP: 1ffffffff23f8f44 R08: dffffc0000000000 R09: fffffbfff23f8f46 R10: fffffbfff23f8f46 R11: 1ffffffff23f8f45 R12: ffff88802cde7000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 slab_free_hook mm/slub.c:1699 [inline] slab_free_freelist_hook+0xcf/0x1a0 mm/slub.c:1750 slab_free mm/slub.c:3661 [inline] __kmem_cache_free+0x71/0x110 mm/slub.c:3674 tomoyo_realpath_from_path+0x5b9/0x5f0 security/tomoyo/realpath.c:286 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_check_open_permission+0x1f0/0x460 security/tomoyo/file.c:771 security_file_open+0x50/0x560 security/security.c:1648 do_dentry_open+0x306/0x11b0 fs/open.c:869 do_open fs/namei.c:3557 [inline] path_openat+0x25fc/0x2df0 fs/namei.c:3714 do_filp_open+0x264/0x4f0 fs/namei.c:3741 do_sys_openat2+0x124/0x4e0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_openat fs/open.c:1342 [inline] __se_sys_openat fs/open.c:1337 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1337 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f295a925697 Code: 25 00 00 41 00 3d 00 00 41 00 74 37 64 8b 04 25 18 00 00 00 85 c0 75 5b 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 85 00 00 00 48 83 c4 68 5d 41 5c c3 0f 1f RSP: 002b:00007fffc9cf4e10 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000557b75caf2a0 RCX: 00007f295a925697 RDX: 0000000000080000 RSI: 00007fffc9cf4f48 RDI: 00000000ffffff9c RBP: 00007fffc9cf4f48 R08: 0000000000000008 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000080000 R13: 0000557b75caf2a0 R14: 0000000000000001 R15: 0000557b75cafda0 ---------------- Code disassembly (best guess): 0: 49 89 fc mov %rdi,%r12 3: 49 81 e4 00 f0 ff ff and $0xfffffffffffff000,%r12 a: 49 89 df mov %rbx,%r15 d: 4d 29 e7 sub %r12,%r15 10: 49 81 c7 ff 0f 00 00 add $0xfff,%r15 17: 45 31 f6 xor %r14d,%r14d 1a: 49 81 ff 00 10 00 00 cmp $0x1000,%r15 21: 73 2c jae 0x4f 23: 44 3b 35 a8 a4 38 0a cmp 0xa38a4a8(%rip),%r14d # 0xa38a4d2 * 2a: 7e 07 jle 0x33 <-- trapping instruction 2c: 44 89 35 9f a4 38 0a mov %r14d,0xa38a49f(%rip) # 0xa38a4d2 33: 80 3d f4 2c d2 0d 00 cmpb $0x0,0xdd22cf4(%rip) # 0xdd22d2e 3a: 0f 84 79 05 00 00 je 0x5b9