You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nfsd: don't ignore the return code of svc_proc_register()
JIRA: https://issues.redhat.com/browse/RHEL-93612
CVE: CVE-2025-22026
Conflicts: several conflicts
patching file fs/nfsd/nfsctl.c
Hunk #1 FAILED at 2202.
Due to missing 86ab08b "SUNRPC: replace program list with program
array" -- a part of a large patch series
Due to missing 73598a0 "nfsd: don't allocate the versions array."
-- a part of the large patch series
Hunk #2 FAILED at 2213.
because there is no LOCALIO functionality but specifically
fa49838 "nfsd: add LOCALIO support"
checking file fs/nfsd/stats.h
Hunk #1 FAILED at 10.
Due to missing 7d12cce "fs: nfsd: use group allocation/free of
per-cpu counters API"
commit 930b64c
Author: Jeff Layton <[email protected]>
Date: Thu, 6 Feb 2025 13:12:13 -0500
Currently, nfsd_proc_stat_init() ignores the return value of
svc_proc_register(). If the procfile creation fails, then the kernel
will WARN when it tries to remove the entry later.
Fix nfsd_proc_stat_init() to return the same type of pointer as
svc_proc_register(), and fix up nfsd_net_init() to check that and fail
the nfsd_net construction if it occurs.
svc_proc_register() can fail if the dentry can't be allocated, or if an
identical dentry already exists. The second case is pretty unlikely in
the nfsd_net construction codepath, so if this happens, return -ENOMEM.
Reported-by: [email protected]
Closes: https://lore.kernel.org/linux-nfs/[email protected]/
Cc: [email protected] # v6.9
Signed-off-by: Jeff Layton <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
Signed-off-by: Olga Kornievskaia <[email protected]>
0 commit comments