From: Arnd Bergmann <arnd@arndb.de>
To: linux-media@vger.kernel.org, mchehab@kernel.org, hverkuil@xs4all.nl
Cc: hch@lst.de, linux-kernel@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>
Subject: [PATCH 0/8] media: v4l2: simplify compat ioctl handling
Date: Thu, 17 Sep 2020 17:28:15 +0200 [thread overview]
Message-ID: <20200917152823.1241599-1-arnd@arndb.de> (raw)
I have a series to remove all uses of compat_alloc_user_space()
and copy_in_user() from the kernel, this is the part of it that
involves the v4l2 compat code.
The resulting code is significantly shorter and arguably more
readable, but I have not done any testing beyond compilation on
it, so at the minimum this first needs to pass the test suite
for both native and compat users space.
Given the complexity of the code, I am fairly sure that there
are bugs I missed.
Please review and test if possible.
Arnd
Arnd Bergmann (8):
media: v4l2: prepare compat-ioctl rework
media: v4l2: remove unneeded compat ioctl handlers
media: v4l2: move v4l2_ext_controls conversion
media: v4l2: move compat handling for v4l2_buffer
media: v4l2: allocate v4l2_clip objects early
media: v4l2: convert v4l2_format compat ioctls
media: v4l2: remaining compat handlers
media: v4l2: remove remaining compat_ioctl
drivers/media/common/saa7146/saa7146_video.c | 6 +-
drivers/media/pci/bt8xx/bttv-driver.c | 8 +-
drivers/media/pci/saa7134/saa7134-video.c | 19 +-
.../media/test-drivers/vivid/vivid-vid-cap.c | 18 +-
.../media/test-drivers/vivid/vivid-vid-out.c | 18 +-
drivers/media/v4l2-core/v4l2-compat-ioctl32.c | 1774 ++++++-----------
drivers/media/v4l2-core/v4l2-ioctl.c | 120 +-
include/media/v4l2-ioctl.h | 11 +
include/uapi/linux/videodev2.h | 2 +-
9 files changed, 729 insertions(+), 1247 deletions(-)
--
2.27.0
next reply other threads:[~2020-09-17 15:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-17 15:28 Arnd Bergmann [this message]
2020-09-17 15:28 ` [PATCH 1/8] media: v4l2: prepare compat-ioctl rework Arnd Bergmann
2020-09-17 15:28 ` [PATCH 2/8] media: v4l2: remove unneeded compat ioctl handlers Arnd Bergmann
2020-09-17 15:28 ` [PATCH 3/8] media: v4l2: move v4l2_ext_controls conversion Arnd Bergmann
2020-09-17 15:28 ` [PATCH 4/8] media: v4l2: move compat handling for v4l2_buffer Arnd Bergmann
2020-09-17 15:28 ` [PATCH 5/8] media: v4l2: allocate v4l2_clip objects early Arnd Bergmann
2020-09-17 15:28 ` [PATCH 6/8] media: v4l2: convert v4l2_format compat ioctls Arnd Bergmann
2020-09-17 15:28 ` [PATCH 7/8] media: v4l2: remaining compat handlers Arnd Bergmann
2020-09-17 15:28 ` [PATCH 8/8] media: v4l2: remove remaining compat_ioctl Arnd Bergmann
2020-10-02 14:32 ` [PATCH 0/8] media: v4l2: simplify compat ioctl handling Hans Verkuil
2020-10-06 15:14 ` Arnd Bergmann
2020-10-06 15:28 ` Hans Verkuil
2020-10-29 8:29 ` Hans Verkuil
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=20200917152823.1241599-1-arnd@arndb.de \
--to=arnd@arndb.de \
--cc=hch@lst.de \
--cc=hverkuil@xs4all.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
/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
all inboxes | Powered by JetHome®