diff options
| author | Jeff Layton <jlayton@kernel.org> | 2026-11-03 07:04:00 -0500 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-11-05 18:21:59 +0100 |
| commit | 925d238324c79bcb75ad0add1d1b9d31d5f48115 (patch) | |
| tree | f6ccb039ad0ae2df71408bae9651f40a5fe67806 /include/linux/stackprotector.h | |
| parent | 55a0c91000646b008261e3b1e15d1e774f3026e4 (diff) | |
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: a1175d6b1bda ("vfs: plumb i_version handling into struct kstat")
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20261103-statx-v2-1-8b09aa8118ab@kernel.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions
