HomeFreeBSD

MFC 4e38478c595a:

Description

MFC 4e38478c595a:
ipoib: Fix incorrectly computed IPOIB_CM_RX_SG value.

The computed IPOIB_CM_RX_SG is too small. It doesn't account for fallback
to mbuf clusters when jumbo frames are not available and it also doesn't
account for the packet header and trailer mbuf.

This causes a memory overwrite situation when IPOIB_CM is configured.

While at it add a kernel assert to ensure the mapping array is not overwritten.

PR: 254474
Sponsored by: Mellanox Technologies // NVIDIA Networking

(cherry picked from commit 4e38478c595a9e6225b525890d7ee269a203c200)

Details

Provenance
hselaskyAuthored on Mar 25 2021, 3:55 PM
Parents
rG8d1867e2b749: MFC 31070b5bc77a:
Branches
Unknown
Tags
Unknown