Skip to content

net/packet: fix multiple overflow issues in ring buffers

Andrey Konovalov netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesIn review
  2. v15 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- remove cleanup patches, will send in a separate patchset
- use a > UINT_MAX / b to check for a * b overflow

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net/packet: fix overflow in check for priv area sizenet/packet/af_packet.c+2 -21 reply
2/3net/packet: fix overflow in check for tp_frame_nrnet/packet/af_packet.c+2 -01 reply
3/3net/packet: fix overflow in check for tp_reservenet/packet/af_packet.c+2 -01 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchEric Dumazet
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net v2 0/3] net/packet: fix multiple overflow issues in ring buffers

This patchset addresses multiple overflows and signedness-related issues in packet socket ring buffers.

Changes in v2:
- remove cleanup patches, will send in a separate patchset
- use a > UINT_MAX / b to check for a * b overflow

Andrey Konovalov (3):
net/packet: fix overflow in check for priv area size net/packet: fix overflow in check for tp_frame_nr net/packet: fix overflow in check for tp_reserve

 net/packet/af_packet.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
Signature · 1 line
2.12.2.564.g063fe858b8-goog