diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-11-18 14:54:10 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-11-18 14:54:10 -0800 |
commit | c6d64479d6093a5c3d709d4cc992a5344877cc3c (patch) | |
tree | af6164db1fbb68146e208f4cefdd9f377c36b8e8 /io_uring | |
parent | 9fb2cfa4635ab7b3d44e88104666e599cd163692 (diff) | |
parent | 6c056ae4b27575d9230b883498d3cd02315ce6cc (diff) |
Merge tag 'pull-statx' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull statx updates from Al Viro:
"Sanitize struct filename and lookup flags handling in statx and
friends"
* tag 'pull-statx' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
libfs: kill empty_dir_getattr()
fs: Simplify getattr interface function checking AT_GETATTR_NOSEC flag
fs/stat.c: switch to CLASS(fd_raw)
kill getname_statx_lookup_flags()
io_statx_prep(): use getname_uflags()
Diffstat (limited to 'io_uring')
-rw-r--r-- | io_uring/statx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/io_uring/statx.c b/io_uring/statx.c index f7f9b202eec0..6bc4651700a2 100644 --- a/io_uring/statx.c +++ b/io_uring/statx.c @@ -36,8 +36,7 @@ int io_statx_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) sx->buffer = u64_to_user_ptr(READ_ONCE(sqe->addr2)); sx->flags = READ_ONCE(sqe->statx_flags); - sx->filename = getname_flags(path, - getname_statx_lookup_flags(sx->flags)); + sx->filename = getname_uflags(path, sx->flags); if (IS_ERR(sx->filename)) { int ret = PTR_ERR(sx->filename); |