Re: [PATCH] lkdtm: use kmalloc() instead of __get_free_page

Kees Cook <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.kernel.mm
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.