loop2: detected capacity change from 0 to 1024 hfsplus: request for non-existent node 211 in B*Tree hfsplus: request for non-existent node 211 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 ffff0000dcc0c2e0 by task syz.2.180/5053 CPU: 0 PID: 5053 Comm: syz.2.180 Not tainted 5.15.186-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_attr+0x2ac/0x3f0 fs/hfsplus/attributes.c:345 __hfsplus_setxattr+0x2e8/0x1a9c fs/hfsplus/xattr.c:342 hfsplus_setxattr+0xb4/0xec 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:303 do_setxattr fs/xattr.c:588 [inline] setxattr+0x248/0x2ac fs/xattr.c:611 path_setxattr+0x12c/0x25c fs/xattr.c:630 __do_sys_setxattr fs/xattr.c:646 [inline] __se_sys_setxattr fs/xattr.c:642 [inline] __arm64_sys_setxattr+0xbc/0xd8 fs/xattr.c:642 __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 5053: 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+0x1e0/0x32c fs/hfsplus/attributes.c:-1 hfsplus_attr_exists+0x150/0x1c4 fs/hfsplus/attributes.c:182 __hfsplus_setxattr+0x2b8/0x1a9c fs/hfsplus/xattr.c:336 hfsplus_setxattr+0xb4/0xec 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:303 do_setxattr fs/xattr.c:588 [inline] setxattr+0x248/0x2ac fs/xattr.c:611 path_setxattr+0x12c/0x25c fs/xattr.c:630 __do_sys_setxattr fs/xattr.c:646 [inline] __se_sys_setxattr fs/xattr.c:642 [inline] __arm64_sys_setxattr+0xbc/0xd8 fs/xattr.c:642 __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 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] xlog_cil_push_now fs/xfs/xfs_log_cil.c:1218 [inline] xlog_cil_force_seq+0x344/0x928 fs/xfs/xfs_log_cil.c:1348 xfs_log_force_seq+0x2d8/0x7c0 fs/xfs/xfs_log.c:3444 __xfs_trans_commit+0x784/0xcd4 fs/xfs/xfs_trans.c:890 xfs_trans_commit+0x24/0x34 fs/xfs/xfs_trans.c:925 xfs_sync_sb+0xf4/0x15c fs/xfs/libxfs/xfs_sb.c:998 xfs_log_cover fs/xfs/xfs_log.c:1218 [inline] xfs_log_quiesce+0x410/0x674 fs/xfs/xfs_log.c:1035 xfs_log_clean+0xa8/0x804 fs/xfs/xfs_log.c:1042 xfs_log_unmount+0x2c/0xb0 fs/xfs/xfs_log.c:1057 xfs_unmountfs+0x110/0x1a8 fs/xfs/xfs_mount.c:1040 xfs_fs_put_super+0x70/0x250 fs/xfs/xfs_super.c:1095 generic_shutdown_super+0x130/0x2f0 fs/super.c:475 kill_block_super+0x70/0xdc fs/super.c:1427 deactivate_locked_super+0xb8/0x13c fs/super.c:335 deactivate_super+0xf8/0x118 fs/super.c:366 cleanup_mnt+0x3a4/0x458 fs/namespace.c:1139 __cleanup_mnt+0x20/0x30 fs/namespace.c:1146 task_work_run+0x12c/0x1e0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] do_notify_resume+0x24b4/0x3128 arch/arm64/kernel/signal.c:949 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_svc+0xf0/0x1e0 arch/arm64/kernel/entry-common.c:609 el0t_64_sync_handler+0xcc/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+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] loop_queue_work drivers/block/loop.c:1068 [inline] loop_queue_rq+0x97c/0xac0 drivers/block/loop.c:2202 __blk_mq_issue_directly block/blk-mq.c:2014 [inline] __blk_mq_try_issue_directly+0x3e8/0x69c block/blk-mq.c:2070 blk_mq_try_issue_directly+0xb8/0x270 block/blk-mq.c:2101 blk_mq_submit_bio+0xcf8/0x1698 block/blk-mq.c:-1 __submit_bio+0x5ec/0x624 block/blk-core.c:917 __submit_bio_noacct_mq block/blk-core.c:997 [inline] submit_bio_noacct+0x52c/0x624 block/blk-core.c:1027 submit_bio+0x374/0x5e0 block/blk-core.c:1089 lbmStartIO+0x2c8/0x434 fs/jfs/jfs_logmgr.c:2144 lbmDirectWrite fs/jfs/jfs_logmgr.c:2108 [inline] lmLogShutdown+0x2d8/0x700 fs/jfs/jfs_logmgr.c:1682 lmLogClose+0x244/0x4c8 fs/jfs/jfs_logmgr.c:1468 jfs_umount+0x244/0x328 fs/jfs/jfs_umount.c:116 jfs_put_super+0x90/0x188 fs/jfs/super.c:194 generic_shutdown_super+0x130/0x2f0 fs/super.c:475 kill_block_super+0x70/0xdc fs/super.c:1427 deactivate_locked_super+0xb8/0x13c fs/super.c:335 deactivate_super+0xf8/0x118 fs/super.c:366 cleanup_mnt+0x3a4/0x458 fs/namespace.c:1139 __cleanup_mnt+0x20/0x30 fs/namespace.c:1146 task_work_run+0x12c/0x1e0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] do_notify_resume+0x24b4/0x3128 arch/arm64/kernel/signal.c:949 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_svc+0xf0/0x1e0 arch/arm64/kernel/entry-common.c:609 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 The buggy address belongs to the object at ffff0000dcc0c200 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 224 bytes inside of 256-byte region [ffff0000dcc0c200, ffff0000dcc0c300) The buggy address belongs to the page: page:00000000880d6ecc refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff0000dcc0d600 pfn:0x11cc0c head:00000000880d6ecc order:1 compound_mapcount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 fffffc0003397100 0000000800000008 ffff0000c0002480 raw: ffff0000dcc0d600 000000008010000d 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000dcc0c180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000dcc0c200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000dcc0c280: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000dcc0c300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000dcc0c380: 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 ffff7ef800009dff 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=00000002113cd000 [ffff7ef800009dff] pgd=0000000000000000, p4d=0000000000000000 Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 5053 Comm: syz.2.180 Tainted: G B 5.15.186-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 : ffff80001f846e30 x29: ffff80001f846e30 x28: 1fffe0001b981843 x27: ffff80001f846f00 x26: 0000000040000000 x25: 1ffff0000276e008 x24: dfff800000000000 x23: ffff8000167b9000 x22: ffff800008ebe0b0 x21: ffff80001f846f20 x20: fffff7c00004efff x19: 0000000000000001 x18: 0000000000000000 x17: 0000000000000000 x16: ffff800008ebfea8 x15: 00000000000000ff x14: 0000000000ff0100 x13: ffffffffffffffff x12: 0000000000000001 x11: 1ffffef800009dff x10: 1ffffef800009dff x9 : ffffffffffffffff x8 : ffff7ef800009dff x7 : 0000000000000000 x6 : 00000000000000ff x5 : ffff80001f846f42 x4 : ffff0000f3a5400c x3 : ffff800008ebe0b0 x2 : 0000000000000000 x1 : 0000000000000001 x0 : fffff7c00004efff 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_attr+0x2ac/0x3f0 fs/hfsplus/attributes.c:345 __hfsplus_setxattr+0x2e8/0x1a9c fs/hfsplus/xattr.c:342 hfsplus_setxattr+0xb4/0xec 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:303 do_setxattr fs/xattr.c:588 [inline] setxattr+0x248/0x2ac fs/xattr.c:611 path_setxattr+0x12c/0x25c fs/xattr.c:630 __do_sys_setxattr fs/xattr.c:646 [inline] __se_sys_setxattr fs/xattr.c:642 [inline] __arm64_sys_setxattr+0xbc/0xd8 fs/xattr.c:642 __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 cecd597081b3df3e ]--- ---------------- 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