[GIT PULL] selinux/selinux-pr-20260615

Linus Torvalds torvalds at linux-foundation.org
Wed Jun 17 11:54:44 UTC 2026


On Tue, 16 Jun 2026 at 03:55, Paul Moore <paul at paul-moore.com> wrote:
>
> - Avoid nontransitive comparisons comparisons in our sorting code
>
> Done to prevent unexpected sorting results due to overflow.  Qualys
> documented a similar issue with glibc:
> https://www.qualys.com/2024/01/30/qsort.txt

So this is clearly worth fixing in the selinux code regardless, but
did anybody check whether our sorting routines in lib/sort.c actually
have any overflow issues with non-transitive comparison functions?

Strange sort order may be confusing but tends to be largely harmless
(the confusion might then obviously cause other issues)

 The whole "confuses the sort function enough to result in bad
accesses" might be worth fixing in lib/sort.c if somebody looked into
it...

                 Linus



More information about the Linux-security-module-archive mailing list