Re: [PATCH] RDMA/umem: Constify struct dma_buf_attach_ops

Leon Romanovsky <[email protected]> Wed, 15 Jul 2026 05:09:12 -0400
Newsgroups org.kernel.vger.kernel-janitors,org.kernel.vger.linux-kernel,org.kernel.vger.linux-rdma
Message-ID <[email protected]>
On Tue, 14 Jul 2026 10:47:32 +0200, Christophe JAILLET wrote:
> 'struct dma_buf_attach_ops' are not modified in this driver.
> 
> Constifying these structures moves some data to a read-only section, so
> increases overall security, especially when the structure holds some
> function pointers.
> 
> On a x86_64, with allmodconfig, as an example:
> Before:
> ======
>    text	   data	    bss	    dec	    hex	filename
>   10300	   1216	      0	  11516	   2cfc	drivers/infiniband/core/umem_dmabuf.o
> 
> [...]

Applied, thanks!

[1/1] RDMA/umem: Constify struct dma_buf_attach_ops
      https://git.kernel.org/rdma/rdma/c/e952e079d22620

Best regards,
-- 
Leon Romanovsky <[email protected]>