loop1: detected capacity change from 0 to 2048 UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027] CPU: 0 PID: 20948 Comm: syz-executor.1 Not tainted 6.2.0-rc4-syzkaller-00031-g6e50979a9c87 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 RIP: 0010:crc_itu_t+0x107/0x2b0 lib/crc-itu-t.c:60 Code: 00 00 00 fc ff df b8 02 00 00 00 48 29 d8 48 89 44 24 08 48 8b 14 24 49 89 d7 66 0f 1f 84 00 00 00 00 00 4c 89 f8 48 c1 e8 03 <0f> b6 04 30 84 c0 0f 85 b1 00 00 00 42 0f b6 44 2a ff 41 0f b7 ce RSP: 0018:ffffc9000567f7b0 EFLAGS: 00010203 RAX: 0000000000000004 RBX: 0000000000000096 RCX: 0000000000000002 RDX: 0000000000000026 RSI: dffffc0000000000 RDI: 0000000000000001 RBP: 00000000000000bc R08: ffffffff8443ca89 R09: ffff888081134c03 R10: ffffed1010226981 R11: 1ffff11010226980 R12: 0000000000000096 R13: 0000000000000001 R14: 000000000000a489 R15: 0000000000000026 FS: 00007fdcd59fb700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c027cc3000 CR3: 000000002a281000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: udf_write_fi+0x5c7/0xc10 fs/udf/namei.c:113 udf_delete_entry fs/udf/namei.c:577 [inline] udf_rename+0x8e2/0x1450 fs/udf/namei.c:1173 vfs_rename+0xd53/0x1130 fs/namei.c:4779 do_renameat2+0xaad/0x12d0 fs/namei.c:4930 __do_sys_rename fs/namei.c:4976 [inline] __se_sys_rename fs/namei.c:4974 [inline] __x64_sys_rename+0x82/0x90 fs/namei.c:4974 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fdcd4c8c0c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fdcd59fb168 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007fdcd4dabf80 RCX: 00007fdcd4c8c0c9 RDX: 0000000000000000 RSI: 0000000020000380 RDI: 0000000020000340 RBP: 00007fdcd4ce7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff7e62c3cf R14: 00007fdcd59fb300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:crc_itu_t+0x107/0x2b0 lib/crc-itu-t.c:60 Code: 00 00 00 fc ff df b8 02 00 00 00 48 29 d8 48 89 44 24 08 48 8b 14 24 49 89 d7 66 0f 1f 84 00 00 00 00 00 4c 89 f8 48 c1 e8 03 <0f> b6 04 30 84 c0 0f 85 b1 00 00 00 42 0f b6 44 2a ff 41 0f b7 ce RSP: 0018:ffffc9000567f7b0 EFLAGS: 00010203 RAX: 0000000000000004 RBX: 0000000000000096 RCX: 0000000000000002 RDX: 0000000000000026 RSI: dffffc0000000000 RDI: 0000000000000001 RBP: 00000000000000bc R08: ffffffff8443ca89 R09: ffff888081134c03 R10: ffffed1010226981 R11: 1ffff11010226980 R12: 0000000000000096 R13: 0000000000000001 R14: 000000000000a489 R15: 0000000000000026 FS: 00007fdcd59fb700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5ceabad988 CR3: 000000002a281000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 5 bytes skipped: 0: df b8 02 00 00 00 fistpll 0x2(%rax) 6: 48 29 d8 sub %rbx,%rax 9: 48 89 44 24 08 mov %rax,0x8(%rsp) e: 48 8b 14 24 mov (%rsp),%rdx 12: 49 89 d7 mov %rdx,%r15 15: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1) 1c: 00 00 1e: 4c 89 f8 mov %r15,%rax 21: 48 c1 e8 03 shr $0x3,%rax * 25: 0f b6 04 30 movzbl (%rax,%rsi,1),%eax <-- trapping instruction 29: 84 c0 test %al,%al 2b: 0f 85 b1 00 00 00 jne 0xe2 31: 42 0f b6 44 2a ff movzbl -0x1(%rdx,%r13,1),%eax 37: 41 0f b7 ce movzwl %r14w,%ecx