lists.openwall.net | 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 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <CAHsH6GvfJHt6qA_9C1wsHEe1Y=ii9Z8a+3V_2D4NSiZZ4oBkvQ@mail.gmail.com> Date: Tue, 24 Feb 2015 08:58:52 +0200 From: Eyal Birger <eyal.birger@...il.com> To: David Miller <davem@...emloft.net> Cc: Shmulik Ladkani <shmulik.ladkani@...il.com>, Eric Dumazet <edumazet@...gle.com>, netdev@...r.kernel.org Subject: Re: [PATCH net-next v3 3/4] net: use skb->priority for overloading skb->dropcount and skb->reserved_tailroom instead of skb->mark On Mon, Feb 23, 2015 at 11:48 PM, David Miller <davem@...emloft.net> wrote: > From: Shmulik Ladkani <shmulik.ladkani@...il.com> > Date: Mon, 23 Feb 2015 20:56:33 +0200 > >> May I suggest to unalias 'mark' out of the union? > > Only in exchange for finding a way to remove completely another object > of the same size from sk_buff. > > I refuse to let it grow any more, it's already way too big. I agree that aliasing skb->priority with skb->dropcount and skb->reserved_tailroom is less than optimal. I can suggest an alternative patch following Eric Dumazet's suggestion in which skb->dropcount is removed and skb->cb[] is used instead for keeping dropcount. That would require protocol family implementations to access skb->cb[] via a common accessor or use a common offset #define from the start of skb->cb[]. Eyal. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists