public inbox for [email protected]
 help / color / mirror / Atom feed
From: Jens Axboe <[email protected]>
To: Clay Harris <[email protected]>
Cc: [email protected]
Subject: Re: IORING_OP_CLOSE fails on fd opened with O_PATH
Date: Tue, 9 Jun 2020 19:52:02 -0600	[thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>

On 6/8/20 11:16 PM, Clay Harris wrote:
> On Mon, Jun 08 2020 at 20:14:51 -0600, Jens Axboe quoth thus:
> 
>> On 6/8/20 7:40 PM, Clay Harris wrote:
>>> On Mon, Jun 08 2020 at 14:19:56 -0600, Jens Axboe quoth thus:
>>>
>>>> On 6/8/20 5:21 AM, Clay Harris wrote:
>>>>> On Sun, May 31 2020 at 08:46:03 -0600, Jens Axboe quoth thus:
>>>>>
>>>>>> On 5/31/20 6:47 AM, Clay Harris wrote:
>>>>>>> Tested on kernel 5.6.14
>>>>>>>
>>>>>>> $ ./closetest closetest.c
>>>>>>>
>>>>>>> path closetest.c open on fd 3 with O_RDONLY
>>>>>>>  ---- io_uring close(3)
>>>>>>>  ---- ordinary close(3)
>>>>>>> ordinary close(3) failed, errno 9: Bad file descriptor
>>>>>>>
>>>>>>>
>>>>>>> $ ./closetest closetest.c opath
>>>>>>>
>>>>>>> path closetest.c open on fd 3 with O_PATH
>>>>>>>  ---- io_uring close(3)
>>>>>>> io_uring close() failed, errno 9: Bad file descriptor
>>>>>>>  ---- ordinary close(3)
>>>>>>> ordinary close(3) returned 0
>>>>>>
>>>>>> Can you include the test case, please? Should be an easy fix, but no
>>>>>> point rewriting a test case if I can avoid it...
>>>>>
>>>>> Sure.  Here's a cleaned-up test program.
>>>>> https://claycon.org/software/io_uring/tests/close_opath.c
>>>>
>>>> Thanks for sending this - but it's GPL v3, I can't take that. I'll
>>>> probably just add an O_PATH test case to the existing open-close test
>>>> cases.
>>>
>>> I didn't realize that would be an issue.
>>> I'll change it.  Would you prefer GPL 2, or should I just delete the
>>> license line altogether?
>>
>> It's not a huge deal, but at the same time I see no reason to add GPL
>> v3 unless I absolutely have to (and I don't). So yeah, if you could
>> just post with MIT (like the other test programs), then that'd be
>> preferable.
> 
> * Change license to MIT.
> Done.

Thanks, edited it to turn it into something that can be included as
a liburing regression test case.

-- 
Jens Axboe


      reply	other threads:[~2020-06-10  1:52 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-31 12:47 IORING_OP_CLOSE fails on fd opened with O_PATH Clay Harris
2020-05-31 14:46 ` Jens Axboe
2020-05-31 20:19   ` Jens Axboe
2020-06-02 18:22     ` Jann Horn
2020-06-02 18:42       ` Jens Axboe
2020-06-02 19:16         ` Jann Horn
2020-06-02 21:39           ` Jens Axboe
2020-06-08 11:21   ` Clay Harris
2020-06-08 20:19     ` Jens Axboe
2020-06-09  1:40       ` Clay Harris
2020-06-09  2:14         ` Jens Axboe
2020-06-09  5:16           ` Clay Harris
2020-06-10  1:52             ` Jens Axboe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox