------------[ cut here ]------------ VFS: brelse: Trying to free free buffer WARNING: CPU: 0 PID: 3546 at fs/buffer.c:1148 __brelse fs/buffer.c:1148 [inline] WARNING: CPU: 0 PID: 3546 at fs/buffer.c:1148 brelse include/linux/buffer_head.h:325 [inline] WARNING: CPU: 0 PID: 3546 at fs/buffer.c:1148 __invalidate_bh_lrus fs/buffer.c:1394 [inline] WARNING: CPU: 0 PID: 3546 at fs/buffer.c:1148 invalidate_bh_lru+0xf8/0x1a0 fs/buffer.c:1407 Modules linked in: CPU: 0 PID: 3546 Comm: udevd Not tainted 5.15.169-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:__brelse fs/buffer.c:1148 [inline] RIP: 0010:brelse include/linux/buffer_head.h:325 [inline] RIP: 0010:__invalidate_bh_lrus fs/buffer.c:1394 [inline] RIP: 0010:invalidate_bh_lru+0xf8/0x1a0 fs/buffer.c:1407 Code: 00 e8 0c 61 e4 ff f0 ff 0b eb 21 e8 82 95 9a ff 41 80 3c 2e 00 75 26 eb 2c e8 74 95 9a ff 48 c7 c7 a0 6b 97 8a e8 f8 30 66 ff <0f> 0b 48 bd 00 00 00 00 00 fc ff df 41 80 3c 2e 00 74 08 4c 89 ff RSP: 0018:ffffc90000007f60 EFLAGS: 00010046 RAX: 72834211c1109100 RBX: ffff888060fe87a0 RCX: ffff88807cf38000 RDX: 0000000000010000 RSI: 0000000080010001 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff81669a2c R09: ffffed1017204f24 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b9036538 R13: 0000000000000000 R14: 1ffff11017206ca7 R15: ffff8880b9036538 FS: 00007f678b455c80(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555761a05c8 CR3: 000000002aa12000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: flush_smp_call_function_queue+0x2b5/0x760 kernel/smp.c:628 __sysvec_call_function_single+0x9a/0x250 arch/x86/kernel/smp.c:248 instr_sysvec_call_function_single arch/x86/kernel/smp.c:243 [inline] sysvec_call_function_single+0x98/0xc0 arch/x86/kernel/smp.c:243 asm_sysvec_call_function_single+0x16/0x20 arch/x86/include/asm/idtentry.h:684 RIP: 0010:unwind_next_frame+0x0/0x1fa0 arch/x86/kernel/unwind_orc.c:423 Code: eb 02 31 c0 5b 41 5e 41 5f c3 44 89 f1 80 e1 07 80 c1 03 38 c1 7c 95 4c 89 f7 e8 cb a4 91 00 eb 8b 66 0f 1f 84 00 00 00 00 00 <55> 41 57 41 56 41 55 41 54 53 48 81 ec 80 00 00 00 49 89 ff 48 b8 RSP: 0018:ffffc90002d97498 EFLAGS: 00000202 RAX: 0000000000000001 RBX: ffffc90002d974a0 RCX: 0000000080000000 RDX: dffffc0000000000 RSI: ffffffff81ca13bb RDI: ffffc90002d974a0 RBP: ffffc90002d97530 R08: 0000000000000000 R09: ffffc90002d97590 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807cf38000 R13: ffffffff816e0990 R14: ffffc90002d97580 R15: 0000000000000000 arch_stack_walk+0x10d/0x140 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4b/0x80 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360 ____kasan_slab_free+0xd8/0x120 mm/kasan/common.c:366 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0xdd/0x160 mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kfree+0xf1/0x270 mm/slub.c:4559 tomoyo_realpath_from_path+0x5ad/0x5e0 security/tomoyo/realpath.c:291 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x273/0x6b0 security/tomoyo/file.c:822 security_inode_getattr+0xcf/0x120 security/security.c:1348 vfs_getattr+0x26/0x360 fs/stat.c:157 vfs_statx+0x18f/0x3b0 fs/stat.c:225 vfs_fstatat fs/stat.c:243 [inline] __do_sys_newfstatat fs/stat.c:411 [inline] __se_sys_newfstatat fs/stat.c:405 [inline] __x64_sys_newfstatat+0x12c/0x1b0 fs/stat.c:405 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f678b5805f4 Code: 64 c7 00 09 00 00 00 83 c8 ff c3 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 00 00 00 00 41 89 ca b8 06 01 00 00 0f 05 <45> 31 c0 3d 00 f0 ff ff 76 10 48 8b 15 03 a8 0d 00 f7 d8 41 83 c8 RSP: 002b:00007ffc7253efd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000106 RAX: ffffffffffffffda RBX: 00007ffc72540978 RCX: 00007f678b5805f4 RDX: 00007ffc7253efe8 RSI: 00007ffc7253f478 RDI: 00000000ffffff9c RBP: 00007ffc7253f078 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc7253f478 R13: 00007ffc7253efe8 R14: 000055f4373f2910 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: eb 02 jmp 0x4 2: 31 c0 xor %eax,%eax 4: 5b pop %rbx 5: 41 5e pop %r14 7: 41 5f pop %r15 9: c3 ret a: 44 89 f1 mov %r14d,%ecx d: 80 e1 07 and $0x7,%cl 10: 80 c1 03 add $0x3,%cl 13: 38 c1 cmp %al,%cl 15: 7c 95 jl 0xffffffac 17: 4c 89 f7 mov %r14,%rdi 1a: e8 cb a4 91 00 call 0x91a4ea 1f: eb 8b jmp 0xffffffac 21: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1) 28: 00 00 * 2a: 55 push %rbp <-- trapping instruction 2b: 41 57 push %r15 2d: 41 56 push %r14 2f: 41 55 push %r13 31: 41 54 push %r12 33: 53 push %rbx 34: 48 81 ec 80 00 00 00 sub $0x80,%rsp 3b: 49 89 ff mov %rdi,%r15 3e: 48 rex.W 3f: b8 .byte 0xb8