[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231016084723.icjv6mj64ocx2hoj@box>
Date: Mon, 16 Oct 2023 11:47:23 +0300
From: kirill.shutemov@...ux.intel.com
To: Binbin Wu <binbin.wu@...ux.intel.com>
Cc: dave.hansen@...ux.intel.com, luto@...nel.org, peterz@...radead.org,
shuah@...nel.org, linux-kselftest@...r.kernel.org, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] selftests/x86/lam: Zero out buffer for readlink()
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@...ux.intel.com>
Reviewed-by: Kirill A. Shutemov <kirill.shutemov@...ux.intel.com>
--
Kiryl Shutsemau / Kirill A. Shutemov
Powered by blists - more mailing lists