loop0: detected capacity change from 0 to 1024 hfsplus: request for non-existent node 65030 in B*Tree hfsplus: request for non-existent node 65030 in B*Tree ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_bnode_read+0x84/0x24c fs/hfsplus/bnode.c:32 Read of size 8 at addr ffff0000d17608c0 by task syz.0.15/4839 CPU: 0 PID: 4839 Comm: syz.0.15 Not tainted 5.15.179-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description+0x7c/0x3f0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x174/0x1e4 mm/kasan/report.c:451 __asan_report_load8_noabort+0x44/0x50 mm/kasan/report_generic.c:309 hfsplus_bnode_read+0x84/0x24c fs/hfsplus/bnode.c:32 hfsplus_bnode_dump+0x2c4/0x4cc hfsplus_brec_remove+0x3d0/0x4a4 fs/hfsplus/brec.c:229 __hfsplus_delete_attr+0x1e0/0x3ec fs/hfsplus/attributes.c:299 hfsplus_delete_all_attrs+0x214/0x348 fs/hfsplus/attributes.c:378 hfsplus_delete_cat+0x9a4/0xd6c fs/hfsplus/catalog.c:425 hfsplus_unlink+0x2c0/0x6a0 fs/hfsplus/dir.c:385 hfsplus_rename+0xd0/0x1b0 fs/hfsplus/dir.c:547 vfs_rename+0xac8/0xe04 fs/namei.c:4832 do_renameat2+0xa00/0x10c0 fs/namei.c:4985 __do_sys_renameat2 fs/namei.c:5018 [inline] __se_sys_renameat2 fs/namei.c:5015 [inline] __arm64_sys_renameat2+0xe0/0xfc fs/namei.c:5015 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Allocated by task 4839: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc+0xbc/0xfc mm/kasan/common.c:513 __kasan_kmalloc+0x10/0x1c mm/kasan/common.c:522 kasan_kmalloc include/linux/kasan.h:264 [inline] __kmalloc+0x29c/0x4c8 mm/slub.c:4407 kmalloc include/linux/slab.h:596 [inline] kzalloc include/linux/slab.h:721 [inline] __hfs_bnode_create+0xe4/0x864 fs/hfsplus/bnode.c:416 hfsplus_bnode_find+0x200/0xcb0 fs/hfsplus/bnode.c:497 hfsplus_brec_find+0x134/0x4a0 fs/hfsplus/bfind.c:172 hfsplus_find_attr fs/hfsplus/attributes.c:160 [inline] hfsplus_delete_all_attrs+0x1ec/0x348 fs/hfsplus/attributes.c:371 hfsplus_delete_cat+0x9a4/0xd6c fs/hfsplus/catalog.c:425 hfsplus_unlink+0x2c0/0x6a0 fs/hfsplus/dir.c:385 hfsplus_rename+0xd0/0x1b0 fs/hfsplus/dir.c:547 vfs_rename+0xac8/0xe04 fs/namei.c:4832 do_renameat2+0xa00/0x10c0 fs/namei.c:4985 __do_sys_renameat2 fs/namei.c:5018 [inline] __se_sys_renameat2 fs/namei.c:5015 [inline] __arm64_sys_renameat2+0xe0/0xfc fs/namei.c:5015 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Last potentially related work creation: kasan_save_stack+0x38/0x68 mm/kasan/common.c:38 kasan_record_aux_stack+0xd4/0x11c mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:3007 [inline] call_rcu+0x118/0xb40 kernel/rcu/tree.c:3087 free_fib_info+0x68/0xa8 net/ipv4/fib_semantics.c:255 fib_create_info+0x1488/0x1e1c net/ipv4/fib_semantics.c:1608 fib_table_insert+0x1bc/0x1550 net/ipv4/fib_trie.c:1231 fib_magic+0x300/0x4b8 net/ipv4/fib_frontend.c:1092 fib_add_ifaddr+0x118/0x4ec net/ipv4/fib_frontend.c:1114 fib_netdev_event+0x364/0x4d4 net/ipv4/fib_frontend.c:1474 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xd4/0x164 kernel/notifier.c:391 __dev_notify_flags+0x2b4/0x540 dev_change_flags+0xc8/0x154 net/core/dev.c:8928 do_setlink+0xac8/0x313c net/core/rtnetlink.c:2776 __rtnl_newlink net/core/rtnetlink.c:3447 [inline] rtnl_newlink+0x12a0/0x1ae8 net/core/rtnetlink.c:3569 rtnetlink_rcv_msg+0xa7c/0xdb4 net/core/rtnetlink.c:5647 netlink_rcv_skb+0x20c/0x3b8 net/netlink/af_netlink.c:2489 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:5665 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline] netlink_unicast+0x664/0x938 net/netlink/af_netlink.c:1337 netlink_sendmsg+0x844/0xb38 net/netlink/af_netlink.c:1905 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] __sys_sendto+0x388/0x4d0 net/socket.c:2063 __do_sys_sendto net/socket.c:2075 [inline] __se_sys_sendto net/socket.c:2071 [inline] __arm64_sys_sendto+0xd8/0xf8 net/socket.c:2071 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Second to last potentially related work creation: kasan_save_stack+0x38/0x68 mm/kasan/common.c:38 kasan_record_aux_stack+0xd4/0x11c mm/kasan/generic.c:348 insert_work+0x64/0x394 kernel/workqueue.c:1366 __queue_work+0xb84/0x114c kernel/workqueue.c:1532 queue_work_on+0xc4/0x17c kernel/workqueue.c:1559 queue_work include/linux/workqueue.h:512 [inline] call_usermodehelper_exec+0x238/0x484 kernel/umh.c:435 kobject_uevent_env+0x678/0x898 lib/kobject_uevent.c:633 kobject_uevent+0x2c/0x3c lib/kobject_uevent.c:657 driver_register+0x29c/0x374 drivers/base/driver.c:248 __hid_register_driver+0x10c/0x164 drivers/hid/hid-core.c:2578 pl_driver_init+0x28/0x34 drivers/hid/hid-pl.c:220 do_one_initcall+0x234/0x990 init/main.c:1302 do_initcall_level+0x154/0x214 init/main.c:1375 do_initcalls+0x58/0xac init/main.c:1391 do_basic_setup+0x8c/0xa0 init/main.c:1410 kernel_init_freeable+0x460/0x640 init/main.c:1615 kernel_init+0x24/0x294 init/main.c:1506 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 The buggy address belongs to the object at ffff0000d1760800 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 192 bytes inside of 256-byte region [ffff0000d1760800, ffff0000d1760900) The buggy address belongs to the page: page:00000000e0de8780 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x111760 head:00000000e0de8780 order:1 compound_mapcount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 dead000000000100 dead000000000122 ffff0000c0002480 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d1760780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000d1760800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000d1760880: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000d1760900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000d1760980: 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 ffff7b4000009937 Mem abort info: ESR = 0x0000000096000004 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x04: level 0 translation fault Data abort info: ISV = 0, ISS = 0x00000004 CM = 0, WnR = 0 swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000001ae199000 [ffff7b4000009937] pgd=0000000000000000, p4d=0000000000000000 Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 4839 Comm: syz.0.15 Tainted: G B 5.15.179-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/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+0x74/0x2b4 mm/kasan/generic.c:189 lr : memcpy+0x90/0xe8 mm/kasan/shadow.c:65 sp : ffff80001d267090 x29: ffff80001d267090 x28: 00000000000000ff x27: dfff800000000000 x26: ffff80001d2671c0 x25: 1ffff000028a7eb7 x24: 0000000000000001 x23: ffff8000171c8000 x22: ffff800008fc5f98 x21: ffff80001d2671a0 x20: ffffda000004c9bf x19: 0000000000000001 x18: 0000000000000000 x17: 0000000000000000 x16: ffff800011b5a2f4 x15: 00000000000000ff x14: ffff0000eb6a3680 x13: 0000000000ff0100 x12: 0000000000000001 x11: 1ffffb4000009937 x10: 1ffffb4000009937 x9 : ffffffffffffffff x8 : ffff7b4000009937 x7 : 0000000000000000 x6 : 00000000000000ff x5 : ffff80001d2671c2 x4 : ffff0000e46e400c x3 : ffff800008fc5f98 x2 : 0000000000000000 x1 : 0000000000000001 x0 : ffffda000004c9bf 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+0x74/0x2b4 mm/kasan/generic.c:189 memcpy+0x90/0xe8 mm/kasan/shadow.c:65 hfsplus_bnode_read+0x120/0x24c fs/hfsplus/bnode.c:32 hfsplus_bnode_dump+0x2c4/0x4cc hfsplus_brec_remove+0x3d0/0x4a4 fs/hfsplus/brec.c:229 __hfsplus_delete_attr+0x1e0/0x3ec fs/hfsplus/attributes.c:299 hfsplus_delete_all_attrs+0x214/0x348 fs/hfsplus/attributes.c:378 hfsplus_delete_cat+0x9a4/0xd6c fs/hfsplus/catalog.c:425 hfsplus_unlink+0x2c0/0x6a0 fs/hfsplus/dir.c:385 hfsplus_rename+0xd0/0x1b0 fs/hfsplus/dir.c:547 vfs_rename+0xac8/0xe04 fs/namei.c:4832 do_renameat2+0xa00/0x10c0 fs/namei.c:4985 __do_sys_renameat2 fs/namei.c:5018 [inline] __se_sys_renameat2 fs/namei.c:5015 [inline] __arm64_sys_renameat2+0xe0/0xfc fs/namei.c:5015 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: 5400014c b4000b8c aa2a03e9 8b0b0129 (3940010a) ---[ end trace e5589f169342c830 ]--- ---------------- 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