loop0: detected capacity change from 0 to 1024 hfsplus: request for non-existent node 768 in B*Tree hfsplus: request for non-existent node 768 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 ffff8880239ed7c0 by task syz-executor.0/4597 CPU: 1 PID: 4597 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 hfsplus_rename+0xc7/0x1b0 fs/hfsplus/dir.c:547 vfs_rename+0xbbf/0x10d0 fs/namei.c:4832 do_renameat2+0xa83/0xf70 fs/namei.c:4985 __do_sys_rename fs/namei.c:5031 [inline] __se_sys_rename fs/namei.c:5029 [inline] __x64_sys_rename+0x82/0x90 fs/namei.c:5029 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:0x7f7d625dfda9 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:00007f7d619600c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f7d6270df80 RCX: 00007f7d625dfda9 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000020000080 RBP: 00007f7d6262c47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f7d6270df80 R15: 00007ffd034d9698 Allocated by task 4597: 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 hfsplus_rename+0xc7/0x1b0 fs/hfsplus/dir.c:547 vfs_rename+0xbbf/0x10d0 fs/namei.c:4832 do_renameat2+0xa83/0xf70 fs/namei.c:4985 __do_sys_rename fs/namei.c:5031 [inline] __se_sys_rename fs/namei.c:5029 [inline] __x64_sys_rename+0x82/0x90 fs/namei.c:5029 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 ffff8880239ed700 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 0 bytes to the right of 192-byte region [ffff8880239ed700, ffff8880239ed7c0) The buggy address belongs to the page: page:ffffea00008e7b40 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x239ed flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 0000000f00000001 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 7400560310, 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 device_add+0x91c/0xfb0 drivers/base/core.c:3393 device_create_groups_vargs drivers/base/core.c:4096 [inline] device_create+0x258/0x2e0 drivers/base/core.c:4138 mon_bin_add+0xb2/0x120 drivers/usb/mon/mon_bin.c:1369 mon_bus_init+0x162/0x290 drivers/usb/mon/mon_main.c:302 mon_bus_add drivers/usb/mon/mon_main.c:199 [inline] mon_notify+0x10e/0x3e0 drivers/usb/mon/mon_main.c:230 notifier_call_chain kernel/notifier.c:83 [inline] blocking_notifier_call_chain+0x103/0x1b0 kernel/notifier.c:318 usb_register_bus+0xcf/0x140 drivers/usb/core/hcd.c:935 usb_add_hcd+0x356/0xef0 drivers/usb/core/hcd.c:2887 page_owner free stack trace missing Memory state around the buggy address: ffff8880239ed680: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ffff8880239ed700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880239ed780: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880239ed800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880239ed880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================