syzbot


KMSAN: uninit-value in _find_next_bit

Status: upstream: reported C repro on 2025/03/21 20:52
Subsystems: ocfs2
[Documentation on labels]
Reported-by: syzbot+7ea0b96c4ddb49fd1a70@syzkaller.appspotmail.com
First crash: 9d04h, last: 8d03h
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] [ocfs2?] KMSAN: uninit-value in _find_next_bit 7 (18) 2025/03/26 03:58
[PATCH] Re: [syzbot] [ocfs2?] KMSAN: uninit-value in _find_next_bit 1 (1) 2025/03/26 01:09
Last patch testing requests (10)
Created Duration User Patch Repo Result
2025/03/26 03:20 41m richard120310@gmail.com upstream error
2025/03/26 03:05 52m richard120310@gmail.com patch upstream error
2025/03/26 02:19 23m richard120310@gmail.com patch upstream error
2025/03/26 01:24 23m richard120310@gmail.com patch upstream error
2025/03/24 01:38 25m lizhi.xu@windriver.com patch upstream report log
2025/03/24 01:01 18m lizhi.xu@windriver.com patch upstream error
2025/03/23 10:17 24m eadavis@qq.com patch upstream report log
2025/03/23 02:36 2h55m eadavis@qq.com patch upstream report log
2025/03/22 08:42 22m eadavis@qq.com patch upstream report log
2025/03/22 01:40 1h59m eadavis@qq.com patch upstream OK log

Sample crash report:
BUG: KMSAN: uninit-value in _find_next_bit+0x11c/0x130 lib/find_bit.c:145
 _find_next_bit+0x11c/0x130 lib/find_bit.c:145
 find_next_bit include/linux/find.h:69 [inline]
 ocfs2_recover_local_quota_file fs/ocfs2/quota_local.c:488 [inline]
 ocfs2_finish_quota_recovery+0xc4f/0x3ea0 fs/ocfs2/quota_local.c:641
 ocfs2_complete_recovery+0x229f/0x38a0 fs/ocfs2/journal.c:1357
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0xc1a/0x1e80 kernel/workqueue.c:3319
 worker_thread+0xea7/0x14f0 kernel/workqueue.c:3400
 kthread+0x6b9/0xef0 kernel/kthread.c:464
 ret_from_fork+0x6d/0x90 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

Uninit was created at:
 slab_post_alloc_hook mm/slub.c:4121 [inline]
 slab_alloc_node mm/slub.c:4164 [inline]
 __do_kmalloc_node mm/slub.c:4293 [inline]
 __kmalloc_noprof+0x923/0x1230 mm/slub.c:4306
 kmalloc_noprof include/linux/slab.h:905 [inline]
 ocfs2_add_recovery_chunk fs/ocfs2/quota_local.c:305 [inline]
 ocfs2_recovery_load_quota+0x415/0x1150 fs/ocfs2/quota_local.c:360
 ocfs2_local_read_info+0x139e/0x2c10 fs/ocfs2/quota_local.c:753
 dquot_load_quota_sb+0xa35/0xdc0 fs/quota/dquot.c:2459
 dquot_load_quota_inode+0x662/0x9f0 fs/quota/dquot.c:2496
 ocfs2_enable_quotas+0x1d4/0x6e0 fs/ocfs2/super.c:930
 ocfs2_fill_super+0xa6b7/0xb550 fs/ocfs2/super.c:1140
 get_tree_bdev_flags+0x6ec/0x910 fs/super.c:1636
 get_tree_bdev+0x37/0x50 fs/super.c:1659
 ocfs2_get_tree+0x34/0x40 fs/ocfs2/super.c:1184
 vfs_get_tree+0xb1/0x5a0 fs/super.c:1814
 do_new_mount+0x71f/0x15e0 fs/namespace.c:3560
 path_mount+0x742/0x1f10 fs/namespace.c:3887
 do_mount fs/namespace.c:3900 [inline]
 __do_sys_mount fs/namespace.c:4111 [inline]
 __se_sys_mount+0x71f/0x800 fs/namespace.c:4088
 __x64_sys_mount+0xe4/0x150 fs/namespace.c:4088
 x64_sys_call+0x39bf/0x3c30 arch/x86/include/generated/asm/syscalls_64.h:166
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1e0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

CPU: 0 UID: 0 PID: 3555 Comm: kworker/u8:11 Not tainted 6.14.0-rc7-syzkaller-00067-g76b6905c11fd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Workqueue: ocfs2_wq ocfs2_complete_recovery
=====================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/18 22:08 upstream 76b6905c11fd 22a6c2b1 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci-upstream-kmsan-gce-root KMSAN: uninit-value in _find_next_bit
2025/03/17 21:30 upstream 4701f33a1070 948c34e4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in _find_next_bit
* Struck through repros no longer work on HEAD.