Re: [PATCH] RDMA/umem: Constify struct dma_buf_attach_ops
From: Leon Romanovsky
Date: Wed Jul 15 2026 - 05:16:53 EST
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 <leon@xxxxxxxxxx>