================================================================== BUG: KASAN: slab-use-after-free in diRead+0x9e4/0xbc0 fs/jfs/jfs_imap.c:342 Read of size 4 at addr ffff888021aa8034 by task syz.8.2610/18144 CPU: 0 UID: 0 PID: 18144 Comm: syz.8.2610 Not tainted 6.14.0-rc7-syzkaller-00074-ga7f2e10ecd8f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0x16e/0x5b0 mm/kasan/report.c:521 kasan_report+0x143/0x180 mm/kasan/report.c:634 diRead+0x9e4/0xbc0 fs/jfs/jfs_imap.c:342 jfs_iget+0x86/0x3e0 fs/jfs/inode.c:35 jfs_lookup+0x226/0x410 fs/jfs/namei.c:1469 lookup_one_qstr_excl+0x128/0x2b0 fs/namei.c:1693 filename_create+0x297/0x540 fs/namei.c:4083 do_mkdirat+0xbd/0x3a0 fs/namei.c:4328 __do_sys_mkdirat fs/namei.c:4351 [inline] __se_sys_mkdirat fs/namei.c:4349 [inline] __x64_sys_mkdirat+0x87/0xa0 fs/namei.c:4349 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f11e2d8b9d7 Code: 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f11e3bcee68 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f11e3bceef0 RCX: 00007f11e2d8b9d7 RDX: 00000000000001ff RSI: 0000200000000000 RDI: 00000000ffffff9c RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000000 R13: 00007f11e3bceeb0 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 18143: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __kmalloc_cache_noprof+0x243/0x390 mm/slub.c:4325 kmalloc_noprof include/linux/slab.h:901 [inline] dbMount+0x58/0x9d0 fs/jfs/jfs_dmap.c:164 jfs_mount+0x1e0/0x830 fs/jfs/jfs_mount.c:121 jfs_fill_super+0x6b9/0xd90 fs/jfs/super.c:523 get_tree_bdev_flags+0x48e/0x5c0 fs/super.c:1636 vfs_get_tree+0x92/0x2b0 fs/super.c:1814 do_new_mount+0x2be/0xb40 fs/namespace.c:3560 do_mount fs/namespace.c:3900 [inline] __do_sys_mount fs/namespace.c:4111 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4088 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888021aa8000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 52 bytes inside of freed 2048-byte region [ffff888021aa8000, ffff888021aa8800) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x21aa8 head: order:3 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 ffff88801b042000 ffffea0001a90800 dead000000000002 raw: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b042000 ffffea0001a90800 dead000000000002 head: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea000086aa01 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 2546366824, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 alloc_pages_mpol+0x311/0x660 mm/mempolicy.c:2270 alloc_slab_page mm/slub.c:2423 [inline] allocate_slab+0x8f/0x3a0 mm/slub.c:2587 new_slab mm/slub.c:2640 [inline] ___slab_alloc+0xc27/0x14a0 mm/slub.c:3826 __slab_alloc+0x58/0xa0 mm/slub.c:3916 __slab_alloc_node mm/slub.c:3991 [inline] slab_alloc_node mm/slub.c:4152 [inline] __kmalloc_cache_noprof+0x27b/0x390 mm/slub.c:4320 kmalloc_noprof include/linux/slab.h:901 [inline] kzalloc_noprof include/linux/slab.h:1037 [inline] acpi_ds_create_walk_state+0x103/0x2a0 drivers/acpi/acpica/dswstate.c:518 acpi_ps_execute_method+0x245/0x880 drivers/acpi/acpica/psxface.c:134 acpi_ns_evaluate+0x5df/0xa40 drivers/acpi/acpica/nseval.c:205 acpi_evaluate_object+0x59b/0xaf0 drivers/acpi/acpica/nsxfeval.c:354 acpi_evaluate_integer+0x11b/0x300 drivers/acpi/utils.c:260 acpi_bus_get_status_handle drivers/acpi/bus.c:82 [inline] acpi_bus_get_status+0x17e/0x430 drivers/acpi/bus.c:111 acpi_scan_init_status drivers/acpi/scan.c:1864 [inline] acpi_add_single_object+0x3c0/0x1e00 drivers/acpi/scan.c:1897 acpi_bus_check_add+0x32b/0x980 drivers/acpi/scan.c:2180 page_owner free stack trace missing Memory state around the buggy address: ffff888021aa7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888021aa7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888021aa8000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888021aa8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888021aa8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================