linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv6 0/3] v4l2-core: improve ioctl validation
@ 2019-10-14  8:40 Hans Verkuil
  2019-10-14  8:40 ` [PATCHv6 1/3] v4l2-core: correctly validate video and metadata ioctls Hans Verkuil
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Hans Verkuil @ 2019-10-14  8:40 UTC (permalink / raw)
  To: linux-media; +Cc: Vandana BN, Sakari Ailus, Laurent Pinchart

This supersedes https://www.mail-archive.com/linux-media@vger.kernel.org/msg150027.html
based on feedback from Laurent:

https://www.mail-archive.com/linux-media@vger.kernel.org/msg150117.html

and Sakari:

https://www.mail-archive.com/linux-media@vger.kernel.org/msg150129.html

This v6 only moves some code from patch 1 to patch 3, the final code
is the same as for v5. I plan to make a PR for this very soon together
with the vivid metadata patches that need this.

Regards,

	Hans

Changes in v6:

Patch 1/3 dropped the check against GRABBER for the g_parm ioctl,
but that is too early: this should be done in patch 3/3 where this
code no longer applies to touch devices (which was the reason for
the GRABBER test).

Changes in v5:

I now check if a GRABBER device is a video or metadata device
(or both!) by checking device_caps.


Hans Verkuil (2):
  v4l2-dev: simplify the SDR checks
  v4l2-dev: fix is_tch checks

Vandana BN (1):
  v4l2-core: correctly validate video and metadata ioctls

 drivers/media/v4l2-core/v4l2-dev.c   | 104 ++++++++++++++++-----------
 drivers/media/v4l2-core/v4l2-ioctl.c |  16 ++++-
 2 files changed, 75 insertions(+), 45 deletions(-)

-- 
2.23.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-10-15 20:19 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-14  8:40 [PATCHv6 0/3] v4l2-core: improve ioctl validation Hans Verkuil
2019-10-14  8:40 ` [PATCHv6 1/3] v4l2-core: correctly validate video and metadata ioctls Hans Verkuil
2019-10-14 21:36   ` Laurent Pinchart
2019-10-15  6:54     ` Hans Verkuil
2019-10-14  8:40 ` [PATCHv6 2/3] v4l2-dev: simplify the SDR checks Hans Verkuil
2019-10-14 21:39   ` Laurent Pinchart
2019-10-14  8:40 ` [PATCHv6 3/3] v4l2-dev: fix is_tch checks Hans Verkuil
2019-10-14 12:01   ` [PATCHv6 4/3] v4l2-dev: disable frequency and tuner ioctls for touch Hans Verkuil
2019-10-14 21:43     ` Laurent Pinchart
2019-10-15  6:47       ` Hans Verkuil
2019-10-14 21:42   ` [PATCHv6 3/3] v4l2-dev: fix is_tch checks Laurent Pinchart
2019-10-15  6:44     ` Hans Verkuil
2019-10-15 20:19 ` [PATCHv6 0/3] v4l2-core: improve ioctl validation Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).