Re: [PATCH] firmware: qemu_fw_cfg: constify 'struct bin_attribute'

2025-01-16 Thread Michael S. Tsirkin
On Tue, Jan 14, 2025 at 10:50:20PM +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. > > Signed-off-by: Thomas Weißschuh why not Ac

Re: [PATCH] firmware: qemu_fw_cfg: constify 'struct bin_attribute'

2025-01-15 Thread Gabriel L. Somlo
On Tue, Jan 14, 2025 at 10:50:20PM +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. > > Signed-off-by: Thomas Weißschuh Acked-by: G

[PATCH] firmware: qemu_fw_cfg: constify 'struct bin_attribute'

2025-01-14 Thread Thomas Weißschuh
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. Signed-off-by: Thomas Weißschuh --- drivers/firmware/qemu_fw_cfg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 delet