syzbot


BUG: unable to handle kernel NULL pointer dereference in f2fs_update_meta_page (2)
Status: upstream: reported on 2022/03/30 17:42
Reported-by: syzbot+9e29d4a176b24eaa4fc1@syzkaller.appspotmail.com
First crash: 60d, last: 2d06h
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel NULL pointer dereference in f2fs_update_meta_page 8 223d 305d 0/22 auto-closed as invalid on 2022/02/13 04:53

Sample crash report:
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 57241067 P4D 57241067 PUD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3609 Comm: syz-executor.2 Not tainted 5.18.0-syzkaller-02752-gfdaf9a5840ac #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:0x0
Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
RSP: 0000:ffffc90002fcf738 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffffea000097cc40 RCX: ffff88801fbf5880
RDX: 0000000000000000 RSI: ffffea000097cc40 RDI: ffff888070fc3f58
RBP: ffffc90002fcf930 R08: ffffffff81b41cdb R09: fffff9400012f989
R10: fffff9400012f989 R11: 1ffffd400012f988 R12: ffff88807d274b10
R13: 0000000000000001 R14: ffff88807e8ae000 R15: ffff888048ebc000
FS:  0000555556877400(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000005be3f000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000001000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 f2fs_update_meta_page+0x45/0x60 fs/f2fs/segment.c:2482
 do_checkpoint+0x1ce2/0x4020 fs/f2fs/checkpoint.c:1527
 f2fs_write_checkpoint+0x15a1/0x1d70 fs/f2fs/checkpoint.c:1689
 f2fs_issue_checkpoint+0x361/0x4e0
 sync_filesystem+0x1bc/0x220 fs/sync.c:66
 generic_shutdown_super+0x6b/0x300 fs/super.c:445
 kill_block_super+0x79/0xd0 fs/super.c:1394
 kill_f2fs_super+0x2f9/0x3c0 fs/f2fs/super.c:4516
 deactivate_locked_super+0xa7/0xf0 fs/super.c:332
 cleanup_mnt+0x452/0x500 fs/namespace.c:1186
 task_work_run+0x146/0x1c0 kernel/task_work.c:177
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x134/0x160 kernel/entry/common.c:169
 exit_to_user_mode_prepare+0xad/0x110 kernel/entry/common.c:201
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x2e/0x60 kernel/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7fbfa0a8a577
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 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:00007ffd229f9048 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fbfa0a8a577
RDX: 00007ffd229f911c RSI: 000000000000000a RDI: 00007ffd229f9110
RBP: 00007ffd229f9110 R08: 00000000ffffffff R09: 00007ffd229f8ee0
R10: 00005555568788b3 R11: 0000000000000246 R12: 00007fbfa0ae21f8
R13: 00007ffd229fa1d0 R14: 0000555556878810 R15: 00007ffd229fa210
 </TASK>
Modules linked in:
CR2: 0000000000000000
---[ end trace 0000000000000000 ]---
RIP: 0010:0x0
Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
RSP: 0000:ffffc90002fcf738 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffffea000097cc40 RCX: ffff88801fbf5880
RDX: 0000000000000000 RSI: ffffea000097cc40 RDI: ffff888070fc3f58
RBP: ffffc90002fcf930 R08: ffffffff81b41cdb R09: fffff9400012f989
R10: fffff9400012f989 R11: 1ffffd400012f988 R12: ffff88807d274b10
R13: 0000000000000001 R14: ffff88807e8ae000 R15: ffff888048ebc000
FS:  0000555556877400(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000005be3f000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000001000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400

Crashes (5):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2022/05/25 12:56 upstream fdaf9a5840ac 647c0e27 .config log report info BUG: unable to handle kernel NULL pointer dereference in f2fs_update_meta_page
ci-upstream-kasan-gce-smack-root 2022/05/20 17:43 upstream 3d7285a335ed bd37ad7e .config log report info BUG: unable to handle kernel NULL pointer dereference in f2fs_update_meta_page
ci-upstream-kasan-gce-smack-root 2022/05/19 12:07 upstream f993aed406ea 50c53f39 .config log report info BUG: unable to handle kernel NULL pointer dereference in f2fs_update_meta_page
ci-upstream-kasan-gce-smack-root 2022/05/18 02:21 upstream 210e04ff7681 744a39e2 .config log report info BUG: unable to handle kernel NULL pointer dereference in f2fs_update_meta_page
ci-upstream-kasan-gce-smack-root 2022/03/28 12:30 upstream ae085d7f9365 ee339263 .config log report info BUG: unable to handle kernel NULL pointer dereference in f2fs_update_meta_page