Forwarded: KMSAN: uninit-value in BT_STACK_DUMP

syzbot posted 1 patch 1 week, 1 day ago
Forwarded: KMSAN: uninit-value in BT_STACK_DUMP
Posted by syzbot 1 week, 1 day ago
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.

***

Subject: KMSAN: uninit-value in BT_STACK_DUMP
Author: rampxxxx@gmail.com

#syz test

---
diff --git a/fs/jfs/jfs_dtree.c b/fs/jfs/jfs_dtree.c
index ab11849cf9cc..4fbb0e39270c 100644
--- a/fs/jfs/jfs_dtree.c
+++ b/fs/jfs/jfs_dtree.c
@@ -770,6 +770,10 @@ int dtSearch(struct inode *ip, struct
component_name * key, ino_t * data,
                       /* Something's corrupted, mark filesystem dirty so
                        * chkdsk will fix it.
                        */
+                       btsp = btstack->top;
+                       btsp->bn = 0;
+                       btsp->index = 0;
+
                       jfs_error(sb, "stack overrun!\n");
                       BT_STACK_DUMP(btstack);
                       rc = -EIO;