summaryrefslogtreecommitdiff
path: root/include/linux/errqueue.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2025-05-11 20:30:01 +0300
committerPaul Moore <paul@paul-moore.com>2026-05-07 02:43:16 +0300
commit60fb8dc7bf1af48edb443b5b0ca721de8b6ed449 (patch)
tree5ba803698868338058f90a86fd10e002d4c925be /include/linux/errqueue.h
parentcf6a513f1937581eb012a217b29817e025a1a0ef (diff)
downloadlinux-60fb8dc7bf1af48edb443b5b0ca721de8b6ed449.tar.xz
selinux: avoid nontransitive comparison
Avoid using nontransitive comparison to prevent unexpected sorting results due to (well-defined) overflows. See https://www.qualys.com/2024/01/30/qsort.txt for a related issue in glibc's qsort(3). Signed-off-by: Christian Göttsche <cgzones@googlemail.com> Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com> [PM: use the cmp_int() macro from sort.h] Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'include/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions