Re: [f2fs-dev] KMSAN: uninit-value in f2fs_lookup

From: Chao Yu
Date: Fri Sep 25 2020 - 19:17:16 EST


On 2020-9-26 0:45, Eric Biggers wrote:
On Fri, Sep 25, 2020 at 09:38:19AM -0700, Eric Biggers wrote:
On Fri, Sep 25, 2020 at 05:06:33PM +0800, Chao Yu wrote:
Hi,

I don't see any problem here, thanks for your report. :)

Thanks,

What about if max_depth == 0 in __f2fs_find_entry()? Then __f2fs_find_entry()
would return NULL without initializing *res_page.

... and I now see Dan Carpenter already pointed this out. I was a bit late!

Thanks for your check as well. :)

Thanks,


- Eric