EXT4-fs (loop1): mounted filesystem without journal. Quota mode: none. ================================================================== BUG: KASAN: slab-out-of-bounds in ext4_xattr_set_entry+0xfbc/0x15a0 fs/ext4/xattr.c:1686 Read of size 10348 at addr ffff0000de139c00 by task syz.1.1553/8491 CPU: 0 PID: 8491 Comm: syz.1.1553 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 Call trace: dump_backtrace+0x1c0/0x1ec 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+0xf4/0x15c lib/dump_stack.c:106 print_address_description+0x88/0x218 mm/kasan/report.c:316 print_report+0x50/0x68 mm/kasan/report.c:420 kasan_report+0xa8/0xfc mm/kasan/report.c:524 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x258/0x290 mm/kasan/generic.c:189 memmove+0x48/0x90 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0xfbc/0x15a0 fs/ext4/xattr.c:1686 ext4_xattr_block_set+0x640/0x2880 fs/ext4/xattr.c:1976 ext4_xattr_set_handle+0xc68/0x1344 fs/ext4/xattr.c:2398 ext4_xattr_set+0x1f4/0x2c0 fs/ext4/xattr.c:2500 ext4_xattr_trusted_set+0x4c/0x64 fs/ext4/xattr_trusted.c:38 __vfs_setxattr+0x384/0x3a0 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+0x258/0x2d8 fs/xattr.c:617 path_setxattr+0x130/0x260 fs/xattr.c:636 __do_sys_lsetxattr fs/xattr.c:659 [inline] __se_sys_lsetxattr fs/xattr.c:655 [inline] __arm64_sys_lsetxattr+0xbc/0xd8 fs/xattr.c:655 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b4 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x130 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 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 8491: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:53 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0xa0/0xb8 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc_node_track_caller+0xe0/0x16c mm/slab_common.c:956 kmemdup+0x5c/0x98 mm/util.c:129 kmemdup include/linux/fortify-string.h:585 [inline] ext4_xattr_block_set+0x574/0x2880 fs/ext4/xattr.c:1924 ext4_xattr_set_handle+0xc68/0x1344 fs/ext4/xattr.c:2398 ext4_xattr_set+0x1f4/0x2c0 fs/ext4/xattr.c:2500 ext4_xattr_trusted_set+0x4c/0x64 fs/ext4/xattr_trusted.c:38 __vfs_setxattr+0x384/0x3a0 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+0x258/0x2d8 fs/xattr.c:617 path_setxattr+0x130/0x260 fs/xattr.c:636 __do_sys_lsetxattr fs/xattr.c:659 [inline] __se_sys_lsetxattr fs/xattr.c:655 [inline] __arm64_sys_lsetxattr+0xbc/0xd8 fs/xattr.c:655 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b4 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x130 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 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 The buggy address belongs to the object at ffff0000de139800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 0 bytes to the right of 1024-byte region [ffff0000de139800, ffff0000de139c00) The buggy address belongs to the physical page: page:0000000011f61646 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11e138 head:0000000011f61646 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 fffffc0003d12200 dead000000000002 ffff0000c0002780 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000de139b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000de139b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000de139c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000de139c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000de139d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== Unable to handle kernel write to read-only memory at virtual address ffff0000de208000 KASAN: maybe wild-memory-access in range [0xfffc0006f1040000-0xfffc0006f1040007] Mem abort info: ESR = 0x000000009600004f EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x0f: level 3 permission fault Data abort info: ISV = 0, ISS = 0x0000004f CM = 0, WnR = 1 swapper pgtable: 4k pages, 48-bit VAs, pgdp=000000020dfa8000 [ffff0000de208000] pgd=180000023fff8003, p4d=180000023fff8003, pud=180000023f414003, pmd=180000023f322003, pte=006000011e208787 Internal error: Oops: 000000009600004f [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 8491 Comm: syz.1.1553 Tainted: G B syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 pstate: 22400005 (nzCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) pc : __memset+0x16c/0x188 arch/arm64/lib/memset.S:197 lr : memset+0x54/0x70 mm/kasan/shadow.c:47 sp : ffff800021b67220 x29: ffff800021b67220 x28: 0000000000000001 x27: ffff800021b67458 x26: dfff800000000000 x25: 0000000000000001 x24: ffff0000de139840 x23: 0000000000002c6c x22: 1fffe0001bc27308 x21: ffff0000de139c00 x20: 0000000000000000 x19: 0000000020000440 x18: ffff800011b7bf60 x17: 0000000000000000 x16: ffff800008042fdc x15: 0000000000000002 x14: ffff60001bc27380 x13: 0000000000800011 x12: ffff60001fc27408 x11: ffff60001fc27408 x10: dfff800000000000 x9 : 0000000000000000 x8 : ffff0000de208000 x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : 0000000000000000 x3 : 0000000000000004 x2 : 000000001ff32000 x1 : 0000000000000000 x0 : ffff0000de139c00 Call trace: __memset+0x16c/0x188 arch/arm64/lib/memset.S:195 ext4_xattr_set_entry+0xfcc/0x15a0 fs/ext4/xattr.c:1687 ext4_xattr_block_set+0x640/0x2880 fs/ext4/xattr.c:1976 ext4_xattr_set_handle+0xc68/0x1344 fs/ext4/xattr.c:2398 ext4_xattr_set+0x1f4/0x2c0 fs/ext4/xattr.c:2500 ext4_xattr_trusted_set+0x4c/0x64 fs/ext4/xattr_trusted.c:38 __vfs_setxattr+0x384/0x3a0 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+0x258/0x2d8 fs/xattr.c:617 path_setxattr+0x130/0x260 fs/xattr.c:636 __do_sys_lsetxattr fs/xattr.c:659 [inline] __se_sys_lsetxattr fs/xattr.c:655 [inline] __arm64_sys_lsetxattr+0xbc/0xd8 fs/xattr.c:655 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b4 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x130 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x128 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: 91010108 54ffff4a 8b040108 cb050042 (d50b7428) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: 91010108 add x8, x8, #0x40 4: 54ffff4a b.ge 0xffffffffffffffec // b.tcont 8: 8b040108 add x8, x8, x4 c: cb050042 sub x2, x2, x5 * 10: d50b7428 dc zva, x8 <-- trapping instruction