[Question] get_maintainer:

From: Manuel Ebner

Date: Mon Jun 08 2026 - 04:19:24 EST


I'm preparing a patch for get_maintainer. While testing I found out that
the order of the output can change for the same input - see below. That's
without any change to get_maintainer.pl. (state of 09d8b39563e84fc245 ).
It seems that the alternating execution of get_maintainer and
get_maintainer_patched triggers the glitch. Even if both files are the same.
I can't figure out what's the root cause. I think I change the state of the
script or it's surroundings somehow, but I can't figure out where.

Any Ideas?

Thanks
Manuel


$ ./scripts/get_maintainer.pl scripts/get_maintainer/patch-w-signed-off.patch
Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> (maintainer:LIBRARY CODE)
Kees Cook <kees@xxxxxxxxxx> (maintainer:GENERIC STRING LIBRARY)
Andy Shevchenko <andy@xxxxxxxxxx> (reviewer:GENERIC STRING LIBRARY)
Willy Tarreau <w@xxxxxx> (maintainer:NOLIBC HEADER FILE)
"Thomas Weißschuh" <linux@xxxxxxxxxxxxxx> (maintainer:NOLIBC HEADER FILE)
linux-kernel@xxxxxxxxxxxxxxx (open list:LIBRARY CODE)
linux-hardening@xxxxxxxxxxxxxxx (open list:GENERIC STRING LIBRARY)
LIBRARY CODE status: Supported
GENERIC STRING LIBRARY status: Supported

$ ./scripts/get_maintainer_patched.pl scripts/get_maintainer/patch-w-signed-off.patch
[...]

$ ./scripts/get_maintainer.pl scripts/get_maintainer/patch-w-signed-off.patch
Kees Cook <kees@xxxxxxxxxx> (maintainer:GENERIC STRING LIBRARY)
Andy Shevchenko <andy@xxxxxxxxxx> (reviewer:GENERIC STRING LIBRARY)
Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> (maintainer:LIBRARY CODE)
Willy Tarreau <w@xxxxxx> (maintainer:NOLIBC HEADER FILE)
"Thomas Weißschuh" <linux@xxxxxxxxxxxxxx> (maintainer:NOLIBC HEADER FILE)
linux-hardening@xxxxxxxxxxxxxxx (open list:GENERIC STRING LIBRARY)
linux-kernel@xxxxxxxxxxxxxxx (open list:LIBRARY CODE)
GENERIC STRING LIBRARY status: Supported
LIBRARY CODE status: Supported