[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPhsuW5=sZTm2Uwmz7dZ-4v2vqPbS=RygDeZ535ef7yk4NCjsg@mail.gmail.com>
Date: Thu, 4 Jul 2024 15:07:49 +0800
From: Song Liu <song@...nel.org>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: Yu Kuai <yukuai3@...wei.com>, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org, linux-raid@...r.kernel.org
Subject: Re: [PATCH] md-cluster: Constify struct md_cluster_operations
On Mon, Jun 24, 2024 at 4:18 AM Christophe JAILLET
<christophe.jaillet@...adoo.fr> 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@...adoo.fr>
Applied to md-6.11. Thanks!
Song
Powered by blists - more mailing lists