Re: [PATCH net] bonding: prevent out of bound accesses

From
Dmitry Vyukov <dvyukov@google.com>
Date
2016-06-30 14:13:58
Reply to
Eric Dumazet, 2016-06-30
On Thu, Jun 30, 2016 at 4:08 PM, Eric Dumazet [off-list ref] wrote:
On Thu, 2016-06-30 at 15:35 +0200, Dmitry Vyukov wrote:
quoted
What does nm -S say?
I've tried to compile a sample program with gcc6 and
__attribute__((aligned(8))) does in fact force alignment of start of
the symbol, but size still stays 6. (and asan still barks on my test
program).
Right, but then it means I also need to change mac_bcast[] and
mac_v6_allmcast[] in bond_alb.c to avoid false positive.

(Technically, if their alignment is 8, we have 8 bytes there,
no way it could span 2 pages)
Agree.
I'll send a v2.
Thanks!
Thread (12 messages) 12 messages, 5 authors, last reply 2016-07-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help