From: Shuah Khan <skhan@linuxfoundation.org>
To: kirill.shutemov@linux.intel.com, Binbin Wu <binbin.wu@linux.intel.com>
Cc: dave.hansen@linux.intel.com, luto@kernel.org,
peterz@infradead.org, shuah@kernel.org,
linux-kselftest@vger.kernel.org, x86@kernel.org,
linux-kernel@vger.kernel.org,
Shuah Khan <skhan@linuxfoundation.org>
Subject: Re: [PATCH v2] selftests/x86/lam: Zero out buffer for readlink()
Date: Mon, 16 Oct 2023 13:11:12 -0600 [thread overview]
Message-ID: <f22e0008-24da-4b6a-bdff-61bc448bf5f8@linuxfoundation.org> (raw)
In-Reply-To: <20231016084723.icjv6mj64ocx2hoj@box>
On 10/16/23 02:47, kirill.shutemov@linux.intel.com wrote:
> On Mon, Oct 16, 2023 at 02:24:46PM +0800, Binbin Wu wrote:
>> Zero out the buffer for readlink() since readlink() does not append a
>> terminating null byte to the buffer. Also change the buffer length
>> passed to readlink() to 'PATH_MAX - 1' to ensure the resulting string
>> is always null terminated.
>>
>> Fixes: 833c12ce0f430 ("selftests/x86/lam: Add inherit test cases for linear-address masking")
>>
>> Signed-off-by: Binbin Wu <binbin.wu@linux.intel.com>
>
> Reviewed-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
>
Thank you. Applied to linux-kselftest next for Linux 6.7-rc1
thanks,
-- Shuah
next prev parent reply other threads:[~2023-10-16 19:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-16 6:24 [PATCH v2] selftests/x86/lam: Zero out buffer for readlink() Binbin Wu
2023-10-16 8:47 ` kirill.shutemov
2023-10-16 19:11 ` Shuah Khan [this message]
2023-10-16 9:44 ` [tip: x86/mm] " tip-bot2 for Binbin Wu
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=f22e0008-24da-4b6a-bdff-61bc448bf5f8@linuxfoundation.org \
--to=skhan@linuxfoundation.org \
--cc=binbin.wu@linux.intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=luto@kernel.org \
--cc=peterz@infradead.org \
--cc=shuah@kernel.org \
--cc=x86@kernel.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