================================================================== BUG: KASAN: out-of-bounds in udf_write_fi+0x3e4/0x9c0 Write of size 18446744073709551572 at addr ffff00013e3d582c by task syz-executor.5/7951 CPU: 1 PID: 7951 Comm: syz-executor.5 Not tainted 5.15.118-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 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 kasan_check_range+0x274/0x2b4 mm/kasan/generic.c:189 memset+0x58/0x88 mm/kasan/shadow.c:44 udf_write_fi+0x3e4/0x9c0 udf_delete_entry fs/udf/namei.c:577 [inline] udf_rename+0x90c/0x10b0 fs/udf/namei.c:1173 vfs_rename+0x9e0/0xe80 fs/namei.c:4736 do_renameat2+0x980/0x1040 fs/namei.c:4887 __do_sys_renameat2 fs/namei.c:4920 [inline] __se_sys_renameat2 fs/namei.c:4917 [inline] __arm64_sys_renameat2+0xe0/0xfc fs/namei.c:4917 __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:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 The buggy address belongs to the page: page:00000000e6dc1c8c refcount:2 mapcount:0 mapping:00000000aa72ed55 index:0xf pfn:0x17e3d5 memcg:ffff0000d4ef4000 aops:def_blk_aops ino:700005 flags: 0x5ffc0000002203e(referenced|uptodate|dirty|lru|active|private|mappedtodisk|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc0000002203e fffffc0004f45748 fffffc0004f8ed08 ffff0000c5079488 raw: 000000000000000f ffff0000dc2dbbc8 00000002ffffffff ffff0000d4ef4000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff00013e3d5700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff00013e3d5780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff00013e3d5800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff00013e3d5880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff00013e3d5900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== Unable to handle kernel paging request at virtual address dfff800000000003 Mem abort info: ESR = 0x0000000096000006 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x06: level 2 translation fault Data abort info: ISV = 0, ISS = 0x00000006 CM = 0, WnR = 0 [dfff800000000003] address between user and kernel address ranges Internal error: Oops: 96000006 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 7951 Comm: syz-executor.5 Tainted: G B 5.15.118-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : crc_itu_t+0x5c/0x108 lib/crc-itu-t.c:60 lr : crc_itu_t+0x38/0x108 lib/crc-itu-t.c:59 sp : ffff800026cd7500 x29: ffff800026cd7510 x28: ffff0000dc2db570 x27: 00000000fffffff0 x26: ffff800026cd76c8 x25: 1ffff00004d9aed9 x24: ffff800011f52740 x23: 000000000000ffd9 x22: dfff800000000000 x21: 000000000000001a x20: 000000000000001a x19: 0000000057313472 x18: 1fffe0003690338e x17: 1fffe0003690338e x16: ffff8000119537ec x15: ffff80001498f100 x14: ffff0001b4819c80 x13: ffffffffffffffff x12: 0000000000000000 x11: ff8080000a9ad33c x10: 0000000000000002 x9 : 0000000000000002 x8 : 0000000000000003 x7 : 0000000000000000 x6 : ffff800008268c6c x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff80000819b8b0 x2 : 000000000000ffda x1 : 000000000000ffda x0 : 0000000000000000 Call trace: crc_itu_t+0x5c/0x108 lib/crc-itu-t.c:60 udf_write_fi+0x540/0x9c0 udf_delete_entry fs/udf/namei.c:577 [inline] udf_rename+0x90c/0x10b0 fs/udf/namei.c:1173 vfs_rename+0x9e0/0xe80 fs/namei.c:4736 do_renameat2+0x980/0x1040 fs/namei.c:4887 __do_sys_renameat2 fs/namei.c:4920 [inline] __se_sys_renameat2 fs/namei.c:4917 [inline] __arm64_sys_renameat2+0xe0/0xfc fs/namei.c:4917 __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:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: b003ad38 911d0318 d343fea8 12000aa9 (38f66908) ---[ end trace 087838cd5182ed2a ]--- ---------------- Code disassembly (best guess): 0: b003ad38 adrp x24, 0x75a5000 4: 911d0318 add x24, x24, #0x740 8: d343fea8 lsr x8, x21, #3 c: 12000aa9 and w9, w21, #0x7 * 10: 38f66908 ldrsb w8, [x8, x22] <-- trapping instruction