diff options
| author | Jiale Yao <yaojiale02@163.com> | 2026-09-26 18:59:25 +0800 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2026-09-29 14:59:42 -0400 |
| commit | 2dc2126e690203d6adbddc7675927a242d810e43 (patch) | |
| tree | 28cbf96582b4ad293e5080eb8172037c855500a9 /tools/lib/python/kdoc/python_version.py | |
| parent | 485effd117d0310a7f589defb4f442fa3bb52ae2 (diff) | |
RDMA/mad: Reject receive completions shorter than GRH
ib_mad_recv_done() derives the OPA MAD length by subtracting the GRH
size from wc->byte_len without ensuring the receive completion covers
the GRH. If it is shorter, the subtraction wraps before the result is
stored in mad_len and an invalid length can be passed downstream.
Reject receive completions shorter than the GRH before inspecting the
MAD header or deriving the MAD length.
Fixes: 8e4349d13f33 ("IB/mad: Add final OPA MAD processing")
Signed-off-by: Jiale Yao <yaojiale02@163.com>
Link: https://patch.msgid.link/20260926105927.3183294-1-yaojiale02@163.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
