Le 04/05/2016 11:05, Lars Ellenberg a écrit : [snip] > We don't have an "alignment problem" there, btw. > Last time I checked, we did work fine without this alignment magic, > we already take care of that, yes, even on affected architectures. The code adds several consecutive u64 attributes. The nl attribute header is 4 bytes, thus the full attribute length is 12 bytes. If the first u64 is aligned on 8 (nla_data()), the next one is not aligned on 8: it starts 12 bytes (8 (u64) + 4 (nl attr hdr)) after the previous u64.
- [PATCH net-next 4/8] sock_diag: align nlattr properly when... Nicolas Dichtel
- Re: [PATCH net-next 0/8] netlink: align attributes when ne... Lars Ellenberg
- Re: [Drbd-dev] [PATCH net-next 0/8] netlink: align at... Lars Ellenberg
- [PATCH net-next] block/drbd: use nla_put_u64_64bi... Nicolas Dichtel
- Re: [PATCH net-next] block/drbd: use nla_put_... Nicolas Dichtel
- [PATCH net-next v2] block/drbd: use nla_p... Nicolas Dichtel
- Re: [PATCH net-next v2] block/drbd: ... Lars Ellenberg
- Re: [PATCH net-next v2] block/dr... Nicolas Dichtel
- Re: [PATCH net-next v2] block/dr... David Miller
- Re: [PATCH net-next v2] block/dr... Lars Ellenberg
- Re: [PATCH net-next v2] block/dr... Nicolas Dichtel
- Re: [Drbd-dev] [PATCH net-next v... Lars Ellenberg
- Re: [PATCH net-next v2] block/dr... Eric Dumazet
- Re: [PATCH net-next v2] block/dr... David Miller
- Re: [PATCH net-next v2] block/dr... Eric Dumazet
- Re: [PATCH net-next v2] block/dr... David Miller
- Re: [PATCH net-next v2] block/dr... David Miller
- [PATCH net-next v3] block/drbd: ... Nicolas Dichtel
- Re: [PATCH net-next v3] block/dr... Lars Ellenberg
- Re: [PATCH net-next v3] block/dr... Nicolas Dichtel
- Re: [Drbd-dev] [PATCH net-next v... Lars Ellenberg
