diff options
| author | 2026-04-28 13:17:37 -0300 | |
|---|---|---|
| committer | 2026-05-02 15:30:48 -0300 | |
| commit | 6dd2d4ad9c8429523b1c220c5132bd551c006425 (patch) | |
| tree | 920600b6f10f3be5898ac9934f8ec0ade2de9978 /rust/kernel/ssh:/git@git.zx2c4.com | |
| parent | RDMA/mlx5: Add missing store/release for lock elision pattern (diff) | |
RDMA/mana: Validate rx_hash_key_len
Sashiko points out that rx_hash_key_len comes from a uAPI structure and is
blindly passed to memcpy, allowing the userspace to trash kernel
memory. Bounds check it so the memcpy cannot overflow.
Cc: stable@vger.kernel.org
Fixes: 0266a177631d ("RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter")
Link: https://sashiko.dev/#/patchset/0-v2-1c49eeb88c48%2B91-rdma_udata_rep_jgg%40nvidia.com?part=1
Link: https://patch.msgid.link/r/4-v1-41f3135e5565+9d2-rdma_ai_fixes1_jgg@nvidia.com
Reviewed-by: Long Li <longli@microsoft.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'rust/kernel/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
