linux/drivers/net/netdevsim
Jakub Kicinski b91034314a net: netdevsim: try to close UDP port harness races
[ Upstream commit 50bf398e1c ]

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: 424be63ad8 ("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>
History 2025-02-08 09:52:30 +01:00
..
bpf.c netdevsim: Don't accept device bound programs 2023-12-08 08:52:21 +01:00
bus.c driver core: bus: mark the struct bus_type for sysfs callbacks as constant 2023-03-23 13:20:40 +01:00
dev.c netdevsim: use cond_resched() in nsim_dev_trap_report_work() 2024-11-01 01:58:22 +01:00
ethtool.c net: netdevsim: use mock PHC driver 2023-08-09 15:59:21 -07:00
fib.c netdevsim: Add trailing zero to terminate the string in nsim_nexthop_bucket_activity_write() 2024-11-08 16:28:18 +01:00
health.c netdevsim: prevent bad user input in nsim_dev_health_break_write() 2024-12-27 13:58:48 +01:00
hwstats.c netdevsim: Fix hwstats debugfs file permissions 2022-09-19 14:40:38 -07:00
ipsec.c netdevsim: copy addresses for both in and out paths 2024-12-09 10:32:03 +01:00
macsec.c netdevsim: add dummy macsec offload 2023-07-14 09:16:53 +01:00
Makefile netdevsim: add dummy macsec offload 2023-07-14 09:16:53 +01:00
netdev.c net: netdevsim: don't try to destroy PHC on VFs 2024-01-25 15:35:59 -08:00
netdevsim.h net: netdevsim: try to close UDP port harness races 2025-02-08 09:52:30 +01:00
psample.c netdevsim: Only use sampling truncation length when valid 2021-04-22 13:23:56 -07:00
udp_tunnels.c net: netdevsim: try to close UDP port harness races 2025-02-08 09:52:30 +01:00