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

From: Tzung-Bi Shih
Date: Mon Dec 16 2024 - 23:07:24 EST


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.
>
> Please also note the remark at the end of the vpd patch.
>
> [...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-firmware-next

[1/4] firmware: google: cbmem: Constify 'struct bin_attribute'
commit: bf2066caee80c1612cb5a3356dc16a7a298f58ab
[2/4] firmware: google: gsmi: Constify 'struct bin_attribute'
commit: 7da14dea76fb6a90f62938e6dfa9f34c980af358
[3/4] firmware: google: memconsole: Use const 'struct bin_attribute' callback
commit: 093d752032f723da665cdaa6077ee62b3931e48b
[4/4] firmware: google: vpd: Use const 'struct bin_attribute' callback
commit: 7543d5702c2cfe0e8e8bc8bf4fe8cd44f08d6d39

Thanks!