From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752644Ab3LXI2q (ORCPT ); Tue, 24 Dec 2013 03:28:46 -0500 Received: from ozlabs.org ([203.10.76.45]:49899 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751871Ab3LXI2o (ORCPT ); Tue, 24 Dec 2013 03:28:44 -0500 From: Michael Neuling To: Linus Torvalds cc: Ard Biesheuvel , Michael Neuling , Nishanth Aravamudan , Benjamin Herrenschmidt , Linux Kernel Mailing List , Greg Kroah-Hartman , stable Subject: Re: [PATCH] auxvec.h: account for AT_HWCAP2 in AT_VECTOR_SIZE_BASE In-reply-to: References: <1387820970-6949-1-git-send-email-ard.biesheuvel@linaro.org> Comments: In-reply-to Linus Torvalds message dated "Mon, 23 Dec 2013 17:37:00 -0800." X-Mailer: MH-E 8.2; nmh 1.5; GNU Emacs 23.4.1 Date: Tue, 24 Dec 2013 19:28:42 +1100 Message-ID: <1529.1387873722@ale.ozlabs.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Please cc the guilty parties when sending patches like this. Crud, sorry about that. Can we add a comment at the end of include/linux/auxvec.h that says you need to update this? Then plebs like me are less likely to miss it in future. Mikey > Also, just out of interest, please describe how this bug affected > things. Did we overflow the saved_auxv[] array, or what? Also, how > does this change affect architectures that _don't_ have that > ELF_HWCAP2 thing, ie everything but powerpc? > > Acks, people? > > Linus > > On Mon, Dec 23, 2013 at 9:49 AM, Ard Biesheuvel > wrote: > > Commit 2171364d1a92 (powerpc: Add HWCAP2 aux entry) introduced a new > > AT_ auxv entry type AT_HWCAP2 but failed to update AT_VECTOR_SIZE_BASE > > accordingly. > > > > Signed-off-by: Ard Biesheuvel > > Fixes: 2171364d1a92 (powerpc: Add HWCAP2 aux entry) > > Cc: stable@vger.kernel.org > > --- > > > > include/linux/auxvec.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/include/linux/auxvec.h b/include/linux/auxvec.h > > index 669fef5..3e0fbe4 100644 > > --- a/include/linux/auxvec.h > > +++ b/include/linux/auxvec.h > > @@ -3,6 +3,6 @@ > > > > #include > > > > -#define AT_VECTOR_SIZE_BASE 19 /* NEW_AUX_ENT entries in auxiliary table */ > > +#define AT_VECTOR_SIZE_BASE 20 /* NEW_AUX_ENT entries in auxiliary table */ > > /* number of "#define AT_.*" above, minus {AT_NULL, AT_IGNORE, AT_NOTELF} */ > > #endif /* _LINUX_AUXVEC_H */ > > -- > > 1.8.3.2 > > >