loop0: detected capacity change from 0 to 1024
hfsplus: request for non-existent node 128 in B*Tree
hfsplus: request for non-existent node 128 in B*Tree
==================================================================
BUG: KASAN: slab-out-of-bounds in hfsplus_bnode_read+0xc0/0x2a0
Read of size 8 at addr ffff88810ace22c0 by task syz.0.16/5962

CPU: 1 UID: 0 PID: 5962 Comm: syz.0.16 Not tainted 6.16.0-rc4-syzkaller-00286-gc435a4f487e8-dirty #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 print_report+0xd2/0x2b0
 kasan_report+0x118/0x150
 hfsplus_bnode_read+0xc0/0x2a0
 hfsplus_bnode_dump+0x300/0x450
 hfsplus_brec_remove+0x480/0x550
 __hfsplus_delete_attr+0x1d4/0x360
 hfsplus_delete_all_attrs+0x277/0x410
 hfsplus_delete_cat+0x92c/0xd20
 hfsplus_unlink+0x359/0x730
 hfsplus_rename+0xcb/0x1c0
 vfs_rename+0xb9c/0xec0
 do_renameat2+0x878/0xc50
 __x64_sys_rename+0x82/0x90
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f04f1b8e929
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f04f0dfe038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007f04f1db5fa0 RCX: 00007f04f1b8e929
RDX: 0000000000000000 RSI: 0000200000000000 RDI: 0000200000000040
RBP: 00007f04f1c10b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f04f1db5fa0 R15: 00007ffe3565e218
 </TASK>

Allocated by task 5962:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_noprof+0x27a/0x4f0
 __hfs_bnode_create+0xf3/0x810
 hfsplus_bnode_find+0x224/0xd20
 hfsplus_brec_find+0x15c/0x500
 hfsplus_delete_all_attrs+0x24c/0x410
 hfsplus_delete_cat+0x92c/0xd20
 hfsplus_unlink+0x359/0x730
 hfsplus_rename+0xcb/0x1c0
 vfs_rename+0xb9c/0xec0
 do_renameat2+0x878/0xc50
 __x64_sys_rename+0x82/0x90
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88810ace2200
 which belongs to the cache kmalloc-192 of size 192
The buggy address is located 40 bytes to the right of
 allocated 152-byte region [ffff88810ace2200, ffff88810ace2298)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10ace2
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000000 ffff88801a4413c0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000080100010 00000000f5000000 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 0x52c00(GFP_NOIO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 1, tgid 1 (swapper/0), ts 10984204124, free_ts 10894468083
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 allocate_slab+0x8a/0x3b0
 ___slab_alloc+0xbfc/0x1480
 __kmalloc_noprof+0x305/0x4f0
 usb_alloc_urb+0x46/0x150
 usb_control_msg+0x118/0x3e0
 hub_hub_status+0xcb/0x570
 hub_probe+0x21af/0x37f0
 usb_probe_interface+0x644/0xbc0
 really_probe+0x26d/0x9a0
 __driver_probe_device+0x18c/0x2f0
 driver_probe_device+0x4f/0x430
 __device_attach_driver+0x2ce/0x530
page last free pid 1275 tgid 1275 stack trace:
 __free_frozen_pages+0xc71/0xe70
 vfree+0x25a/0x400
 delayed_vfree_work+0x55/0x80
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30

Memory state around the buggy address:
 ffff88810ace2180: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc
 ffff88810ace2200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88810ace2280: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc
                                           ^
 ffff88810ace2300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88810ace2380: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================
