syzbot


KMSAN: uninit-value in f2fs_lookup

Status: fixed on 2020/11/16 12:12
Subsystems: f2fs
[Documentation on labels]
Reported-by: syzbot+0eac6f0bbd558fd866d7@syzkaller.appspotmail.com
Fix commit: 6d7ab88a98c1 f2fs: fix uninit-value in f2fs_lookup
First crash: 1373d, last: 1329d
Discussions (9)
Title Replies (including bot) Last reply
[PATCH 4.19 000/191] 4.19.155-rc1 review 218 (218) 2020/11/18 18:02
[PATCH AUTOSEL 4.19 01/60] powerpc/powernv/smp: Fix spurious DBG() warning 62 (62) 2020/11/06 05:26
[PATCH AUTOSEL 5.9 001/147] powerpc/vmemmap: Fix memory leak with vmemmap list allocation failures. 154 (154) 2020/11/05 21:18
[PATCH 5.9 000/391] 5.9.4-rc1 review 406 (406) 2020/11/05 16:26
[PATCH 5.4 000/214] 5.4.75-rc1 review 219 (219) 2020/11/04 17:50
[PATCH AUTOSEL 5.4 01/80] powerpc/powernv/smp: Fix spurious DBG() warning 81 (81) 2020/10/27 12:01
[PATCH AUTOSEL 5.8 001/132] powerpc/powernv/smp: Fix spurious DBG() warning 133 (133) 2020/10/27 11:40
[PATCH v3] f2fs: fix uninit-value in f2fs_lookup 1 (1) 2020/09/29 01:22
KMSAN: uninit-value in f2fs_lookup 6 (7) 2020/09/25 23:17

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in f2fs_lookup+0xaed/0x1ac0 fs/f2fs/namei.c:503
CPU: 0 PID: 19356 Comm: syz-executor.4 Not tainted 5.9.0-rc8-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x21c/0x280 lib/dump_stack.c:118
 kmsan_report+0xf7/0x1e0 mm/kmsan/kmsan_report.c:122
 __msan_warning+0x5f/0xa0 mm/kmsan/kmsan_instr.c:201
 f2fs_lookup+0xaed/0x1ac0 fs/f2fs/namei.c:503
 lookup_open fs/namei.c:3082 [inline]
 open_last_lookups fs/namei.c:3177 [inline]
 path_openat+0x27b5/0x6a50 fs/namei.c:3365
 do_filp_open+0x2b8/0x710 fs/namei.c:3395
 do_sys_openat2+0xa8c/0x1140 fs/open.c:1168
 do_sys_open fs/open.c:1184 [inline]
 __do_compat_sys_openat fs/open.c:1242 [inline]
 __se_compat_sys_openat+0x2ae/0x310 fs/open.c:1240
 __ia32_compat_sys_openat+0x56/0x70 fs/open.c:1240
 do_syscall_32_irqs_on arch/x86/entry/common.c:80 [inline]
 __do_fast_syscall_32+0x129/0x180 arch/x86/entry/common.c:139
 do_fast_syscall_32+0x6a/0xc0 arch/x86/entry/common.c:162
 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:205
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
RIP: 0023:0xf7f86549
Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 002b:00000000f553e0cc EFLAGS: 00000296 ORIG_RAX: 0000000000000127
RAX: ffffffffffffffda RBX: 00000000ffffff9c RCX: 0000000020000980
RDX: 000000000002f042 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

Local variable ----page@f2fs_lookup created at:
 f2fs_lookup+0x86/0x1ac0 fs/f2fs/namei.c:477
 f2fs_lookup+0x86/0x1ac0 fs/f2fs/namei.c:477
=====================================================

Crashes (17):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/04 14:05 https://github.com/google/kmsan.git master e16174226146 cba33199 .config console log report info ci-upstream-kmsan-gce-386
2020/10/31 09:28 https://github.com/google/kmsan.git master e16174226146 18e33098 .config console log report info ci-upstream-kmsan-gce-386
2020/10/31 09:28 https://github.com/google/kmsan.git master e16174226146 18e33098 .config console log report info ci-upstream-kmsan-gce-386
2020/09/28 18:15 https://github.com/google/kmsan.git master c5a13b33ec11 6bfdbe89 .config console log report info ci-upstream-kmsan-gce-386
2020/09/28 00:28 https://github.com/google/kmsan.git master c5a13b33ec11 5dd8aee8 .config console log report info ci-upstream-kmsan-gce-386
2020/09/26 10:56 https://github.com/google/kmsan.git master c5a13b33ec11 4a006f63 .config console log report info ci-upstream-kmsan-gce-386
2020/09/25 10:50 https://github.com/google/kmsan.git master c5a13b33ec11 54289b08 .config console log report info ci-upstream-kmsan-gce-386
2020/09/23 22:29 https://github.com/google/kmsan.git master c5a13b33ec11 287cd75a .config console log report info ci-upstream-kmsan-gce-386
2020/09/23 02:43 https://github.com/google/kmsan.git master c5a13b33ec11 3e8f6c27 .config console log report info ci-upstream-kmsan-gce-386
2020/09/22 13:07 https://github.com/google/kmsan.git master c5a13b33ec11 9e1fa68e .config console log report info ci-upstream-kmsan-gce-386
2020/09/22 13:06 https://github.com/google/kmsan.git master c5a13b33ec11 9e1fa68e .config console log report info ci-upstream-kmsan-gce-386
2020/09/22 09:19 https://github.com/google/kmsan.git master c5a13b33ec11 9e1fa68e .config console log report info ci-upstream-kmsan-gce-386
2020/09/22 06:23 https://github.com/google/kmsan.git master c5a13b33ec11 9e1fa68e .config console log report info ci-upstream-kmsan-gce-386
2020/09/22 01:13 https://github.com/google/kmsan.git master c5a13b33ec11 9e1fa68e .config console log report info ci-upstream-kmsan-gce-386
2020/09/22 01:12 https://github.com/google/kmsan.git master c5a13b33ec11 9e1fa68e .config console log report info ci-upstream-kmsan-gce-386
2020/09/21 18:45 https://github.com/google/kmsan.git master c5a13b33ec11 9e1fa68e .config console log report info ci-upstream-kmsan-gce-386
2020/09/21 04:02 https://github.com/google/kmsan.git master c5a13b33ec11 9564d2e9 .config console log report info ci-upstream-kmsan-gce-386
* Struck through repros no longer work on HEAD.