loop2: detected capacity change from 0 to 1024 ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy_from_page include/linux/highmem.h:423 [inline] BUG: KASAN: slab-out-of-bounds in hfsplus_bnode_read fs/hfsplus/bnode.c:32 [inline] BUG: KASAN: slab-out-of-bounds in hfsplus_bnode_read_key+0x3c4/0x664 fs/hfsplus/bnode.c:70 Write of size 4018 at addr ffff0000d75a2000 by task syz.2.101/6980 CPU: 1 UID: 0 PID: 6980 Comm: syz.2.101 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:484 (C) __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:377 [inline] print_report+0x198/0x538 mm/kasan/report.c:488 kasan_report+0xd8/0x138 mm/kasan/report.c:601 kasan_check_range+0x268/0x2a8 mm/kasan/generic.c:189 __asan_memcpy+0x54/0x84 mm/kasan/shadow.c:106 memcpy_from_page include/linux/highmem.h:423 [inline] hfsplus_bnode_read fs/hfsplus/bnode.c:32 [inline] hfsplus_bnode_read_key+0x3c4/0x664 fs/hfsplus/bnode.c:70 hfsplus_brec_insert+0x520/0xaa0 fs/hfsplus/brec.c:141 hfsplus_create_attr+0x3b0/0x568 fs/hfsplus/attributes.c:252 __hfsplus_setxattr+0x978/0x1cf4 fs/hfsplus/xattr.c:354 hfsplus_initxattrs+0x150/0x20c fs/hfsplus/xattr_security.c:59 security_inode_init_security+0x73c/0x908 security/security.c:1848 hfsplus_init_security+0x40/0x54 fs/hfsplus/xattr_security.c:71 hfsplus_fill_super+0x1010/0x166c fs/hfsplus/super.c:573 mount_bdev+0x1d4/0x2a0 fs/super.c:1693 hfsplus_mount+0x44/0x58 fs/hfsplus/super.c:647 legacy_get_tree+0xd4/0x16c fs/fs_context.c:662 vfs_get_tree+0x90/0x28c fs/super.c:1814 do_new_mount+0x278/0x900 fs/namespace.c:3507 path_mount+0x590/0xe04 fs/namespace.c:3834 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount fs/namespace.c:4034 [inline] __arm64_sys_mount+0x4d4/0x5ac fs/namespace.c:4034 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 Allocated by task 6980: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:68 kasan_save_alloc_info+0x40/0x50 mm/kasan/generic.c:565 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0xac/0xc4 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:257 [inline] __do_kmalloc_node mm/slub.c:4264 [inline] __kmalloc_noprof+0x2a4/0x49c mm/slub.c:4276 kmalloc_noprof include/linux/slab.h:882 [inline] hfsplus_find_init+0x84/0x1bc fs/hfsplus/bfind.c:21 hfsplus_create_attr+0x14c/0x568 fs/hfsplus/attributes.c:216 __hfsplus_setxattr+0x978/0x1cf4 fs/hfsplus/xattr.c:354 hfsplus_initxattrs+0x150/0x20c fs/hfsplus/xattr_security.c:59 security_inode_init_security+0x73c/0x908 security/security.c:1848 hfsplus_init_security+0x40/0x54 fs/hfsplus/xattr_security.c:71 hfsplus_fill_super+0x1010/0x166c fs/hfsplus/super.c:573 mount_bdev+0x1d4/0x2a0 fs/super.c:1693 hfsplus_mount+0x44/0x58 fs/hfsplus/super.c:647 legacy_get_tree+0xd4/0x16c fs/fs_context.c:662 vfs_get_tree+0x90/0x28c fs/super.c:1814 do_new_mount+0x278/0x900 fs/namespace.c:3507 path_mount+0x590/0xe04 fs/namespace.c:3834 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount fs/namespace.c:4034 [inline] __arm64_sys_mount+0x4d4/0x5ac fs/namespace.c:4034 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 The buggy address belongs to the object at ffff0000d75a2000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 0 bytes inside of allocated 536-byte region [ffff0000d75a2000, ffff0000d75a2218) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1175a0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0x5ffc00000000040(head|node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000040 ffff0000c0001dc0 0000000000000000 dead000000000001 raw: 0000000000000000 0000000080100010 00000001f5000000 0000000000000000 head: 05ffc00000000040 ffff0000c0001dc0 0000000000000000 dead000000000001 head: 0000000000000000 0000000080100010 00000001f5000000 0000000000000000 head: 05ffc00000000003 fffffdffc35d6801 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d75a2100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000d75a2180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000d75a2200: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000d75a2280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000d75a2300: 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 ffff700200000000 KASAN: probably wild-memory-access in range [0xffff801000000000-0xffff801000000007] 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, ISS2 = 0x00000000 CM = 0, WnR = 0, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0 swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000001a57d1000 [ffff700200000000] pgd=0000000000000000, p4d=000000023e887003, pud=0000000000000000 Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP Modules linked in: CPU: 1 UID: 0 PID: 6980 Comm: syz.2.101 Tainted: G B 6.12.0-syzkaller-g7b1d1d4cfac0 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 20400005 (nzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : memory_is_nonzero mm/kasan/generic.c:116 [inline] pc : memory_is_poisoned_n mm/kasan/generic.c:129 [inline] pc : memory_is_poisoned mm/kasan/generic.c:161 [inline] pc : check_region_inline mm/kasan/generic.c:180 [inline] pc : kasan_check_range+0x194/0x2a8 mm/kasan/generic.c:189 lr : __asan_memcpy+0x3c/0x84 mm/kasan/shadow.c:105 sp : ffff8000a16d6b20 x29: ffff8000a16d6b20 x28: 0000000000000000 x27: fff1000040000000 x26: ffff0000d506d698 x25: 0000000000001000 x24: 1ffff00011e40df8 x23: 0000000000001000 x22: ffff80008122c010 x21: ffff0000d75a3fb2 x20: ffff801000000000 x19: 0000000000001000 x18: 1fffe000366c8076 x17: ffff80008f8cd000 x16: ffff80008b47f65c x15: 0000000000000200 x14: 0000000000000040 x13: ffff700200000200 x12: ffff700200000200 x11: ffff700200000000 x10: 1ffff002000001ff x9 : dfff800000000000 x8 : ffff801000000fff x7 : 0000000000000000 x6 : 0000000000000000 x5 : ffff0000d75a3fb2 x4 : ffff0000f393d000 x3 : ffff80008122c010 x2 : 0000000000000000 x1 : 0000000000001000 x0 : ffff801000000000 Call trace: memory_is_nonzero mm/kasan/generic.c:115 [inline] (P) memory_is_poisoned_n mm/kasan/generic.c:129 [inline] (P) memory_is_poisoned mm/kasan/generic.c:161 [inline] (P) check_region_inline mm/kasan/generic.c:180 [inline] (P) kasan_check_range+0x194/0x2a8 mm/kasan/generic.c:189 (P) __asan_memcpy+0x3c/0x84 mm/kasan/shadow.c:105 (L) __asan_memcpy+0x3c/0x84 mm/kasan/shadow.c:105 memcpy_from_page include/linux/highmem.h:423 [inline] hfsplus_bnode_read fs/hfsplus/bnode.c:37 [inline] hfsplus_bnode_read_key+0x494/0x664 fs/hfsplus/bnode.c:70 hfsplus_brec_insert+0x520/0xaa0 fs/hfsplus/brec.c:141 hfsplus_create_attr+0x3b0/0x568 fs/hfsplus/attributes.c:252 __hfsplus_setxattr+0x978/0x1cf4 fs/hfsplus/xattr.c:354 hfsplus_initxattrs+0x150/0x20c fs/hfsplus/xattr_security.c:59 security_inode_init_security+0x73c/0x908 security/security.c:1848 hfsplus_init_security+0x40/0x54 fs/hfsplus/xattr_security.c:71 hfsplus_fill_super+0x1010/0x166c fs/hfsplus/super.c:573 mount_bdev+0x1d4/0x2a0 fs/super.c:1693 hfsplus_mount+0x44/0x58 fs/hfsplus/super.c:647 legacy_get_tree+0xd4/0x16c fs/fs_context.c:662 vfs_get_tree+0x90/0x28c fs/super.c:1814 do_new_mount+0x278/0x900 fs/namespace.c:3507 path_mount+0x590/0xe04 fs/namespace.c:3834 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount fs/namespace.c:4034 [inline] __arm64_sys_mount+0x4d4/0x5ac fs/namespace.c:4034 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 Code: 8b0e0dad 927d7dad 8b0b01ad 910021ad (f940016f) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: 8b0e0dad add x13, x13, x14, lsl #3 4: 927d7dad and x13, x13, #0x7fffffff8 8: 8b0b01ad add x13, x13, x11 c: 910021ad add x13, x13, #0x8 * 10: f940016f ldr x15, [x11] <-- trapping instruction