Message ID | 20201030165529.1255175-1-arnd@kernel.org |
---|---|
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp1580195ilc; Fri, 30 Oct 2020 09:55:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIXfcpLKyza7wpBg/KsiMSA2okoZYxbvdqLEdvnKjEUHVeqGUMD4sHUlLnuiuPZbwJcpDo X-Received: by 2002:a05:6402:2076:: with SMTP id bd22mr3592248edb.197.1604076945037; Fri, 30 Oct 2020 09:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604076945; cv=none; d=google.com; s=arc-20160816; b=01oD5uLxJ5ohnwtWgy4LYgec+wUb337tXCCZHEWV0HxlZvkw/MOreapeAyiqAMM5vQ 15SJ7vD6A6K2TrEhOwqx9wCxdvO+9OskvePu6lqSIWhLT3fmNcqKL8VA4soXcJscpRE4 wN8kSVEXVuf54cHTINZ2B0yGAdqMpbm2yTYPgHiStJ8m2jcefByYJGZV4idVIVKQv+jZ ZPKPBZlQvRqld5KZb+ZzktsV3pfz4qmSIahnvCiPGTdK5lWTKN1RN04DeuPxKJJqc8NU f/gxczqkC5BaiP87IQudSd53VeYKhAlP7qCY6zLA/crTGR0ynsV25dik+nkAIEmTCSIG Nr1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hYIdAfXPUuXNn2x3v6lXitd+x55RE2zXClqVMAaEvFk=; b=D2TCDIFJKSX40BTmIfJqxZWHzeYpoP73DTs5U+GzfcFpjrCTD1T+zIr//A9QpU5Wes Zf8Pd0REeG+XuzWnsCsCM344V/J52jtu9a91lJCFlPEAHrd7z7vd4dzewNa9XWby+5Mo GzVDmfu1ED4ij/Yts7FvVCoxALSM1s79HUG3OiMQ4HPsbxeCVPSad3LLdacWm3hg7st2 P6J3ZeotkY3dnWmwSRpY8eH0fF/0S0w8rJHbWt68tkj7T6m/eBfijr8WEp2eG8DOrA1n fEUj1y8rezENOskbZqSPamCH9Ca4JZ11boKuGpCy+zW5cV8q5/Tp+1DYQyqkoywqTcLf YU2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OqsxjyUI; spf=pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: <linux-media-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j21si4868264eds.161.2020.10.30.09.55.44; Fri, 30 Oct 2020 09:55:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OqsxjyUI; spf=pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727057AbgJ3Qzk (ORCPT <rfc822;patch@linaro.org> + 4 others); Fri, 30 Oct 2020 12:55:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:60664 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726902AbgJ3Qzk (ORCPT <rfc822;linux-media@vger.kernel.org>); Fri, 30 Oct 2020 12:55:40 -0400 Received: from localhost.localdomain (HSI-KBW-46-223-126-90.hsi.kabel-badenwuerttemberg.de [46.223.126.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EAED22075E; Fri, 30 Oct 2020 16:55:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604076939; bh=fbJgu8N7+CMSMQRM8erno00wsX4J3XXENIBb3YPbau0=; h=From:To:Cc:Subject:Date:From; b=OqsxjyUI4MwsxQaC/VueYp64UA6qK4/iak5n48lhLhiUwFMRdxIIdlxRsrZmVyI45 LrEn4tkYYvU4bx0FCDLIpx5dCrGTVG/hnBWB/StkiARo9z1NctpsRb2ddBoif92UhP 9ooGWGIEYkgPbrfMTfgoZelouTiVpYhYb1qWv06Y= From: Arnd Bergmann <arnd@kernel.org> To: Hans Verkuil <hverkuil@xs4all.nl> Cc: Arnd Bergmann <arnd@arndb.de>, linux-media@vger.kernel.org, mchehab@kernel.org, hch@lst.de, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/8] media: v4l2: simplify compat ioctl handling Date: Fri, 30 Oct 2020 17:55:21 +0100 Message-Id: <20201030165529.1255175-1-arnd@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org |
Series |
media: v4l2: simplify compat ioctl handling
|
expand
|
From: Arnd Bergmann <arnd@arndb.de> 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. The first version had a number of bugs that Hans Verkuil managed to fix, I have now rebased my series on top of linux-5.10-rc1 and included his bugfixes. This series and the remaining changes for removing compat_alloc_user_space are available for further testing in https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git compat-alloc-user-space-4 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 | 1773 ++++++----------- drivers/media/v4l2-core/v4l2-ioctl.c | 182 +- include/media/v4l2-ioctl.h | 11 + include/uapi/linux/videodev2.h | 2 +- 9 files changed, 760 insertions(+), 1277 deletions(-) Cc: linux-media@vger.kernel.org Cc: mchehab@kernel.org Cc: hverkuil@xs4all.nl Cc: hch@lst.de Cc: linux-kernel@vger.kernel.org -- 2.27.0