]> git.baikalelectronics.ru Git - kernel.git/commit
net: Fix a data-race around gro_normal_batch.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Tue, 23 Aug 2022 17:46:58 +0000 (10:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Aug 2022 12:46:58 +0000 (13:46 +0100)
commit6fa410e2e10fb9f86d0e8c50ff802e0a6fd4b8cd
treede9bc7668e1523979c789b5cfe6ea578b10967ca
parent445630c4081bc770f14809b91a5934b9959b021c
net: Fix a data-race around gro_normal_batch.

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

Fixes: 96a297e84dfd ("net: use listified RX for handling GRO_NORMAL skbs")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Acked-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/gro.h