Thread (45 messages) flat view 45 messages, 5 authors, 2012-12-20

Re: [PATCH net-next 0/7] Allow to monitor multicast cache event via rtnetlink

From: David Miller <davem@davemloft.net>
Date: 2012-12-05 17:53:27

From: Nicolas Dichtel <redacted>
Date: Wed, 05 Dec 2012 12:02:50 +0100
Le 04/12/2012 21:02, Nicolas Dichtel a écrit :
quoted
I can have a try on a tile platform. I don't have access to sparc or
mips.
Hmm, I've read arm instead of mips! So I've tried on mips. Data are
aligned on 32-bit, like for all netlink messages. nla_put_u64() will
do the same, as it calls nla_put().

And the kernel will only use memcpy() to treat this attribute. Reader
will be in userland.
Then userland will trap if the 64-bit values are only 32-bit aligned.

That's the problem I'm talking about.

I don't want to export any more unaligned 64-bit values in netlink
messages, it's a complete mess.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help