Exploit databaseDownload repository ZIP
GH-b6f78b211ff4ea5e7b3ebffe1f088758
abrarkhan/linux-4.19.72_cve-2020-24490
Sources for CVE-2020-24490
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files6
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- devlink_lib_spectrum.sh
- devlink_resources.sh
- mirror_gre_scale.sh
- resource_scale.sh
- router_scale.sh
- tc_flower_scale.sh
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
tools/testing/selftests/drivers/net/mlxsw/spectrum/router_scale.sh
Shell · 294 bytes# SPDX-License-Identifier: GPL-2.0
source ../router_scale.sh
router_get_target()
{
local should_fail=$1
local target
target=$(devlink_resource_size_get kvd hash_single)
if [[ $should_fail -eq 0 ]]; then
target=$((target * 85 / 100))
else
target=$((target + 1))
fi
echo $target
}