From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f44.google.com ([74.125.82.44]:38477 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752794AbbKXKz7 (ORCPT ); Tue, 24 Nov 2015 05:55:59 -0500 Received: by wmec201 with SMTP id c201so20827977wme.1 for ; Tue, 24 Nov 2015 02:55:58 -0800 (PST) Date: Tue, 24 Nov 2015 10:55:56 +0000 From: Matt Fleming To: Ingo Molnar Cc: Thomas Gleixner , "H . Peter Anvin" , Toshi Kani , linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, Borislav Petkov , Sai Praneeth Prakhya , stable@vger.kernel.org, Dave Hansen Subject: Re: [PATCH 1/6] x86/efi: PFN_ALIGN() _text and _end when calculating number of pages Message-ID: <20151124105556.GA2460@codeblueprint.co.uk> References: <1448285594-17617-1-git-send-email-matt@codeblueprint.co.uk> <1448285594-17617-2-git-send-email-matt@codeblueprint.co.uk> <20151124082323.GA23451@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151124082323.GA23451@gmail.com> Sender: stable-owner@vger.kernel.org List-ID: On Tue, 24 Nov, at 09:23:23AM, Ingo Molnar wrote: > > Didn't we want to do the _end alignment linker script fix instead? I think we should do both. This patch is tagged for stable because it fixes a bug in the existing code. It's obvious and it's explicit and it's much easier to know when someone might want to backport it. Changing the linker script which indirectly fixes the above bug is a much more subtle solution, with much larger potential for fallout because it affects multiple chunks of kernel code. > Alignment assumptions are easy to make when symbols are well aligned typically (as > in this case), so we should guarantee the alignment property instead of > complicating the code. I don't agree that sprinkling PFN_ALIGN() complicates the code, it's a minimal change with a well known kernel idiom. But yes, aligning these symbols in the linker script is generally a good idea. The two patches are worthwhile, for different reasons; let's do both.