From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12DADC49361 for ; Mon, 21 Jun 2021 09:58:12 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D3AEB611BD for ; Mon, 21 Jun 2021 09:58:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D3AEB611BD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/iJme0JEHkXXDOw60mnss3myUF0tk/3/H1O+zr71ZcA=; b=dBzrDMaRqb7IER Y7PCMNnGWa6Jb6XlKx10gvNeP9Ms1lUo+7vNQElt6uGZlod2fp5xZ6j1yVc/Pfa86Umodpa3z6YEF 5nJQKJ9xofzTt2UYv3BKqtDF76tulHE1F317fSgNe4r1cvwmk1ktmTF1bRkdFEaxXdsyihDlB20fJ CMejy5HK+M2F6SBD3tN6fKlUWfBD7Hdi1Pwq3uJspC0syuoI/dduoiWB5w4JXA/bI7UoGjO45Y9hF eJ9xYq80jCQ9FCXUM3mRnPD3+8ma3H+alIAjxiOkFPfYQLeITtsVnNFCt4GibuQbzxYworkyZiIrZ UaitBDamX7sXCbLJcLvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvGfp-0031fT-Ui; Mon, 21 Jun 2021 09:56:58 +0000 Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvGfl-0031dz-Rk for linux-arm-kernel@lists.infradead.org; Mon, 21 Jun 2021 09:56:55 +0000 Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 15L9lFvI032056; Mon, 21 Jun 2021 09:56:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2020-01-29; bh=mDih/Tohy9BJ2FHtJbBx96tVg1gTKaEe5PoqIwmeJ1Q=; b=bqj8RdJ9BojWL4sZCAvGBnxhSSGbPm+owyq3MtWFD9NJ0ID2BK6CA6nvqh0mAh6liQzD ZHC/uLSsb+KNpZ03cOM0Sc30rMUxA14GzuwA1c98liZD47GOjvp8jOkUPwf1ivM2UbSU +cXMJnu1VdYiKdnPvh9k6vkmDag3vG8l1etrgSpBm+lULQ9DJ1RvsS5yqEdykMbOKNFU krAQjq245gZP4J89wul2u4KFRbDNfn0fh2J8F5L/K/h0V40Tzgye83X65d+Ud2ElhTlq iuN1YsczvARU6pDvhRCGe37LsjmXVbOO6ojr9P2nNufwkm4xd1ov+mZh9K/O7Z4mDV8X Mg== Received: from oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 39aqqvr3sm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Jun 2021 09:56:46 +0000 Received: from aserp3030.oracle.com (aserp3030.oracle.com [127.0.0.1]) by pps.podrdrct (8.16.0.36/8.16.0.36) with SMTP id 15L9tt1T047447; Mon, 21 Jun 2021 09:56:45 GMT Received: from pps.reinject (localhost [127.0.0.1]) by aserp3030.oracle.com with ESMTP id 3996mbq8tc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Jun 2021 09:56:45 +0000 Received: from aserp3030.oracle.com (aserp3030.oracle.com [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 15L9uhWK049186; Mon, 21 Jun 2021 09:56:45 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3030.oracle.com with ESMTP id 3996mbq8sx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Jun 2021 09:56:45 +0000 Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 15L9ucgl030064; Mon, 21 Jun 2021 09:56:39 GMT Received: from kadam (/102.222.70.252) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 21 Jun 2021 02:56:38 -0700 Date: Mon, 21 Jun 2021 12:56:31 +0300 From: Dan Carpenter To: Ojaswin Mujoo Cc: nsaenz@kernel.org, gregkh@linuxfoundation.org, stefan.wahren@i2se.com, arnd@arndb.de, phil@raspberrypi.com, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/5] staging: vchiq: Move vchiq char driver to its own file Message-ID: <20210621095631.GF1901@kadam> References: <8cd9b5899f82eaf2efdc9caa8d07f719a592a94d.1624185152.git.ojaswin98@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <8cd9b5899f82eaf2efdc9caa8d07f719a592a94d.1624185152.git.ojaswin98@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-ORIG-GUID: G6_zLgsXTLyGm259Pe6rBQ7ab93rpC5v X-Proofpoint-GUID: G6_zLgsXTLyGm259Pe6rBQ7ab93rpC5v X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210621_025653_942796_78228368 X-CRM114-Status: GOOD ( 18.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, Jun 20, 2021 at 06:26:34PM +0530, Ojaswin Mujoo wrote: > +/* read a user pointer value from an array pointers in user space */ > +static inline int vchiq_get_user_ptr(void __user **buf, void __user *ubuf, int index) > +{ > + int ret; > + > + if (in_compat_syscall()) { > + compat_uptr_t ptr32; > + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ When I'm reviewing these sorts of patches then what I'm trying to verify is that you are not a UMN "researcher" trying to change the code without anyone noticing. In the orignal code, there was no blank line here > + compat_uptr_t __user *uptr = ubuf; but there was a blank line here. > + ret = get_user(ptr32, uptr + index); > + *buf = compat_ptr(ptr32); > + } else { These sorts of minor white space changes make it hard to verify the code in an automated way. > + uintptr_t ptr, __user *uptr = ubuf; > + > + ret = get_user(ptr, uptr + index); > + *buf = (void __user *)ptr; > + } > + > + return ret; > +} > + regards, dan carpenter _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel