Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp604177ybi; Fri, 26 Jul 2019 15:46:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzAL6PeDkkrYxqsluzH+mZD0YrqkA2G9vEYSGWgGLNdUh3UscMo0cLiM61loh6XZn3XpvQa X-Received: by 2002:a17:902:e287:: with SMTP id cf7mr97796214plb.32.1564181217224; Fri, 26 Jul 2019 15:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564181217; cv=none; d=google.com; s=arc-20160816; b=L82+250U6ieKyhG3K0JTfppvuW5IyMn05yBY32N/A3EAex7/iX/QshuC+fp7yRl/qd DEdlQgtVgN/STOnqDKIhBL4xV2JnH19AxZZ8CF0p2UYBDDWtuXknIt+nAyZO1PwDkA/b n4kSk2Vb2cVEy2knEgE1+cPxIw+Gx626m7HaezfFhSqB8N4jKoZMaMBr9hVWqOoPz+L4 xFqjZpS6+wTPokV2c5woaHchNnHRvpvANGk6Ft9dyT0Nx+ckmoZGnnfSFa5J4nUhYO42 PaKHCi13oguC09A0jQIMSO1p4aS8hybRuiuy8hhvKGSpY74DDf1Mx8lE34O/89b+xRq3 xpQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=Iyx26uIofngTdr0NWXieM+whaVZgcneLOLbqbQb1XN0=; b=Ixv9SR6AuPxskeqwwuJvd+4MxS+1jQdNjsYI1+tEc+9b+W7rqMpC7pCy1VqYpIALxL 9rpYJ6aWKq80jggbTSdlgLZddzczb7iOOfDbDv1t6/b2FkadOw7oeLOKmPZ7joZL4YsZ 5axnAKowPQNzmij47qwAWF3wWRP66c0U7grAX2GbE4tiTUm54PPY1UrcbE51fi/LWwF/ f8Zt6hPmZ+DncPaZwIy3MZs4jteUYRlLpS+1RY5Zfcs0I1VAij6x7L2SMSJagEzmz+fR lfoAqLmK/HPaa2SFKU+zQyWbiL5Iwo572o/rr2T+ak3QSagfJVQfMc66NFrhBroP3ym2 vrbw== 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 a9si19189230plm.295.2019.07.26.15.46.40; Fri, 26 Jul 2019 15:46:57 -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 S2388513AbfGZTSj (ORCPT + 99 others); Fri, 26 Jul 2019 15:18:39 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:50173 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387455AbfGZTSj (ORCPT ); Fri, 26 Jul 2019 15:18:39 -0400 Received: from pd9ef1cb8.dip0.t-ipconnect.de ([217.239.28.184] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hr5jc-00018V-Sk; Fri, 26 Jul 2019 21:18:33 +0200 Date: Fri, 26 Jul 2019 21:18:32 +0200 (CEST) From: Thomas Gleixner To: Chris Wilson 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 Subject: Re: [PATCH] drm/i915: Remove redundant user_access_end() from __copy_from_user() error path In-Reply-To: <156416793450.30723.5556760526480191131@skylake-alporthouse-com> Message-ID: References: <51a4155c5bc2ca847a9cbe85c1c11918bb193141.1564086017.git.jpoimboe@redhat.com> <156416793450.30723.5556760526480191131@skylake-alporthouse-com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 :) Thanks, tglx