Re: [PATCH] lkdtm: use kmalloc() instead of __get_free_page
Kees Cook <[email protected]>
| Newsgroups | org.kvack.linux-mm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 22 Jul 2026 23:02:46 +0000, Mahad Ibrahim wrote:
> lkdtm_debugfs_entry and direct_entry use __get_free_page to allocate a
> temporary buffer, perform copy_from_user to get the crashtype name,
> strim() to strip whitespace and find_crashtype to find the corresponding
> crashtype that is being requested.
>
> The lkdtm_debugfs_read uses __get_free_page to allocate a temporary
> buffer to store all the available crashtypes, and then copy it to
> userspace.
>
> [...]
Applied to for-next/hardening, thanks!
[1/1] lkdtm: use kmalloc() instead of __get_free_page
https://git.kernel.org/kees/c/c7ca1fa293ad
Take care,
--
Kees Cook