[PATCH 2/4] ubsan: Remove regs from report_ubsan_failure()

Kees Cook kees at kernel.org
Wed Apr 16 12:47:08 PDT 2025


On Wed, Apr 16, 2025 at 06:04:32PM +0000, Mostafa Saleh wrote:
> report_ubsan_failure() doesn't use argument regs, and soon it will
> be called from the hypervisor context were regs are not available.
> So, remove the unused argument.
> 
> Signed-off-by: Mostafa Saleh <smostafa at google.com>

Funny. I wonder why I put that argument in there? If we ever need it
again, we can just make it conditional (and let the hypervisor pass
NULL).

Acked-by: Kees Cook <kees at kernel.org>

-- 
Kees Cook



More information about the linux-arm-kernel mailing list