================================================================== BUG: KASAN: slab-use-after-free in hfsplus_read_wrapper+0xf62/0x1020 fs/hfsplus/wrapper.c:225 Read of size 2 at addr ffff88801eaca000 by task syz-executor201/5023 CPU: 0 PID: 5023 Comm: syz-executor201 Not tainted 6.4.0-rc6-syzkaller-00049-g62d8779610bb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:351 print_report mm/kasan/report.c:462 [inline] kasan_report+0x11c/0x130 mm/kasan/report.c:572 hfsplus_read_wrapper+0xf62/0x1020 fs/hfsplus/wrapper.c:225 hfsplus_fill_super+0x312/0x1c40 fs/hfsplus/super.c:413 mount_bdev+0x358/0x420 fs/super.c:1380 legacy_get_tree+0x109/0x220 fs/fs_context.c:610 vfs_get_tree+0x8d/0x350 fs/super.c:1510 do_new_mount fs/namespace.c:3039 [inline] path_mount+0x134b/0x1e40 fs/namespace.c:3369 do_mount fs/namespace.c:3382 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount fs/namespace.c:3568 [inline] __x64_sys_mount+0x283/0x300 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd4e2450f1a Code: 48 c7 c2 c0 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 a8 00 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffefe3b3d08 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fd4e2450f1a RDX: 0000000020000600 RSI: 0000000020000640 RDI: 00007ffefe3b3d20 RBP: 00007ffefe3b3d20 R08: 00007ffefe3b3d60 R09: 00000000000005cd R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000004 R13: 00005555558342c0 R14: 0000000000000000 R15: 00007ffefe3b3d60 The buggy address belongs to the object at ffff88801eaca000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 0 bytes inside of freed 512-byte region [ffff88801eaca000, ffff88801eaca200) The buggy address belongs to the physical page: page:ffffea00007ab200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1eac8 head:ffffea00007ab200 order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0 ksm flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000010200 ffff888012441c80 ffffea0000879000 dead000000000003 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 722, tgid 722 (kworker/u4:4), ts 5266554097, free_ts 0 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2db/0x350 mm/page_alloc.c:1731 prep_new_page mm/page_alloc.c:1738 [inline] get_page_from_freelist+0xf41/0x2c00 mm/page_alloc.c:3502 __alloc_pages+0x1cb/0x4a0 mm/page_alloc.c:4768 alloc_pages+0x1aa/0x270 mm/mempolicy.c:2279 alloc_slab_page mm/slub.c:1851 [inline] allocate_slab+0x25f/0x390 mm/slub.c:1998 new_slab mm/slub.c:2051 [inline] ___slab_alloc+0xa91/0x1400 mm/slub.c:3192 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3291 __slab_alloc_node mm/slub.c:3344 [inline] slab_alloc_node mm/slub.c:3441 [inline] __kmem_cache_alloc_node+0x136/0x320 mm/slub.c:3490 kmalloc_trace+0x26/0xe0 mm/slab_common.c:1057 kmalloc include/linux/slab.h:559 [inline] kzalloc include/linux/slab.h:680 [inline] alloc_bprm+0x51/0xba0 fs/exec.c:1512 kernel_execve+0xaf/0x500 fs/exec.c:1987 call_usermodehelper_exec_async+0x260/0x4e0 kernel/umh.c:110 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 page_owner free stack trace missing Memory state around the buggy address: ffff88801eac9f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88801eac9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88801eaca000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88801eaca080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88801eaca100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================