[syzbot] [udf?] BUG: unable to handle kernel paging request in udf_add_fid_counter

From: syzbot
Date: Mon Apr 24 2023 - 03:22:33 EST


Hello,

syzbot found the following issue on:

HEAD commit: 2caeeb9d4a1b Merge tag 'for-linus' of git://git.kernel.org..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=108f06bfc80000
kernel config: https://syzkaller.appspot.com/x/.config?x=4afb87f3ec27b7fd
dashboard link: https://syzkaller.appspot.com/bug?extid=363633e9b96ffd442134
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/187205513d6f/disk-2caeeb9d.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ae84a1e0cbd0/vmlinux-2caeeb9d.xz
kernel image: https://storage.googleapis.com/syzbot-assets/0f0ff6d2e1aa/bzImage-2caeeb9d.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+363633e9b96ffd442134@xxxxxxxxxxxxxxxxxxxxxxxxx

BUG: unable to handle page fault for address: ffffed101931e9e3
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 23ffee067 P4D 23ffee067 PUD 13fff5067 PMD 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 10059 Comm: syz-executor.4 Not tainted 6.3.0-rc7-syzkaller-00189-g2caeeb9d4a1b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:udf_add_fid_counter+0x87/0x230
Code: f6 e8 bd ac aa 07 48 8d 45 20 48 89 ef 48 83 c7 24 41 0f b6 cf 4c 8d 3c 8d 20 00 00 00 84 c9 48 0f 44 f8 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 1d 01 00 00 46 01 74 3d 00 43 80 7c 25
RSP: 0018:ffffc900162ef668 EFLAGS: 00010a02
RAX: 1ffff1101931e9e3 RBX: ffff88807d746678 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8b37fee0 RDI: ffff8880c98f4f18
RBP: ffff8880c98f4ef8 R08: dffffc0000000000 R09: fffffbfff1ca6956
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff1100fae8ccf R14: 00000000ffffffff R15: 0000000000000020
FS: 00007f03eb900700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed101931e9e3 CR3: 00000000280e6000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
udf_rename+0xb15/0xf30 fs/udf/namei.c:877
vfs_rename+0xb1b/0xfa0 fs/namei.c:4772
do_renameat2+0xb9b/0x13c0 fs/namei.c:4923
__do_sys_rename fs/namei.c:4969 [inline]
__se_sys_rename fs/namei.c:4967 [inline]
__x64_sys_rename+0x86/0x90 fs/namei.c:4967
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f03eac8c169
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:00007f03eb900168 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007f03eadabf80 RCX: 00007f03eac8c169
RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000020000440
RBP: 00007f03eace7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd909bf24f R14: 00007f03eb900300 R15: 0000000000022000
</TASK>
Modules linked in:
CR2: ffffed101931e9e3
---[ end trace 0000000000000000 ]---
RIP: 0010:udf_add_fid_counter+0x87/0x230
Code: f6 e8 bd ac aa 07 48 8d 45 20 48 89 ef 48 83 c7 24 41 0f b6 cf 4c 8d 3c 8d 20 00 00 00 84 c9 48 0f 44 f8 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 1d 01 00 00 46 01 74 3d 00 43 80 7c 25
RSP: 0018:ffffc900162ef668 EFLAGS: 00010a02
RAX: 1ffff1101931e9e3 RBX: ffff88807d746678 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8b37fee0 RDI: ffff8880c98f4f18
RBP: ffff8880c98f4ef8 R08: dffffc0000000000 R09: fffffbfff1ca6956
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff1100fae8ccf R14: 00000000ffffffff R15: 0000000000000020
FS: 00007f03eb900700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed101931e9e3 CR3: 00000000280e6000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: f6 e8 imul %al
2: bd ac aa 07 48 mov $0x4807aaac,%ebp
7: 8d 45 20 lea 0x20(%rbp),%eax
a: 48 89 ef mov %rbp,%rdi
d: 48 83 c7 24 add $0x24,%rdi
11: 41 0f b6 cf movzbl %r15b,%ecx
15: 4c 8d 3c 8d 20 00 00 lea 0x20(,%rcx,4),%r15
1c: 00
1d: 84 c9 test %cl,%cl
1f: 48 0f 44 f8 cmove %rax,%rdi
23: 48 89 f8 mov %rdi,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 1d 01 00 00 jne 0x154
37: 46 01 74 3d 00 add %r14d,0x0(%rbp,%r15,1)
3c: 43 rex.XB
3d: 80 .byte 0x80
3e: 7c 25 jl 0x65


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@xxxxxxxxxxxxxxxx.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.