syzbot


general protection fault in udf_fiiter_write_fi

Status: upstream: reported on 2024/11/10 06:56
Reported-by: syzbot+5862e9eebd821f200ee0@syzkaller.appspotmail.com
First crash: 12d, last: 12d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in udf_fiiter_write_fi udf C error 2 679d 683d 22/28 fixed on 2023/06/08 14:41

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f]
CPU: 1 PID: 6515 Comm: syz.8.570 Not tainted 6.1.116-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:udf_fiiter_write_fi+0x1b4/0xbd0 fs/udf/directory.c:405
Code: 24 28 48 8d 58 10 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 ba ec e0 fe 48 8b 1b 48 83 c3 28 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 4d 89 fe 74 08 48 89 df e8 9a ec e0 fe 48 8b 03 48
RSP: 0018:ffffc900061b75a8 EFLAGS: 00010206
RAX: 0000000000000005 RBX: 0000000000000028 RCX: 0000000000000009
RDX: ffff8880278a1dc0 RSI: 0000000000000001 RDI: 0000000000000003
RBP: ffff88805853bb00 R08: ffffffff8301272b R09: fffffbfff1d34106
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: dffffc0000000000 R14: 1ffff92000c36f36 R15: 0000000000000200
FS:  00007f92b9a8f6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2d70dff8 CR3: 0000000026f00000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 udf_rename+0xbdb/0xdd0 fs/udf/namei.c:860
 vfs_rename+0xd32/0x10f0 fs/namei.c:4874
 do_renameat2+0xde0/0x1440 fs/namei.c:5027
 __do_sys_renameat2 fs/namei.c:5060 [inline]
 __se_sys_renameat2 fs/namei.c:5057 [inline]
 __x64_sys_renameat2+0xce/0xe0 fs/namei.c:5057
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f92b8d7e719
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:00007f92b9a8f038 EFLAGS: 00000246 ORIG_RAX: 000000000000013c
RAX: ffffffffffffffda RBX: 00007f92b8f36058 RCX: 00007f92b8d7e719
RDX: 0000000000000006 RSI: 0000000020000140 RDI: 0000000000000006
RBP: 00007f92b8df139e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000020000040 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f92b8f36058 R15: 00007ffc1ce1d988
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:udf_fiiter_write_fi+0x1b4/0xbd0 fs/udf/directory.c:405
Code: 24 28 48 8d 58 10 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 ba ec e0 fe 48 8b 1b 48 83 c3 28 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 4d 89 fe 74 08 48 89 df e8 9a ec e0 fe 48 8b 03 48
RSP: 0018:ffffc900061b75a8 EFLAGS: 00010206
RAX: 0000000000000005 RBX: 0000000000000028 RCX: 0000000000000009
RDX: ffff8880278a1dc0 RSI: 0000000000000001 RDI: 0000000000000003
RBP: ffff88805853bb00 R08: ffffffff8301272b R09: fffffbfff1d34106
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: dffffc0000000000 R14: 1ffff92000c36f36 R15: 0000000000000200
FS:  00007f92b9a8f6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f80f5a62ba8 CR3: 0000000026f00000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	24 28                	and    $0x28,%al
   2:	48 8d 58 10          	lea    0x10(%rax),%rbx
   6:	48 89 d8             	mov    %rbx,%rax
   9:	48 c1 e8 03          	shr    $0x3,%rax
   d:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1)
  12:	74 08                	je     0x1c
  14:	48 89 df             	mov    %rbx,%rdi
  17:	e8 ba ec e0 fe       	call   0xfee0ecd6
  1c:	48 8b 1b             	mov    (%rbx),%rbx
  1f:	48 83 c3 28          	add    $0x28,%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1) <-- trapping instruction
  2f:	4d 89 fe             	mov    %r15,%r14
  32:	74 08                	je     0x3c
  34:	48 89 df             	mov    %rbx,%rdi
  37:	e8 9a ec e0 fe       	call   0xfee0ecd6
  3c:	48 8b 03             	mov    (%rbx),%rax
  3f:	48                   	rex.W

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/10 06:56 linux-6.1.y d7039b844a1c 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in udf_fiiter_write_fi
* Struck through repros no longer work on HEAD.