public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* Improving Linux Commit Backporting
@ 2025-04-03 13:15 Manthey, Norbert
  2025-04-03 13:45 ` gregkh
  0 siblings, 1 reply; 9+ messages in thread
From: Manthey, Norbert @ 2025-04-03 13:15 UTC (permalink / raw)
  To: sashal@kernel.org, gregkh@linuxfoundation.org; +Cc: stable@vger.kernel.org

Dear Linux Stable Maintainers,

while maintaining downstream Linux releases, we noticed that we have to
backport some patches manually, because they are not picked up by your
automated backporting. Some of these backports can be done with
improved cherry-pick tooling. We have implemented a script/tool "git-
fuzzy-pick" which we would like to share. Besides picking more commits,
the tool also supports executing a validation script right after
picking, e.g. compiling the modified source file. Picking stats and
details are presented below.

We would like to discuss whether you can integrate this improved tool
into into your daily workflows. We already found the stable-tools
repository [1] with some scripts that help automate backporting. To
contribute git-fuzzy-pick there, we would need you to declare a license
for the current state of this repository.

To test backporting performance, we tried to backport stable-candidate
patches from 6.12 to 6.1. Specifically, on tag 6.1.125 we executed the
command stable show-missing-stable v6.12.12..v6.12.17 to collect
patches considered for backporting. This results in 431 backport
candidates. When using git-fuzzy-pick, we can pick 9 patches more than
with default cherry-picking. All modifications have been validated by
attempting to build the
object files of the modified C source files with make using the kernels
“allyesconfig” configuration.

196 Cherry-picked with --strategy=recursive --Xpatience -x
  1 Applied with patch -p1 ... --fuzz=1
  8 Applied with patch -p1 ... --fuzz=2

Please let us know how to best share the tool with you! Long term, we
would like to integrate it into your backporting workflow, so that more
kernel commits can be applied automatically.

Best,
Norbert


[1]
https://kernel.googlesource.com/pub/scm/linux/kernel/git/sashal/stable-tools/


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-04-07 14:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-03 13:15 Improving Linux Commit Backporting Manthey, Norbert
2025-04-03 13:45 ` gregkh
2025-04-03 13:57   ` gregkh
2025-04-03 14:51     ` gregkh
     [not found]       ` <a830cc37fd56d7e7d145342472ede2c924d86837.camel@amazon.de>
2025-04-05  7:21         ` gregkh
2025-04-07  7:26       ` Manthey, Norbert
2025-04-07  7:31         ` gregkh
2025-04-07 13:26           ` Willy Tarreau
2025-04-07 14:25       ` Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox