Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_[gs]etxattr_prep(): just use getname()

getname_flags(pathname, LOOKUP_FOLLOW) is obviously bogus - following
trailing symlinks has no impact on how to copy the pathname from userland...

Reviewed-by: Christian Brauner <brauner@kernel.org>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro b8cdd253 dc7e76ba

+2 -2
+2 -2
io_uring/xattr.c
··· 96 96 97 97 path = u64_to_user_ptr(READ_ONCE(sqe->addr3)); 98 98 99 - ix->filename = getname_flags(path, LOOKUP_FOLLOW); 99 + ix->filename = getname(path); 100 100 if (IS_ERR(ix->filename)) { 101 101 ret = PTR_ERR(ix->filename); 102 102 ix->filename = NULL; ··· 189 189 190 190 path = u64_to_user_ptr(READ_ONCE(sqe->addr3)); 191 191 192 - ix->filename = getname_flags(path, LOOKUP_FOLLOW); 192 + ix->filename = getname(path); 193 193 if (IS_ERR(ix->filename)) { 194 194 ret = PTR_ERR(ix->filename); 195 195 ix->filename = NULL;