lists.openwall.net   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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250520-rust-mno-fdpic-arm-fix-v1-1-44e77fe6b2a1@gmail.com>
Date: Tue, 20 May 2025 15:48:37 -0700
From: Rudraksha Gupta <guptarud@...il.com>
To: torvalds@...ux-foundation.org
Cc: Miguel Ojeda <ojeda@...nel.org>, Alex Gaynor <alex.gaynor@...il.com>, 
 Ben Wolsieffer <ben.wolsieffer@...ring.com>, 
 Boqun Feng <boqun.feng@...il.com>, Gary Guo <gary@...yguo.net>, 
 Björn Roy Baron <bjorn3_gh@...tonmail.com>, 
 Benno Lossin <benno.lossin@...ton.me>, 
 Andreas Hindborg <a.hindborg@...nel.org>, Alice Ryhl <aliceryhl@...gle.com>, 
 Trevor Gross <tmgross@...ch.edu>, Danilo Krummrich <dakr@...nel.org>, 
 rust-for-linux@...r.kernel.org, linux-kernel@...r.kernel.org, 
 Naresh Kamboju <naresh.kamboju@...aro.org>, 
 Christian Schrrefl <chrisi.schrefl@...il.com>, 
 Russell King <rmk+kernel@...linux.org.uk>, 
 Rudraksha Gupta <guptarud@...il.com>, Ard Biesheuvel <ardb@...nel.org>, 
 anders.roxell@...aro.org, arnd@...db.de, dan.carpenter@...aro.org, 
 laura.nao@...labora.com, lkft-triage@...ts.linaro.org, 
 regressions@...ts.linux.dev, Nick Clifton <nickc@...hat.com>, 
 Richard Earnshaw <richard.earnshaw@....com>, 
 Ramana Radhakrishnan <ramanara@...dia.com>, Miguel Ojeda <ojeda@...nel.org>, 
 Linux Kernel Functional Testing <lkft@...aro.org>
Subject: [PATCH] arm: Fix rustgcc unknown argument '-mno-fdpic'

Currently rust on arm fails to compile due to '-mno-fdpic'. This flag
disables a GCC feature that we don't want for kernel builds, so let's
skip it.

Reported-by: Linux Kernel Functional Testing <lkft@...aro.org>
Closes: https://lore.kernel.org/all/CA+G9fYvOanQBYXKSg7C6EU30k8sTRC0JRPJXYu7wWK51w38QUQ@mail.gmail.com/

Signed-off-by: Miguel Ojeda <ojeda@...nel.org>

Tested-by: Naresh Kamboju <naresh.kamboju@...aro.org>
Signed-off-by: Naresh Kamboju <naresh.kamboju@...aro.org>

Tested-by: Rudraksha Gupta <guptarud@...il.com>
Signed-off-by: Rudraksha Gupta <guptarud@...il.com>
---
Currently rust on arm fails to compile due to '-mno-fdpic'. This flag
disables a GCC feature that we don't want for kernel builds, so let's
skip it.

It seems like this bug went through the cracks, so I went ahead and sent
it. Hopefully nobody minds.

Closes: https://lore.kernel.org/all/CA+G9fYvOanQBYXKSg7C6EU30k8sTRC0JRPJXYu7wWK51w38QUQ@mail.gmail.com/
---
 rust/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rust/Makefile b/rust/Makefile
index 3aca903a7d08..f207ba0ed466 100644
--- a/rust/Makefile
+++ b/rust/Makefile
@@ -273,7 +273,7 @@ bindgen_skip_c_flags := -mno-fp-ret-in-387 -mpreferred-stack-boundary=% \
 	-fzero-call-used-regs=% -fno-stack-clash-protection \
 	-fno-inline-functions-called-once -fsanitize=bounds-strict \
 	-fstrict-flex-arrays=% -fmin-function-alignment=% \
-	-fzero-init-padding-bits=% \
+	-fzero-init-padding-bits=% -mno-fdpic \
 	--param=% --param asan-%
 
 # Derived from `scripts/Makefile.clang`.

---
base-commit: a5806cd506af5a7c19bcd596e4708b5c464bfd21
change-id: 20250520-rust-mno-fdpic-arm-fix-940a58bf9433

Best regards,
-- 
Rudraksha Gupta <guptarud@...il.com>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ