loop0: 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+0x84/0x21c fs/hfsplus/bnode.c:32 Read of size 8 at addr ffff0000cf3894c0 by task syz.0.16/4917 CPU: 0 PID: 4917 Comm: syz.0.16 Not tainted 5.15.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x78/0x30c mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xec/0x15c mm/kasan/report.c:451 __asan_report_load8_noabort+0x44/0x50 mm/kasan/report_generic.c:309 hfsplus_bnode_read+0x84/0x21c fs/hfsplus/bnode.c:32 hfsplus_bnode_dump+0x26c/0x37c fs/hfsplus/bnode.c:-1 hfsplus_brec_remove+0x3cc/0x4a0 fs/hfsplus/brec.c:229 __hfsplus_delete_attr+0x198/0x350 fs/hfsplus/attributes.c:299 hfsplus_delete_all_attrs+0x204/0x33c fs/hfsplus/attributes.c:378 hfsplus_delete_cat+0x844/0xbb0 fs/hfsplus/catalog.c:425 hfsplus_unlink+0x2a0/0x664 fs/hfsplus/dir.c:385 vfs_unlink+0x2e0/0x4f4 fs/namei.c:4280 do_unlinkat+0x31c/0x600 fs/namei.c:4348 __do_sys_unlinkat fs/namei.c:4391 [inline] __se_sys_unlinkat fs/namei.c:4384 [inline] __arm64_sys_unlinkat+0xe0/0xfc fs/namei.c:4384 __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+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Allocated by task 4917: 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 mm/kasan/common.c:513 [inline] __kasan_kmalloc+0xb0/0xf0 mm/kasan/common.c:522 kasan_kmalloc include/linux/kasan.h:264 [inline] __kmalloc+0x298/0x44c mm/slub.c:4407 kmalloc include/linux/slab.h:609 [inline] kzalloc include/linux/slab.h:735 [inline] __hfs_bnode_create+0xe4/0x84c fs/hfsplus/bnode.c:422 hfsplus_bnode_find+0x1f8/0xbcc fs/hfsplus/bnode.c:503 hfsplus_brec_find+0x128/0x448 fs/hfsplus/bfind.c:172 hfsplus_find_attr fs/hfsplus/attributes.c:160 [inline] hfsplus_delete_all_attrs+0x1e0/0x33c fs/hfsplus/attributes.c:371 hfsplus_delete_cat+0x844/0xbb0 fs/hfsplus/catalog.c:425 hfsplus_unlink+0x2a0/0x664 fs/hfsplus/dir.c:385 vfs_unlink+0x2e0/0x4f4 fs/namei.c:4280 do_unlinkat+0x31c/0x600 fs/namei.c:4348 __do_sys_unlinkat fs/namei.c:4391 [inline] __se_sys_unlinkat fs/namei.c:4384 [inline] __arm64_sys_unlinkat+0xe0/0xfc fs/namei.c:4384 __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+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/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+0xcc/0x114 mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:3011 [inline] call_rcu+0x114/0x8fc kernel/rcu/tree.c:3091 free_fib_info net/ipv4/fib_semantics.c:255 [inline] fib_info_put include/net/ip_fib.h:579 [inline] fib_release_info+0x554/0x694 net/ipv4/fib_semantics.c:281 fib_table_flush+0x314/0xe00 net/ipv4/fib_trie.c:2066 fib_flush net/ipv4/fib_frontend.c:194 [inline] fib_disable_ip+0xf8/0x174 net/ipv4/fib_frontend.c:1428 fib_netdev_event+0x2e8/0x4c8 net/ipv4/fib_frontend.c:-1 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xd4/0x164 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2049 [inline] call_netdevice_notifiers_extack net/core/dev.c:2061 [inline] call_netdevice_notifiers net/core/dev.c:2075 [inline] dev_close_many+0x2cc/0x440 net/core/dev.c:1650 unregister_netdevice_many+0x3d4/0x17d0 net/core/dev.c:11110 default_device_exit_batch+0x444/0x4a4 net/core/dev.c:11667 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x644/0xa98 net/core/net_namespace.c:635 process_one_work+0x79c/0x1140 kernel/workqueue.c:2310 worker_thread+0x8f4/0x101c kernel/workqueue.c:2457 kthread+0x374/0x454 kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:855 Second to last potentially related work creation: kasan_save_stack+0x38/0x68 mm/kasan/common.c:38 kasan_record_aux_stack+0xcc/0x114 mm/kasan/generic.c:348 insert_work+0x64/0x388 kernel/workqueue.c:1366 __queue_work+0xb30/0x1054 kernel/workqueue.c:1532 queue_work_on+0xc4/0x17c kernel/workqueue.c:1559 queue_work include/linux/workqueue.h:512 [inline] call_usermodehelper_exec+0x22c/0x478 kernel/umh.c:435 kobject_uevent_env+0x670/0x888 lib/kobject_uevent.c:633 kobject_uevent+0x2c/0x3c lib/kobject_uevent.c:657 driver_bound+0x150/0x268 drivers/base/dd.c:400 really_probe+0x6c8/0xaec drivers/base/dd.c:649 __driver_probe_device+0x180/0x314 drivers/base/dd.c:755 driver_probe_device+0x78/0x34c drivers/base/dd.c:785 __device_attach_driver+0x274/0x4c4 drivers/base/dd.c:907 bus_for_each_drv+0x150/0x1d8 drivers/base/bus.c:429 __device_attach+0x2a8/0x3d4 drivers/base/dd.c:979 device_initial_probe+0x24/0x34 drivers/base/dd.c:1028 bus_probe_device+0xbc/0x1c4 drivers/base/bus.c:489 device_add+0xb04/0xf94 drivers/base/core.c:3412 usb_new_device+0x7ec/0x1164 drivers/usb/core/hub.c:2604 register_root_hub+0x224/0x538 drivers/usb/core/hcd.c:1021 usb_add_hcd+0x90c/0xd5c drivers/usb/core/hcd.c:3001 vhci_hcd_probe+0x13c/0x358 drivers/usb/usbip/vhci_hcd.c:1365 platform_probe+0x13c/0x1b4 drivers/base/platform.c:1391 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x26c/0xaec drivers/base/dd.c:595 __driver_probe_device+0x180/0x314 drivers/base/dd.c:755 driver_probe_device+0x78/0x34c drivers/base/dd.c:785 __device_attach_driver+0x274/0x4c4 drivers/base/dd.c:907 bus_for_each_drv+0x150/0x1d8 drivers/base/bus.c:429 __device_attach+0x2a8/0x3d4 drivers/base/dd.c:979 device_initial_probe+0x24/0x34 drivers/base/dd.c:1028 bus_probe_device+0xbc/0x1c4 drivers/base/bus.c:489 device_add+0xb04/0xf94 drivers/base/core.c:3412 platform_device_add+0x3f8/0x6ec drivers/base/platform.c:712 vhci_hcd_init+0x380/0x49c drivers/usb/usbip/vhci_hcd.c:1549 do_one_initcall+0x228/0x8b0 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+0x404/0x5fc init/main.c:1615 kernel_init+0x24/0x1d0 init/main.c:1506 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:855 The buggy address belongs to the object at ffff0000cf389400 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 192 bytes inside of 256-byte region [ffff0000cf389400, ffff0000cf389500) The buggy address belongs to the page: page:000000008db4147e refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10f388 head:000000008db4147e order:1 compound_mapcount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 fffffc00033a1b00 0000000600000006 ffff0000c0002480 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000cf389380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000cf389400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000cf389480: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000cf389500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000cf389580: 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 ffff7ac0000099ff 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=00000002113bb000 [ffff7ac0000099ff] pgd=0000000000000000, p4d=0000000000000000 Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 4917 Comm: syz.0.16 Tainted: G B 5.15.189-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+0x74/0x2b0 mm/kasan/generic.c:189 lr : memcpy+0x90/0xe8 mm/kasan/shadow.c:65 sp : ffff80001f807470 x29: ffff80001f807470 x28: 1fffe00019e71283 x27: ffff80001f807540 x26: 0000000040000000 x25: 1ffff0000276bbf8 x24: dfff800000000000 x23: ffff8000167a8000 x22: ffff800008eaca8c x21: ffff80001f807560 x20: ffffd6000004cfff x19: 0000000000000001 x18: 0000000000000000 x17: 0000000000000000 x16: ffff800008eae884 x15: 00000000000000ff x14: 0000000000ff0100 x13: ffffffffffffffff x12: 0000000000000001 x11: 1ffffac0000099ff x10: 1ffffac0000099ff x9 : ffffffffffffffff x8 : ffff7ac0000099ff x7 : 0000000000000000 x6 : 00000000000000ff x5 : ffff80001f807582 x4 : ffff0000e907000c x3 : ffff800008eaca8c x2 : 0000000000000000 x1 : 0000000000000001 x0 : ffffd6000004cfff 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/0x2b0 mm/kasan/generic.c:189 memcpy+0x90/0xe8 mm/kasan/shadow.c:65 hfsplus_bnode_read+0x10c/0x21c fs/hfsplus/bnode.c:32 hfsplus_bnode_dump+0x26c/0x37c fs/hfsplus/bnode.c:-1 hfsplus_brec_remove+0x3cc/0x4a0 fs/hfsplus/brec.c:229 __hfsplus_delete_attr+0x198/0x350 fs/hfsplus/attributes.c:299 hfsplus_delete_all_attrs+0x204/0x33c fs/hfsplus/attributes.c:378 hfsplus_delete_cat+0x844/0xbb0 fs/hfsplus/catalog.c:425 hfsplus_unlink+0x2a0/0x664 fs/hfsplus/dir.c:385 vfs_unlink+0x2e0/0x4f4 fs/namei.c:4280 do_unlinkat+0x31c/0x600 fs/namei.c:4348 __do_sys_unlinkat fs/namei.c:4391 [inline] __se_sys_unlinkat fs/namei.c:4384 [inline] __arm64_sys_unlinkat+0xe0/0xfc fs/namei.c:4384 __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+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/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 187d75bdd784e8cc ]--- ---------------- 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