On Tue, 13 Jan 2026 12:27:22 +0530, Nilay Shroff wrote:
When CONFIG_BLK_DEV_NULL_BLK_FAULT_INJECTION is enabled, the null-blk driver sets up fault injection support by creating the timeout_inject, requeue_inject, and init_hctx_fault_inject configfs items as children of the top-level nullbX configfs group.
However, when the nullbX device is removed, the references taken to these fault-config configfs items are not released. As a result, kmemleak reports a memory leak, for example:
[...]
Applied, thanks!
[1/1] null_blk: fix kmemleak by releasing references to fault configfs items commit: 40b94ec7edbbb867c4e26a1a43d2b898f04b93c5
Best regards,