loop0: detected capacity change from 0 to 1024 ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_bnode_move+0x878/0x10f0 fs/hfsplus/bnode.c:274 Read of size 8 at addr ffff88814b11dec0 by task syz-executor.0/6095 CPU: 0 UID: 0 PID: 6095 Comm: syz-executor.0 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 hfsplus_bnode_move+0x878/0x10f0 fs/hfsplus/bnode.c:274 hfsplus_brec_insert+0x66e/0xd30 fs/hfsplus/brec.c:128 hfsplus_create_attr+0x30b/0x440 fs/hfsplus/attributes.c:252 __hfsplus_setxattr+0x66f/0x2390 fs/hfsplus/xattr.c:356 hfsplus_initxattrs+0x1ae/0x280 fs/hfsplus/xattr_security.c:59 security_inode_init_security+0x290/0x3d0 security/security.c:1344 hfsplus_fill_super+0x1322/0x1940 fs/hfsplus/super.c:608 get_tree_bdev_flags+0x40e/0x4d0 fs/super.c:1699 vfs_get_tree+0x92/0x2a0 fs/super.c:1759 fc_mount fs/namespace.c:1199 [inline] do_new_mount_fc fs/namespace.c:3636 [inline] do_new_mount+0x302/0xa10 fs/namespace.c:3712 do_mount fs/namespace.c:4035 [inline] __do_sys_mount fs/namespace.c:4224 [inline] __se_sys_mount+0x313/0x410 fs/namespace.c:4201 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f40dd14e4aa Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007f40dc4cdef8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f40dc4cdf80 RCX: 00007f40dd14e4aa RDX: 0000000020000040 RSI: 0000000020000240 RDI: 00007f40dc4cdf40 RBP: 0000000020000040 R08: 00007f40dc4cdf80 R09: 0000000000800000 R10: 0000000000800000 R11: 0000000000000246 R12: 0000000020000240 R13: 00007f40dc4cdf40 R14: 00000000000006cb R15: 00000000200003c0 Allocated by task 1: kasan_save_stack mm/kasan/common.c:56 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:77 poison_kmalloc_redzone mm/kasan/common.c:400 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:417 kasan_kmalloc include/linux/kasan.h:262 [inline] __kmalloc_cache_noprof+0x1ef/0x6d0 mm/slub.c:5771 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] bus_add_driver+0x165/0x640 drivers/base/bus.c:662 driver_register+0x23a/0x320 drivers/base/driver.c:249 usb_register_driver+0x1e4/0x390 drivers/usb/core/driver.c:1078 do_one_initcall+0x1fb/0x7f0 init/main.c:1283 do_initcall_level+0x104/0x190 init/main.c:1345 do_initcalls+0x59/0xa0 init/main.c:1361 kernel_init_freeable+0x334/0x4b0 init/main.c:1593 kernel_init+0x1d/0x1d0 init/main.c:1483 ret_from_fork+0x599/0xb30 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 The buggy address belongs to the object at ffff88814b11dc00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 432 bytes to the right of allocated 272-byte region [ffff88814b11dc00, ffff88814b11dd10) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14b11c head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x500000000000040(head|node=1|zone=2) page_type: f5(slab) raw: 0500000000000040 ffff88813ff26c80 ffffea000504b300 dead000000000002 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 0500000000000040 ffff88813ff26c80 ffffea000504b300 dead000000000002 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 0500000000000002 ffffea00052c4701 00000000ffffffff 00000000ffffffff head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 18016660693, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x234/0x290 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0x28c0/0x2960 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5183 alloc_pages_mpol+0xd1/0x380 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:3075 [inline] allocate_slab+0x86/0x3b0 mm/slub.c:3248 new_slab mm/slub.c:3302 [inline] ___slab_alloc+0xb10/0x1400 mm/slub.c:4651 __slab_alloc+0xc6/0x1f0 mm/slub.c:4774 __slab_alloc_node mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:5246 [inline] __kmalloc_cache_noprof+0xec/0x6d0 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] device_private_init drivers/base/core.c:3534 [inline] device_add+0xbe/0xb50 drivers/base/core.c:3585 cdev_device_add+0x1d6/0x390 fs/char_dev.c:556 cec_devnode_register drivers/media/cec/core/cec-core.c:116 [inline] cec_register_adapter+0x2eb/0x690 drivers/media/cec/core/cec-core.c:338 vivid_create_devnodes+0x732/0x2c20 drivers/media/test-drivers/vivid/vivid-core.c:1459 vivid_create_instance drivers/media/test-drivers/vivid/vivid-core.c:2042 [inline] vivid_probe+0x504e/0x7150 drivers/media/test-drivers/vivid/vivid-core.c:2095 platform_probe+0xf9/0x190 drivers/base/platform.c:1446 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x26d/0x9e0 drivers/base/dd.c:659 __driver_probe_device+0x18c/0x2f0 drivers/base/dd.c:801 page_owner free stack trace missing Memory state around the buggy address: ffff88814b11dd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88814b11de00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88814b11de80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88814b11df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88814b11df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================