diff options
| author | Elena Salomatkina <esalomatkina@ispras.ru> | 2024-10-13 15:45:29 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2024-10-15 18:25:47 -0700 |
| commit | 397006ba5d918f9b74e734867e8fddbc36dc2282 (patch) | |
| tree | 9a30fc5fceb8fdc873bf5e2e98812ac9f70908ce /tools/perf/scripts/python/bin | |
| parent | neighbour: Remove NEIGH_DN_TABLE. (diff) | |
| download | linux-397006ba5d918f9b74e734867e8fddbc36dc2282.tar.gz linux-397006ba5d918f9b74e734867e8fddbc36dc2282.zip | |
net/sched: cbs: Fix integer overflow in cbs_set_port_rate()
The subsequent calculation of port_rate = speed * 1000 * BYTES_PER_KBIT,
where the BYTES_PER_KBIT is of type LL, may cause an overflow.
At least when speed = SPEED_20000, the expression to the left of port_rate
will be greater than INT_MAX.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Signed-off-by: Elena Salomatkina <esalomatkina@ispras.ru>
Link: https://patch.msgid.link/20241013124529.1043-1-esalomatkina@ispras.ru
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
