diff options
author | 2022-08-22 10:53:46 +0800 | |
---|---|---|
committer | 2022-08-24 09:49:20 +0100 | |
commit | d5485d9dd24e1d04e5509916515260186eb1455c (patch) | |
tree | 51de6d241f5d5dd53a5bfa36b5762eff45765f2c /lib/mpi/mpi-bit.c | |
parent | Merge tag 'mlx5-fixes-2022-08-22' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux (diff) | |
download | wireguard-linux-d5485d9dd24e1d04e5509916515260186eb1455c.tar.xz wireguard-linux-d5485d9dd24e1d04e5509916515260186eb1455c.zip |
net: neigh: don't call kfree_skb() under spin_lock_irqsave()
It is not allowed to call kfree_skb() from hardware interrupt
context or with interrupts being disabled. So add all skb to
a tmp list, then free them after spin_unlock_irqrestore() at
once.
Fixes: 66ba215cb513 ("neigh: fix possible DoS due to net iface start/stop loop")
Suggested-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions