Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 8f8d28e ("net/packet: fix overflow in check for tp_frame_nr") Signed-off-by: Kal Conley <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information