mirror of
https://github.com/torvalds/linux.git
synced 2026-03-13 23:46:14 +01:00
x86/tdx: Mark message.bytes as nonstring
In preparation for strtomem*() checking that its destination is a nonstring, rename and annotate message.bytes accordingly. Acked-by: Dave Hansen <dave.hansen@linux.intel.com> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Signed-off-by: Kees Cook <kees@kernel.org>
This commit is contained in:
parent
ae4c0935f6
commit
c0e1d4656e
1 changed files with 2 additions and 2 deletions
|
|
@ -167,11 +167,11 @@ static void __noreturn tdx_panic(const char *msg)
|
|||
/* Define register order according to the GHCI */
|
||||
struct { u64 r14, r15, rbx, rdi, rsi, r8, r9, rdx; };
|
||||
|
||||
char str[64];
|
||||
char bytes[64] __nonstring;
|
||||
} message;
|
||||
|
||||
/* VMM assumes '\0' in byte 65, if the message took all 64 bytes */
|
||||
strtomem_pad(message.str, msg, '\0');
|
||||
strtomem_pad(message.bytes, msg, '\0');
|
||||
|
||||
args.r8 = message.r8;
|
||||
args.r9 = message.r9;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue