linux-sg2042/tools/arch/x86/kcpuid
Ahmed S. Darwish ef6c1ed588 tools/x86/kcpuid: Protect against faulty "max subleaf" values
[ Upstream commit cf96ab1a96 ]

Protect against the kcpuid code parsing faulty max subleaf numbers
through a min() expression.  Thus, ensuring that max_subleaf will always
be ≤ MAX_SUBLEAF_NUM.

Use "u32" for the subleaf numbers since kcpuid is compiled with -Wextra,
which includes signed/unsigned comparisons warnings.

Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20240718134755.378115-5-darwi@linutronix.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-10 11:57:29 +02:00
..
.gitignore tools/x86/kcpuid: Add .gitignore 2023-05-08 15:53:50 +02:00
Makefile
cpuid.csv tools/x86/kcpuid: Update AMD leaf Fn80000001 2023-03-07 23:29:07 +01:00
kcpuid.c tools/x86/kcpuid: Protect against faulty "max subleaf" values 2024-10-10 11:57:29 +02:00