summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2026-08-12 14:08:14 -0400
committerChuck Lever <cel@kernel.org>2026-10-04 21:15:29 -0400
commit68df025e947f769ceca60b46a9dabaf42fd1fdab (patch)
treeff362bdee4b9cd48ce68cb7e2b227fa96b48210d /scripts/Makefile.thinlto
parente68cb5c8764dc602531aa9f9e3bcae9992d18e4a (diff)
nfsd: pass caller-provided attrmask storage into nfsd4_setup_notify_entry4()
nfsd4_setup_notify_entry4() stole 3 words from the xdr stream via xdr_reserve_space() to hold the host-order bmval[3] attrmask that nfsd4_encode_attr_vals() consumes and ne_attrs.attrmask.element points at. Stashing host-endian scratch in an XDR stream buffer is fragile: the buffer layout is not guaranteed by sunrpc, and it blocks moving the encoder to pages or xdrgen. The attrmask only needs to live until the enclosing encode call serializes the notify_entry4, so hand it caller-provided stack storage instead. The two callers keep the words on the stack: up to three concurrent entries for a rename in nfsd4_encode_notify_event(), one in nfsd4_encode_dir_attr_change(). No wire change: the reserved words were never emitted; attr_vals.data/len are still captured relative to xdr->p. Assisted-by: LLM Signed-off-by: Jeff Layton <jlayton@kernel.org> Link: https://patch.msgid.link/20260812-dir-deleg-v1-1-411faa713068@kernel.org Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions