[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_4D4C8BE7C706C952C2066109A76EFE2ED406@qq.com>
Date: Sun, 23 Mar 2025 10:36:24 +0800
From: Edward Adam Davis <eadavis@...com>
To: syzbot+7ea0b96c4ddb49fd1a70@...kaller.appspotmail.com
Cc: linux-kernel@...r.kernel.org,
syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [ocfs2?] KMSAN: uninit-value in _find_next_bit
#syz test
diff --git a/fs/ocfs2/quota_local.c b/fs/ocfs2/quota_local.c
index 2956d888c131..0543362d7d9f 100644
--- a/fs/ocfs2/quota_local.c
+++ b/fs/ocfs2/quota_local.c
@@ -307,6 +307,11 @@ static int ocfs2_add_recovery_chunk(struct super_block *sb,
kfree(rc);
return -ENOMEM;
}
+ printk("ents: %u, sb: %p, chunk: %d, blksize: %lu, rcb: %p, inited size: %d, %s\n",
+ ol_chunk_entries(sb), sb, chunk, sb->s_blocksize, rc->rc_bitmap,
+ (ol_chunk_entries(sb) + 7) >> 3, __func__);
+ ocfs2_test_bit_unaligned(ol_chunk_entries(sb), dchunk->dqc_bitmap);
+ printk("?warn here: %d, %s\n", ocfs2_test_bit_unaligned(ol_chunk_entries(sb), dchunk->dqc_bitmap), __func__);
memcpy(rc->rc_bitmap, dchunk->dqc_bitmap,
(ol_chunk_entries(sb) + 7) >> 3);
list_add_tail(&rc->rc_list, head);
Powered by blists - more mailing lists