All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: akpm@linux-foundation.org, mhiramat@kernel.org,
	yujie.liu@intel.com, zhengyejian1@huawei.com,
	stable@vger.kernel.org
Subject: Re: FAILED: patch "[PATCH] tracing: Free buffers when a used dynamic event is removed" failed to apply to 4.19-stable tree
Date: Sun, 4 Dec 2022 17:34:15 +0100	[thread overview]
Message-ID: <Y4zMB/CCg63nyugh@kroah.com> (raw)
In-Reply-To: <20221204111451.2741a499@gandalf.local.home>

On Sun, Dec 04, 2022 at 11:14:51AM -0500, Steven Rostedt wrote:
> On Sun, 4 Dec 2022 09:21:23 +0100
> Greg KH <gregkh@linuxfoundation.org> wrote:
> 
> > > > 5448d44c3855 ("tracing: Add unified dynamic event framework")  
> > > 
> > > And this is mentioned below.
> > > 
> > > [..]
> > >   
> > > > If any dynamic event that is being removed was enabled, then make sure the
> > > > buffers they were enabled in are now cleared.
> > > > 
> > > > Link: https://lkml.kernel.org/r/20221123171434.545706e3@gandalf.local.home
> > > > Link: https://lore.kernel.org/all/20221110020319.1259291-1-zhengyejian1@huawei.com/
> > > > 
> > > > Cc: stable@vger.kernel.org
> > > > Cc: Andrew Morton <akpm@linux-foundation.org>
> > > > Depends-on: e18eb8783ec49 ("tracing: Add tracing_reset_all_online_cpus_unlocked() function")  
> > >   
> > > > Depends-on: 5448d44c38557 ("tracing: Add unified dynamic event framework")  
> > > 
> > > ^^^  
> > 
> > Did you just make up a new field?  We have a documented way to show
> > dependancies for stable patches, please let's not create a new one :(
> 
> Ug, I've seen this tag used before: 
> 
>  example:  e3f0c638f428fd66b5871154b62706772045f91a
> 
> And just assumed that was the method. I guess I should have looked deeper.
> 
> > 
> > > > Depends-on: 6212dd29683ee ("tracing/kprobes: Use dyn_event framework for kprobe events")
> > > > Depends-on: 065e63f951432 ("tracing: Only have rmmod clear buffers that its events were active in")
> > > > Depends-on: 575380da8b469 ("tracing: Only clear trace buffer on module unload if event was traced")
> > > > Fixes: 77b44d1b7c283 ("tracing/kprobes: Rename Kprobe-tracer to kprobe-event")  
> > 
> > Adding the "unified framework" seems like way too much for a stable
> > patch, are you sure all of these are required and should be applied to
> > 4.19.y?
> > 
> 
> It's that balance between rewriting it to the bare minimum, which is not as
> intrusive, but tested much less and may be even more buggy, to backporting
> a larger change that has been verified by real world use cases.
> 
> Or we just do not backport it. The bug will still exist, but you really
> have to work hard to hit it. And because it's only controlled by privileged
> users, maybe it's OK to just ignore it. I think I've seen only one report
> of this issue in the last 10 years.
> 
> Thoughts?

Sasha backported this to 5.4 and newer without needing the full new
feature to be added, so I think we are now ok.

thanks,

greg k-h

  reply	other threads:[~2022-12-04 16:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-03 11:20 FAILED: patch "[PATCH] tracing: Free buffers when a used dynamic event is removed" failed to apply to 4.19-stable tree gregkh
2022-12-03 22:36 ` Steven Rostedt
2022-12-04  8:21   ` Greg KH
2022-12-04 16:14     ` Steven Rostedt
2022-12-04 16:34       ` Greg KH [this message]
2023-03-10 19:52         ` Steven Rostedt
2023-03-11  8:47           ` Greg KH
2022-12-05  0:57     ` Sasha Levin

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=Y4zMB/CCg63nyugh@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=akpm@linux-foundation.org \
    --cc=mhiramat@kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=stable@vger.kernel.org \
    --cc=yujie.liu@intel.com \
    --cc=zhengyejian1@huawei.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.