linux/drivers/net/netdevsim
Eric Dumazet 470c5ecbac netdevsim: prevent bad user input in nsim_dev_health_break_write()
[ Upstream commit ee76746387 ]

If either a zero count or a large one is provided, kernel can crash.

Fixes: 82c93a87bf ("netdevsim: implement couple of testing devlink health reporters")
Reported-by: syzbot+ea40e4294e58b0292f74@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/netdev/675c6862.050a0220.37aaf.00b1.GAE@google.com/T/#u
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Joe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20241213172518.2415666-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-12-27 13:58:48 +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: use mock PHC driver 2023-08-09 15:59:21 -07:00
psample.c netdevsim: Only use sampling truncation length when valid 2021-04-22 13:23:56 -07:00
udp_tunnels.c netdevsim: set .owner to THIS_MODULE 2020-11-17 14:08:59 -08:00