Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp625683img; Fri, 22 Mar 2019 05:25:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqyiT9FPzldWSVqFtD/RZ1gHO1jGUXsUg6/Lt3pvuddr7EDO/vx23LbCeJbUc9RxCTueKIF8 X-Received: by 2002:a62:39d6:: with SMTP id u83mr8905669pfj.161.1553257502885; Fri, 22 Mar 2019 05:25:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553257502; cv=none; d=google.com; s=arc-20160816; b=FLZKGjLd9XGAT9SvgGMUvBTB0JPd7j9uWj/Z7FGy+kkLdiifS7nxBb5zRSBu/inpmf fOzag+yoAlQbRUAub9P8U4hc1p82Yc//ZGCGDbUI2IBYD0R1RV/jkts1idqg6zzy+Nzr aCHBlCEYaro2WwtbBu+lQtTr3AuV1Jztwm3bU42o+HK7qkDMDo81QdAx3aF1vvEL++m9 vnf+83sIz8JB8Sp5CN+SANY3AAI9/F4dRCQoffcUdrMAx99nBxFf67OaxFtrXSFfxTiI lg/zw6TxNJePtsjwmz/+VaN6J7/A9LwwOAiLdjqMa+IegPXm7J+emQ8Kpy74KJOw80BM SMlA== 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=pmselJYXb85eOR3e7xdIexabtrEY50bdvtXoHGYHfiI=; b=cEj/yQ70EUGaYFEe9rSGdRTon0xKP0SH7yb9We1WUwVhOfdvNmMaVlfeDFeOuaj/qx t8zHcGupHC5FURShpLZUByL1BFNU/AYmKYNl2dQ2Un7D4QObBaqTnnZxE9YlzIVhSwC8 1u8KOV+U/kp09EpmO/FFq3XZgekUoFSS7hLA94xzTGCcxaMldw1AQE3z9odjmwPjTG2d uAcHtoWmmuvlV/HCAOMmEGcb4SDKuNuzYDc3M0yi9nMnFFg4DpBcZQFgdObEbGISWxxJ Dz9oVVz1L6t2Dqwf35+gpR6ntbSfeFJ54yrBYCcqj+AK/qRoTGd73E1U8iTRZQhKTsTI TW4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iAiaZxjP; 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 b13si5185621pgl.331.2019.03.22.05.24.47; Fri, 22 Mar 2019 05:25:02 -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=iAiaZxjP; 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 S2391219AbfCVMYB (ORCPT + 99 others); Fri, 22 Mar 2019 08:24:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:35642 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391190AbfCVMX7 (ORCPT ); Fri, 22 Mar 2019 08:23:59 -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 8ACE02054F; Fri, 22 Mar 2019 12:23:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553257439; bh=DQUDU/wicvfblSmKO3y8YDpRo/lM3C0d0nuKwJLqwio=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iAiaZxjPy4D9EjCyMOPEyF5VGEAmiVkoNBxA1+81g/xD6FepPTR1pnrWW0K5dVbKL cmnlM4bnCqn+Viriz34vv0IiDidXuP3bd9buyx8AkPx/Uh8MQJIWoCW1FYFBh7ft2z +84Cwn8s9V9yPMMjkkPAco0bEzAFZbunl70VfbK0= 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 5.0 199/238] x86/unwind/orc: Fix ORC unwind table alignment Date: Fri, 22 Mar 2019 12:16:58 +0100 Message-Id: <20190322111309.936738551@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190322111258.383569278@linuxfoundation.org> References: <20190322111258.383569278@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 5.0-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 @@ -733,7 +733,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)) \