Re: [PATCH] lkdtm: fortify: Fix potential NULL dereference on kmalloc failure

From: Kees Cook
Date: Mon Aug 25 2025 - 09:32:25 EST


On Thu, 14 Aug 2025 14:06:05 +0800, Junjie Cao wrote:
> Add missing NULL pointer checks after kmalloc() calls in
> lkdtm_FORTIFY_STR_MEMBER() and lkdtm_FORTIFY_MEM_MEMBER() functions.
>
>

Applied to for-next/hardening, thanks!

[1/1] lkdtm: fortify: Fix potential NULL dereference on kmalloc failure
https://git.kernel.org/kees/c/a3db14be3e90

Take care,

--
Kees Cook