diff options
| author | 2026-09-15 08:22:12 -0400 | |
|---|---|---|
| committer | 2026-10-05 09:46:43 -0400 | |
| commit | dbde656f2f7a8dced33413c83a0cb6b634bfb26e (patch) | |
| tree | c0760427778c311a0373314d978acb76cf033192 /scripts/Makefile.thinlto | |
| parent | NFSv4/flexfiles: Carry the device node reference across each I/O (diff) | |
NFSv4/flexfiles: Hold a device node reference for layoutstats encoding
ff_layout_mirror_prepare_stats() records a stripe's device under i_lock,
but the layoutstats/layoutreturn XDR encode runs later and dereferences
the mirror's pinned device node (for the DS netaddr) with no reference
of its own. Once a CHANGE notification can re-point the pinned node,
that read becomes use-after-free.
Take a node reference at prepare time and carry it with the stripe in a
per-devinfo nfs4_ff_layoutstat_priv, released in
ff_layout_free_layoutstats(). The priv entries live alongside the
devinfo array: co-allocated for LAYOUTSTATS, an additional member of
nfs4_flexfile_layoutreturn_args for LAYOUTRETURN.
Assisted-by: Claude:claude-fable-5
Signed-off-by: Benjamin Coddington <bcodding@hammerspace.com>
Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
