lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Mon, 15 Apr 2019 23:25:21 -0700
From:   tip-bot for Sami Tolvanen <>
Subject: [tip:x86/urgent] x86/build/lto: Fix truncated .bss with

Commit-ID:  6a03469a1edc94da52b65478f1e00837add869a3
Author:     Sami Tolvanen <>
AuthorDate: Mon, 15 Apr 2019 09:49:56 -0700
Committer:  Ingo Molnar <>
CommitDate: Tue, 16 Apr 2019 08:20:55 +0200

x86/build/lto: Fix truncated .bss with -fdata-sections

With CONFIG_LD_DEAD_CODE_DATA_ELIMINATION=y, we compile the kernel with
-fdata-sections, which also splits the .bss section.

The new section, with a new .bss.* name, which pattern gets missed by the
main x86 linker script which only expects the '.bss' name. This results
in the discarding of the second part and a too small, truncated .bss
section and an unhappy, non-working kernel.

Use the common BSS_MAIN macro in the linker script to properly capture
and merge all the generated BSS sections.

Signed-off-by: Sami Tolvanen <>
Reviewed-by: Nick Desaulniers <>
Reviewed-by: Kees Cook <>
Cc: Borislav Petkov <>
Cc: Kees Cook <>
Cc: Linus Torvalds <>
Cc: Nicholas Piggin <>
Cc: Nick Desaulniers <>
Cc: Peter Zijlstra <>
Cc: Thomas Gleixner <>
[ Extended the changelog. ]
Signed-off-by: Ingo Molnar <>
 arch/x86/kernel/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/ b/arch/x86/kernel/
index bad8c51fee6e..a5127b2c195f 100644
--- a/arch/x86/kernel/
+++ b/arch/x86/kernel/
@@ -362,7 +362,7 @@ SECTIONS
 	.bss : AT(ADDR(.bss) - LOAD_OFFSET) {
 		__bss_start = .;
-		*(.bss)
+		*(BSS_MAIN)
 		__bss_stop = .;

Powered by blists - more mailing lists