From: Christoph Hellwig <hch@infradead.org>
To: Ming Lei <ming.lei@redhat.com>
Cc: Christoph Hellwig <hch@infradead.org>,
Jens Axboe <axboe@kernel.dk>,
linux-block@vger.kernel.org
Subject: Re: [PATCH] block: ublk: switch to ioctl command encoding
Date: Mon, 17 Apr 2023 02:48:49 -0700 [thread overview]
Message-ID: <ZD0WAT1hRphTlXjl@infradead.org> (raw)
In-Reply-To: <ZDzzn0jg/0LL4r7F@ovpn-8-16.pek2.redhat.com>
On Mon, Apr 17, 2023 at 03:22:07PM +0800, Ming Lei wrote:
> The traditional ioctl command encodes type/nr/dir info, and basically
> each command is unique if every driver respects the rule, so at least:
>
> 1) driver can figure out wrong command sent from userspace easily
>
> 2) easier for security subsystem audit[1]
Please add this to the commit log.
And maybe add a config option for the old opcodes so that distros
newly picking up ublk can disable them from the start.
next prev parent reply other threads:[~2023-04-17 10:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-07 8:37 [PATCH] block: ublk: switch to ioctl command encoding Ming Lei
2023-04-16 15:39 ` Ming Lei
2023-04-17 4:52 ` Christoph Hellwig
2023-04-17 7:22 ` Ming Lei
2023-04-17 9:48 ` Christoph Hellwig [this message]
2023-04-17 10:32 ` Ken Kurematsu
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 \
--in-reply-to=ZD0WAT1hRphTlXjl@infradead.org \
--to=hch@infradead.org \
--cc=axboe@kernel.dk \
--cc=linux-block@vger.kernel.org \
--cc=ming.lei@redhat.com \
/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