Re: [PATCH] ksmbd: Constify struct ksmbd_transport_ops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!





[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux