[PATCH] arm64: compat: Work around uninitialized variable warning

Catalin Marinas catalin.marinas at arm.com
Wed Apr 5 09:53:44 PDT 2023


On Tue, 04 Apr 2023 12:36:25 +0200, Ard Biesheuvel wrote:
> Dan reports that smatch complains about a potential uninitialized
> variable being used in the compat alignment fixup code.
> 
> The logic is not wrong per se, but we do end up using an uninitialized
> variable if reading the instruction that triggered the alignment fault
> from user space faults, even if the fault ensures that the uninitialized
> value doesn't propagate any further.
> 
> [...]

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64: compat: Work around uninitialized variable warning
      https://git.kernel.org/arm64/c/32d859996806

-- 
Catalin




More information about the linux-arm-kernel mailing list