Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp482544ybi; Fri, 26 Jul 2019 13:10:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpaMiOltrpzFvAisZZ2QEnTNdZkDHJMDkaKkgSZ7Ys7FLxcgLhvXm+Q8RC+nkru9slCZ5B X-Received: by 2002:a62:6083:: with SMTP id u125mr23643401pfb.208.1564171833828; Fri, 26 Jul 2019 13:10:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564171833; cv=none; d=google.com; s=arc-20160816; b=KYSPbFjEoRWkYurGP7n5R+3ff0uOfiF2bhTs5HB/OgD1cjw3GO6uIPtnksPsWyiOVY F6+g2O6UYxOsxtlgqUMcVfmQ4kDyF/pqSsaOkK6yleN8VlQB0Mz6khDtc5ljoD8jsMOb AmTUxkP7CkSmORMFr1M6240/sqqP9AlVc4StPE99jAYOO7L0+MGPUXaK1YxaqybtyO+Q EvNxcInha46/SGtvnC8P+D0WoSoH08LhjVtKM335qTCmVbbHb2WOPSSnHAouhOMSfJzu UTaHvmtnM0RFveT7uOLRzf1zbYxhn3NJrB0vC4D6ddVD3jSCnQ1OnQOpSlTSOvczrZlp Jmqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version; bh=JnRI6SxeHFtfM/k8KV03ZqxO+5Dc2/GBwDTR9AwH6EY=; b=Kc8wb39+8qr4krrwTeJXIQztB1aLt11ekSqHvrz6Mu5Z1J6NFWV9xT65kp4+NdgNbc IuPbcnahS1H740hTT2BtGSvLmCLEGVzGpEwVBeBdUvE1dQKtBAly60R1ou7rpqW5VQ7m txSDoi4jCD1i7UABI7UmHb7ZlvKZEfZx4Xk+bKo8O1pvjhsQcSuS7nfWp1yJ8ZL6ZiUk RjNFIYae9BPHEH4haKWFrHkiO1dahL3OgXlTTg2lkAJieQFZoJer4Mogb7lu00oyQ+XX bvzhS4xN4Fwg2jAyOh7oVz22093ejwtAo1Bt5oE8CtfHNuMNnTIiW3VckIpE3A4C11FA l5Sg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j23si20827352pgh.535.2019.07.26.13.10.18; Fri, 26 Jul 2019 13:10:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726869AbfGZTaz convert rfc822-to-8bit (ORCPT + 99 others); Fri, 26 Jul 2019 15:30:55 -0400 Received: from mail.fireflyinternet.com ([109.228.58.192]:61175 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725440AbfGZTaz (ORCPT ); Fri, 26 Jul 2019 15:30:55 -0400 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from localhost (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP (TLS) id 17638544-1500050 for multiple; Fri, 26 Jul 2019 20:30:43 +0100 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Thomas Gleixner From: Chris Wilson In-Reply-To: Cc: Josh Poimboeuf , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Linus Torvalds , Sedat Dilek , Nick Desaulniers , Nathan Chancellor , Arnd Bergmann References: <51a4155c5bc2ca847a9cbe85c1c11918bb193141.1564086017.git.jpoimboe@redhat.com> <156416793450.30723.5556760526480191131@skylake-alporthouse-com> Message-ID: <156416944205.21451.12269136304831943624@skylake-alporthouse-com> User-Agent: alot/0.6 Subject: Re: [PATCH] drm/i915: Remove redundant user_access_end() from __copy_from_user() error path Date: Fri, 26 Jul 2019 20:30:42 +0100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -Chris