syzbot


BUG: unable to handle kernel paging request in udf_close_lvid

Status: moderation: reported on 2024/11/06 11:58
Subsystems: udf
[Documentation on labels]
Reported-by: syzbot+0cca8aa413d30b0f242c@syzkaller.appspotmail.com
First crash: 33d, last: 33d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 KASAN: use-after-free Write in udf_close_lvid udf C error 5 665d 1080d 0/1 upstream: reported C repro on 2021/12/21 15:22
linux-5.15 KASAN: use-after-free Write in udf_close_lvid origin:upstream C error 13 97d 562d 0/3 upstream: reported C repro on 2023/05/23 16:31
linux-6.1 BUG: unable to handle kernel paging request in udf_close_lvid origin:upstream C 40 17d 614d 0/3 upstream: reported C repro on 2023/04/01 11:57
upstream KASAN: use-after-free Write in udf_close_lvid udf C done 144 333d 927d 25/28 fixed on 2024/02/21 18:23
linux-4.14 KASAN: use-after-free Write in udf_close_lvid udf C 4 667d 729d 0/1 upstream: reported C repro on 2022/12/07 21:30

Sample crash report:
loop0: detected capacity change from 0 to 2048
UDF-fs: INFO Mounting volume 'LiuxUDF', timestamp 2022/11/22 14:59 (1000)
loop0: detected capacity change from 2048 to 0
=======================================================
WARNING: The mand mount option has been deprecated and
         and is ignored by this kernel. Remove the mand
         option from the mount to silence this warning.
=======================================================
syz.0.0: attempt to access beyond end of device
loop0: rw=2049, sector=128, nr_sectors = 1 limit=0
Buffer I/O error on dev loop0, logical block 128, lost sync page write
loop0: detected capacity change from 0 to 2047
BUG: unable to handle page fault for address: ffffed100c14200d
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 5ffcd067 P4D 5ffcd067 PUD 2fff7067 PMD 0 
Oops: Oops: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5324 Comm: syz.0.0 Not tainted 6.12.0-rc5-syzkaller-00299-g11066801dd4b #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:udf_close_lvid+0x14c/0x9a0 fs/udf/super.c:2090
Code: dc 49 83 c4 50 0f 84 f3 00 00 00 49 8d bf c0 00 00 00 48 89 7c 24 40 31 f6 e8 30 b6 a9 08 49 8d 7c 24 18 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 41 05 00 00 4c 89 7c 24 18 4c 89 74 24
RSP: 0018:ffffc9000d42fc00 EFLAGS: 00010a02
RAX: 1ffff1100c14200d RBX: ffff88804ca10000 RCX: 0000000000000001
RDX: 0000000000000000 RSI: ffffffff8c610840 RDI: ffff888060a10068
RBP: ffffc9000d42fcf0 R08: ffffffff901d09af R09: 1ffffffff203a135
R10: dffffc0000000000 R11: fffffbfff203a136 R12: ffff888060a10050
R13: dffffc0000000000 R14: 1ffff92001a85f8c R15: ffff888032acdc00
FS:  00007efd4acc36c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed100c14200d CR3: 00000000407de000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 udf_reconfigure+0x315/0x490 fs/udf/super.c:676
 reconfigure_super+0x445/0x880 fs/super.c:1083
 vfs_cmd_reconfigure fs/fsopen.c:262 [inline]
 vfs_fsconfig_locked fs/fsopen.c:291 [inline]
 __do_sys_fsconfig fs/fsopen.c:472 [inline]
 __se_sys_fsconfig+0xb68/0xf70 fs/fsopen.c:344
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7efd49f7e719
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:00007efd4acc3038 EFLAGS: 00000246 ORIG_RAX: 00000000000001af
RAX: ffffffffffffffda RBX: 00007efd4a135f80 RCX: 00007efd49f7e719
RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000006
RBP: 00007efd49ff132e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007efd4a135f80 R15: 00007ffc6ac33be8
 </TASK>
Modules linked in:
CR2: ffffed100c14200d
---[ end trace 0000000000000000 ]---
RIP: 0010:udf_close_lvid+0x14c/0x9a0 fs/udf/super.c:2090
Code: dc 49 83 c4 50 0f 84 f3 00 00 00 49 8d bf c0 00 00 00 48 89 7c 24 40 31 f6 e8 30 b6 a9 08 49 8d 7c 24 18 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 41 05 00 00 4c 89 7c 24 18 4c 89 74 24
RSP: 0018:ffffc9000d42fc00 EFLAGS: 00010a02
RAX: 1ffff1100c14200d RBX: ffff88804ca10000 RCX: 0000000000000001
RDX: 0000000000000000 RSI: ffffffff8c610840 RDI: ffff888060a10068
RBP: ffffc9000d42fcf0 R08: ffffffff901d09af R09: 1ffffffff203a135
R10: dffffc0000000000 R11: fffffbfff203a136 R12: ffff888060a10050
R13: dffffc0000000000 R14: 1ffff92001a85f8c R15: ffff888032acdc00
FS:  00007efd4acc36c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed100c14200d CR3: 00000000407de000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	49 83 c4 50          	add    $0x50,%r12
   4:	0f 84 f3 00 00 00    	je     0xfd
   a:	49 8d bf c0 00 00 00 	lea    0xc0(%r15),%rdi
  11:	48 89 7c 24 40       	mov    %rdi,0x40(%rsp)
  16:	31 f6                	xor    %esi,%esi
  18:	e8 30 b6 a9 08       	call   0x8a9b64d
  1d:	49 8d 7c 24 18       	lea    0x18(%r12),%rdi
  22:	48 89 f8             	mov    %rdi,%rax
  25:	48 c1 e8 03          	shr    $0x3,%rax
* 29:	42 0f b6 04 28       	movzbl (%rax,%r13,1),%eax <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	0f 85 41 05 00 00    	jne    0x577
  36:	4c 89 7c 24 18       	mov    %r15,0x18(%rsp)
  3b:	4c                   	rex.WR
  3c:	89                   	.byte 0x89
  3d:	74 24                	je     0x63

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/02 11:46 upstream 11066801dd4b f00eed24 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in udf_close_lvid
* Struck through repros no longer work on HEAD.