Skip to contentSkip to conversation

linux-next: Signed-off-by missing for commit in the gfs2 tree

PATCH New Stephen Rothwell 3 participants 4 messages Oct 21, 2024 – Oct 22, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi all,

Commit

507da2cb5d8a ("KMSAN: uninit-value in inode_go_dump (5)")

is missing a Signed-off-by from its author.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi Stephen,

Quoted 10 lines

Commit

507da2cb5d8a ("KMSAN: uninit-value in inode_go_dump (5)")

is missing a Signed-off-by from its author.

--
Cheers,
Stephen Rothwell
<mime-attachment>

Yes, you’re right!

Do you how to solve this? The commit is already in linux-next tree.

—
Best,
Qianqiang Liu

#2 lore raw
Quoted 8 lines · Qianqiang Liu

Hi Stephen,

Quoted 6 lines

Commit

507da2cb5d8a ("KMSAN: uninit-value in inode_go_dump (5)")

is missing a Signed-off-by from its author.

Quoted 8 lines
Quoted 4 lines

--
Cheers,
Stephen Rothwell
<mime-attachment>

Yes, you’re right!

Do you how to solve this? The commit is already in linux-next tree.

Can you resend the patch with a Signed-off-by tag?

Thanks,
Andreas

#3 lore raw

PATCH v2 1/1 KMSAN: uninit-value in inode_go_dump (5)

When mounting of a corrupted disk image fails, the error message printed can reference uninitialized inode fields. To prevent that from happening, always initialize those fields.

---
Changes since v1:
- Add Signed-off-by tag

---
 fs/gfs2/super.c | 2 ++
 1 file changed, 2 insertions(+)
fs/gfs2/super.c +2 -0
index 23e3a85ab7ef..aadb83e38c17 100644
@@ -1553,11 +1553,13 @@ static struct inode *gfs2_alloc_inode(struct super_block *sb)
 	if (!ip)
 		return NULL;
 	ip->i_no_addr = 0;
+	ip->i_no_formal_ino = 0;
 	ip->i_flags = 0;
 	ip->i_gl = NULL;
 	gfs2_holder_mark_uninitialized(&ip->i_iopen_gh);
 	memset(&ip->i_res, 0, sizeof(ip->i_res));
 	RB_CLEAR_NODE(&ip->i_res.rs_node);
+	ip->i_diskflags = 0;
 	ip->i_rahead = 0;
 	return &ip->i_inode;
 }
Signature · 1 line
2.47.0