Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp80962ybz; Thu, 16 Apr 2020 19:54:30 -0700 (PDT) X-Google-Smtp-Source: APiQypII6bO0gqSwFny8/O7Pizk8uWQSGfb8u/z11ybDgJZYGddscDEOaZVcaY14J05+ZRWSLi5X X-Received: by 2002:a50:ee0e:: with SMTP id g14mr1112164eds.34.1587092070000; Thu, 16 Apr 2020 19:54:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587092069; cv=none; d=google.com; s=arc-20160816; b=0rbrYsgHzVuRD4ytJ9q2WQpj3Rm27OTKrm8UYjJ2f53Qs5fBbiCgo91gzdodZBuyFQ ez2ajKAaIdQCwaFeV1d7YwbzT3c6W3cvJAqWNYmCLRWL+sFhs6EA0SPVsmEblBxZHO+N pokGSWLm3hIt4PD1qSERgxKOCsgl265h8cb5y+JRUOmggqw40+s28RJuIqrBLIghcuho yMUyQAEYCWDnFWGp9po3ugL9V0uQtDXj4AJCBa1V9QW3WLhJ19lMQS3RugxfR8QmjaZR x/iXO61PGdrbCEUXJgYrZK80SpKHasebzZCWiFkvJ6AR6y7ssMdMC7Vex4gpsv2sL13y u6rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature:dkim-filter; bh=uHjnAsWICGbvd2UvAeIMZ3j2WHQsGzQDZG6azlJmziU=; b=OV2uuu3BBiAJ/OTDDMSRyEiDxwDWM0QYbLSQaxxLs48qJEBa8T50KnvzBnZcqJshiA L1lBeTDNUc7835UTUZVvGPS7KT2XjNZ2aQAgNfwydX0ddSyP9mJwGLXLDQ+Gm8p2JwJ8 RpreefbqvvLIi/pUW0mI9IUV5y3zVbTkijn8SbfKWv0SxwaXtszY6vOqN0vR/hM0C+k7 1tKaLS2SbErFPvt/Xmy038tzSegY2eDfOj6VM94t+34Cri+tWuutgfLjqf9EirKiqCuZ q49GjFuDjQjrjq1uD0Gy6BXmo1P6eHVQun+zFEcN6/T24cuw3dY2AsGYw0ynyI3dTY8W 2Ppw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=JhOQXdgu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ly5si10778907ejb.180.2020.04.16.19.53.59; Thu, 16 Apr 2020 19:54:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@samsung.com header.s=mail20170921 header.b=JhOQXdgu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729316AbgDQCwM (ORCPT + 99 others); Thu, 16 Apr 2020 22:52:12 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:39383 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729277AbgDQCwL (ORCPT ); Thu, 16 Apr 2020 22:52:11 -0400 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20200417025208epoutp03ce79cb385773dd762736035443e1fc70~Ge7NGtQCW0544405444epoutp03d for ; Fri, 17 Apr 2020 02:52:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20200417025208epoutp03ce79cb385773dd762736035443e1fc70~Ge7NGtQCW0544405444epoutp03d DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1587091928; bh=uHjnAsWICGbvd2UvAeIMZ3j2WHQsGzQDZG6azlJmziU=; h=From:To:Cc:Subject:Date:References:From; b=JhOQXdgurggunbQNvEQMf+Z9nurqXVNpY1/hTjRmxz6jxvb8SlkmNyyAnPgc3bBmq qEqxMgaDZ4dwEIoa1+f0naKlf1qy5h+9fGuFqwoguYt38xB/trlTMFW06KZvqYhJqT +Yw1HSvhzvUDg645/6m1+bz28rrHJiXjLSxIDLcM= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20200417025208epcas2p38db948db38a6f7cdee1d09cf57c00699~Ge7MpVHTB3158331583epcas2p3i; Fri, 17 Apr 2020 02:52:08 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.40.188]) by epsnrtp2.localdomain (Postfix) with ESMTP id 493LGY6rsgzMqYkc; Fri, 17 Apr 2020 02:52:05 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 5B.EA.04393.5D9199E5; Fri, 17 Apr 2020 11:52:05 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20200417025205epcas2p46d33e64f2de49041d2ca68ecc98fc83e~Ge7J_VXhG3180931809epcas2p4L; Fri, 17 Apr 2020 02:52:05 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200417025205epsmtrp11d28438d8dbd250622344386361fc7c6~Ge7J9d1lx3164331643epsmtrp1N; Fri, 17 Apr 2020 02:52:05 +0000 (GMT) X-AuditID: b6c32a47-667ff70000001129-a4-5e9919d584f4 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 7D.32.04158.5D9199E5; Fri, 17 Apr 2020 11:52:05 +0900 (KST) Received: from coldbrew.dsn.sec.samsung.com (unknown [12.36.155.201]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200417025205epsmtip10f68d62d315bad4db18b60a74fc0217f~Ge7JytNNp0040800408epsmtip1i; Fri, 17 Apr 2020 02:52:05 +0000 (GMT) From: sy0816.kang@samsung.com To: mchehab@kernel.org Cc: sy0816.kang@samsung.com, Hans Verkuil , Arnd Bergmann , Greg Kroah-Hartman , Thomas Gleixner , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: v4l2-compat-ioctl32.c: copy reserved2 field in get_v4l2_buffer32 Date: Fri, 17 Apr 2020 11:45:23 +0900 Message-Id: <20200417024543.66785-1-sy0816.kang@samsung.com> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA01Sa0hTYRjm2znbjpfFcZW9rZudkNLSttn0KNqFxIZZSPUjJFsHPThpN3a2 bhCZotXKtIumU2skiIxCWybLrMxC0R+rCLtBSHbBlKQ0o7xEZzuL/Pd8z/s83/O97/cSmNwp URCFJhtrNTEGShKKtz+OoeMGFtfuVxZf0tCzF3ukdElji4R+XvsOp1901Evoc613xHSTZ0ZE D31Kom97qrDNhHZ66iLSetxnJNoxn0+qfdhwQ6o93+ZG2gnPcm3/5IQ0W5pjSNWzTD5rjWJN eeb8QlNBGrV9t26rTpOoVMWpkukkKsrEGNk0Kj0rOy6j0MA/ioo6xBjsPJXNcBy1fmOq1Wy3 sVF6M2dLo1hLvsGiUlniOcbI2U0F8XlmY4pKqVRreOUBg/7K4DPc8oo44nszKCpCXqkDhRBA bgBn+W/cgUIJOelFcN3Rh4TDOIKqD3UBlZz8ieDV073/HPdqm0WC6D4Cb39j0D6FoL7nC+5X SchlMN5VI/HjBWQkDLWPBEQYOY2g2dERKMwnc6CuqS6AcTIahia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BQrxpiRWVqUW5ccXleakFh9ilOZgURLnlc8/FikkkJ5YkpqdmlqQWgSTZeLglGpg1LC9tLbS pznbUHg30w8+z8tVLQYCpx5vmmjGXxA/3U7T/P69nzu8nNMPRjhcDGUonLB8Z9P539lhFa5S t+sOP7t6v+YRYxxDoGD21bq4tATd9bcmvTRSEvea6s7x0fu/8KsdPY4TixOeWWut/L62fWt3 lOvkh+913+tcm+zsXbBXyMRMVLVdiaU4I9FQi7moOBEANh8L710CAAA= X-CMS-MailID: 20200417025205epcas2p46d33e64f2de49041d2ca68ecc98fc83e X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200417025205epcas2p46d33e64f2de49041d2ca68ecc98fc83e References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sunyoung Kang get_v4l2_buffer32() didn't copy reserved2 field from userspace to driver. So the reserved2 value is not received through compat-ioctl32 in driver. This patch copy reserved2 field of v4l2_buffer in get_v4l2_buffer32(). Signed-off-by: Sunyoung Kang --- drivers/media/v4l2-core/v4l2-compat-ioctl32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/v4l2-core/v4l2-compat-ioctl32.c b/drivers/media/v4l2-core/v4l2-compat-ioctl32.c index a99e82ec9ab6..e9b2b9c0ec9a 100644 --- a/drivers/media/v4l2-core/v4l2-compat-ioctl32.c +++ b/drivers/media/v4l2-core/v4l2-compat-ioctl32.c @@ -665,6 +665,7 @@ static int get_v4l2_buffer32(struct v4l2_buffer __user *p64, if (V4L2_TYPE_IS_OUTPUT(type)) if (assign_in_user(&p64->bytesused, &p32->bytesused) || assign_in_user(&p64->field, &p32->field) || + assign_in_user(&p64->reserved2, &p32->reserved2) || assign_in_user(&p64->timestamp.tv_sec, &p32->timestamp.tv_sec) || assign_in_user(&p64->timestamp.tv_usec, -- 2.20.1