loop2: 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 ffff888107fcbdc0 by task syz.2.716/10279

CPU: 1 UID: 0 PID: 10279 Comm: syz.2.716 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:0x7f18f178e929
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:00007f18f2668038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007f18f19b5fa0 RCX: 00007f18f178e929
RDX: 0000000000000000 RSI: 0000200000000000 RDI: 0000200000000040
RBP: 00007f18f1810b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f18f19b5fa0 R15: 00007ffc605745d8
 </TASK>

Allocated by task 10279:
 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 ffff888107fcbd00
 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 [ffff888107fcbd00, ffff888107fcbd98)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107fcb
ksm flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000000 ffff88801a4413c0 ffffea000414d280 dead000000000003
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 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 1, tgid 1 (swapper/0), ts 7122697141, free_ts 0
 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_cache_noprof+0x296/0x3d0
 call_usermodehelper_setup+0x8e/0x270
 kobject_uevent_env+0x65c/0x8c0
 kset_register+0x1aa/0x210
 class_register+0x22c/0x380
 srp_transport_init+0x17/0x70
 do_one_initcall+0x236/0x820
 do_initcall_level+0x137/0x1f0
 do_initcalls+0x69/0xd0
 kernel_init_freeable+0x3d9/0x570
page_owner free stack trace missing

Memory state around the buggy address:
 ffff888107fcbc80: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc
 ffff888107fcbd00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888107fcbd80: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc
                                           ^
 ffff888107fcbe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888107fcbe80: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc
==================================================================
