Re: [PATCH 06/30] sysinfo: Use explicit types in <linux/sysinfo.h>

From: H. Peter Anvin
Date: Mon Feb 20 2012 - 15:44:44 EST


On 02/20/2012 12:01 PM, Geert Uytterhoeven wrote:
> On Mon, Feb 20, 2012 at 18:29, H. Peter Anvin <hpa@xxxxxxxxx> wrote:
>> Not really... it comes down to "implicit padding in kernel ABI structures is bad". They can easily become security holes.
>
> On 64-bit platforms with natural alignment of long, there's an implicit padding.
>

We should try to make those explicit, but it sometimes gets hard
retroactively. Note that the particular patch you're pointing to is
just an identity patch.

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/