]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: netdevsim: try to close UDP port harness races
authorJakub Kicinski <kuba@kernel.org>
Wed, 22 Jan 2025 22:45:03 +0000 (14:45 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:12 +0000 (12:50 +0100)
commitcfb17f637562e15066480e7eaa23b3a8854f29e5
tree157ae23afb755038d9caea61bab606a1c90ef208
parent1409b45d4690308c502c6caf22f01c3c205b4717
net: netdevsim: try to close UDP port harness races

[ Upstream commit 50bf398e1ceacb9a7f85bd3bdca065ebe5cb6159 ]

syzbot discovered that we remove the debugfs files after we free
the netdev. Try to clean up the relevant dir while the device
is still around.

Reported-by: syzbot+2e5de9e3ab986b71d2bf@syzkaller.appspotmail.com
Fixes: 424be63ad831 ("netdevsim: add UDP tunnel port offload support")
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Link: https://patch.msgid.link/20250122224503.762705-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/netdevsim/netdevsim.h
drivers/net/netdevsim/udp_tunnels.c
tools/testing/selftests/drivers/net/netdevsim/udp_tunnel_nic.sh