Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4076673ybh; Tue, 6 Aug 2019 06:01:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSr7+x23HbN0pjrUdR+Aov+ak8ysqiZTBvovcp8bvg8yD1HoleuHqLqx4LqXZuaXck0+5j X-Received: by 2002:a65:6102:: with SMTP id z2mr2912979pgu.391.1565096510055; Tue, 06 Aug 2019 06:01:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565096510; cv=none; d=google.com; s=arc-20160816; b=qIhAekivSfaxFX/ku66OM8K1TJP1j1ODw/Ay/75W89M1kz86MTi8gnLVdrUL0sv57k Qp2mXAkxBwKjadh6kZ/WYp+U0ffd8d+s1g92s/+sMPXiViQ+8kHxgOoj9Q4BVlYMhnHA mxRfkzA7YHS356DFfeLuEsQewzRKbRzVjEw8YebegVWmdOLCTEWpFl87cqxNnpJJGG07 zqlfGxuNiGi5zlNgUbgqI18cPFXtZdikij6LMqQuEyteQa1mIiFcn2csylwK7UN7kt+F HAKawkWpeRIdEZKMmjg/2oMjAyUVZwodICY31Y1BhM8MYt3Bqe40fEz2MR/X7pBG9eq0 agew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=O8hUsQwHkxx7ZOiNfRlHnAOsRQc+TDw8Ta06KTcCci8=; b=DBC+mQ5Y/8Dkk3zujv7JrRxbyN5tBFq3KUN7ijfIlhuoyUFYPEVrbnf1GnIpw3zdul nH397/bLl03MrZnQAuF0T2fDiia4WGuAmTT00PLFSga9HjyF4x0cZk4Dwen/wUcsSrWC tGG/RuhGoqtciQKbKe9j0DvIGigE6/dfpY9rryA636IRYsUJLDFKBhq8Akke6qBMbxWt I6pBUWVXoNUrSaN0haWK/1O2tRMC54vMrmFHyEiFqnj/2I1Q29MrQf2QAcJ7kw2tfH3R 7N4E+5RiaowZz9/h04uLu4Brc7pgQkPdYxkkoGNzNQ37jfbHNAEM3v0iYuvCQhwjd/gx NhLA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1si15906842pjo.28.2019.08.06.06.01.33; Tue, 06 Aug 2019 06:01:50 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731553AbfHFM7g (ORCPT + 99 others); Tue, 6 Aug 2019 08:59:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58324 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731132AbfHFM7g (ORCPT ); Tue, 6 Aug 2019 08:59:36 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F133F50F4D; Tue, 6 Aug 2019 12:59:35 +0000 (UTC) Received: from treble (ovpn-121-192.rdu2.redhat.com [10.10.121.192]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DC1291001284; Tue, 6 Aug 2019 12:59:33 +0000 (UTC) Date: Tue, 6 Aug 2019 07:59:31 -0500 From: Josh Poimboeuf To: Sedat Dilek Cc: Chris Wilson , Thomas Gleixner , 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 Subject: Re: [PATCH] drm/i915: Remove redundant user_access_end() from __copy_from_user() error path Message-ID: <20190806125931.oqeqateyzqikusku@treble> References: <51a4155c5bc2ca847a9cbe85c1c11918bb193141.1564086017.git.jpoimboe@redhat.com> <156416793450.30723.5556760526480191131@skylake-alporthouse-com> <156416944205.21451.12269136304831943624@skylake-alporthouse-com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 06 Aug 2019 12:59:36 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 05, 2019 at 09:29:53PM +0200, Sedat Dilek wrote: > On Wed, Jul 31, 2019 at 2:25 PM Sedat Dilek wrote: > > > > 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? > > > > Hi, > > Gentle ping... > Thomas and Chris: Will someone of you pick this up? > As "objtool: Improve UACCESS coverage" [1] went trough tip tree I > highly appreciate to do so with this one. I think Thomas has gone on holiday, so hopefully Chris can pick it up after all. -- Josh