loop0: detected capacity change from 0 to 1024 ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy_from_page include/linux/highmem.h:423 [inline] BUG: KASAN: slab-out-of-bounds in hfsplus_bnode_read+0xe9/0x1e0 fs/hfsplus/bnode.c:32 Write of size 4030 at addr ffff88802ad9f800 by task syz-executor375/5833 CPU: 0 UID: 0 PID: 5833 Comm: syz-executor375 Not tainted 6.14.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0x16e/0x5b0 mm/kasan/report.c:521 kasan_report+0x143/0x180 mm/kasan/report.c:634 kasan_check_range+0x282/0x290 mm/kasan/generic.c:189 __asan_memcpy+0x40/0x70 mm/kasan/shadow.c:106 memcpy_from_page include/linux/highmem.h:423 [inline] hfsplus_bnode_read+0xe9/0x1e0 fs/hfsplus/bnode.c:32 hfsplus_bnode_read_key+0x190/0x2a0 fs/hfsplus/bnode.c:70 hfsplus_brec_insert+0x6ea/0xde0 fs/hfsplus/brec.c:141 hfsplus_create_attr+0x341/0x3d0 fs/hfsplus/attributes.c:252 __hfsplus_setxattr+0x6fe/0x2310 fs/hfsplus/xattr.c:354 hfsplus_setxattr+0x11c/0x180 fs/hfsplus/xattr.c:432 hfsplus_security_setxattr+0x40/0x60 fs/hfsplus/xattr_security.c:31 __vfs_setxattr+0x46a/0x4a0 fs/xattr.c:200 __vfs_setxattr_noperm+0x12e/0x660 fs/xattr.c:234 vfs_setxattr+0x221/0x430 fs/xattr.c:321 do_setxattr fs/xattr.c:636 [inline] filename_setxattr+0x2af/0x430 fs/xattr.c:665 path_setxattrat+0x440/0x510 fs/xattr.c:713 __do_sys_setxattr fs/xattr.c:747 [inline] __se_sys_setxattr fs/xattr.c:743 [inline] __x64_sys_setxattr+0xbc/0xe0 fs/xattr.c:743 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8d56ea0ad9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 17 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd0469bd48 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f8d56ea0ad9 RDX: 0000000000000000 RSI: 0000400000000080 RDI: 0000400000000040 RBP: 00007f8d56f145f0 R08: 0000000000000001 R09: 000055557d2b94c0 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd0469bd70 R13: 00007ffd0469bf98 R14: 431bde82d7b634db R15: 00007f8d56ee903b Allocated by task 5833: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4294 [inline] __kmalloc_noprof+0x285/0x4c0 mm/slub.c:4306 kmalloc_noprof include/linux/slab.h:905 [inline] hfsplus_find_init+0x85/0x1c0 fs/hfsplus/bfind.c:21 hfsplus_create_attr+0x161/0x3d0 fs/hfsplus/attributes.c:216 __hfsplus_setxattr+0x6fe/0x2310 fs/hfsplus/xattr.c:354 hfsplus_setxattr+0x11c/0x180 fs/hfsplus/xattr.c:432 hfsplus_security_setxattr+0x40/0x60 fs/hfsplus/xattr_security.c:31 __vfs_setxattr+0x46a/0x4a0 fs/xattr.c:200 __vfs_setxattr_noperm+0x12e/0x660 fs/xattr.c:234 vfs_setxattr+0x221/0x430 fs/xattr.c:321 do_setxattr fs/xattr.c:636 [inline] filename_setxattr+0x2af/0x430 fs/xattr.c:665 path_setxattrat+0x440/0x510 fs/xattr.c:713 __do_sys_setxattr fs/xattr.c:747 [inline] __se_sys_setxattr fs/xattr.c:743 [inline] __x64_sys_setxattr+0xbc/0xe0 fs/xattr.c:743 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88802ad9f800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 0 bytes inside of allocated 536-byte region [ffff88802ad9f800, ffff88802ad9fa18) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2ad98 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801b041dc0 ffffea00009fdc00 dead000000000002 raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b041dc0 ffffea00009fdc00 dead000000000002 head: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea0000ab6601 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 14719621211, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4740 alloc_pages_mpol+0x311/0x660 mm/mempolicy.c:2270 alloc_slab_page mm/slub.c:2423 [inline] allocate_slab+0x8f/0x3a0 mm/slub.c:2587 new_slab mm/slub.c:2640 [inline] ___slab_alloc+0xc27/0x14a0 mm/slub.c:3826 __slab_alloc+0x58/0xa0 mm/slub.c:3916 __slab_alloc_node mm/slub.c:3991 [inline] slab_alloc_node mm/slub.c:4152 [inline] __do_kmalloc_node mm/slub.c:4293 [inline] __kmalloc_noprof+0x2e6/0x4c0 mm/slub.c:4306 kmalloc_noprof include/linux/slab.h:905 [inline] kzalloc_noprof include/linux/slab.h:1037 [inline] usb_get_configuration+0x109/0x4f60 drivers/usb/core/config.c:889 usb_enumerate_device drivers/usb/core/hub.c:2495 [inline] usb_new_device+0x14a/0x19a0 drivers/usb/core/hub.c:2633 register_root_hub+0x25c/0x550 drivers/usb/core/hcd.c:994 usb_add_hcd+0xb49/0x1110 drivers/usb/core/hcd.c:2976 vhci_hcd_probe+0x167/0x3c0 drivers/usb/usbip/vhci_hcd.c:1363 platform_probe+0x13c/0x1c0 drivers/base/platform.c:1404 really_probe+0x2bb/0xad0 drivers/base/dd.c:658 __driver_probe_device+0x1a2/0x390 drivers/base/dd.c:800 page_owner free stack trace missing Memory state around the buggy address: ffff88802ad9f900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802ad9f980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88802ad9fa00: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88802ad9fa80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88802ad9fb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================