Read the whole thread, 52 messages PreviousNext Re: [PATCH v6 5/6] fs: prepare for extending file_get/setattr() FromChristian Brauner <brauner@kernel.org> Date2025-07-02 12:24:39 Also inlinux-fsdevel, linux-xfs, lkml, selinuxReply toAmir Goldstein, 2025-07-02 quoted hunk ↗ jump to hunkChristian, Can you please amend the return value in the following chunk: @@ -119,11 +120,16 @@ static int copy_fsxattr_from_user(struct fileattr *fa, struct fsxattr __user *ufa) { struct fsxattr xfa; + __u32 mask = FS_XFLAGS_MASK; if (copy_from_user(&xfa, ufa, sizeof(xfa))) return -EFAULT; + if (xfa.fsx_xflags & ~mask) + return -EOPNOTSUPP; + Done.
Keyboard shortcuts hback out one level jnext message in thread / next series-diff position kprevious message in thread / previous series-diff position ldrill in Escclose help / fold thread tree ?toggle this help