]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
driver core: Constify core device attributes
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 12 May 2026 16:39:15 +0000 (18:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 May 2026 11:36:55 +0000 (13:36 +0200)
commit024480bf8d75bd16894c5b0eb6082b6e6dae4970
treef12c9363be937d71c5260eb8f9c673d633b4f5b5
parent434506b86a6cde84a0ef19daa9e3b1926e2f96a9
driver core: Constify core device attributes

To make sure these attributes are not modified by accident or by an
attacker, move them to read-only memory.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://patch.msgid.link/20260512-sysfs-const-attr-device_attr-prep-v3-5-cb7c17b34d52@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c