summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/signal.c
diff options
context:
space:
mode:
authorAhmed S. Darwish <darwi@linutronix.de>2024-07-18 15:47:44 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-10 12:03:19 +0200
commit8c24366aebb84da13e2de7b354d1e22fd03b097b (patch)
tree63d0cd6f96ce695997bb5032af2253ae00b91fc4 /arch/x86/kernel/signal.c
parent0661a4ddec68f3045e236f0e0d007c83baaf7890 (diff)
tools/x86/kcpuid: Protect against faulty "max subleaf" values
[ Upstream commit cf96ab1a966b87b09fdd9e8cc8357d2d00776a3a ] 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>
Diffstat (limited to 'arch/x86/kernel/signal.c')
0 files changed, 0 insertions, 0 deletions