Thread (28 messages) 28 messages, 11 authors, 2024-12-03

Re: [PATCH v2 00/10] sysfs: constify struct bin_attribute (Part 1)

From: Bjorn Helgaas <helgaas@kernel.org>
Date: 2024-11-05 16:15:51
Also in: amd-gfx, dri-devel, linux-alpha, linux-cxl, linux-hyperv, linux-pci, linux-rdma, linux-scsi, linux-usb, lkml, platform-driver-x86

On Sun, Nov 03, 2024 at 05:03:29PM +0000, Thomas Weißschuh wrote:
struct bin_attribute contains a bunch of pointer members, which when
overwritten by accident or malice can lead to system instability and
security problems.
Moving the definitions of struct bin_attribute to read-only memory
makes these modifications impossible.
The same change has been performed for many other structures in the
past. (struct class, struct ctl_table...)
Throughout series, it would be more readable if you added blank lines
between paragraphs.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help