Commit d10321be authored by Eric Dumazet's avatar Eric Dumazet Committed by Greg Kroah-Hartman
Browse files

netdevsim: prevent bad user input in nsim_dev_health_break_write()



[ Upstream commit ee767463 ]

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

Fixes: 82c93a87 ("netdevsim: implement couple of testing devlink health reporters")
Reported-by: default avatar <syzbot+ea40e4294e58b0292f74@syzkaller.appspotmail.com>
Closes: https://lore.kernel.org/netdev/675c6862.050a0220.37aaf.00b1.GAE@google.com/T/#u


Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Cc: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: default avatarJoe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20241213172518.2415666-1-edumazet@google.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 59c4ca8d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment