Re: [PATCH 0/4] firmware: google: Constify 'struct bin_attribute'

From: Thomas Weißschuh
Date: Tue Dec 17 2024 - 13:59:04 EST


On 2024-12-16 14:09:04-0800, Brian Norris wrote:
> On Sun, Dec 15, 2024 at 03:49:08PM +0100, Thomas Weißschuh wrote:
> > The sysfs core now allows instances of 'struct bin_attribute' to be
> > moved into read-only memory. Make use of that to protect them against
> > accidental or malicious modifications.
>
> I'm not in love with all these "_new" transformations that need a second
> round of cleanup, but I'm not aware of any better way to do it.

Absolutely agree. My hope is to get the post-transition cleanup directly
through Linus or Greg in one big commit. At that point the changes are
purely mechanical and trivial.
So I don't have to annoy everyone even more...

> For the series:
>
> Acked-by: Brian Norris <briannorris@xxxxxxxxxxxx>

Thanks.

[..]