https://github.com/torvalds/linux
Revision 54c1fb39fe0495f846539ab765925b008f86801c authored by Eric Biggers on 08 December 2017, 15:13:29 UTC, committed by David Howells on 08 December 2017, 15:13:29 UTC
->pkey_algo used to be an enum, but was changed to a string by commit
4e8ae72a75aa ("X.509: Make algo identifiers text instead of enum").  But
two comparisons were not updated.  Fix them to use strcmp().

This bug broke signature verification in certain configurations,
depending on whether the string constants were deduplicated or not.

Fixes: 4e8ae72a75aa ("X.509: Make algo identifiers text instead of enum")
Cc: <stable@vger.kernel.org> # v4.6+
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: David Howells <dhowells@redhat.com>
1 parent 18026d8
History
Tip revision: 54c1fb39fe0495f846539ab765925b008f86801c authored by Eric Biggers on 08 December 2017, 15:13:29 UTC
X.509: fix comparisons of ->pkey_algo
Tip revision: 54c1fb3
File Mode Size
Makefile -rw-r--r-- 1.3 KB
autogroup.c -rw-r--r-- 6.5 KB
autogroup.h -rw-r--r-- 1.6 KB
clock.c -rw-r--r-- 11.6 KB
completion.c -rw-r--r-- 10.2 KB
core.c -rw-r--r-- 170.6 KB
cpuacct.c -rw-r--r-- 8.4 KB
cpudeadline.c -rw-r--r-- 6.0 KB
cpudeadline.h -rw-r--r-- 772 bytes
cpufreq.c -rw-r--r-- 2.2 KB
cpufreq_schedutil.c -rw-r--r-- 18.6 KB
cpupri.c -rw-r--r-- 6.8 KB
cpupri.h -rw-r--r-- 713 bytes
cputime.c -rw-r--r-- 22.4 KB
deadline.c -rw-r--r-- 72.2 KB
debug.c -rw-r--r-- 24.6 KB
fair.c -rw-r--r-- 258.5 KB
features.h -rw-r--r-- 2.3 KB
idle.c -rw-r--r-- 8.6 KB
idle_task.c -rw-r--r-- 2.4 KB
isolation.c -rw-r--r-- 4.0 KB
loadavg.c -rw-r--r-- 11.4 KB
membarrier.c -rw-r--r-- 5.2 KB
rt.c -rw-r--r-- 62.3 KB
sched-pelt.h -rw-r--r-- 601 bytes
sched.h -rw-r--r-- 55.0 KB
stats.c -rw-r--r-- 3.2 KB
stats.h -rw-r--r-- 5.0 KB
stop_task.c -rw-r--r-- 3.0 KB
swait.c -rw-r--r-- 2.9 KB
topology.c -rw-r--r-- 47.4 KB
wait.c -rw-r--r-- 13.3 KB
wait_bit.c -rw-r--r-- 8.6 KB

back to top