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!





[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux