Re: [PATCH net-next] net: add annotations on hh->hh_len lockless accesses

From
David Miller <davem@davemloft.net>
Date
2019-11-08 04:07:51
Reply to
Eric Dumazet, 2019-11-08
From: Eric Dumazet <redacted>
Date: Thu,  7 Nov 2019 18:29:11 -0800
KCSAN reported a data-race [1]

While we can use READ_ONCE() on the read sides,
we need to make sure hh->hh_len is written last.

[1]

BUG: KCSAN: data-race in eth_header_cache / neigh_resolve_output
 ...
Signed-off-by: Eric Dumazet <redacted>
Reported-by: syzbot <redacted>
Applied, thanks Eric.
Thread (2 messages) 2 messages, 2 authors, last reply 2019-11-08
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