Files
linux/include
Jeff Layton 925d238324 statx: don't leak STATX_ATTR_CHANGE_MONOTONIC in stx_attributes_mask
STATX_ATTR_CHANGE_MONOTONIC is kernel-internal. cp_statx() strips it
from stx_attributes but copies attributes_mask verbatim, so it leaks to
userland on filesystems that advertise it (nfs, ceph), e.g.
stx_attributes_mask = 0x8000000000303000 on NFS.

Add a new mask constant and apply it to both fields.

Fixes: a1175d6b1b ("vfs: plumb i_version handling into struct kstat")
Reviewed-by: Jan Kara <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
Link: https://patch.msgid.link/[email protected]
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Christian Brauner (Amutable) <[email protected]>
2026-11-05 18:21:59 +01:00
..
…
…
…
…
…
…
2026-10-23 22:57:34 -04:00
…
…
…
…