[Devel] [PATCH hci-8.1 v2 3/5] ms/eventfs: Use children field for rcu head and add memory barriers
Konstantin Khorenko
khorenko at virtuozzo.com
Thu Nov 12 19:43:06 MSK 2026
Applying with these fixes on my side:
- put 5/5 "ms/eventfs: Initialize ei->children and ei->list in
init_ei()" in front of this patch.
On Thu, 12 Nov 2026 02:07:55 +0200, Eva Kurchatova <eva.kurchatova at virtuozzo.com> wrote:
> if (ei) {
> + /* The ei should have no children if it is being freed. */
> + WARN_ON_ONCE(!list_empty(&ei->children));
> ei->is_freed = 1;
Why: at this patch eventfs_create_events_dir() can still reach
cleanup_ei() with the list heads zeroed by kzalloc(), when
tracefs_get_inode() fails, and this WARN fires there.
Your answer to Sashiko holds for the SRCU leak, but not for the WARN:
6.12.y took the init_ei() fix (c480f8af173d, v6.12.109) before
1b95382da85c, so it never had that window. 5/5 moves in front of this
patch without any change, the final tree stays the same.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list