Re: [PATCH] drm/sti: Fix return type of sti_{dvo,hda,hdmi}_connector_mode_valid()
From: Kees Cook
Date: Fri Nov 18 2022 - 12:40:30 EST
On Wed, 2 Nov 2022 08:56:23 -0700, Nathan Chancellor wrote:
> With clang's kernel control flow integrity (kCFI, CONFIG_CFI_CLANG),
> indirect call targets are validated against the expected function
> pointer prototype to make sure the call target is valid to help mitigate
> ROP attacks. If they are not identical, there is a failure at run time,
> which manifests as either a kernel panic or thread getting killed. A
> proposed warning in clang aims to catch these at compile time, which
> reveals:
>
> [...]
Applied to for-next/hardening, thanks!
[1/1] drm/sti: Fix return type of sti_{dvo,hda,hdmi}_connector_mode_valid()
https://git.kernel.org/kees/c/0ad811cc08a9
--
Kees Cook