Mellanox / libvma

Linux user space library for network socket acceleration based on RDMA compatible network adaptors
https://www.mellanox.com/products/software/accelerator-software/vma?mtag=vma
Other
557 stars 152 forks source link

issue: 3202977 Fix type overflow during trimming TCP seg #1040

Closed pasis closed 10 months ago

pasis commented 10 months ago

Description

With LRO/GRO, TCP segments can be large and 16bit type is not enough to fit possible offsets/lengths. This can lead to a type overflow and broken pbuf chains as result. Further, a broken chain breaks accounting of received data what leads to a warning or even a segfault.

Increase type length for pbuf_header() and the trimming code. This fixes pbuf chain. Also increase type length for pbuf_realloc() to avoid similar issues in the future.

What

Fix type overflow.

Why ?

Bugfix.

Change type

What kind of change does this PR introduce?

Check list