RBP: 00007f1c3e4e0120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007f1c3ea7cf80 R15: 00007ffc5093d3c8 ================================================================== BUG: KASAN: use-after-free in is_handle_aborted include/linux/jbd2.h:1689 [inline] BUG: KASAN: use-after-free in jbd2_journal_get_write_access+0x2cb/0x2d0 fs/jbd2/transaction.c:1241 Read of size 4 at addr ffff88812146cc84 by task syz-executor.0/473 CPU: 0 PID: 473 Comm: syz-executor.0 Not tainted 5.15.178-syzkaller-1079147-g7d1f9b5c2ff5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1c0 lib/dump_stack.c:106 print_address_description+0x87/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0x179/0x1c0 mm/kasan/report.c:444 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 is_handle_aborted include/linux/jbd2.h:1689 [inline] jbd2_journal_get_write_access+0x2cb/0x2d0 fs/jbd2/transaction.c:1241 __ext4_journal_get_write_access+0x244/0x690 fs/ext4/ext4_jbd2.c:235 ext4_reserve_inode_write+0x2bd/0x3d0 fs/ext4/inode.c:5830 __ext4_mark_inode_dirty+0x129/0x7a0 fs/ext4/inode.c:6004 ext4_symlink+0xa2c/0xed0 fs/ext4/namei.c:3509 vfs_symlink+0x29f/0x480 fs/namei.c:4429 do_symlinkat+0x1ea/0x5a0 fs/namei.c:4458 __do_sys_symlink fs/namei.c:4480 [inline] __se_sys_symlink fs/namei.c:4478 [inline] __x64_sys_symlink+0x7e/0x90 fs/namei.c:4478 x64_sys_call+0x290/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:89 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:0x7f1c3e95dba9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1c3e4e00c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 00007f1c3ea7cf80 RCX: 00007f1c3e95dba9 RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000020000140 RBP: 00007f1c3e4e0120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007f1c3ea7cf80 R15: 00007ffc5093d3c8 Allocated by task 473: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:433 [inline] __kasan_slab_alloc+0xb1/0xe0 mm/kasan/common.c:466 kasan_slab_alloc include/linux/kasan.h:217 [inline] slab_post_alloc_hook+0x53/0x2c0 mm/slab.h:550 slab_alloc_node mm/slub.c:3240 [inline] slab_alloc mm/slub.c:3250 [inline] kmem_cache_alloc+0xf5/0x250 mm/slub.c:3255 kmem_cache_zalloc include/linux/slab.h:723 [inline] jbd2_alloc_handle include/linux/jbd2.h:1597 [inline] new_handle fs/jbd2/transaction.c:477 [inline] jbd2__journal_start+0x150/0x710 fs/jbd2/transaction.c:504 __ext4_journal_start_sb+0xfa/0x2c0 fs/ext4/ext4_jbd2.c:105 __ext4_new_inode+0x12ae/0x4000 fs/ext4/ialloc.c:1084 ext4_symlink+0x4c3/0xed0 fs/ext4/namei.c:3428 vfs_symlink+0x29f/0x480 fs/namei.c:4429 do_symlinkat+0x1ea/0x5a0 fs/namei.c:4458 __do_sys_symlink fs/namei.c:4480 [inline] __se_sys_symlink fs/namei.c:4478 [inline] __x64_sys_symlink+0x7e/0x90 fs/namei.c:4478 x64_sys_call+0x290/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:89 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 Freed by task 473: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:45 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370 ____kasan_slab_free+0x126/0x160 mm/kasan/common.c:365 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:373 kasan_slab_free include/linux/kasan.h:193 [inline] slab_free_hook mm/slub.c:1723 [inline] slab_free_freelist_hook+0xbd/0x190 mm/slub.c:1749 slab_free mm/slub.c:3521 [inline] kmem_cache_free+0x115/0x330 mm/slub.c:3539 jbd2_free_handle include/linux/jbd2.h:1602 [inline] jbd2_journal_stop+0x82c/0xc70 fs/jbd2/transaction.c:1964 __ext4_journal_stop+0x111/0x1c0 fs/ext4/ext4_jbd2.c:127 ext4_symlink+0x5fe/0xed0 fs/ext4/namei.c:3507 vfs_symlink+0x29f/0x480 fs/namei.c:4429 do_symlinkat+0x1ea/0x5a0 fs/namei.c:4458 __do_sys_symlink fs/namei.c:4480 [inline] __se_sys_symlink fs/namei.c:4478 [inline] __x64_sys_symlink+0x7e/0x90 fs/namei.c:4478 x64_sys_call+0x290/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:89 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 The buggy address belongs to the object at ffff88812146cc60 which belongs to the cache jbd2_journal_handle of size 56 The buggy address is located 36 bytes inside of 56-byte region [ffff88812146cc60, ffff88812146cc98) The buggy address belongs to the page: page:ffffea0004851b00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12146c flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 0000000000000000 dead000000000122 ffff888107fb1080 raw: 0000000000000000 00000000802e002e 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Reclaimable, gfp_mask 0x112c50(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 471, ts 55952611068, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1a3/0x1b0 mm/page_alloc.c:2605 prep_new_page+0x1b/0x110 mm/page_alloc.c:2611 get_page_from_freelist+0x3550/0x35d0 mm/page_alloc.c:4485 __alloc_pages+0x27e/0x8f0 mm/page_alloc.c:5780 allocate_slab mm/slub.c:1932 [inline] new_slab+0x9a/0x4e0 mm/slub.c:1995 ___slab_alloc+0x39e/0x830 mm/slub.c:3028 __slab_alloc+0x4a/0x90 mm/slub.c:3115 slab_alloc_node mm/slub.c:3206 [inline] slab_alloc mm/slub.c:3250 [inline] kmem_cache_alloc+0x139/0x250 mm/slub.c:3255 kmem_cache_zalloc include/linux/slab.h:723 [inline] jbd2_alloc_handle include/linux/jbd2.h:1597 [inline] new_handle fs/jbd2/transaction.c:477 [inline] jbd2__journal_start+0x150/0x710 fs/jbd2/transaction.c:504 __ext4_journal_start_sb+0xfa/0x2c0 fs/ext4/ext4_jbd2.c:105 __ext4_new_inode+0x12ae/0x4000 fs/ext4/ialloc.c:1084 ext4_symlink+0x4c3/0xed0 fs/ext4/namei.c:3428 vfs_symlink+0x29f/0x480 fs/namei.c:4429 do_symlinkat+0x1ea/0x5a0 fs/namei.c:4458 __do_sys_symlinkat fs/namei.c:4475 [inline] __se_sys_symlinkat fs/namei.c:4472 [inline] __x64_sys_symlinkat+0x99/0xb0 fs/namei.c:4472 x64_sys_call+0x6fe/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:267 page_owner free stack trace missing Memory state around the buggy address: ffff88812146cb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88812146cc00: fc fc fc fc fc fc fc fc fc fc fc fc fa fb fb fb >ffff88812146cc80: fb fb fb fc fc fc fc fa fb fb fb fb fb fb fc fc ^ ffff88812146cd00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88812146cd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ------------[ cut here ]------------ kernel BUG at fs/jbd2/transaction.c:1102! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 473 Comm: syz-executor.0 Tainted: G B 5.15.178-syzkaller-1079147-g7d1f9b5c2ff5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:do_get_write_access+0xd96/0xdb0 fs/jbd2/transaction.c:1102 Code: 4d c8 80 e1 07 80 c1 03 38 c1 0f 8c f0 fe ff ff 48 8b 7d c8 e8 ab 27 b7 ff e9 e2 fe ff ff e8 a1 bc 74 ff 0f 0b e8 9a bc 74 ff <0f> 0b e8 93 bc 74 ff 0f 0b e8 8c bc 74 ff 0f 0b 66 2e 0f 1f 84 00 RSP: 0018:ffffc90001187828 EFLAGS: 00010293 RAX: ffffffff81fbb016 RBX: ffff8881111453c0 RCX: ffff88811547e2c0 RDX: 0000000000000000 RSI: 0000000000000292 RDI: ffff888125c470a0 RBP: ffffc900011878f0 R08: dffffc0000000000 R09: ffffed10242cacbe R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff8881113d14f8 R14: 1ffff110242cacbd R15: ffff8881216565e8 FS: 00007f1c3e4e06c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055555e387818 CR3: 0000000125c0f000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: jbd2_journal_get_write_access+0x195/0x2d0 fs/jbd2/transaction.c:1251 __ext4_journal_get_write_access+0x244/0x690 fs/ext4/ext4_jbd2.c:235 ext4_reserve_inode_write+0x2bd/0x3d0 fs/ext4/inode.c:5830 __ext4_mark_inode_dirty+0x129/0x7a0 fs/ext4/inode.c:6004 ext4_symlink+0xa2c/0xed0 fs/ext4/namei.c:3509 vfs_symlink+0x29f/0x480 fs/namei.c:4429 do_symlinkat+0x1ea/0x5a0 fs/namei.c:4458 __do_sys_symlink fs/namei.c:4480 [inline] __se_sys_symlink fs/namei.c:4478 [inline] __x64_sys_symlink+0x7e/0x90 fs/namei.c:4478 x64_sys_call+0x290/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:89 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:0x7f1c3e95dba9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1c3e4e00c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 00007f1c3ea7cf80 RCX: 00007f1c3e95dba9 RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000020000140 RBP: 00007f1c3e4e0120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007f1c3ea7cf80 R15: 00007ffc5093d3c8 Modules linked in: ---[ end trace 174dcbfd67575651 ]--- RIP: 0010:do_get_write_access+0xd96/0xdb0 fs/jbd2/transaction.c:1102 Code: 4d c8 80 e1 07 80 c1 03 38 c1 0f 8c f0 fe ff ff 48 8b 7d c8 e8 ab 27 b7 ff e9 e2 fe ff ff e8 a1 bc 74 ff 0f 0b e8 9a bc 74 ff <0f> 0b e8 93 bc 74 ff 0f 0b e8 8c bc 74 ff 0f 0b 66 2e 0f 1f 84 00 RSP: 0018:ffffc90001187828 EFLAGS: 00010293 RAX: ffffffff81fbb016 RBX: ffff8881111453c0 RCX: ffff88811547e2c0 RDX: 0000000000000000 RSI: 0000000000000292 RDI: ffff888125c470a0 RBP: ffffc900011878f0 R08: dffffc0000000000 R09: ffffed10242cacbe R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff8881113d14f8 R14: 1ffff110242cacbd R15: ffff8881216565e8 FS: 00007f1c3e4e06c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055555e387818 CR3: 0000000125c0f000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400