[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <qykqy3nqly7bpsv3zmju4ts4xmcgnhduohdnaeka5zivljouoh@epyb5f36bbfk>
Date: Mon, 14 Apr 2025 00:55:53 +0200
From: Andi Shyti <andi.shyti@...nel.org>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: Fabrizio Castro <fabrizio.castro.jz@...esas.com>,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org, linux-i2c@...r.kernel.org,
linux-renesas-soc@...r.kernel.org
Subject: Re: [PATCH] i2c: rzv2m: Constify struct i2c_algorithm
Hi Christophe,
On Sat, Mar 29, 2025 at 03:37:07PM +0100, Christophe JAILLET wrote:
> 'struct i2c_algorithm' is not modified in this driver.
>
> Constifying this structure moves some data to a read-only section, so
> increase overall security, especially when the structure holds some
> function pointers.
>
> On a x86_64, with allmodconfig, as an example:
> Before:
> ======
> text data bss dec hex filename
> 11027 646 16 11689 2da9 drivers/i2c/busses/i2c-rzv2m.o
>
> After:
> =====
> text data bss dec hex filename
> 11107 566 16 11689 2da9 drivers/i2c/busses/i2c-rzv2m.o
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
merged to i2c/i2c-host.
Thanks,
Andi
Powered by blists - more mailing lists