================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_bnode_read+0x9c/0x248 fs/hfsplus/bnode.c:32 Read of size 8 at addr ffff0000ce8fd8e0 by task syz.0.70/4658 CPU: 1 PID: 4658 Comm: syz.0.70 Not tainted 6.1.141-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x88/0x220 mm/kasan/report.c:316 print_report+0x50/0x68 mm/kasan/report.c:427 kasan_report+0xa8/0x100 mm/kasan/report.c:531 __asan_report_load8_noabort+0x2c/0x38 mm/kasan/report_generic.c:351 hfsplus_bnode_read+0x9c/0x248 fs/hfsplus/bnode.c:32 hfsplus_bnode_dump+0x274/0x384 fs/hfsplus/bnode.c:-1 hfsplus_brec_remove+0x3cc/0x4a0 fs/hfsplus/brec.c:229 __hfsplus_delete_attr+0x198/0x33c fs/hfsplus/attributes.c:299 hfsplus_delete_attr+0x2ac/0x3f0 fs/hfsplus/attributes.c:345 __hfsplus_setxattr+0x2e8/0x1a30 fs/hfsplus/xattr.c:342 hfsplus_setxattr+0xdc/0x12c fs/hfsplus/xattr.c:434 hfsplus_trusted_setxattr+0x54/0x6c fs/hfsplus/xattr_trusted.c:30 __vfs_setxattr+0x388/0x3a4 fs/xattr.c:182 __vfs_setxattr_noperm+0x120/0x564 fs/xattr.c:216 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277 vfs_setxattr+0x158/0x2ac fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x228/0x28c fs/xattr.c:617 path_setxattr+0x12c/0x25c fs/xattr.c:636 __do_sys_setxattr fs/xattr.c:652 [inline] __se_sys_setxattr fs/xattr.c:648 [inline] __arm64_sys_setxattr+0xbc/0xd8 fs/xattr.c:648 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Allocated by task 4658: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:52 kasan_save_alloc_info+0x28/0x34 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xa0/0xb8 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc+0xec/0x178 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] kzalloc include/linux/slab.h:699 [inline] __hfs_bnode_create+0xe4/0x6cc fs/hfsplus/bnode.c:415 hfsplus_bnode_find+0x1f0/0xb78 fs/hfsplus/bnode.c:492 hfsplus_brec_find+0x128/0x448 fs/hfsplus/bfind.c:172 hfsplus_find_attr+0x1e0/0x32c fs/hfsplus/attributes.c:-1 hfsplus_attr_exists+0x150/0x1c4 fs/hfsplus/attributes.c:182 __hfsplus_setxattr+0x2b8/0x1a30 fs/hfsplus/xattr.c:336 hfsplus_setxattr+0xdc/0x12c fs/hfsplus/xattr.c:434 hfsplus_trusted_setxattr+0x54/0x6c fs/hfsplus/xattr_trusted.c:30 __vfs_setxattr+0x388/0x3a4 fs/xattr.c:182 __vfs_setxattr_noperm+0x120/0x564 fs/xattr.c:216 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277 vfs_setxattr+0x158/0x2ac fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x228/0x28c fs/xattr.c:617 path_setxattr+0x12c/0x25c fs/xattr.c:636 __do_sys_setxattr fs/xattr.c:652 [inline] __se_sys_setxattr fs/xattr.c:648 [inline] __arm64_sys_setxattr+0xbc/0xd8 fs/xattr.c:648 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Last potentially related work creation: kasan_save_stack+0x40/0x70 mm/kasan/common.c:45 __kasan_record_aux_stack+0xc0/0xdc mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:496 insert_work+0x64/0x37c kernel/workqueue.c:1361 __queue_work+0xcbc/0x123c kernel/workqueue.c:1520 queue_work_on+0xc0/0x16c kernel/workqueue.c:1548 queue_work include/linux/workqueue.h:512 [inline] netdevice_queue_work drivers/infiniband/core/roce_gid_mgmt.c:659 [inline] netdevice_event+0x704/0x7f8 drivers/infiniband/core/roce_gid_mgmt.c:802 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xd4/0x164 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:2001 [inline] call_netdevice_notifiers_extack net/core/dev.c:2039 [inline] call_netdevice_notifiers+0x10c/0x18c net/core/dev.c:2053 register_netdevice+0x1188/0x15cc net/core/dev.c:10225 virt_wifi_newlink+0x310/0x69c drivers/net/wireless/virt_wifi.c:567 rtnl_newlink_create net/core/rtnetlink.c:3422 [inline] __rtnl_newlink net/core/rtnetlink.c:3642 [inline] rtnl_newlink+0x102c/0x1a1c net/core/rtnetlink.c:3655 rtnetlink_rcv_msg+0x734/0xce4 net/core/rtnetlink.c:6153 netlink_rcv_skb+0x208/0x3c4 net/netlink/af_netlink.c:2493 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:6171 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline] netlink_unicast+0x600/0x818 net/netlink/af_netlink.c:1337 netlink_sendmsg+0x6e8/0x9b0 net/netlink/af_netlink.c:1859 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] __sys_sendto+0x304/0x3fc net/socket.c:2153 __do_sys_sendto net/socket.c:2165 [inline] __se_sys_sendto net/socket.c:2161 [inline] __arm64_sys_sendto+0xd8/0xf8 net/socket.c:2161 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Second to last potentially related work creation: kasan_save_stack+0x40/0x70 mm/kasan/common.c:45 __kasan_record_aux_stack+0xc0/0xdc mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:496 insert_work+0x64/0x37c kernel/workqueue.c:1361 __queue_work+0xcbc/0x123c kernel/workqueue.c:1520 queue_work_on+0xc0/0x16c kernel/workqueue.c:1548 queue_work include/linux/workqueue.h:512 [inline] call_usermodehelper_exec+0x22c/0x480 kernel/umh.c:437 kobject_uevent_env+0x650/0x868 lib/kobject_uevent.c:633 kobject_uevent+0x2c/0x3c lib/kobject_uevent.c:657 kset_register+0x14c/0x1ac lib/kobject.c:862 __class_register+0x218/0x3a4 drivers/base/class.c:188 iscsi_transport_init+0xf8/0x2f8 drivers/scsi/scsi_transport_iscsi.c:4983 do_one_initcall+0x24c/0x9cc init/main.c:1298 do_initcall_level+0x154/0x214 init/main.c:1371 do_initcalls+0x58/0xac init/main.c:1387 do_basic_setup+0x8c/0xa0 init/main.c:1406 kernel_init_freeable+0x35c/0x4f8 init/main.c:1626 kernel_init+0x24/0x1d8 init/main.c:1514 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864 The buggy address belongs to the object at ffff0000ce8fd800 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 224 bytes inside of 256-byte region [ffff0000ce8fd800, ffff0000ce8fd900) The buggy address belongs to the physical page: page:0000000095947e50 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10e8fc head:0000000095947e50 order:1 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 dead000000000100 dead000000000122 ffff0000c0002480 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000ce8fd780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000ce8fd800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000ce8fd880: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000ce8fd900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000ce8fd980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== Unable to handle kernel paging request at virtual address ffff7f40000091a7 KASAN: maybe wild-memory-access in range [0xfffffa0000048d38-0xfffffa0000048d3f] Mem abort info: ESR = 0x0000000096000005 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x05: level 1 translation fault Data abort info: ISV = 0, ISS = 0x00000005 CM = 0, WnR = 0 swapper pgtable: 4k pages, 48-bit VAs, pgdp=000000020e41a000 [ffff7f40000091a7] pgd=1000000233fac003, p4d=1000000233fac003, pud=0000000000000000 Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 4658 Comm: syz.0.70 Tainted: G B 6.1.141-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : bytes_is_nonzero mm/kasan/generic.c:85 [inline] pc : memory_is_nonzero mm/kasan/generic.c:102 [inline] pc : memory_is_poisoned_n mm/kasan/generic.c:128 [inline] pc : memory_is_poisoned mm/kasan/generic.c:159 [inline] pc : check_region_inline mm/kasan/generic.c:180 [inline] pc : kasan_check_range+0x64/0x2a0 mm/kasan/generic.c:189 lr : memcpy+0x48/0x90 mm/kasan/shadow.c:65 sp : ffff800020ac6e50 x29: ffff800020ac6e50 x28: 0000000000000002 x27: 0000000040000000 x26: 1ffff0000295206c x25: dfff800000000000 x24: 0000000000000d3c x23: 0000000000000002 x22: ffff800008f68cb4 x21: ffff800020ac6f40 x20: fffffa0000048d3a x19: 0000000000000002 x18: ffff800011a7bce0 x17: 1fffe00033ee2f76 x16: ffff800008042940 x15: 0000000000000000 x14: 00000000000000ff x13: 0000000000ff0100 x12: 0000000000000001 x11: 1fffff40000091a7 x10: 1fffff40000091a7 x9 : ffffffffffffffff x8 : ffff7f40000091a7 x7 : 0000000000000004 x6 : 00000000000000fd x5 : ffff800020ac6f62 x4 : ffff0000fdd537a2 x3 : ffff800008f68cb4 x2 : 0000000000000000 x1 : 0000000000000002 x0 : fffffa0000048d3a Call trace: bytes_is_nonzero mm/kasan/generic.c:84 [inline] memory_is_nonzero mm/kasan/generic.c:102 [inline] memory_is_poisoned_n mm/kasan/generic.c:128 [inline] memory_is_poisoned mm/kasan/generic.c:159 [inline] check_region_inline mm/kasan/generic.c:180 [inline] kasan_check_range+0x64/0x2a0 mm/kasan/generic.c:189 memcpy+0x48/0x90 mm/kasan/shadow.c:65 memcpy_from_page include/linux/highmem.h:393 [inline] hfsplus_bnode_read+0x124/0x248 fs/hfsplus/bnode.c:32 hfsplus_bnode_dump+0x274/0x384 fs/hfsplus/bnode.c:-1 hfsplus_brec_remove+0x3cc/0x4a0 fs/hfsplus/brec.c:229 __hfsplus_delete_attr+0x198/0x33c fs/hfsplus/attributes.c:299 hfsplus_delete_attr+0x2ac/0x3f0 fs/hfsplus/attributes.c:345 __hfsplus_setxattr+0x2e8/0x1a30 fs/hfsplus/xattr.c:342 hfsplus_setxattr+0xdc/0x12c fs/hfsplus/xattr.c:434 hfsplus_trusted_setxattr+0x54/0x6c fs/hfsplus/xattr_trusted.c:30 __vfs_setxattr+0x388/0x3a4 fs/xattr.c:182 __vfs_setxattr_noperm+0x120/0x564 fs/xattr.c:216 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277 vfs_setxattr+0x158/0x2ac fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x228/0x28c fs/xattr.c:617 path_setxattr+0x12c/0x25c fs/xattr.c:636 __do_sys_setxattr fs/xattr.c:652 [inline] __se_sys_setxattr fs/xattr.c:648 [inline] __arm64_sys_setxattr+0xbc/0xd8 fs/xattr.c:648 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Code: 5400014c b4000b8c aa2a03e9 8b0b0129 (3940010a) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: 5400014c b.gt 0x28 4: b4000b8c cbz x12, 0x174 8: aa2a03e9 mvn x9, x10 c: 8b0b0129 add x9, x9, x11 * 10: 3940010a ldrb w10, [x8] <-- trapping instruction