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  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Sat, 26 Mar 2016 13:28:38 -0400
From:	Sasha Levin <>
Cc:	James Hogan <>,
	Michal Marek <>,
	Andi Kleen <>,
	Geert Uytterhoeven <>,,,, Ralf Baechle <>,
	Sasha Levin <>
Subject: [added to the 4.1 stable tree] ld-version: Fix awk regex compile failure

From: James Hogan <>

This patch has been added to the 4.1 stable tree. If you have any
objections, please let us know.


[ Upstream commit 4b7b1ef2c2f83d702272555e8adb839a50ba0f8e ]

The script fails on some versions of awk with the
following error, resulting in build failures for MIPS:

awk: scripts/ line 4: regular expression compile failed (missing '(')

This is due to the regular expression ".*)", meant to strip off the
beginning of the ld version string up to the close bracket, however
brackets have a meaning in regular expressions, so lets escape it so
that awk doesn't expect a corresponding open bracket.

Fixes: ccbef1674a15 ("Kbuild, lto: add ld-version and ld-ifversion ...")
Reported-by: Geert Uytterhoeven <>
Signed-off-by: James Hogan <>
Tested-by: Michael S. Tsirkin <>
Acked-by: Michael S. Tsirkin <>
Tested-by: Sudip Mukherjee <>
Cc: Michal Marek <>
Cc: Andi Kleen <>
Cc: Geert Uytterhoeven <>
Cc: # 4.4.x-
Signed-off-by: Ralf Baechle <>
Signed-off-by: Sasha Levin <>
 scripts/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/ b/scripts/
index 198580d..1659b40 100755
--- a/scripts/
+++ b/scripts/
@@ -1,7 +1,7 @@
 #!/usr/bin/awk -f
 # extract linker version number from stdin and turn into single number
-	gsub(".*)", "");
+	gsub(".*\\)", "");
 	split($1,a, ".");
 	print a[1]*10000000 + a[2]*100000 + a[3]*10000 + a[4]*100 + a[5];

Powered by blists - more mailing lists