Re: [PATCH] ksmbd: Constify struct ksmbd_transport_ops
From: Namjae Jeon
Date: Sun Jun 23 2024 - 19:22:42 EST
2024년 6월 24일 (월) 오전 3:09, Christophe JAILLET
<christophe.jaillet@xxxxxxxxxx>님이 작성:
>
> 'struct ksmbd_transport_ops' is not modified in these drivers.
>
> Constifying this structure moves some data to a read-only section, so
> increase overall security.
>
> On a x86_64, with allmodconfig, as an example:
> Before:
> ======
> text data bss dec hex filename
> 52184 2085 256 54525 d4fd fs/smb/server/transport_rdma.o
>
> After:
> =====
> text data bss dec hex filename
> 52260 2021 256 54537 d509 fs/smb/server/transport_rdma.o
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
Applied it to #ksmbd-for-next-next.
Thanks for your patch!