aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap_sock.c
diff options
context:
space:
mode:
authorElena Salomatkina <[email protected]>2024-10-13 12:45:29 +0000
committerJakub Kicinski <[email protected]>2024-10-16 01:25:47 +0000
commit397006ba5d918f9b74e734867e8fddbc36dc2282 (patch)
tree9a30fc5fceb8fdc873bf5e2e98812ac9f70908ce /net/bluetooth/l2cap_sock.c
parentneighbour: Remove NEIGH_DN_TABLE. (diff)
downloadkernel-397006ba5d918f9b74e734867e8fddbc36dc2282.tar.gz
kernel-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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/bluetooth/l2cap_sock.c')
0 files changed, 0 insertions, 0 deletions