Re: [PATCH 1/2] configfs: handle unlinked target in configfs_depend_item_unlocked()
From: Breno Leitao
Date: Tue Oct 27 2026 - 09:41:46 EST
On Thu, 22 Oct 2026 15:44:42 +0200, Slawomir Stepien wrote:
> configfs_depend_item_unlocked() starts by reading target->ci_group to
> find the target's subsystem and the configfs root, and dereferences it
> without checking for NULL. ci_group is only valid while the item is
> linked into the tree: it is set by link_group() during mkdir and
> cleared by unlink_group() during rmdir, both under the subsystem's
> su_mutex, which callers of the unlocked variant do not hold.
>
> [...]
Applied, thanks!
[1/2] configfs: handle unlinked target in configfs_depend_item_unlocked()
https://git.kernel.org/pub/scm/linux/kernel/git/leitao/linux.git/commit/?id=d678ac1c74dc
[2/2] configfs: give the root inode its own lockdep class
https://git.kernel.org/pub/scm/linux/kernel/git/leitao/linux.git/commit/?id=e6f2f0945f5e
Best regards,
--
Breno Leitao <leitao@xxxxxxxxxx>