syzbot


BUG: unable to handle kernel NULL pointer dereference in f2fs_flush_nat_entries

Status: auto-obsoleted due to no activity on 2023/11/17 11:52
Reported-by: syzbot+d4fb567907a39f4c8de3@syzkaller.appspotmail.com
First crash: 561d, last: 470d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 BUG: unable to handle kernel NULL pointer dereference in f2fs_flush_nat_entries (2) 1 239d 239d 0/3 auto-obsoleted due to no activity on 2024/07/05 11:10

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 7a2a2067 P4D 7a2a2067 PUD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3534 Comm: syz-executor.4 Not tainted 5.15.125-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:0x0
Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
RSP: 0018:ffffc90002def858 EFLAGS: 00010286
RAX: 1ffffffff152da13 RBX: ffffea0002d66400 RCX: ffffffff8a96d098
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffea0002d66400
RBP: ffffc90002defb50 R08: ffffffff81aab379 R09: fffff940005acc81
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90002defae0
R13: ffffea0002420940 R14: ffff888079e03000 R15: ffffea0002420940
FS:  0000555557078480(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 0000000037aec000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 get_next_nat_page fs/f2fs/node.c:158 [inline]
 __flush_nat_entry_set fs/f2fs/node.c:3011 [inline]
 f2fs_flush_nat_entries+0xd91/0x24e0 fs/f2fs/node.c:3115
 f2fs_write_checkpoint+0x119d/0x1b50 fs/f2fs/checkpoint.c:1688
 kill_f2fs_super+0x235/0x3c0 fs/f2fs/super.c:4495
 deactivate_locked_super+0xa0/0x110 fs/super.c:335
 cleanup_mnt+0x44e/0x500 fs/namespace.c:1143
 task_work_run+0x129/0x1a0 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:175
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x5d/0x250 kernel/entry/common.c:301
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f7d0dd0ae17
Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 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 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffd1c09fb48 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f7d0dd0ae17
RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007ffd1c09fc00
RBP: 00007ffd1c09fc00 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffd1c0a0cc0
R13: 00007f7d0dd543b9 R14: 000000000017bc76 R15: 0000000000000003
 </TASK>
Modules linked in:
CR2: 0000000000000000
---[ end trace 4b9bff5b4b59fbaa ]---
RIP: 0010:0x0
Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
RSP: 0018:ffffc90002def858 EFLAGS: 00010286
RAX: 1ffffffff152da13 RBX: ffffea0002d66400 RCX: ffffffff8a96d098
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffea0002d66400
RBP: ffffc90002defb50 R08: ffffffff81aab379 R09: fffff940005acc81
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90002defae0
R13: ffffea0002420940 R14: ffff888079e03000 R15: ffffea0002420940
FS:  0000555557078480(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 0000000037aec000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/09 11:52 linux-5.15.y c275eaaaa342 8ad1a287 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in f2fs_flush_nat_entries
2023/05/10 00:36 linux-5.15.y 8a7f2a5c5aa1 30aa2a7e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in f2fs_flush_nat_entries
* Struck through repros no longer work on HEAD.