summaryrefslogtreecommitdiffstats
path: root/net/8021q
diff options
context:
space:
mode:
authorKal Conley <kal.conley@dectris.com>2019-02-10 09:57:11 +0100
committerDavid S. Miller <davem@davemloft.net>2019-02-12 13:37:23 -0500
commitfc62814d690cf62189854464f4bd07457d5e9e50 (patch)
treef4764002a6cc91fdfea00ecbc690e787c9bba974 /net/8021q
parent1ec17dbd90f8b638f41ee650558609c1af63dfa0 (diff)
downloadlinux-stable-fc62814d690cf62189854464f4bd07457d5e9e50.tar.gz
linux-stable-fc62814d690cf62189854464f4bd07457d5e9e50.tar.bz2
linux-stable-fc62814d690cf62189854464f4bd07457d5e9e50.zip
net/packet: fix 4gb buffer limit due to overflow check
When calculating rb->frames_per_block * req->tp_block_nr the result can overflow. Check it for overflow without limiting the total buffer size to UINT_MAX. This change fixes support for packet ring buffers >= UINT_MAX. Fixes: 8f8d28e4d6d8 ("net/packet: fix overflow in check for tp_frame_nr") Signed-off-by: Kal Conley <kal.conley@dectris.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q')
0 files changed, 0 insertions, 0 deletions