[for-linus][PATCH 0/2] tracing/eventfs: Fixes for 6.8

From: Steven Rostedt
Date: Mon Jan 22 2024 - 22:13:36 EST


Tracing and eventfs fixes for 6.8:

- Fix histogram tracing_map insertion.
The tracing_map_insert copies the value into the elt variable and
then assigns the elt to the entry value. But it is possible that
the entry value becomes visible on other CPUs before the elt is
fully initialized. This is fixed by adding a wmb() between the
initialization of the elt variable and assigning it.

- Have eventfs directory have unique inode numbers. Having them be
all the same proved to be a failure as the find application will
think that the directories are causing loops, as it checks for
directory loops via their inodes. Have the evenfs dir entries
get their inodes assigned when they are referenced and then save
them in the eventfs_inode structure.

Petr Pavlu (1):
tracing: Ensure visibility when inserting an element into tracing_map

Steven Rostedt (Google) (1):
eventfs: Save directory inodes in the eventfs_inode structure

----
fs/tracefs/event_inode.c | 14 +++++++++++---
fs/tracefs/internal.h | 7 ++++---
kernel/trace/tracing_map.c | 7 ++++++-
3 files changed, 21 insertions(+), 7 deletions(-)