syzbot


BUG: unable to handle kernel paging request in udf_free_inode

Status: upstream: reported on 2024/11/06 07:32
Reported-by: syzbot+ae3329baa49290c4795e@syzkaller.appspotmail.com
First crash: 28d, last: 28d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in udf_free_inode udf 1 1134d 1130d 0/28 auto-closed as invalid on 2022/01/25 11:13
upstream KASAN: use-after-free Read in udf_free_inode fs 1 708d 704d 0/28 auto-obsoleted due to no activity on 2023/03/26 23:00
linux-6.1 KASAN: use-after-free Read in udf_free_inode 1 156d 156d 0/3 auto-obsoleted due to no activity on 2024/10/09 09:17

Sample crash report:
BUG: unable to handle page fault for address: ffffed101e537db7
#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: 1 PID: 6007 Comm: syz.2.336 Not tainted 6.1.115-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:udf_free_inode+0xe9/0x2d0
Code: fe 48 8d 43 20 48 89 df 48 83 c7 24 31 c9 81 fd 00 40 00 00 0f 94 c1 48 8d 2c 8d 20 00 00 00 48 0f 45 f8 48 89 f8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 4d 89 fd 4c 8b 7c 24 18 0f 85 56 01 00 00 ff
RSP: 0018:ffffc9000456fb08 EFLAGS: 00010a06
RAX: 1ffff1101e537db7 RBX: ffff8880f29bed98 RCX: 0000000000000000
RDX: ffff888027bd1dc0 RSI: 0000000000008000 RDI: ffff8880f29bedb8
RBP: 0000000000000020 R08: ffffffff82fdb220 R09: fffffbfff1d34076
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100ae37ccf
R13: ffff888058fb2160 R14: ffff8880571be000 R15: dffffc0000000000
FS:  000055555ddad500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed101e537db7 CR3: 0000000066894000 CR4: 00000000003526e0
DR0: 0000000000002800 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 evict+0x529/0x930 fs/inode.c:701
 __dentry_kill+0x436/0x650 fs/dcache.c:611
 dentry_kill+0xbb/0x290
 dput+0xfb/0x1d0 fs/dcache.c:918
 __fput+0x62e/0x8d0 fs/file_table.c:328
 task_work_run+0x246/0x300 kernel/task_work.c:203
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:177
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
 syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303
 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f63fc97e719
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe4db815b8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f63fcb37a80 RCX: 00007f63fc97e719
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007f63fcb37a80 R08: 00007f63fcb22000 R09: 00007ffe4db818af
R10: 00000000005d8fd4 R11: 0000000000000246 R12: 0000000000031eb5
R13: 00007ffe4db816c0 R14: 0000000000000032 R15: ffffffffffffffff
 </TASK>
Modules linked in:
CR2: ffffed101e537db7
---[ end trace 0000000000000000 ]---
RIP: 0010:udf_free_inode+0xe9/0x2d0
Code: fe 48 8d 43 20 48 89 df 48 83 c7 24 31 c9 81 fd 00 40 00 00 0f 94 c1 48 8d 2c 8d 20 00 00 00 48 0f 45 f8 48 89 f8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 4d 89 fd 4c 8b 7c 24 18 0f 85 56 01 00 00 ff
RSP: 0018:ffffc9000456fb08 EFLAGS: 00010a06
RAX: 1ffff1101e537db7 RBX: ffff8880f29bed98 RCX: 0000000000000000
RDX: ffff888027bd1dc0 RSI: 0000000000008000 RDI: ffff8880f29bedb8
RBP: 0000000000000020 R08: ffffffff82fdb220 R09: fffffbfff1d34076
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100ae37ccf
R13: ffff888058fb2160 R14: ffff8880571be000 R15: dffffc0000000000
FS:  000055555ddad500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed101e537db7 CR3: 0000000066894000 CR4: 00000000003526e0
DR0: 0000000000002800 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	48 8d 43 20          	lea    0x20(%rbx),%rax
   4:	48 89 df             	mov    %rbx,%rdi
   7:	48 83 c7 24          	add    $0x24,%rdi
   b:	31 c9                	xor    %ecx,%ecx
   d:	81 fd 00 40 00 00    	cmp    $0x4000,%ebp
  13:	0f 94 c1             	sete   %cl
  16:	48 8d 2c 8d 20 00 00 	lea    0x20(,%rcx,4),%rbp
  1d:	00
  1e:	48 0f 45 f8          	cmovne %rax,%rdi
  22:	48 89 f8             	mov    %rdi,%rax
  25:	48 c1 e8 03          	shr    $0x3,%rax
* 29:	42 0f b6 04 38       	movzbl (%rax,%r15,1),%eax <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	4d 89 fd             	mov    %r15,%r13
  33:	4c 8b 7c 24 18       	mov    0x18(%rsp),%r15
  38:	0f 85 56 01 00 00    	jne    0x194
  3e:	ff                   	.byte 0xff

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/06 07:32 linux-6.1.y 7c15117f9468 3a465482 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel paging request in udf_free_inode
* Struck through repros no longer work on HEAD.