Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp642251ybi; Fri, 26 Jul 2019 16:38:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBwNs1rH1IzcS3S8wFXP/QyaMc7JsSkjx4q9cLa4buW35p4u8AUaQM22AtSTBITxTRPjZp X-Received: by 2002:a63:9e56:: with SMTP id r22mr36798061pgo.221.1564184321584; Fri, 26 Jul 2019 16:38:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564184321; cv=none; d=google.com; s=arc-20160816; b=ujFyED/b5Snv0mNlTM/LVey0zkPYsJcNZmZFuRQ6me6bykkZO8eLQqWqB9i1OHSliq hq9ha7vI7u+FVvUUgdZVVX8f/isoV8QN+QTvr444gPul5H+THVv1topbq1in9fLLdevm WEyCd5cwXqudFn9yAHzruMaNTJA6MtPEIEcT2DO47SSqM3Thi3CxvL7xEOPH3Ck1qeNT bprQH45Naooi/9jWUztagdewFt12PfnlDGo5zZCx7QOYG4ZuYapaia+Jthx3HFXWGiOG KVBUGJMidO4s2A1qJLNJWWLors39F+6DC2apf0LGWv4n7GdXQ6+M/rJOvuwWzCZx9RaK HK1A== 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=RwD31MFLfsJbidi1J0nreRCbCncXK3tswo7yxLufrH4=; b=T/tNPUeXDm5ovPkyd5L3twrUg8K+MtJmNdJbTHPf+L547WkNC6R+p3goox2xc8FWwt 2glrmpfC+usNFhHW02ykOqKS+BLJg37DqHx0H7QUFOf04KI/w/bO1umirSAGhkjhtfsA xXgvfvAFdOaqVsysWQvvIdeo8QLkRTnW2YS1HW6BVTa4A3hnAsmP5hoVMj+CBj6ypeZn 4AWOCL4+DwO3u83VUOgPkjjO4gr8DT8Ga/HDAf4ebiCiYSm4XnRFauVAqMc8GLRALo/z FORdC6i+jgfHJ8JDx5lR3dAoLkcEYhX8giKBGK1Fxlj/fQElcZG8ybnpUMCKmb/Xcf9H zGtQ== 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 q21si3999109pgt.432.2019.07.26.16.38.25; Fri, 26 Jul 2019 16:38:41 -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 S2388379AbfGZTF4 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 26 Jul 2019 15:05:56 -0400 Received: from mail.fireflyinternet.com ([109.228.58.192]:53925 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388306AbfGZTFz (ORCPT ); Fri, 26 Jul 2019 15:05: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 17638005-1500050 for multiple; Fri, 26 Jul 2019 20:05:36 +0100 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Josh Poimboeuf , Thomas Gleixner From: Chris Wilson In-Reply-To: Cc: 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> Message-ID: <156416793450.30723.5556760526480191131@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:05:34 +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-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. -Chris