Re: [syzbot] Re: [syzbot] [ocfs2?] KMSAN: uninit-value in _find_next_bit

From: syzbot
Date: Sun Mar 23 2025 - 21:39:09 EST


For archival purposes, forwarding an incoming command email to
linux-kernel@xxxxxxxxxxxxxxx.

***

Subject: Re: [syzbot] [ocfs2?] KMSAN: uninit-value in _find_next_bit
Author: lizhi.xu@xxxxxxxxxxxxx

#syz test


diff --git a/fs/ocfs2/quota_local.c b/fs/ocfs2/quota_local.c
index 2956d888c131..1969772729eb 100644
--- a/fs/ocfs2/quota_local.c
+++ b/fs/ocfs2/quota_local.c
@@ -309,6 +309,8 @@ static int ocfs2_add_recovery_chunk(struct super_block *sb,
}
memcpy(rc->rc_bitmap, dchunk->dqc_bitmap,
(ol_chunk_entries(sb) + 7) >> 3);
+ int bit;
+ for_each_set_bit(bit, rc->rc_bitmap, ol_chunk_entries(sb));
list_add_tail(&rc->rc_list, head);
return 0;
}