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-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200817143854.519608451@linuxfoundation.org>
Date:   Mon, 17 Aug 2020 17:16:26 +0200
From:   Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To:     linux-kernel@...r.kernel.org
Cc:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        stable@...r.kernel.org, Romain Naour <romain.naour@...il.com>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Alan Modra <amodra@...il.com>,
        Bin Meng <bin.meng@...driver.com>,
        Chen Zhou <chenzhou10@...wei.com>,
        Geert Uytterhoeven <geert+renesas@...der.be>,
        John Paul Adrian Glaubitz <glaubitz@...sik.fu-berlin.de>,
        Krzysztof Kozlowski <krzk@...nel.org>,
        Kuninori Morimoto <kuninori.morimoto.gx@...esas.com>,
        Rich Felker <dalias@...c.org>, Sam Ravnborg <sam@...nborg.org>,
        Yoshinori Sato <ysato@...rs.sourceforge.jp>,
        Arnd Bergmann <arnd@...db.de>,
        Linus Torvalds <torvalds@...ux-foundation.org>
Subject: [PATCH 5.8 433/464] include/asm-generic/vmlinux.lds.h: align ro_after_init

From: Romain Naour <romain.naour@...il.com>

commit 7f897acbe5d57995438c831670b7c400e9c0dc00 upstream.

Since the patch [1], building the kernel using a toolchain built with
binutils 2.33.1 prevents booting a sh4 system under Qemu.  Apply the patch
provided by Alan Modra [2] that fix alignment of rodata.

[1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ebd2263ba9a9124d93bbc0ece63d7e0fae89b40e
[2] https://www.sourceware.org/ml/binutils/2019-12/msg00112.html

Signed-off-by: Romain Naour <romain.naour@...il.com>
Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
Cc: Alan Modra <amodra@...il.com>
Cc: Bin Meng <bin.meng@...driver.com>
Cc: Chen Zhou <chenzhou10@...wei.com>
Cc: Geert Uytterhoeven <geert+renesas@...der.be>
Cc: John Paul Adrian Glaubitz <glaubitz@...sik.fu-berlin.de>
Cc: Krzysztof Kozlowski <krzk@...nel.org>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@...esas.com>
Cc: Rich Felker <dalias@...c.org>
Cc: Sam Ravnborg <sam@...nborg.org>
Cc: Yoshinori Sato <ysato@...rs.sourceforge.jp>
Cc: Arnd Bergmann <arnd@...db.de>
Cc: <stable@...r.kernel.org>
Link: https://marc.info/?l=linux-sh&m=158429470221261
Signed-off-by: Linus Torvalds <torvalds@...ux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>

---
 include/asm-generic/vmlinux.lds.h |    1 +
 1 file changed, 1 insertion(+)

--- a/include/asm-generic/vmlinux.lds.h
+++ b/include/asm-generic/vmlinux.lds.h
@@ -375,6 +375,7 @@
  */
 #ifndef RO_AFTER_INIT_DATA
 #define RO_AFTER_INIT_DATA						\
+	. = ALIGN(8);							\
 	__start_ro_after_init = .;					\
 	*(.data..ro_after_init)						\
 	JUMP_TABLE_DATA							\


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ