aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpi-add.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2025-07-15 23:03:17 +0000
committerChristian Brauner <[email protected]>2025-07-16 08:22:01 +0000
commite85931d1cd699307e6a3f1060cbe4c42748f3fff (patch)
tree4a8cdc4e47f280159d937cf6f4262a5ed29bb860 /lib/crypto/mpi/mpi-add.c
parenttree-wide: s/struct fileattr/struct file_kattr/g (diff)
downloadkernel-e85931d1cd699307e6a3f1060cbe4c42748f3fff.tar.gz
kernel-e85931d1cd699307e6a3f1060cbe4c42748f3fff.zip
fs: tighten a sanity check in file_attr_to_fileattr()
The fattr->fa_xflags is a u64 that comes from the user. This is a sanity check to ensure that the users are only setting allowed flags. The problem is that it doesn't check the upper 32 bits. It doesn't really affect anything but for more flexibility in the future, we want to enforce users zero out those bits. Fixes: be7efb2d20d6 ("fs: introduce file_getattr and file_setattr syscalls") Signed-off-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions