syzbot


BUG: unable to handle kernel paging request in f2fs_get_dnode_of_data

Status: moderation: reported on 2025/07/23 02:18
Subsystems: f2fs
[Documentation on labels]
Reported-by: syzbot+94b1ef34954c64d87101@syzkaller.appspotmail.com
First crash: 15d, last: 15d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 BUG: unable to handle kernel paging request in f2fs_get_dnode_of_data 8 C 2 882d 882d 0/1 upstream: reported C repro on 2023/03/04 08:03

Sample crash report:
loop0: detected capacity change from 0 to 131072
=======================================================
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.
=======================================================
F2FS-fs (loop0): Invalid log sectorsize (67108873)
F2FS-fs (loop0): Can't find valid F2FS filesystem in 1th superblock
F2FS-fs (loop0): invalid crc value
F2FS-fs (loop0): Try to recover 1th superblock, ret: 0
F2FS-fs (loop0): Mounted with checkpoint version = 48b305e4
BUG: unable to handle page fault for address: ffffed108228782c
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 5ffcd067 P4D 5ffcd067 PUD 0 
Oops: Oops: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5347 Comm: syz.0.0 Not tainted 6.16.0-rc6-syzkaller-00205-gd786aba32000 #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:data_blkaddr fs/f2fs/f2fs.h:3053 [inline]
RIP: 0010:f2fs_data_blkaddr fs/f2fs/f2fs.h:3058 [inline]
RIP: 0010:f2fs_get_dnode_of_data+0x146b/0x1b50 fs/f2fs/node.c:855
Code: 0f b7 1c 24 c1 eb 02 b8 68 01 00 00 4c 8b 64 24 10 49 01 c7 89 d8 49 8d 04 87 48 8b 4c 24 20 48 8d 1c 88 48 89 d8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 22 05 00 00 44 8b 3b 48 8b 44 24 18 48
RSP: 0018:ffffc9000d26f3a0 EFLAGS: 00010a03
RAX: 1ffff1108228782c RBX: ffff88841143c164 RCX: 00000000ffffffff
RDX: ffffc9000ddea000 RSI: 0000000000000be5 RDI: 0000000000000be6
RBP: ffffc9000d26f590 R08: ffff888012449f77 R09: 1ffff110024893ee
R10: dffffc0000000000 R11: ffffed10024893ef R12: 1ffff92001a4de90
R13: dffffc0000000000 R14: ffff888012449ad0 R15: ffff88801143c168
FS:  00007f1bfb28e6c0(0000) GS:ffff88808d21a000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed108228782c CR3: 000000003fbbe000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 prepare_write_begin fs/f2fs/data.c:3400 [inline]
 f2fs_write_begin+0xb38/0x21a0 fs/f2fs/data.c:3594
 generic_perform_write+0x2c4/0x910 mm/filemap.c:4112
 f2fs_buffered_write_iter fs/f2fs/file.c:4988 [inline]
 f2fs_file_write_iter+0x1ec8/0x2410 fs/f2fs/file.c:5216
 do_iter_readv_writev+0x56e/0x7f0 fs/read_write.c:-1
 vfs_writev+0x31a/0x960 fs/read_write.c:1057
 do_pwritev fs/read_write.c:1153 [inline]
 __do_sys_pwritev2 fs/read_write.c:1211 [inline]
 __se_sys_pwritev2+0x179/0x290 fs/read_write.c:1202
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1bfa38e9a9
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:00007f1bfb28e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007f1bfa5b5fa0 RCX: 00007f1bfa38e9a9
RDX: 0000000000000001 RSI: 00002000000002c0 RDI: 0000000000000009
RBP: 00007f1bfa410d69 R08: 0000000000000003 R09: 0000000000000015
R10: 0000000000800401 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f1bfa5b5fa0 R15: 00007fff74e79358
 </TASK>
Modules linked in:
CR2: ffffed108228782c
---[ end trace 0000000000000000 ]---
RIP: 0010:data_blkaddr fs/f2fs/f2fs.h:3053 [inline]
RIP: 0010:f2fs_data_blkaddr fs/f2fs/f2fs.h:3058 [inline]
RIP: 0010:f2fs_get_dnode_of_data+0x146b/0x1b50 fs/f2fs/node.c:855
Code: 0f b7 1c 24 c1 eb 02 b8 68 01 00 00 4c 8b 64 24 10 49 01 c7 89 d8 49 8d 04 87 48 8b 4c 24 20 48 8d 1c 88 48 89 d8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 22 05 00 00 44 8b 3b 48 8b 44 24 18 48
RSP: 0018:ffffc9000d26f3a0 EFLAGS: 00010a03
RAX: 1ffff1108228782c RBX: ffff88841143c164 RCX: 00000000ffffffff
RDX: ffffc9000ddea000 RSI: 0000000000000be5 RDI: 0000000000000be6
RBP: ffffc9000d26f590 R08: ffff888012449f77 R09: 1ffff110024893ee
R10: dffffc0000000000 R11: ffffed10024893ef R12: 1ffff92001a4de90
R13: dffffc0000000000 R14: ffff888012449ad0 R15: ffff88801143c168
FS:  00007f1bfb28e6c0(0000) GS:ffff88808d21a000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed108228782c CR3: 000000003fbbe000 CR4: 0000000000352ef0
----------------
Code disassembly (best guess):
   0:	0f b7 1c 24          	movzwl (%rsp),%ebx
   4:	c1 eb 02             	shr    $0x2,%ebx
   7:	b8 68 01 00 00       	mov    $0x168,%eax
   c:	4c 8b 64 24 10       	mov    0x10(%rsp),%r12
  11:	49 01 c7             	add    %rax,%r15
  14:	89 d8                	mov    %ebx,%eax
  16:	49 8d 04 87          	lea    (%r15,%rax,4),%rax
  1a:	48 8b 4c 24 20       	mov    0x20(%rsp),%rcx
  1f:	48 8d 1c 88          	lea    (%rax,%rcx,4),%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 28       	movzbl (%rax,%r13,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 22 05 00 00    	jne    0x559
  37:	44 8b 3b             	mov    (%rbx),%r15d
  3a:	48 8b 44 24 18       	mov    0x18(%rsp),%rax
  3f:	48                   	rex.W

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/19 02:15 upstream d786aba32000 7117feec .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in f2fs_get_dnode_of_data
* Struck through repros no longer work on HEAD.