Re: [PATCH v5] net: ip, diag -- Add diag interface for raw sockets

From: David Miller
Date: Wed Sep 28 2016 - 08:17:08 EST

From: Jamal Hadi Salim <jhs@xxxxxxxxxxxx>
Date: Wed, 28 Sep 2016 08:09:28 -0400

> On 16-09-28 08:07 AM, David Miller wrote:
>> Right, it would be legal for an existing user to have code that
>> explicitly initializes every member of the structure, including 'pad'.
>> So we have to keep that member around, at a minimum, for their sake.
> I think we need to start labelling any new pad fields added as
> "Not UAPI. Do not fsck fondle this".

They must initialize it to zero.