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]
Date:   Sun,  4 Jul 2021 16:02:38 -0700
From:   Randy Dunlap <rdunlap@...radead.org>
To:     linux-kernel@...r.kernel.org
Cc:     Randy Dunlap <rdunlap@...radead.org>,
        kernel test robot <lkp@...el.com>,
        Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
        linux-mips@...r.kernel.org
Subject: [PATCH] mips: CONFIG_KERNEL_LZ4 needs obj/bswapsi.o

Add obj/bswapsi.o for CONFIG_KERNEL_LZ4 to fix undefined references
during linking.

mips64-linux-ld: arch/mips/boot/compressed/decompress.o: in function `decompress_kernel':
decompress.c:(.text+0x34e0): undefined reference to `__bswapsi2'
mips64-linux-ld: decompress.c:(.text+0x3504): undefined reference to `__bswapsi2'
mips64-linux-ld: decompress.c:(.text+0x3530): undefined reference to `__bswapsi2'

#Fixes: d0nt0110kn0w ("I couldn't find where __bswapsi2 is used.")
Reported-by: kernel test robot <lkp@...el.com>
Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
Cc: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Cc: linux-mips@...r.kernel.org
---
 arch/mips/boot/compressed/Makefile |    1 +
 1 file changed, 1 insertion(+)

--- linux-next-20210701.orig/arch/mips/boot/compressed/Makefile
+++ linux-next-20210701/arch/mips/boot/compressed/Makefile
@@ -55,6 +55,7 @@ $(obj)/uart-ath79.c: $(srctree)/arch/mip
 	$(call cmd,shipped)
 
 vmlinuzobjs-$(CONFIG_KERNEL_XZ) += $(obj)/ashldi3.o $(obj)/bswapsi.o
+vmlinuzobjs-$(CONFIG_KERNEL_LZ4) += $(obj)/bswapsi.o
 
 extra-y += ashldi3.c
 $(obj)/ashldi3.c: $(obj)/%.c: $(srctree)/lib/%.c FORCE

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ