Re: [PATCH] md-cluster: Constify struct md_cluster_operations

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

 



On Mon, Jun 24, 2024 at 4:18 AM Christophe JAILLET
<christophe.jaillet@xxxxxxxxxx> wrote:
>
> 'struct md_cluster_operations' is 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
>   51941    1442      80   53463    d0d7 drivers/md/md-cluster.o
>
> After:
> =====
>    text    data     bss     dec     hex filename
>   52133    1246      80   53459    d0d3 drivers/md/md-cluster.o
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>

Applied to md-6.11. Thanks!

Song





[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