Re: [PATCH] net/packet: fix 4gb buffer limit due to overflow check

2019-02-09 Thread David Miller
From: Kal Conley Date: Sat, 9 Feb 2019 21:37:00 +0100 > 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. Please resu

[PATCH] net/packet: fix 4gb buffer limit due to overflow check

2019-02-09 Thread Kal Conley
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. --- net/packet/af_packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(