loop0: detected capacity change from 0 to 1024 hfsplus: request for non-existent node 32768 in B*Tree hfsplus: request for non-existent node 32768 in B*Tree ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_bnode_read+0x8f/0x1e0 fs/hfsplus/bnode.c:32 Read of size 8 at addr ffff88801958bfc0 by task syz-executor.0/4602 CPU: 1 PID: 4602 Comm: syz-executor.0 Not tainted 5.15.186-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 hfsplus_bnode_read+0x8f/0x1e0 fs/hfsplus/bnode.c:32 hfsplus_bnode_dump+0x4b3/0x620 fs/hfsplus/bnode.c:-1 hfsplus_brec_remove+0x476/0x540 fs/hfsplus/brec.c:229 __hfsplus_delete_attr+0x1d1/0x360 fs/hfsplus/attributes.c:299 hfsplus_delete_all_attrs+0x240/0x3a0 fs/hfsplus/attributes.c:378 hfsplus_delete_cat+0x94a/0xd20 fs/hfsplus/catalog.c:425 hfsplus_unlink+0x33c/0x760 fs/hfsplus/dir.c:385 vfs_unlink+0x385/0x600 fs/namei.c:4280 do_unlinkat+0x382/0x6f0 fs/namei.c:4348 __do_sys_unlink fs/namei.c:4396 [inline] __se_sys_unlink fs/namei.c:4394 [inline] __x64_sys_unlink+0x45/0x50 fs/namei.c:4394 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fb054d7db29 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:00007fb0540ff0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007fb054e9cf80 RCX: 00007fb054d7db29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140 RBP: 00007fb054dc947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fb054e9cf80 R15: 00007ffe47010f38 Allocated by task 4602: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc mm/kasan/common.c:513 [inline] __kasan_kmalloc+0xb5/0xf0 mm/kasan/common.c:522 kmalloc include/linux/slab.h:609 [inline] kzalloc include/linux/slab.h:735 [inline] __hfs_bnode_create+0xf1/0xc10 fs/hfsplus/bnode.c:422 hfsplus_bnode_find+0x220/0xd00 fs/hfsplus/bnode.c:503 hfsplus_brec_find+0x159/0x500 fs/hfsplus/bfind.c:172 hfsplus_find_attr fs/hfsplus/attributes.c:160 [inline] hfsplus_delete_all_attrs+0x215/0x3a0 fs/hfsplus/attributes.c:371 hfsplus_delete_cat+0x94a/0xd20 fs/hfsplus/catalog.c:425 hfsplus_unlink+0x33c/0x760 fs/hfsplus/dir.c:385 vfs_unlink+0x385/0x600 fs/namei.c:4280 do_unlinkat+0x382/0x6f0 fs/namei.c:4348 __do_sys_unlink fs/namei.c:4396 [inline] __se_sys_unlink fs/namei.c:4394 [inline] __x64_sys_unlink+0x45/0x50 fs/namei.c:4394 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Last potentially related work creation: kasan_save_stack+0x35/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xb8/0x100 mm/kasan/generic.c:348 insert_work+0x54/0x3d0 kernel/workqueue.c:1366 __queue_work+0x9c5/0xd50 kernel/workqueue.c:1532 queue_work_on+0x11d/0x1d0 kernel/workqueue.c:1559 queue_work include/linux/workqueue.h:512 [inline] call_usermodehelper_exec+0x26b/0x460 kernel/umh.c:435 call_modprobe kernel/kmod.c:98 [inline] __request_module+0x3df/0x910 kernel/kmod.c:170 dev_load+0x156/0x1b0 net/core/dev_ioctl.c:446 dev_ioctl+0x3e4/0xe50 net/core/dev_ioctl.c:511 sock_do_ioctl+0x222/0x2f0 net/socket.c:1154 sock_ioctl+0x4ed/0x6e0 net/socket.c:1257 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff88801958bf00 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 0 bytes to the right of 192-byte region [ffff88801958bf00, ffff88801958bfc0) The buggy address belongs to the page: page:ffffea00006562c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88801958b000 pfn:0x1958b flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea00006564c0 0000000300000003 ffff888016841a00 raw: ffff88801958b000 0000000080100008 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 1, ts 2314077286, free_ts 0 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5474 alloc_page_interleave+0x24/0x1e0 mm/mempolicy.c:2031 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1975 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc_trace+0x1a5/0x2a0 mm/slub.c:3245 kmalloc include/linux/slab.h:604 [inline] kzalloc include/linux/slab.h:735 [inline] call_usermodehelper_setup+0x8a/0x260 kernel/umh.c:365 kobject_uevent_env+0x65e/0x890 lib/kobject_uevent.c:629 kernel_add_sysfs_param+0xfb/0x120 kernel/params.c:816 param_sysfs_builtin+0x164/0x1e0 kernel/params.c:851 param_sysfs_init+0x66/0x70 kernel/params.c:972 do_one_initcall+0x1ee/0x680 init/main.c:1302 do_initcall_level+0x137/0x1f0 init/main.c:1375 do_initcalls+0x4b/0x90 init/main.c:1391 kernel_init_freeable+0x3ce/0x560 init/main.c:1615 kernel_init+0x19/0x1b0 init/main.c:1506 page_owner free stack trace missing Memory state around the buggy address: ffff88801958be80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88801958bf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88801958bf80: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88801958c000: fb fc fc fc fc 00 fc fc fc fc 00 fc fc fc fc fb ffff88801958c080: fc fc fc fc fb fc fc fc fc fb fc fc fc fc fb fc ==================================================================