Binbin Wu 2906063341 selftests/x86/lam: Zero out buffer for readlink()
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>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Link: https://lore.kernel.org/r/20231016062446.695-1-binbin.wu@linux.intel.com
2023-10-16 11:39:57 +02:00
..
2023-07-25 14:06:08 +02:00
2023-04-24 12:28:34 -07:00
2023-08-28 18:46:47 -07:00
2023-09-01 15:58:21 -07:00
2023-08-24 10:41:47 -04:00
2023-09-02 11:10:50 -07:00
2023-06-29 10:11:10 -07:00
2023-07-13 19:13:24 -07:00
2023-08-31 13:25:55 -04:00
2023-02-23 09:37:29 -08:00
2023-08-28 19:03:24 -07:00
2023-04-25 11:05:04 -07:00
2023-08-28 18:46:47 -07:00
2023-08-21 13:46:25 -07:00
2023-08-29 11:33:01 -07:00