================================================================== BUG: KASAN: use-after-free in jfs_statfs+ BUG: KASAN: use-after-free in instrument_atomic_read include/linux/instrumented.h:82 [inline] BUG: KASAN: use-after-free in atomic_read include/linux/atomic/atomic-instrumented.h:32 [inline] BUG: KASAN: use-after-free in jfs_statfs+0x259/0x560 fs/jfs/super.c:140 Read of size 4 at addr ffff8880656948b0 by task syz.3.911/14464 CPU: 0 UID: 0 PID: 14464 Comm: syz.3.911 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200 instrument_atomic_read include/linux/instrumented.h:82 [inline] atomic_read include/linux/atomic/atomic-instrumented.h:32 [inline] jfs_statfs+0x259/0x560 fs/jfs/super.c:140 statfs_by_dentry fs/statfs.c:66 [inline] vfs_statfs+0x147/0x2d0 fs/statfs.c:90 fd_statfs fs/statfs.c:122 [inline] __do_sys_fstatfs fs/statfs.c:215 [inline] __se_sys_fstatfs+0x114/0x2a0 fs/statfs.c:212 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbeab26fb19 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fbea94a5028 EFLAGS: 00000246 ORIG_RAX: 000000000000008a RAX: ffffffffffffffda RBX: 00007fbeab4f6090 RCX: 00007fbeab26fb19 RDX: 0000000000000000 RSI: 000020000001fb80 RDI: 0000000000000006 RBP: 00007fbeab307b70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fbeab4f6128 R14: 00007fbeab4f6090 R15: 00007ffe7706a928 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x65694 flags: 0x80000000000000(node=0|zone=1) raw: 0080000000000000 0000000000000000 ffffea000195a508 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 3, migratetype Unmovable, gfp_mask 0x40dc0(GFP_KERNEL|__GFP_ZERO|__GFP_COMP), pid 14463, tgid 14462 (syz.3.911), ts 724288293028 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1859 prep_new_page mm/page_alloc.c:1867 [inline] get_page_from_freelist+0x259a/0x2610 mm/page_alloc.c:3940 __alloc_frozen_pages_noprof+0x227/0x440 mm/page_alloc.c:5464 alloc_pages_mpol+0xd4/0x280 mm/mempolicy.c:2511 ___kmalloc_large_node+0x7b/0x170 mm/slub.c:5470 __kmalloc_large_noprof+0x1a/0x90 mm/slub.c:5492 _kmalloc_noprof include/linux/slab.h:988 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] diMount+0x29/0xd80 fs/jfs/jfs_imap.c:105 jfs_mount+0x426/0x870 fs/jfs/jfs_mount.c:176 jfs_fill_super+0x69f/0xda0 fs/jfs/super.c:524 get_tree_bdev_flags+0x436/0x500 fs/super.c:1821 vfs_get_tree+0x92/0x2a0 fs/super.c:1881 fc_mount fs/namespace.c:1282 [inline] do_new_mount_fc fs/namespace.c:3910 [inline] do_new_mount+0x325/0xb00 fs/namespace.c:3986 do_mount fs/namespace.c:4350 [inline] __do_sys_mount fs/namespace.c:4565 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4542 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 14463 tgid 14462 ts 724295578149 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1403 [inline] __free_frozen_pages+0xf8a/0x1060 mm/page_alloc.c:2957 diUnmount+0xff/0x130 fs/jfs/jfs_imap.c:195 jfs_mount_rw+0x2dc/0x670 fs/jfs/jfs_mount.c:239 jfs_reconfigure+0x5da/0x990 fs/jfs/super.c:409 reconfigure_super+0x232/0x8f0 fs/super.c:1097 do_remount fs/namespace.c:3538 [inline] path_mount+0xd51/0x1050 fs/namespace.c:4329 do_mount fs/namespace.c:4350 [inline] __do_sys_mount fs/namespace.c:4565 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4542 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888065694780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888065694800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888065694880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888065694900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888065694980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================