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: <20160419.010316.1863885429013017239.davem@davemloft.net> Date: Tue, 19 Apr 2016 01:03:16 -0400 (EDT) From: David Miller <davem@...emloft.net> To: eric.dumazet@...il.com Cc: roopa@...ulusnetworks.com, netdev@...r.kernel.org, jhs@...atatu.com, tgraf@...g.ch, nicolas.dichtel@...nd.com Subject: Re: [PATCH net-next v5] rtnetlink: add new RTM_GETSTATS message to dump link stats From: Eric Dumazet <eric.dumazet@...il.com> Date: Mon, 18 Apr 2016 21:32:04 -0700 > On Mon, 2016-04-18 at 23:41 -0400, David Miller wrote: >> >> + /* Add a zero length NOP attribute so that the nla_data() >> + * of the IFLA_STATS64 will be 64-bit aligned. >> + */ >> +#ifndef HAVE_EFFICIENT_UNALIGNED_ACCESS >> + attr = nla_reserve(skb, IFLA_PAD, 0); >> + if (!attr) >> + return -EMSGSIZE; >> +#endif > > You must do this only if current skb->data alignment is not correct. I'll put an assertion there if it makes you happy. :-)
Powered by blists - more mailing lists