[GIT PULL] tracefs: Updates for v7.3

Steven Rostedt <[email protected]>
Newsgroups org.kernel.vger.linux-kernel
Message-ID <[email protected]>
Linus,

tracefs updates for v7.3:

- Define event fields before directory creation

  Move the event_define_fields() call in event_create_dir() before the
  eventfs directory creation. Previously, a failure after directory
  creation wouldn't clean up eventfs_inode because the error path didn't
  call eventfs_remove_dir(). This eliminates the need to clean up the
  eventfs directories if event_define_fields() fails.

- Add warning for out of bounds pos in __eventfs_iterate()

  Sashiko complains about the ctx->pos causing issues if it is less than 2
  or greater than MAX_INT in __eventfs_iterate(). The thing is, the logic
  prevents that from happening. But to make Sashiko happy, add a WARN_ON()
  and exit safely if the function ever does get input that is out of the
  range the function expects.


Please pull the latest tracefs-v7.3 tree, which can be found at:


  git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
tracefs-v7.3

Tag SHA1: bd4ca0e24ebac9ea0905b543bdd14cd4d71315cf
Head SHA1: 43a17abc83c6402bffac80a6dd434f8555f457e8


Anubhav Shelat (1):
      eventfs: Define event fields before directory creation

Steven Rostedt (1):
      eventfs: Add warning for out of bounds pos in __eventfs_iterate()

----
 fs/tracefs/event_inode.c    |  4 ++++
 kernel/trace/trace_events.c | 13 +++++++------
 2 files changed, 11 insertions(+), 6 deletions(-)
---------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.