================================================================== BUG: KASAN: slab-use-after-free in write_special_inodes+0x169/0x1b0 fs/jfs/jfs_logmgr.c:200 Read of size 8 at addr ffff88807c362238 by task syz-executor/5629 CPU: 0 UID: 0 PID: 5629 Comm: syz-executor Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 write_special_inodes+0x169/0x1b0 fs/jfs/jfs_logmgr.c:200 jfs_flush_journal+0x4f8/0x8c0 fs/jfs/jfs_logmgr.c:1579 jfs_umount+0x17a/0x430 fs/jfs/jfs_umount.c:59 jfs_put_super+0x88/0x1a0 fs/jfs/super.c:194 generic_shutdown_super+0x16d/0x370 fs/super.c:723 kill_block_super+0x43/0x130 fs/super.c:1852 deactivate_locked_super+0xbd/0x130 fs/super.c:558 deactivate_super fs/super.c:586 [inline] deactivate_super+0xea/0x110 fs/super.c:582 cleanup_mnt+0xb7/0x160 fs/namespace.c:1396 task_work_run+0x150/0x240 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline] do_syscall_64+0x661/0x790 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa67e1a0d57 Code: a2 c7 05 9c a9 25 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffe1f9c8618 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007fa67e236fb3 RCX: 00007fa67e1a0d57 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffe1f9c86d0 RBP: 00007ffe1f9c86d0 R08: 00007ffe1f9c96d0 R09: 00000000ffffffff R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe1f9c9760 R13: 00007fa67e236fb3 R14: 0000000000019a53 R15: 00007ffe1f9c97a0 Allocated by task 5929: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:409 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:426 kasan_kmalloc include/linux/kasan.h:263 [inline] __kmalloc_cache_noprof+0x2f8/0x6d0 mm/slub.c:5680 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] jfs_fill_super+0xca/0xf80 fs/jfs/super.c:452 get_tree_bdev_flags+0x392/0x630 fs/super.c:1821 vfs_get_tree+0x92/0x320 fs/super.c:1881 fc_mount fs/namespace.c:1282 [inline] do_new_mount_fc fs/namespace.c:3910 [inline] do_new_mount fs/namespace.c:3986 [inline] path_mount+0x7d0/0x2850 fs/namespace.c:4337 do_mount fs/namespace.c:4350 [inline] __do_sys_mount fs/namespace.c:4565 [inline] __se_sys_mount fs/namespace.c:4542 [inline] __x64_sys_mount+0x293/0x310 fs/namespace.c:4542 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5632: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:264 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:296 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2780 [inline] slab_free mm/slub.c:6630 [inline] kfree+0x22b/0x6d0 mm/slub.c:6923 generic_shutdown_super+0x16d/0x370 fs/super.c:723 kill_block_super+0x43/0x130 fs/super.c:1852 deactivate_locked_super+0xbd/0x130 fs/super.c:558 deactivate_super fs/super.c:586 [inline] deactivate_super+0xea/0x110 fs/super.c:582 cleanup_mnt+0xb7/0x160 fs/namespace.c:1396 task_work_run+0x150/0x240 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline] do_syscall_64+0x661/0x790 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88807c362200 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 56 bytes inside of freed 256-byte region [ffff88807c362200, ffff88807c362300) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7c362 head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88813ff0ab40 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88813ff0ab40 dead000000000100 dead000000000122 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000001 ffffffffffffff81 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5929, tgid 5927 (syz.2.3), ts 104875215682 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1859 prep_new_page mm/page_alloc.c:1867 [inline] get_page_from_freelist+0x112f/0x3640 mm/page_alloc.c:3940 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5464 alloc_slab_page mm/slub.c:3384 [inline] allocate_slab mm/slub.c:3499 [inline] new_slab+0xb1/0x6d0 mm/slub.c:3550 refill_objects+0xe3/0x410 mm/slub.c:7539 refill_sheaf mm/slub.c:2917 [inline] __pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4811 alloc_from_pcs mm/slub.c:4887 [inline] slab_alloc_node mm/slub.c:5021 [inline] __do_kmalloc_node mm/slub.c:5530 [inline] __kmalloc_noprof+0x677/0x840 mm/slub.c:5556 _kmalloc_noprof include/linux/slab.h:995 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] __list_lru_init+0x100/0x530 mm/list_lru.c:683 alloc_super fs/super.c:393 [inline] sget_fc+0xa80/0x1e10 fs/super.c:846 sget_dev fs/super.c:1442 [inline] get_tree_bdev_flags+0x1ba/0x630 fs/super.c:1807 vfs_get_tree+0x92/0x320 fs/super.c:1881 fc_mount fs/namespace.c:1282 [inline] do_new_mount_fc fs/namespace.c:3910 [inline] do_new_mount fs/namespace.c:3986 [inline] path_mount+0x7d0/0x2850 fs/namespace.c:4337 do_mount fs/namespace.c:4350 [inline] __do_sys_mount fs/namespace.c:4565 [inline] __se_sys_mount fs/namespace.c:4542 [inline] __x64_sys_mount+0x293/0x310 fs/namespace.c:4542 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5921 tgid 5920 ts 103685577554 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1403 [inline] __free_frozen_pages+0x7b4/0x1110 mm/page_alloc.c:2957 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x5f0/0x1220 kernel/rcu/tree.c:2919 handle_softirqs+0x216/0xa20 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0x178/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 Memory state around the buggy address: ffff88807c362100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807c362180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88807c362200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807c362280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807c362300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== Oops: general protection fault, probably for non-canonical address 0xfbd59c000000001b: 0000 [#1] SMP KASAN NOPTI KASAN: maybe wild-memory-access in range [0xdead0000000000d8-0xdead0000000000df] CPU: 0 UID: 0 PID: 5629 Comm: syz-executor Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 RIP: 0010:write_special_inodes+0x58/0x1b0 fs/jfs/jfs_logmgr.c:202 Code: 49 8b 06 48 8d 58 c8 49 39 c6 0f 84 0a 01 00 00 48 bd 00 00 00 00 00 fc ff df e8 d3 ec 45 fe 48 8d 7b 10 48 89 f8 48 c1 e8 03 <80> 3c 28 00 0f 85 f8 00 00 00 4c 8b 63 10 4d 85 e4 74 26 e8 b0 ec RSP: 0018:ffffc900036f7bb8 EFLAGS: 00010216 RAX: 1bd5a0000000001b RBX: dead0000000000c8 RCX: 0000000000000000 RDX: ffff88807a690000 RSI: ffffffff83c86e6d RDI: dead0000000000d8 RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff95bf6b27 R11: 0000000000000000 R12: ffff88806a3e4200 R13: ffffffff825291e0 R14: ffff88803697b000 R15: 1ffff11006d2f644 FS: 0000555560e66500(0000) GS:ffff888122472000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fda305ee000 CR3: 000000005b2b5000 CR4: 0000000000350ef0 Call Trace: jfs_flush_journal+0x4f8/0x8c0 fs/jfs/jfs_logmgr.c:1579 jfs_umount+0x17a/0x430 fs/jfs/jfs_umount.c:59 jfs_put_super+0x88/0x1a0 fs/jfs/super.c:194 generic_shutdown_super+0x16d/0x370 fs/super.c:723 kill_block_super+0x43/0x130 fs/super.c:1852 deactivate_locked_super+0xbd/0x130 fs/super.c:558 deactivate_super fs/super.c:586 [inline] deactivate_super+0xea/0x110 fs/super.c:582 cleanup_mnt+0xb7/0x160 fs/namespace.c:1396 task_work_run+0x150/0x240 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline] do_syscall_64+0x661/0x790 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa67e1a0d57 Code: a2 c7 05 9c a9 25 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffe1f9c8618 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007fa67e236fb3 RCX: 00007fa67e1a0d57 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffe1f9c86d0 RBP: 00007ffe1f9c86d0 R08: 00007ffe1f9c96d0 R09: 00000000ffffffff R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe1f9c9760 R13: 00007fa67e236fb3 R14: 0000000000019a53 R15: 00007ffe1f9c97a0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:write_special_inodes+0x58/0x1b0 fs/jfs/jfs_logmgr.c:202 Code: 49 8b 06 48 8d 58 c8 49 39 c6 0f 84 0a 01 00 00 48 bd 00 00 00 00 00 fc ff df e8 d3 ec 45 fe 48 8d 7b 10 48 89 f8 48 c1 e8 03 <80> 3c 28 00 0f 85 f8 00 00 00 4c 8b 63 10 4d 85 e4 74 26 e8 b0 ec RSP: 0018:ffffc900036f7bb8 EFLAGS: 00010216 RAX: 1bd5a0000000001b RBX: dead0000000000c8 RCX: 0000000000000000 RDX: ffff88807a690000 RSI: ffffffff83c86e6d RDI: dead0000000000d8 RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff95bf6b27 R11: 0000000000000000 R12: ffff88806a3e4200 R13: ffffffff825291e0 R14: ffff88803697b000 R15: 1ffff11006d2f644 FS: 0000555560e66500(0000) GS:ffff888122472000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fda30a31000 CR3: 000000005b2b5000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: 49 8b 06 mov (%r14),%rax 3: 48 8d 58 c8 lea -0x38(%rax),%rbx 7: 49 39 c6 cmp %rax,%r14 a: 0f 84 0a 01 00 00 je 0x11a 10: 48 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%rbp 17: fc ff df 1a: e8 d3 ec 45 fe call 0xfe45ecf2 1f: 48 8d 7b 10 lea 0x10(%rbx),%rdi 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1) <-- trapping instruction 2e: 0f 85 f8 00 00 00 jne 0x12c 34: 4c 8b 63 10 mov 0x10(%rbx),%r12 38: 4d 85 e4 test %r12,%r12 3b: 74 26 je 0x63 3d: e8 .byte 0xe8 3e: b0 ec mov $0xec,%al