On Mon, Apr 27 2020 at 10:52:22 -0600, Jens Axboe quoth thus: > On 4/27/20 10:40 AM, Jens Axboe wrote: > > On 4/27/20 9:29 AM, Clay Harris wrote: > >> Jens Axboe recommended that I post io_uring stuff to this list. > >> So, here goes. > >> > >> https://bugzilla.kernel.org/show_bug.cgi?id=207453 > > > > The below should fix it. > > Added a test case for this to the liburing regression suite as well. > I have verified that the original bug is fixed as of kernel 5.6.11. -- Test 0: statx:fd 3: SUCCEED, file mode 100664 -- Test 1: statx:path uring_statx.c: SUCCEED, file mode 100664 -- Test 2: io_uring_statx:fd 3: SUCCEED, file mode 100664 -- Test 3: io_uring_statx:path uring_statx.c: SUCCEED, file mode 100664 ---- fd 3 set O_NONBLOCK -- Test 4: statx:fd 3 O_NONBLOCK: SUCCEED, file mode 100664 -- Test 5: io_uring_statx:fd 3 O_NONBLOCK: SUCCEED, file mode 100664 ======== I want to note that there are two other issues with io_uring statx with AT_EMPTY_PATH: 1) Tests 2 and 5 fail (EBADF) if the fd is opened with O_PATH, while all of the other tests continue to work fine. 2) io_uring statx returns EBADF when IOSQE_FIXED_FILE is specified, but IOSQE_FIXED_FILE + AT_EMPTY_PATH should be a valid combination. > -- > Jens Axboe