public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Shung-Hsi Yu <shung-hsi.yu@suse.com>
Cc: Sasha Levin <sashal@kernel.org>, stable@vger.kernel.org
Subject: Re: Clarifying stable kernel rule on selftest backporting
Date: Thu, 20 Mar 2025 07:47:40 -0700	[thread overview]
Message-ID: <2025032033-obvious-directive-af8d@gregkh> (raw)
In-Reply-To: <oy6rjahx5grqer7yfhts5y2s6mivgjhevf5gtgkzlytiqznk4i@fglskeuhoilh>

On Thu, Mar 20, 2025 at 10:31:16PM +0800, Shung-Hsi Yu wrote:
> Hi,
> 
> Do we have any rule regarding whether a patch that adds a new test case
> in tools/testing/selftests/ can be considered for backport?
> 
> For example, consider commit 0a5d2efa3827 ("selftests/bpf: Add test case
> for the freeing of bpf_timer"), it adds a test case for the issue
> addressed in the same series -- commit 58f038e6d209 ("bpf: Cancel the
> running bpf_timer through kworker for PREEMPT_RT"). The latter has been
> backported to 6.12.y.
> 
> Would commit 0a5d2efa3827 be a worthwhile add to 6.12.y as well?

Sure!

> IMO having such test case added would be helpful to check whether the
> backported fix really works (assuming someone is willing to do the extra
> work of finding, testing, and sending such tests); yet it does not seem
> to fit into the current stable kernel rule set of:
> - It or an equivalent fix must already exist in Linux mainline (upstream).
> - It must be obviously correct and tested.
> - It cannot be bigger than 100 lines, with context.
> - It must follow the Documentation/process/submitting-patches.rst rules.
> - It must either fix a real bug that bothers people or just add a device ID
> 
> Appreciate any clarification and/or feedback on this matter.

Adding more selftests for fixes is great, but as most people just run
the latest version of the selftests on older kernel releases, it's not
usually needed.  If you note, we do backport a lot of selftest changes
for this type of thing, so it's not exactly a new thing for us.

So send the backport on and we will be glad to queue it up.

thanks,

greg k-h

      reply	other threads:[~2025-03-20 14:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-20 14:31 Clarifying stable kernel rule on selftest backporting Shung-Hsi Yu
2025-03-20 14:47 ` Greg Kroah-Hartman [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=2025032033-obvious-directive-af8d@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=sashal@kernel.org \
    --cc=shung-hsi.yu@suse.com \
    --cc=stable@vger.kernel.org \
    /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