From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 56F313A4F2E; Thu, 9 Apr 2026 12:12:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775736754; cv=none; b=cAnSFnhVqArNDxBihKc00epKwi/2JNjfV2MCQfyItndJ2fjXE2JqdgkMDwXZT7vwW9tIa+8jowKUPBk80c68RgAcs/Qp+K/MvpJ6mL/0CcI8aLrkJsR+ZeuTFtTOajAi7j74h09b46MObjUX0DbdMdcB6oTV70S4qMZPtOjQDM8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775736754; c=relaxed/simple; bh=EnP9JMAOTjkjqO/CLPh1AIVmglFqWKUmkpn2JEr1QOE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pkmJiwomItdTwhcvvIHmeYcWcs6shj+p5Qq6PfUEgwkEsrqMHlvfBtVYaIHQ+xMclyWBClOC1BlTiqzk3teHht7gQbXOjIXXx2uNPGEj5Rx7IbbFMRfkrWHp7Ayiz9jW8pa9ku7ttm6PkMYYso6nHzr3My3lRfEo77BvQ7E8MI4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lFma3xVd; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lFma3xVd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4996EC4CEF7; Thu, 9 Apr 2026 12:12:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775736754; bh=EnP9JMAOTjkjqO/CLPh1AIVmglFqWKUmkpn2JEr1QOE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lFma3xVdZvtUl3jO59TjO5InWxdJaYEsqtUWKkHXiJBJly9j5faYgWKfgUpeFUzP2 ufiVXhryp/NTLLc9fzoczENqXNHLXGqHAWDZN+XBNCMvdtU5tT0XU6vbCetqHvojKY wqLEry7T1fpIVJUaCt8YtCRXDgsqcVVoO91ZPGJ+qaH4dX/jwCWQmynix4AJgLAniZ ZhB3DAFpaR1D78IkJx0KATK47z/3m3H/bFO0YfY/BWhC+bT14qwTMIjpn4NWguA6YD m7t48K0trDDydZZ3ahkTKRoGGvf7umvUUgfXv9seN/7Zgwo8lveS6gbr7doSit9Lff rzz546ONwZIAw== Date: Thu, 9 Apr 2026 15:12:30 +0300 From: Leon Romanovsky To: KP Singh , Matt Bobrowski , Alexei Starovoitov , Daniel Borkmann , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , Stanislav Fomichev , Hao Luo , Jiri Olsa , Shuah Khan , Jason Gunthorpe , Saeed Mahameed , Itay Avraham , Dave Jiang , Jonathan Cameron Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-rdma@vger.kernel.org, Chiara Meiohas , Maher Sanalla Subject: Re: [PATCH v2 0/4] Firmware LSM hook Message-ID: <20260409121230.GA720371@unreal> References: <20260331-fw-lsm-hook-v2-0-78504703df1f@nvidia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260331-fw-lsm-hook-v2-0-78504703df1f@nvidia.com> On Tue, Mar 31, 2026 at 08:56:32AM +0300, Leon Romanovsky wrote: > From Chiara: > > This patch set introduces a new BPF LSM hook to validate firmware commands > triggered by userspace before they are submitted to the device. The hook > runs after the command buffer is constructed, right before it is sent > to firmware. <...> > --- > Chiara Meiohas (4): > bpf: add firmware command validation hook > selftests/bpf: add test cases for fw_validate_cmd hook > RDMA/mlx5: Externally validate FW commands supplied in DEVX interface > fwctl/mlx5: Externally validate FW commands supplied in fwctl Hi, Can we get Ack from BPF/LSM side? Thanks > > drivers/fwctl/mlx5/main.c | 12 +++++- > drivers/infiniband/hw/mlx5/devx.c | 49 ++++++++++++++++++------ > include/linux/bpf_lsm.h | 41 ++++++++++++++++++++ > kernel/bpf/bpf_lsm.c | 11 ++++++ > tools/testing/selftests/bpf/progs/verifier_lsm.c | 23 +++++++++++ > 5 files changed, 122 insertions(+), 14 deletions(-) > --- > base-commit: 11439c4635edd669ae435eec308f4ab8a0804808 > change-id: 20260309-fw-lsm-hook-7c094f909ffc > > Best regards, > -- > Leon Romanovsky >