* [PATCH] auxvec.h: account for AT_HWCAP2 in AT_VECTOR_SIZE_BASE
@ 2013-12-23 17:49 Ard Biesheuvel
2013-12-24 1:37 ` Linus Torvalds
0 siblings, 1 reply; 4+ messages in thread
From: Ard Biesheuvel @ 2013-12-23 17:49 UTC (permalink / raw)
To: linux-kernel, torvalds, gregkh; +Cc: Ard Biesheuvel, stable
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 <ard.biesheuvel@linaro.org>
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 <uapi/linux/auxvec.h>
-#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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] auxvec.h: account for AT_HWCAP2 in AT_VECTOR_SIZE_BASE
2013-12-23 17:49 [PATCH] auxvec.h: account for AT_HWCAP2 in AT_VECTOR_SIZE_BASE Ard Biesheuvel
@ 2013-12-24 1:37 ` Linus Torvalds
2013-12-24 8:28 ` Michael Neuling
2013-12-24 21:13 ` Nishanth Aravamudan
0 siblings, 2 replies; 4+ messages in thread
From: Linus Torvalds @ 2013-12-24 1:37 UTC (permalink / raw)
To: Ard Biesheuvel, Michael Neuling, Nishanth Aravamudan,
Benjamin Herrenschmidt
Cc: Linux Kernel Mailing List, Greg Kroah-Hartman, stable
Please cc the guilty parties when sending patches like this.
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
<ard.biesheuvel@linaro.org> 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 <ard.biesheuvel@linaro.org>
> 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 <uapi/linux/auxvec.h>
>
> -#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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] auxvec.h: account for AT_HWCAP2 in AT_VECTOR_SIZE_BASE
2013-12-24 1:37 ` Linus Torvalds
@ 2013-12-24 8:28 ` Michael Neuling
2013-12-24 21:13 ` Nishanth Aravamudan
1 sibling, 0 replies; 4+ messages in thread
From: Michael Neuling @ 2013-12-24 8:28 UTC (permalink / raw)
To: Linus Torvalds
Cc: Ard Biesheuvel, Michael Neuling, Nishanth Aravamudan,
Benjamin Herrenschmidt, Linux Kernel Mailing List,
Greg Kroah-Hartman, stable
> 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
> <ard.biesheuvel@linaro.org> 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 <ard.biesheuvel@linaro.org>
> > 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 <uapi/linux/auxvec.h>
> >
> > -#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
> >
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] auxvec.h: account for AT_HWCAP2 in AT_VECTOR_SIZE_BASE
2013-12-24 1:37 ` Linus Torvalds
2013-12-24 8:28 ` Michael Neuling
@ 2013-12-24 21:13 ` Nishanth Aravamudan
1 sibling, 0 replies; 4+ messages in thread
From: Nishanth Aravamudan @ 2013-12-24 21:13 UTC (permalink / raw)
To: Linus Torvalds
Cc: Ard Biesheuvel, Michael Neuling, Benjamin Herrenschmidt,
Linux Kernel Mailing List, Greg Kroah-Hartman, stable
On 23.12.2013 [17:37:00 -0800], Linus Torvalds wrote:
> Please cc the guilty parties when sending patches like this.
>
> 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?
Acked-by: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>
I agree with Mikey that a comment might be useful. Thanks for the fix
and sorry for the mistake!
-Nish
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-12-24 21:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-23 17:49 [PATCH] auxvec.h: account for AT_HWCAP2 in AT_VECTOR_SIZE_BASE Ard Biesheuvel
2013-12-24 1:37 ` Linus Torvalds
2013-12-24 8:28 ` Michael Neuling
2013-12-24 21:13 ` Nishanth Aravamudan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).