summaryrefslogtreecommitdiff
path: root/net/packet
diff options
context:
space:
mode:
authorElena Salomatkina <esalomatkina@ispras.ru>2024-10-13 15:45:29 +0300
committerJakub Kicinski <kuba@kernel.org>2024-10-15 18:25:47 -0700
commit397006ba5d918f9b74e734867e8fddbc36dc2282 (patch)
tree9a30fc5fceb8fdc873bf5e2e98812ac9f70908ce /net/packet
parent95b3120a485f77a9bb8060bf3398311e3dcb6c65 (diff)
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 'net/packet')
0 files changed, 0 insertions, 0 deletions