Re: [PATCH] netfs: Fix a KMSAN uninit-value error in netfs_clear_buffer
From: David Howells
Date: Sat Sep 21 2024 - 20:07:04 EST
Chang Yu <marcus.yu.56@xxxxxxxxx> wrote:
> - tail = kmalloc(sizeof(*tail), GFP_NOFS);
> + tail = kzalloc(sizeof(*tail), GFP_NOFS);
I'm deliberately not doing that because of the performance hit. That's 31
pointers of which, in many cases, we're only going to use the first couple.
There's a bitmask indicating which pointers need putting and a counter that
indicates how many are used.
David