Re: [PATCH] NFS: Fix possible NULL pointer dereference in nfs_inode_remove_request()

From: Markus Elfring

Date: Sun Oct 12 2025 - 07:21:43 EST



> Fix this by checking folio before using it or calling
> folio_end_dropbehind().

How do you think about to add any tags (like “Fixes” and “Cc”) accordingly?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.17#n145



> ---
> fs/nfs/write.c | 11 ++++++-----


Can a summary phrase like “Prevent null pointer dereference in nfs_inode_remove_request()”
be nicer?


Will development interests grow for the application of scope-based resource management?
https://elixir.bootlin.com/linux/v6.17.1/source/include/linux/spinlock.h#L565-L567

Regards,
Markus