[packages/kmod] disable struct randomization for tests

atler atler at pld-linux.org
Fri May 9 02:52:34 CEST 2025


commit 3059dd8ea81cf87c56cf5e017090cd028bbe3216
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri May 9 00:43:57 2025 +0200

    disable struct randomization for tests
    
    tests expect to find modulename within struct module at fixed offset:
    
    https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/tree/testsuite/init_module.c?h=v34.2#n256

 kmod.spec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/kmod.spec b/kmod.spec
index 093f136..955a138 100644
--- a/kmod.spec
+++ b/kmod.spec
@@ -139,7 +139,8 @@ Pliki nagłówkowe biblioteki %{name}.
 %if %{with tests}
 %{__make} check \
 	KDIR=%{_kernelsrcdir} \
-	KVER=%{_kernel_ver}
+	KVER=%{_kernel_ver} \
+	MAKEFLAGS=CONFIG_RANDSTRUCT=n
 %endif
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kmod.git/commitdiff/2c0c6cc4547ee8a5826e23eb7d050d2f06bbf331



More information about the pld-cvs-commit mailing list