Skip to content

Fix block integrity violation of kobject rules

Thadeu Lima de Souza Cascardo stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3blk-integrity: use sysfs_emitblock/blk-integrity.c+9 -100 replies
2/3blk-integrity: convert to struct device_attributeblock/blk-integrity.c+62 -650 replies
3/3blk-integrity: register sysfs attributes on struct deviceblock/blk-integrity.c block/blk.h block/genhd.c +1 more+8 -720 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigMartin K. Petersen
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 5.15 0/3] Fix block integrity violation of kobject rules

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(-)
Signature · 1 line
2.34.1