[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250114-sysfs-const-bin_attr-infiniband-v1-0-397aaa94d453@weissschuh.net>
Date: Tue, 14 Jan 2025 22:32:12 +0100
From: Thomas Weißschuh <linux@...ssschuh.net>
To: Dennis Dalessandro <dennis.dalessandro@...nelisnetworks.com>,
Jason Gunthorpe <jgg@...pe.ca>, Leon Romanovsky <leon@...nel.org>
Cc: linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org,
Thomas Weißschuh <linux@...ssschuh.net>
Subject: [PATCH 0/2] RDMA: Constify 'struct bin_attribute'
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 <linux@...ssschuh.net>
---
Thomas Weißschuh (2):
RDMA/hfi1: Constify 'struct bin_attribute'
RDMA/qib: Constify 'struct bin_attribute'
drivers/infiniband/hw/hfi1/sysfs.c | 14 +++++++-------
drivers/infiniband/hw/qib/qib_sysfs.c | 16 ++++++++--------
2 files changed, 15 insertions(+), 15 deletions(-)
---
base-commit: 7f5b6a8ec18e3add4c74682f60b90c31bdf849f2
change-id: 20250114-sysfs-const-bin_attr-infiniband-fce6de3fb8b9
Best regards,
--
Thomas Weißschuh <linux@...ssschuh.net>
Powered by blists - more mailing lists