summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ti
diff options
context:
space:
mode:
authorstephen hemminger2013-08-02 07:32:07 +0200
committerDavid S. Miller2013-08-02 23:52:20 +0200
commitcbd375567f7e4811b1c721f75ec519828ac6583f (patch)
treeaf09c22cc7ee9adb1d3758c07cd2ceabcc50b781 /drivers/net/ethernet/ti
parentmacvlan: handle set_promiscuity failures (diff)
downloadkernel-qcow2-linux-cbd375567f7e4811b1c721f75ec519828ac6583f.tar.gz
kernel-qcow2-linux-cbd375567f7e4811b1c721f75ec519828ac6583f.tar.xz
kernel-qcow2-linux-cbd375567f7e4811b1c721f75ec519828ac6583f.zip
htb: fix sign extension bug
When userspace passes a large priority value the assignment of the unsigned value hopt->prio to signed int cl->prio causes cl->prio to become negative and the comparison is with TC_HTB_NUMPRIO is always false. The result is that HTB crashes by referencing outside the array when processing packets. With this patch the large value wraps around like other values outside the normal range. See: https://bugzilla.kernel.org/show_bug.cgi?id=60669 Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti')
0 files changed, 0 insertions, 0 deletions