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

From: Kees Cook
Date: Wed Apr 16 2025 - 15:47:39 EST


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@xxxxxxxxxx>

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@xxxxxxxxxx>

--
Kees Cook