Re: [PATCH] llc: Constify struct llc_sap_state_trans

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

 



+ Iwashima-san

On Sun, Jul 14, 2024 at 06:15:20PM +0200, Christophe JAILLET wrote:
> 'struct llc_sap_state_trans' are not modified in this driver.
> 
> 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
>     339	    456	     24	    819	    333	net/llc/llc_s_st.o
> 
> After:
> =====
>    text	   data	    bss	    dec	    hex	filename
>     683	    144	      0	    827	    33b	net/llc/llc_s_st.o
> 
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
> ---
> Compile tested-only.

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>





[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