Unverified Commit e85931d1 authored by Dan Carpenter's avatar Dan Carpenter Committed by Christian Brauner
Browse files

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: be7efb2d ("fs: introduce file_getattr and file_setattr syscalls")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/baf7b808-bcf2-4ac1-9313-882c91cc87b2@sabinyo.mountain


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent ca115d7e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment