]> git.baikalelectronics.ru Git - kernel.git/commit
net: Fix data-races around netdev_tstamp_prequeue.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Tue, 23 Aug 2022 17:46:47 +0000 (10:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Aug 2022 12:46:57 +0000 (13:46 +0100)
commit984b41ca7e20ea5062ee099024adcab5a9c1406b
tree606904f24f02ff830860bbeac2006c4b936a3eda
parent92583d51f8435c8961dee42e80dd49e6a3120d67
net: Fix data-races around netdev_tstamp_prequeue.

While reading netdev_tstamp_prequeue, it can be changed concurrently.
Thus, we need to add READ_ONCE() to its readers.

Fixes: 769c199f0e89 ("net: Consistent skb timestamping")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c