[prev in list] [next in list] [prev in thread] [next in thread]
List: jfs-discussion
Subject: [Jfs-discussion] [BUG] jfs: possible uninitialized-variable access in xtSplitUp()
From: Li Tuo <islituo () gmail ! com>
Date: 2021-07-31 6:31:02
Message-ID: 6b3b3a56-b77c-aff7-c9f1-94a99d4929d2 () gmail ! com
[Download RAW message or body]
Hello,
Our static analysis tool finds a possible uninitialized-variable access
in the jfs driver in Linux 5.14.0-rc3:
At the beginning of the function xtSplitUp(), the variable rbn is not
initialized.
If sp->header.flag & BT_ROOT is true,
780: rc = (sp->header.flag & BT_ROOT) ? xtSplitRoot(tid, ip, split,
&rmp) : xtSplitPage(tid, ip, split, &rmp, &rbn);
the varialbe rbn will remain uninitialized.
However, it is accessed through:
814: rcbn = rbn;
I am not quite sure whether this possible uninitialized-variable access
is real and how to fix it if it is real.
Any feedback would be appreciated, thanks!
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Best wishes,
Tuo Li
_______________________________________________
Jfs-discussion mailing list
Jfs-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jfs-discussion
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic