Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp601128img; Fri, 22 Mar 2019 04:57:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUHrDpcJ/HiWFXK9xGmCRJ02F5MJslThnwkPIrJ5YAAtMRceX/GUefVSSg/zP2KC1n06PZ X-Received: by 2002:a65:64d5:: with SMTP id t21mr8327472pgv.266.1553255852183; Fri, 22 Mar 2019 04:57:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553255852; cv=none; d=google.com; s=arc-20160816; b=OCBGNuScaT+Cg3pDl5i9224Mi3GP44Ld8wF52qYk+BTSEOvyEpNiKmZpkKdXdghqL8 XAiBVLulpiiyK8vBBrQzZjL5jj20Gqmo6IzVeg13HmBKYqTyb3VfVLFqyMlyxSKJkXcY jUAXyeo868T7wNtrLsNeaKq16tWotxUQV6tcTrZRbcHKZYeXzy3aut7YPckQQM4hmT6G Opxo8mXdwzY4sns6grHHStA0dwNv/tJfzc/JEHGD+uLbEJ5t9WPNwHQ45T5QI9VDHvIW h4RXmG/kjPLDBeElyNr6DOCwYRc7dvEnmYcM5e/NZ9B8oZ7szzJe6MBcBn/WaEzd3w6u 9TXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=BksCBF+FhTRByzmV/gyNcMlvAtgA1BJbHh9x4qO4Tts=; b=NUmU47jB4tFubBZdlJ1lEtMmyagOkwsTfLoksKlU6GFC7m1HQHgahktZQ/PxlxiRRn pgLBXDU25GiH58TwqgWaxLf6Z0fnoFJPGGR7ArOU3CNK4xmnp7x76PXR16WLZ8sAPGKr z5MienZaeymlUgp3rnuku/Bk7n+H0NRAveoYui4vCpxzC82y1DKy2ZLpwG18lUHSt99R ukVB+O/GYgo2m0KeNm51FGmL9Y9vAKOveE1EienWQcQUZlo+WpseSBt++6dbFMyoq0dO 83x0gZWokTepq+mV2itpwk9R48ezuYYwBEnxJHGHFDQeBdo5Abj6pmcf3j9cGjx48jqb ZixA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Q5KL9uo6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v16si6833136plo.33.2019.03.22.04.57.17; Fri, 22 Mar 2019 04:57:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Q5KL9uo6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387407AbfCVLzb (ORCPT + 99 others); Fri, 22 Mar 2019 07:55:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:60096 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733312AbfCVLz3 (ORCPT ); Fri, 22 Mar 2019 07:55:29 -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 4A0A62082C; Fri, 22 Mar 2019 11:55:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553255728; bh=iaP6tjL41Gr6eJ6zro4soELsdReZ6RHWXJno1skuRXs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q5KL9uo6OejQyqeb11fmb/FWpJ7RzWHhMSEJvIQuv8dvqgXzVFUI5O0QmTO19FPlf PcyJaT0qX1ZmCVSePD4BwYZEmn7V159lEgOXY++0YXNuTBiWIyp0DzugX0d96j73gU GMBkXIIxToaZHmHYwmg13PdNcCMzyiZxsT0L8P5o= 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.14 162/183] x86/unwind/orc: Fix ORC unwind table alignment Date: Fri, 22 Mar 2019 12:16:30 +0100 Message-Id: <20190322111253.637843202@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190322111241.819468003@linuxfoundation.org> References: <20190322111241.819468003@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.14-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 @@ -696,7 +696,7 @@ KEEP(*(.orc_unwind_ip)) \ VMLINUX_SYMBOL(__stop_orc_unwind_ip) = .; \ } \ - . = ALIGN(6); \ + . = ALIGN(2); \ .orc_unwind : AT(ADDR(.orc_unwind) - LOAD_OFFSET) { \ VMLINUX_SYMBOL(__start_orc_unwind) = .; \ KEEP(*(.orc_unwind)) \