mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Tomas Glozar <tglozar@redhat.com>
Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org,
	jkacur@redhat.com,
	"Luis Claudio R. Goncalves" <lgoncalv@redhat.com>
Subject: Re: [PATCH] tracing/timerlat: Check tlat_var for NULL in timerlat_fd_release
Date: Wed, 4 Sep 2024 10:21:04 -0400	[thread overview]
Message-ID: <20240904102104.6f2a35af@gandalf.local.home> (raw)
In-Reply-To: <CAP4=nvRfkZ2CEbFv+MFBXikZ_p2K-1uucgkdgp27JeTxe58qhw@mail.gmail.com>

On Tue, 3 Sep 2024 14:47:42 +0200
Tomas Glozar <tglozar@redhat.com> wrote:

> I suggest using the workaround suggested in
> https://lore.kernel.org/linux-trace-kernel/20240823125426.404f2705@gandalf.local.home
> for the time being. Together with the patch that adds locks around
> stopping the threads
> (https://patchwork.kernel.org/project/linux-trace-kernel/patch/20240823102816.5e55753b@gandalf.local.home/),
> this should prevent the kernel panic at least until we have a solution
> for the race itself.

When running my tests, the second one would end up deadlocking and
triggering lockdep. I found a way to do basically the same thing with a
cpumask and no added locking. I'm currently testing it and will be sending
out a patch later today (if it passes the tests).

-- Steve

  parent reply	other threads:[~2024-09-04 14:20 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-20 13:00 tglozar
2024-08-21 20:03 ` Steven Rostedt
2024-08-22  9:32   ` Tomas Glozar
2024-08-22 14:32     ` Steven Rostedt
2024-08-22 14:37       ` Steven Rostedt
2024-08-22 11:20   ` Luis Claudio R. Goncalves
2024-08-22 14:34     ` Steven Rostedt
2024-08-23 16:54 ` Steven Rostedt
2024-08-23 18:52   ` Steven Rostedt
2024-08-26 13:01     ` Tomas Glozar
2024-08-26 17:26       ` Steven Rostedt
2024-08-27 14:34         ` Tomas Glozar
2024-08-29 23:40           ` Luis Claudio R. Goncalves
2024-08-30  0:31             ` Luis Claudio R. Goncalves
2024-09-03 12:47           ` Tomas Glozar
2024-09-03 15:00             ` Steven Rostedt
2024-09-04 14:21             ` Steven Rostedt [this message]
2024-09-05 10:38               ` Tomas Glozar
2024-09-05 12:31                 ` Steven Rostedt

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=20240904102104.6f2a35af@gandalf.local.home \
    --to=rostedt@goodmis.org \
    --cc=jkacur@redhat.com \
    --cc=lgoncalv@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=tglozar@redhat.com \
    /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

all inboxes | Powered by JetHome®