[Devel] [PATCH hci-8.1 v2 5/5] ms/eventfs: Initialize ei->children and ei->list in init_ei()

Konstantin Khorenko khorenko at virtuozzo.com
Thu Nov 12 19:43:06 MSK 2026


Applying with these fixes on my side:
- put this patch in front of 3/5 "ms/eventfs: Use children field for
  rcu head and add memory barriers", the order 6.12.y uses.

On Thu, 12 Nov 2026 02:07:57 +0200, Eva Kurchatova <eva.kurchatova at virtuozzo.com> wrote:
> eventfs_create_dir() allocates the eventfs_inode and initializes it with
> init_ei(). But this does not initialize the eventfs_inode list_heads. If
> the eventfs_create_dir() fails due to memory pressure, it will call
> free_ei() before it initialized the lists, and that checks to make sure
> the eventfs_inode has no children. But because the list wasn't
> initialized, it will give a false warning.

Sashiko is right that the warning comes from
eventfs_create_events_dir(), not eventfs_create_dir(). The text is the
mainline one, so I keep it as is.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list