Re: [PATCH v6 5/6] fs: prepare for extending file_get/setattr()

From
Christian Brauner <brauner@kernel.org>
Date
2025-07-02 12:24:39
Also in
linux-fsdevel, linux-xfs, lkml, selinux
Reply to
Amir Goldstein, 2025-07-02
quoted hunk ↗ jump to hunk
Christian,

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.
Thread (52 messages) 52 messages, 8 authors, last reply 2025-10-07
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