public inbox for [email protected]
 help / color / mirror / Atom feed
From: Jens Axboe <[email protected]>
To: Stefan Metzmacher <[email protected]>
Cc: io-uring <[email protected]>
Subject: Re: Questions regarding IORING_OP_SENDMSG
Date: Thu, 16 Jan 2020 17:20:00 -0700	[thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>

On 1/16/20 4:13 PM, Stefan Metzmacher wrote:
> Hi Jens,
> 
> In the "io_uring: add support for IORING_OP_IOCTL" thread I wrote this:
> 
>> I could use also use a generic way for an async fd-based syscall.
>> I thought about using sendmsg() with special CMSG_ elements, but
>> currently it's not possible with IORING_OP_SENDMSG to do an async
>> io_kiocb based completion, using msg_iocb.
> 
> I just noticed that __sys_sendmsg_sock doesn't allow
> msg->msg_control || msg->msg_controllen.
> 
> Why is that the case?
> I could use that in several places for my smbdirect driver.
> 
> Optionally turning on msg_iocb usage would also be great,
> I'd use that in combination with MSG_OOB and CMSG_
> and this OOB message is not ordered like the typical
> sendmsg stream socket flow.
> 
> Do you think we can add support for this usecase?

It was done because of the CVE related to io_uring, but we really
don't need to since we have creds setup properly now. So it could
be allowed again.

-- 
Jens Axboe


      reply	other threads:[~2020-01-17  0:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-16 23:13 Questions regarding IORING_OP_SENDMSG Stefan Metzmacher
2020-01-17  0:20 ` 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