Eric Dumazet 4147558625 net/packet: make tp_drops atomic
mainline inclusion
from mainline-v5.3-rc1
commit 8e8e2951e3095732d7e780c241f61ea130955a57
category: bugfix
bugzilla: NA
CVE: CVE-2020-14386

Prepare for fixing CVE-2020-14386.
--------------------------------

Under DDOS, we want to be able to increment tp_drops without
touching the spinlock. This will help readers to drain
the receive queue slightly faster :/

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Yu Changchun <yuchangchun1@huawei.com>
2020-11-14 16:00:50 +08:00
..
2020-11-14 16:00:50 +08:00
2020-11-14 16:00:50 +08:00