[PATCH] maple_tree: Fix potential NULL pointer dereference if mas_pop_node() fails

Markus Elfring Markus.Elfring at web.de
Sat Oct 18 09:38:11 PDT 2025


> mas_pop_node() may return NULL when memory allocation fails or when
> mas->sheaf is invalid. Several callers of mas_pop_node() did not check
> the return value and directly dereferenced the pointer, which could
> lead to a NULL pointer dereference and kernel crash.

Will another imperative wording approach become more helpful for an improved
change description?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.18-rc1#n94

Regards,
Markus



More information about the maple-tree mailing list