======================================================= hfsplus: request for non-existent node 256 in B*Tree hfsplus: request for non-existent node 256 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 ffff88801b73e9c0 by task syz-executor.0/4601 CPU: 1 PID: 4601 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:0x7f766217fb29 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:00007f76615010c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007f766229ef80 RCX: 00007f766217fb29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007f76621cb47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f766229ef80 R15: 00007ffd2944ec78 Allocated by task 4601: 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 inet6addr_event+0x9c/0xc0 drivers/infiniband/core/roce_gid_mgmt.c:883 notifier_call_chain kernel/notifier.c:83 [inline] atomic_notifier_call_chain+0x15d/0x280 kernel/notifier.c:198 ipv6_add_addr+0xb30/0xde0 net/ipv6/addrconf.c:1182 inet6_addr_add+0x43a/0x9c0 net/ipv6/addrconf.c:2999 inet6_rtm_newaddr+0x5d7/0x840 net/ipv6/addrconf.c:4957 rtnetlink_rcv_msg+0x9b9/0xe60 net/core/rtnetlink.c:5650 netlink_rcv_skb+0x1e0/0x430 net/netlink/af_netlink.c:2489 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline] netlink_unicast+0x77c/0x920 net/netlink/af_netlink.c:1337 netlink_sendmsg+0x8ab/0xbc0 net/netlink/af_netlink.c:1905 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] __sys_sendto+0x423/0x580 net/socket.c:2063 __do_sys_sendto net/socket.c:2075 [inline] __se_sys_sendto net/socket.c:2071 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2071 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 ffff88801b73e900 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 0 bytes to the right of 192-byte region [ffff88801b73e900, ffff88801b73e9c0) The buggy address belongs to the page: page:ffffea00006dcf80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1b73e flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea00006dd040 0000000600000006 ffff888016841a00 raw: 0000000000000000 0000000080100010 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 3185350888, 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 kset_register+0x170/0x1d0 lib/kobject.c:894 __class_register+0x24f/0x400 drivers/base/class.c:188 __class_create+0xbf/0x100 drivers/base/class.c:247 leds_init+0x1d/0x90 drivers/leds/led-class.c:543 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 page_owner free stack trace missing Memory state around the buggy address: ffff88801b73e880: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88801b73e900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88801b73e980: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88801b73ea00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88801b73ea80: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================