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  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 10 Jan 2021 11:56:14 +0000
From:   Alexander Lobakin <>
To:     Thomas Bogendoerfer <>
Cc:     Arnd Bergmann <>,
        Nathan Chancellor <>,
        Nick Desaulniers <>,
        Huacai Chen <>,
        Pei Huang <>,
        Kees Cook <>,
        Alexander Lobakin <>,
        Fangrui Song <>,
        Jiaxun Yang <>,
        Ralf Baechle <>,
        Corey Minyard <>,,,,,
Subject: [PATCH v5 mips-next 2/9] MIPS: CPS: don't create redundant .text.cps-vec section

A number of symbols from arch/mips/kernel/cps-vec.S is explicitly
placed into '.text.cps-vec' section.
There are no direct references to this section, so there's no need
to form it. '.balign 0x1000' directive will work anyway.

Moreover, this section was being placed in vmlinux differently
 - with this option enabled, '.text.cps-vec' was being caught
   by '.text.[0-9a-zA-Z_]*' from include/asm-generic/;
 - without this option, '.text.cps-vec' was being caught
   by discouraging '.text.*' from arch/mips/kernel/

'.text.*' should not be used in vmlinux linker scripts at all as it
silently catches any orphan text sections.
So, remove both '.section .text.cps-vec' and '.text.*' from cps-vec.S
and respectively. As said, this does not affect related
functions alignment:

80116000 T mips_cps_core_entry
80116028 t not_nmi
80116200 T excep_tlbfill
80116280 T excep_xtlbfill
80116300 T excep_cache
80116380 T excep_genex
80116400 T excep_intex
80116480 T excep_ejtag
80116490 T mips_cps_core_init

Signed-off-by: Alexander Lobakin <>
 arch/mips/kernel/cps-vec.S     | 1 -
 arch/mips/kernel/ | 1 -
 2 files changed, 2 deletions(-)

diff --git a/arch/mips/kernel/cps-vec.S b/arch/mips/kernel/cps-vec.S
index 4db7ff055c9f..975343240148 100644
--- a/arch/mips/kernel/cps-vec.S
+++ b/arch/mips/kernel/cps-vec.S
@@ -91,7 +91,6 @@
 	.set	pop
-.section .text.cps-vec
 .balign 0x1000
diff --git a/arch/mips/kernel/ b/arch/mips/kernel/
index 83e27a181206..ae1d0b4bdd60 100644
--- a/arch/mips/kernel/
+++ b/arch/mips/kernel/
@@ -66,7 +66,6 @@ SECTIONS
-		*(.text.*)
 	} :text = 0

Powered by blists - more mailing lists