lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241211-sysfs-const-bin_attr-w1-v1-0-c4befd2aa7cc@weissschuh.net>
Date: Wed, 11 Dec 2024 18:50:15 +0100
From: Thomas Weißschuh <linux@...ssschuh.net>
To: Krzysztof Kozlowski <krzk@...nel.org>
Cc: linux-kernel@...r.kernel.org, 
 Thomas Weißschuh <linux@...ssschuh.net>
Subject: [PATCH 00/12] w1: 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 (12):
      w1: Constify 'struct bin_attribute'
      w1: ds2406: Constify 'struct bin_attribute'
      w1: ds2408: Constify 'struct bin_attribute'
      w1: ds2413: Constify 'struct bin_attribute'
      w1: ds2430: Constify 'struct bin_attribute'
      w1: ds2431: Constify 'struct bin_attribute'
      w1: ds2433: Constify 'struct bin_attribute'
      w1: ds2438: Constify 'struct bin_attribute'
      w1: ds2780: Constify 'struct bin_attribute'
      w1: ds2781: Constify 'struct bin_attribute'
      w1: ds2805: Constify 'struct bin_attribute'
      w1: ds28e04: Constify 'struct bin_attribute'

 drivers/w1/slaves/w1_ds2406.c  | 10 +++++-----
 drivers/w1/slaves/w1_ds2408.c  | 42 +++++++++++++++++++++---------------------
 drivers/w1/slaves/w1_ds2413.c  | 14 +++++++-------
 drivers/w1/slaves/w1_ds2430.c  | 10 +++++-----
 drivers/w1/slaves/w1_ds2431.c  | 10 +++++-----
 drivers/w1/slaves/w1_ds2433.c  | 24 ++++++++++++------------
 drivers/w1/slaves/w1_ds2438.c  | 34 +++++++++++++++++-----------------
 drivers/w1/slaves/w1_ds2780.c  |  8 ++++----
 drivers/w1/slaves/w1_ds2781.c  |  8 ++++----
 drivers/w1/slaves/w1_ds2805.c  | 10 +++++-----
 drivers/w1/slaves/w1_ds28e04.c | 18 +++++++++---------
 drivers/w1/w1.c                | 12 ++++++------
 12 files changed, 100 insertions(+), 100 deletions(-)
---
base-commit: f92f4749861b06fed908d336b4dee1326003291b
change-id: 20241211-sysfs-const-bin_attr-w1-737adb3f39e0

Best regards,
-- 
Thomas Weißschuh <linux@...ssschuh.net>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ