stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 5.15,6.1 0/3] Fix block integrity violation of kobject rules
@ 2024-10-02 14:01 Thadeu Lima de Souza Cascardo
  2024-10-02 14:01 ` [PATCH 5.15,6.1 1/3] blk-integrity: use sysfs_emit Thadeu Lima de Souza Cascardo
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Thadeu Lima de Souza Cascardo @ 2024-10-02 14:01 UTC (permalink / raw)
  To: stable
  Cc: Jens Axboe, Thomas Weißschuh, Christoph Hellwig,
	Martin K . Petersen, kernel-dev

integrity_kobj did not have a release function and with
CONFIG_DEBUG_KOBJECT_RELEASE, a use-after-free would be triggered as its
holding struct gendisk would be freed without relying on its refcount.

Thomas Weißschuh (3):
  blk-integrity: use sysfs_emit
  blk-integrity: convert to struct device_attribute
  blk-integrity: register sysfs attributes on struct device

 block/blk-integrity.c  | 175 ++++++++++++++---------------------------
 block/blk.h            |  10 +--
 block/genhd.c          |  12 +--
 include/linux/blkdev.h |   3 -
 4 files changed, 66 insertions(+), 134 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-10-08 10:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-02 14:01 [PATCH 5.15,6.1 0/3] Fix block integrity violation of kobject rules Thadeu Lima de Souza Cascardo
2024-10-02 14:01 ` [PATCH 5.15,6.1 1/3] blk-integrity: use sysfs_emit Thadeu Lima de Souza Cascardo
2024-10-02 14:01 ` [PATCH 5.15,6.1 2/3] blk-integrity: convert to struct device_attribute Thadeu Lima de Souza Cascardo
2024-10-02 14:01 ` [PATCH 5.15 3/3] blk-integrity: register sysfs attributes on struct device Thadeu Lima de Souza Cascardo
2024-10-02 14:01 ` [PATCH 6.1 " Thadeu Lima de Souza Cascardo
2024-10-02 15:29 ` [PATCH 5.15,6.1 0/3] Fix block integrity violation of kobject rules Jens Axboe
2024-10-08 10:01 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).