Re: [PATCH rdma-rc v2] RDMA/siw: Reject opcodes a user send queue may not use
From: Leon Romanovsky
Date: Wed Nov 25 2026 - 08:30:12 EST
On Fri, 20 Nov 2026 09:06:05 -0500, Andrew Stellman wrote:
> A user QP's send queue is mapped into the process, and
> siw_activate_tx_from_sq() only checks that an SQE's opcode is below
> SIW_NUM_OPCODES. siw-abi.h marks SIW_OP_INVAL_STAG and SIW_OP_REG_MR as
> valid for in-kernel clients only, but a user process can still post
> them. For SIW_OP_REG_MR, siw_fastreg_mr() then uses the user supplied
> base_mr value as a kernel pointer to a struct ib_mr.
>
> [...]
Applied, thanks!
[1/1] RDMA/siw: Reject opcodes a user send queue may not use
https://git.kernel.org/rdma/rdma/c/94e81a1f3ffabb
Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>