diff options
| author | Eric Dumazet <edumazet@google.com> | 2024-12-13 17:25:18 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-27 14:02:02 +0100 |
| commit | 8e9ef6bdf71bf25f4735e0230ce1919de8985835 (patch) | |
| tree | 69b3a97589e6e125cad5d3ff0c4b6192bab76b3d /tools | |
| parent | a8836eae3288c351acd3b2743d2fad2a4ee2bd56 (diff) | |
| download | linux-8e9ef6bdf71bf25f4735e0230ce1919de8985835.tar.gz linux-8e9ef6bdf71bf25f4735e0230ce1919de8985835.tar.bz2 linux-8e9ef6bdf71bf25f4735e0230ce1919de8985835.zip | |
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>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
