Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp177833ybt; Tue, 23 Jun 2020 18:46:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzHIc7a8Moj9aN5l+4cDuGcv0Dk9wly/TQcYTHU5hJttHfzb4spGEKjIzugE/0kKgG/Jk1 X-Received: by 2002:a50:e604:: with SMTP id y4mr208622edm.373.1592963178137; Tue, 23 Jun 2020 18:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592963178; cv=none; d=google.com; s=arc-20160816; b=09tSNziHdlAPsfgloxBa5INOu9Bh0nghkVIp+OgPsTK2ioVB4LdiPiSKURGGzfjCJf XS4BXCb/7xgqcW8iD0R8L9z1LMPSG/ACtfEYDUycrRgQ5qgJMYLHoJlZOx/Bc+Ap6vz1 E6opBJTPqGplZPqpQ70VPeUXLSCitpxeLZwPGIblQx3+j4Y6Rxk833SQaVFxmiJ64GCW QoljT3aXISiNiWOPjeGJ+2FbgyvU2bBe3TN2mw7k++WpsWwS4cwIo9v/wwSUyEN+s0Ex UFwYinADXkfA7+wslrGaPVm0pTHQ7dm7dZf9EZCAMeUwxbmjaLcv1IDo8ZIas2YNdE0V LiAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=BH0tAGQq1BBULbJhaRLZe9wibhEE9CPMcxPoeDgsIXo=; b=pXSBKtvl8U3SV1jsFyjkIn2Z67nQZgwxfHaiKQbgjZ4u8TspWZwaCiapBOYtFsayeN tLQ+Tkk+a1SAiBDuDqu09JkigGq0hE4VtmwOYt/FXKnaRR/r4BXM+grF+eTVVc6HO7iW fvRXr0vLO3+MgtS6YBh162/6UeJYgk4rapdZgqF5bY5HrbFQgNUdE3ONwcOQvb3o7+75 RNTMsBsJJHM07YGsNjUdBW3MKZNwwWd67zT8CF2MZcV9XlNvauq2jQy7KPigNZmJGA+S eV+mmCMSmtmha19twC2zaYrKTv1DHXKwX9loCLPuU1yyLeKaAIWL454ishI+Y4OyYWVN e2mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hrwygqyv; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q13si12072725edn.496.2020.06.23.18.45.51; Tue, 23 Jun 2020 18:46:18 -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=@gmail.com header.s=20161025 header.b=hrwygqyv; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388466AbgFXBmJ (ORCPT + 99 others); Tue, 23 Jun 2020 21:42:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388002AbgFXBmH (ORCPT ); Tue, 23 Jun 2020 21:42:07 -0400 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 464DEC061573 for ; Tue, 23 Jun 2020 18:42:07 -0700 (PDT) Received: by mail-lf1-x143.google.com with SMTP id g2so419733lfb.0 for ; Tue, 23 Jun 2020 18:42:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BH0tAGQq1BBULbJhaRLZe9wibhEE9CPMcxPoeDgsIXo=; b=hrwygqyviHvNHNSuFUOOEL2dFdviH/PkTR9095I5sLIWWon3BfVE5WtNasNL58ejFi KXmGstLaOPg5DhsugMicAwdqFzAXlOXN6dkqbSwjRCkxOXrqT2w5hMBnYEwHqXg57BOI 2ZJg37z8FMid4xpU+DQA5kZMQxx45fJSUAeo3gFDfL21g2tHNXS3eK+kjTTANcDyZYmf kFCM0kyW4N9Yp35+BgyoIBy9xeTWzIQz+RJgJ48kUi+Hvsl/YnkZbQwZE5+qpAKxwnjS cf+yVF62mnl5qGtUmesukfF5lRL85urJdXPtdVC5PGB1yBSH1u3Y+TvWMOVg4KwnVCfj alyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BH0tAGQq1BBULbJhaRLZe9wibhEE9CPMcxPoeDgsIXo=; b=Pn385hrH49kYlFtNSYqztwYS4DB/CeiE6NBAqKjNagU+BNq6IfEvW4ycVCuu1HOIOC 9OoCqqvK84V+ja4K2rp1ZyRXT9wy6VLZVPRd31mFatvIqc6MHL4yul+HrgOohZ3pB/Pn SOnKG+yMxA8Kv3nDSMejAfCl922UY4Z0H7m2n4yE/jjdRRVv1wJmgS2JxjbrKavCY4KK c5bBbSRjXmhYIOq7Y2xwt3fDd6hnTB+RR40+PTRBtmXmATwV2aYVOXrHBW9l5kJkMcZm MV9Xh89e0g/YShsij/YTQ+2haZlqKG+/ldYUJVre5LWn8u3w1bDZ0VoGzjNFiBlSgUo5 htvw== X-Gm-Message-State: AOAM530iyBdUkdQTu5s/L7EZJGlrSckf78sXtIMSVyGYWT8OBvW3zvw/ i24Ifv2r7ze7bmDPOZR8/AvYFS0fjQIVRs8cIkU= X-Received: by 2002:a19:6c6:: with SMTP id 189mr14091743lfg.94.1592962925767; Tue, 23 Jun 2020 18:42:05 -0700 (PDT) MIME-Version: 1.0 References: <1588709912-8065-1-git-send-email-jrdr.linux@gmail.com> In-Reply-To: <1588709912-8065-1-git-send-email-jrdr.linux@gmail.com> From: Souptick Joarder Date: Wed, 24 Jun 2020 07:11:54 +0530 Message-ID: Subject: Re: [PATCH] VMCI: Avoid extra check for access_ok() To: Arnd Bergmann , Greg KH , Jason Gunthorpe , Mike Marshall , Daniel Vetter , dvhart@infradead.org, sgarzare@redhat.com, Thomas Gleixner , Ira Weiny Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On Wed, May 6, 2020 at 1:40 AM Souptick Joarder wrote: > > get_user_pages_fast() is already having a check for the same. This > double check can be removed. > > Signed-off-by: Souptick Joarder Does this need to be marked as stable ? > --- > drivers/misc/vmw_vmci/vmci_host.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/misc/vmw_vmci/vmci_host.c b/drivers/misc/vmw_vmci/vmci_host.c > index ce16d6b..2d8328d9 100644 > --- a/drivers/misc/vmw_vmci/vmci_host.c > +++ b/drivers/misc/vmw_vmci/vmci_host.c > @@ -233,8 +233,6 @@ static int vmci_host_setup_notify(struct vmci_ctx *context, > * about the size. > */ > BUILD_BUG_ON(sizeof(bool) != sizeof(u8)); > - if (!access_ok((void __user *)uva, sizeof(u8))) > - return VMCI_ERROR_GENERIC; > > /* > * Lock physical page backing a given user VA. > -- > 1.9.1 >