From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38231C43381 for ; Fri, 22 Mar 2019 12:09:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 085672083D for ; Fri, 22 Mar 2019 12:09:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553256575; bh=EPzuhdadrVe4QivfyrqbN7HmjoZ3v3fW4f3I4m6+2PE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=uzfmwMbomLvr62fM3l3R/A3YfsdZoipER+6ukah8lzr9EO1IbGkjOwgra2ADrSFEp yiq+qkWceY676z6CnQ5z9c5mqGpXShxhsG+i2+DximLu+LfIonaBzPuDI7D4odzROV Qv+J8OQCh56V6pVwhJLQFzWlUbTd9ZHDJYqT4K0Y= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389104AbfCVMJd (ORCPT ); Fri, 22 Mar 2019 08:09:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:47966 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388657AbfCVMJa (ORCPT ); Fri, 22 Mar 2019 08:09:30 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 749E72082C; Fri, 22 Mar 2019 12:09:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553256570; bh=EPzuhdadrVe4QivfyrqbN7HmjoZ3v3fW4f3I4m6+2PE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l1vkvfSrOWRRzeCzjk9jrxBftn1LXoS7mlrEmTJeGMujJu8jevIwWUoBdiEoUWFXF 3witVVP6lcPAp3NoWFB4Ib461c6VDl4VhWRq3bCEYzRbWgwK5qsaFBWAewrUu+CKVV wOWt569Nw2yeRVk/FgCeRkVW+qWc/Zw0aM4pGM6U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nick Desaulniers , Dmitry Golovin , Sedat Dilek , Josh Poimboeuf , Thomas Gleixner , Peter Zijlstra Subject: [PATCH 4.19 252/280] x86/unwind/orc: Fix ORC unwind table alignment Date: Fri, 22 Mar 2019 12:16:45 +0100 Message-Id: <20190322111341.781646687@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190322111306.356185024@linuxfoundation.org> References: <20190322111306.356185024@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Josh Poimboeuf commit f76a16adc485699f95bb71fce114f97c832fe664 upstream. The .orc_unwind section is a packed array of 6-byte structs. It's currently aligned to 6 bytes, which is causing warnings in the LLD linker. Six isn't a power of two, so it's not a valid alignment value. The actual alignment doesn't matter much because it's an array of packed structs. An alignment of two is sufficient. In reality it always gets aligned to four bytes because it comes immediately after the 4-byte-aligned .orc_unwind_ip section. Fixes: ee9f8fce9964 ("x86/unwind: Add the ORC unwinder") Reported-by: Nick Desaulniers Reported-by: Dmitry Golovin Reported-by: Sedat Dilek Signed-off-by: Josh Poimboeuf Signed-off-by: Thomas Gleixner Tested-by: Sedat Dilek Cc: Peter Zijlstra Cc: stable@vger.kernel.org Link: https://github.com/ClangBuiltLinux/linux/issues/218 Link: https://lkml.kernel.org/r/d55027ee95fe73e952dcd8be90aebd31b0095c45.1551892041.git.jpoimboe@redhat.com Signed-off-by: Greg Kroah-Hartman --- include/asm-generic/vmlinux.lds.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -727,7 +727,7 @@ KEEP(*(.orc_unwind_ip)) \ __stop_orc_unwind_ip = .; \ } \ - . = ALIGN(6); \ + . = ALIGN(2); \ .orc_unwind : AT(ADDR(.orc_unwind) - LOAD_OFFSET) { \ __start_orc_unwind = .; \ KEEP(*(.orc_unwind)) \