kernel_samsung_a53x/drivers/net/netdevsim
Eric Dumazet d1e37e7437 netdevsim: prevent bad user input in nsim_dev_health_break_write()
[ Upstream commit ee76746387f6233bdfa93d7406990f923641568f ]

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

Fixes: 82c93a87bf8b ("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>
2025-01-15 16:29:41 +01:00
..
bpf.c
bus.c
dev.c
ethtool.c
fib.c
health.c netdevsim: prevent bad user input in nsim_dev_health_break_write() 2025-01-15 16:29:41 +01:00
ipsec.c netdevsim: copy addresses for both in and out paths 2024-12-17 13:24:04 +01:00
Makefile
netdev.c
netdevsim.h
udp_tunnels.c