lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 1 Mar 2015 07:09:54 +0200
From:	Eyal Birger <>
To:	David Miller <>
Cc:	Willem de Bruijn <>,
	Eric Dumazet <>,
	Shmulik Ladkani <>,,
	Marcel Holtmann <>,
	"" <>
Subject: Re: [PATCH net-next v2 4/7] net: packet: use skb->dev as storage for
 skb orig len instead of skb->cb[]

On Sat, Feb 28, 2015 at 11:00 PM, David Miller <> wrote:
> From: Eyal Birger <>
> Date: Sat, 28 Feb 2015 22:38:04 +0200
>> My concern is that any value I pick based on the existing implementations
>> would need to be adjusted come a protocol with a larger address length.
> Then we need a method that requires protocols to register their
> address length in a manner that will allow us to validate that
> limit at compile time.

Sorry to reiterate this, but such validation will inherently become the
actual limit for hardware addresses.
So, it would be equivalent to changing the in-kernel definition of

Is this something to be considered?

> This is not rocket science.
> Right now we're proposing to do utterly stupid shit like encoding
> integers in device pointers in the sk_buff, when that is absolutely
> not necessary at all.

Ok. Another suggestion I received was to delay the preparation of the full
sockaddr_ll until it is needed, and store the skb original length in the first
two fields (sll_protocol and sll_family) as they can be derived later on from
the skb.

IMHO, It would still be somewhat of a hack though.

Would that approach be considered?

To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists