Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6003980ybi; Wed, 31 Jul 2019 06:51:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+V6DzdLOzlJG67yTMHjaUM+QZCYaYCGXpj4p+XbBfDWP977JSoay7s65a5SXAxfvLLbzs X-Received: by 2002:a17:90a:208d:: with SMTP id f13mr3045609pjg.68.1564581076619; Wed, 31 Jul 2019 06:51:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564581076; cv=none; d=google.com; s=arc-20160816; b=d1/ofsMwSxsrGakqIZwPjgnjsT4j929Eh4tGPn61SWKuiRg9y9HY89apExGUxyqXid oPfXYpYqrtngE6LQa1TpI0LzhbvqPZI95tgOYC1Cpd/uxfkSSWyqb5ThWex03oMBClju 7D1gpMPx2bT31UmzedQ49Wz5cWCmJatFw0Jt2KlOMpyNS0GEdSu1N2rKoEG7cTSYm1j0 Oq266CEyS/XjKh1YE2V/b3ElaWuwU0NNJE2YOPV8+hG36a9v0sUUzDfP7X8MJr4ITZfv AY7phhQCuBEWvqssJ3ILGbDkHh4DDJnoOp3dMhrpoJLFK8bYz0SEDGCzUhAcer03FGJw qygg== 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 :reply-to:in-reply-to:references:mime-version:dkim-signature; bh=R7XjVu1Q+2t2OCDbFe6JERwCgU5GBze4iS/iecgn0V8=; b=hw8YUK/RBu4DPq1LN/QVNFsDMKyNESzaSLwMmtLH68U7n0tl8U0Ze1xzDISk68AF9t 01IXrq4j1w3jdjGbs0kCPVtRwkTD5l8bugmsNotEotEovi7GpbgXQUYRQDt7jkEnWw6w IHQU8vexeCQ4xzymDxvoYO6R45LUOpc/Z0XlIDU762MFCpEONi2FJf50Mvj31AvSaX2A lb41dkCK/gC++jNbCk8V+nNChXPJlVQmF8CX7hWy/7VxmvdO3SWz10avbLEy042w7uv3 nzT1Xb3cj1tkJamdVop04BKpxcycN6+Q9tqv1mDBB2CaPnVfhnqGH8W8fHqWAls+eJ9c b2VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ILVqBg5G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id v11si30768859plo.223.2019.07.31.06.51.00; Wed, 31 Jul 2019 06:51:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ILVqBg5G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727488AbfGaMZa (ORCPT + 99 others); Wed, 31 Jul 2019 08:25:30 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:38522 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726259AbfGaMZa (ORCPT ); Wed, 31 Jul 2019 08:25:30 -0400 Received: by mail-wm1-f67.google.com with SMTP id s15so38284093wmj.3 for ; Wed, 31 Jul 2019 05:25:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=R7XjVu1Q+2t2OCDbFe6JERwCgU5GBze4iS/iecgn0V8=; b=ILVqBg5GPvAXj+lG/yEYdWeBKdGfPf7klH1okvhPhvnvb56wHJqAaW0GTzAQ43hwpt UxwLHzao3BquJGq/4xOCWUk71gXgNoo+/p+ol0oMYVO5IW4jw5hKTjtOBAN6Fntkw7PE uGMwYlJQ1Co/C40XS43b+Q8gf7vJk6FB8Yaw7GUM2YBJC7VdSg+KDY9SZFU44ZE2bGPk apKjXkVv7Iem1UUgP5gBQQvUPrUX9UGQ9NGF0qfrAGM1TiuOjBpSNPVigkiwmXYl6JeQ wYlTMMqesR7sW9CB2Ci3cX0dkE5HFlAVPnepRNx0yXNI2Awp2K7EFrZeRDaxOSGX6+ZE ENlg== 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:reply-to :from:date:message-id:subject:to:cc; bh=R7XjVu1Q+2t2OCDbFe6JERwCgU5GBze4iS/iecgn0V8=; b=m/pMMxHx7PUZJPshtqZOZVU973QyBG88DyhTq98lLlvzdXnLdKGCBDxPDYSq6BN+Ol H7UryIIz4MmT+yP+1SafzduqKQV3apt9pgBQHOdJAUJ+2XIGwuizKouf2PRQ6NiuEY+q 8G5ZpMPQbH2PseeY0SoEjMDJudwMD+/4TS7YMtVR16PPG5EcR5A7/Nwk7JEjzGbe9xSv a7EQXjRe3D8Pe4nKWtSVowLLGXQFAwtaLQ+gPp35eUQ4PnfE3xppj9YXWOG+jJHECyWI Z2ssvp5oZFzuq0PP8x/vbaWUWtxIP0tz4BkjqJnsnOKko8Az876EJy4STyynf68hWD/2 iobg== X-Gm-Message-State: APjAAAU7FqY9nfG1AthXaX61eJcbXp1UeLHEeOPjxyDOynl7toh0mX3h aGwJAVvEKc3e8RcK+vuhD9CviutrY0ciLyb8Rtk= X-Received: by 2002:a05:600c:225a:: with SMTP id a26mr116610265wmm.81.1564575928122; Wed, 31 Jul 2019 05:25:28 -0700 (PDT) MIME-Version: 1.0 References: <51a4155c5bc2ca847a9cbe85c1c11918bb193141.1564086017.git.jpoimboe@redhat.com> <156416793450.30723.5556760526480191131@skylake-alporthouse-com> <156416944205.21451.12269136304831943624@skylake-alporthouse-com> In-Reply-To: <156416944205.21451.12269136304831943624@skylake-alporthouse-com> Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Wed, 31 Jul 2019 14:25:16 +0200 Message-ID: Subject: Re: [PATCH] drm/i915: Remove redundant user_access_end() from __copy_from_user() error path To: Chris Wilson Cc: Thomas Gleixner , Josh Poimboeuf , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Linus Torvalds , Nick Desaulniers , Nathan Chancellor , Arnd Bergmann 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 On Fri, Jul 26, 2019 at 9:30 PM Chris Wilson wrote: > > Quoting Thomas Gleixner (2019-07-26 20:18:32) > > On Fri, 26 Jul 2019, Chris Wilson wrote: > > > Quoting Thomas Gleixner (2019-07-25 22:55:45) > > > > On Thu, 25 Jul 2019, Josh Poimboeuf wrote: > > > > > > > > > Objtool reports: > > > > > > > > > > drivers/gpu/drm/i915/gem/i915_gem_execbuffer.o: warning: objtool: .altinstr_replacement+0x36: redundant UACCESS disable > > > > > > > > > > __copy_from_user() already does both STAC and CLAC, so the > > > > > user_access_end() in its error path adds an extra unnecessary CLAC. > > > > > > > > > > Fixes: 0b2c8f8b6b0c ("i915: fix missing user_access_end() in page fault exception case") > > > > > Reported-by: Thomas Gleixner > > > > > Reported-by: Sedat Dilek > > > > > Acked-by: Peter Zijlstra (Intel) > > > > > Tested-by: Nick Desaulniers > > > > > Tested-by: Sedat Dilek > > > > > Link: https://github.com/ClangBuiltLinux/linux/issues/617 > > > > > Signed-off-by: Josh Poimboeuf > > > > > > > > Reviewed-by: Thomas Gleixner > > > > > > Which tree do you plan to apply it to? I can put in drm-intel, and with > > > the fixes tag it will percolate through to 5.3 and beyond, but if you > > > want to apply it directly to squash the build warnings, feel free. > > > > It would be nice to get it into 5.3. I can route it linuxwards if you give > > an Acked-by, but I'm happy to hand it to you :) > > Acked-by: Chris Wilson Thomas did you take this through tip tree after Chris' ACK? - Sedat -