From: David Howells <dhowells@redhat.com>
To: Chang Yu <marcus.yu.56@gmail.com>
Cc: dhowells@redhat.com, jlayton@kernel.org, netfs@lists.linux.dev,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
skhan@linuxfoundation.org
Subject: Re: [PATCH] netfs: Fix a KMSAN uninit-value error in netfs_clear_buffer
Date: Sun, 22 Sep 2024 01:06:47 +0100 [thread overview]
Message-ID: <557230.1726963607@warthog.procyon.org.uk> (raw)
In-Reply-To: <Zu4doSKzXfSuVipQ@gmail.com>
Chang Yu <marcus.yu.56@gmail.com> 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
next prev parent reply other threads:[~2024-09-22 0:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-21 1:13 [PATCH] netfs: Fix a KMSAN uninit-value error in netfs_clear_buffer Chang Yu
2024-09-22 0:06 ` David Howells [this message]
2024-09-23 7:12 ` David Howells
2024-10-01 6:25 ` Chang Yu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=557230.1726963607@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=jlayton@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcus.yu.56@gmail.com \
--cc=netfs@lists.linux.dev \
--cc=skhan@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox