linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mathias Krause <minipli@grsecurity.net>
To: Steven Rostedt <rostedt@goodmis.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Linux Trace Kernel <linux-trace-kernel@vger.kernel.org>
Cc: "Masami Hiramatsu" <mhiramat@kernel.org>,
	"Mathieu Desnoyers" <mathieu.desnoyers@efficios.com>,
	"Ajay Kaher" <ajay.kaher@broadcom.com>,
	"Ilkka Naulapää" <digirigawa@gmail.com>,
	"Linus Torvalds" <torvalds@linux-foundation.org>,
	"Al Viro" <viro@zeniv.linux.org.uk>,
	regressions@leemhuis.info,
	"Dan Carpenter" <dan.carpenter@linaro.org>,
	"Beau Belgrave" <beaub@linux.microsoft.com>,
	"Florian Fainelli" <florian.fainelli@broadcom.com>,
	"Alexey Makhalov" <alexey.makhalov@broadcom.com>,
	"Vasavi Sirnapalli" <vasavi.sirnapalli@broadcom.com>
Subject: Re: [PATCH v3] tracing: Have format file honor EVENT_FILE_FL_FREED
Date: Tue, 30 Jul 2024 22:40:21 +0200	[thread overview]
Message-ID: <b14bdf3a-b24c-4765-b3e0-971880e40fb0@grsecurity.net> (raw)
In-Reply-To: <20240730111508.75448556@gandalf.local.home>


On 30.07.24 17:15, Steven Rostedt wrote:
> On Tue, 30 Jul 2024 11:06:57 -0400
> Steven Rostedt <rostedt@goodmis.org> wrote:
> 
>> Link: https://lore.kernel.org/all/20240719204701.1605950-1-minipli@grsecurity.net/
>>
>> Cc: stable@vger.kernel.org
>> Fixes: b63db58e2fa5d ("eventfs/tracing: Add callback for release of an eventfs_inode")
>> Reported-by: Mathias Krause <minipli@grsecurity.net>
>> Tested-by: Mathias Krause <minipli@grsecurity.net>
> 
> Hi Mathias,
> 
> I kept your "Tested-by" tag because you did test the part that fixes the
> bug you reported. I just added on top of that one to handle other possibly
> cases. Let me know if you want me to drop that tag, or if you tested this
> version as well.

Hi Steven,

I retested this version and it's still fixing the bug, so you can keep
the "Tested-by" tag.

Also nice catch with covering the write part of "filter" as well!
Testing this specifically, I saw a few ENODEV's, so it's definitely
possible to hit this one as well.

Thanks,
Mathias

> 
> Thanks,
> 
> -- Steve
> 
> 
>> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
>> ---
>> Changes since v3: https://lore.kernel.org/20240726132811.306a449e@rorschach.local.home
>>
>> - After inspecting the code, there's several users of event_file_data()
>>   that return the trace_event_file descriptor when it could be set to be
>>   freed. Add a new helper function: event_file_file() that will make sure
>>   the event_mutex is held and check the flag and return NULL if the file is
>>   freed.

      reply	other threads:[~2024-07-30 20:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-30 15:06 [PATCH v3] tracing: Have format file honor EVENT_FILE_FL_FREED Steven Rostedt
2024-07-30 15:15 ` Steven Rostedt
2024-07-30 20:40   ` Mathias Krause [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b14bdf3a-b24c-4765-b3e0-971880e40fb0@grsecurity.net \
    --to=minipli@grsecurity.net \
    --cc=ajay.kaher@broadcom.com \
    --cc=alexey.makhalov@broadcom.com \
    --cc=beaub@linux.microsoft.com \
    --cc=dan.carpenter@linaro.org \
    --cc=digirigawa@gmail.com \
    --cc=florian.fainelli@broadcom.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mhiramat@kernel.org \
    --cc=regressions@leemhuis.info \
    --cc=rostedt@goodmis.org \
    --cc=torvalds@linux-foundation.org \
    --cc=vasavi.sirnapalli@broadcom.com \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).