Skip to content

Commit df65494

Browse files
committed
Merge tag 'hardening-v6.1-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull kernel hardening fix from Kees Cook: - Fix !SMP placement of '.data..decrypted' section (Nathan Chancellor) * tag 'hardening-v6.1-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: vmlinux.lds.h: Fix placement of '.data..decrypted' section
2 parents f9bbe0c + 000f887 commit df65494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/asm-generic/vmlinux.lds.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@
347347
#define DATA_DATA \
348348
*(.xiptext) \
349349
*(DATA_MAIN) \
350+
*(.data..decrypted) \
350351
*(.ref.data) \
351352
*(.data..shared_aligned) /* percpu related */ \
352353
MEM_KEEP(init.data*) \
@@ -995,7 +996,6 @@
995996
#ifdef CONFIG_AMD_MEM_ENCRYPT
996997
#define PERCPU_DECRYPTED_SECTION \
997998
. = ALIGN(PAGE_SIZE); \
998-
*(.data..decrypted) \
999999
*(.data..percpu..decrypted) \
10001000
. = ALIGN(PAGE_SIZE);
10011001
#else

0 commit comments

Comments
 (0)