Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp7294310ybh; Thu, 8 Aug 2019 13:16:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFh4ZXBcnJaKB5MWhzBjmYnwk1cexsvbI9kQgbvME+9dgSlPxoJQdsl6Gbb4Afkx50gHjg X-Received: by 2002:a17:90a:2ec1:: with SMTP id h1mr5775520pjs.119.1565295392638; Thu, 08 Aug 2019 13:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565295392; cv=none; d=google.com; s=arc-20160816; b=jXY5qLjbGe6YzR9GQ2Qb08elZvAI5uXp4rWM8xKoYs13rjWwPJJkWu+oRUc5Y41rsD Htgohsss5xCLC0a1aTGjE5rKbCeqtPbw8PCQt7ahqrAxdE/mQIzWdevy3ORUpgoqvj6p vAHjiCrRQD62oemMbUZaOZbIj9IynZpcDApRp7zC6SgweDhnKgqll/TZXU3pang3HdTx b8cdofEJj1nUHxLU4x+7DMj3gYvQqNEWjGyY+sJKsArUR6KHLBYnUFnp+LAnxoOJBlAl 7v4CZgkVjs+6W3s4IkWgJa5YZHlFEbTMWisOuZtYCBNRjclftsGnETpfIGkmtKXqKUTV E/fA== 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 :in-reply-to:references:mime-version:dkim-signature; bh=z0p3Ly8nHWKqpQa5LOcPd33JTDmAKsWV1WiLmHuKK/c=; b=YUQ+PFwL7xO0nOFEhwc4fuFOENrnrKuipnBpew3qVx8PZRJAyHScvWKWb4WdieszMZ KZsuvLwXyF5jiv93wISMGmCbKa6cMAb+4SnE6LqsLxX8fHQirGXZEMNpfqaCNM/+OpT9 1w9OKkShaOOODLel31GZA6fPO1HtXRbnqBireIsLVjvwTDWFSuoFcJpTW0vQphk9cIiG OoF6W6M8pZt3TuO+pGFW7rZZgV+eDzyZnZeCEpOuRZQ9cYZ/8RqBvc9C8Y1Lv7cFmoWS wSLhefHh/rLmzFU6+64EMEyH6y4x9iQai/zeeKGUmjmCBBvTQ1w/G51B1qYIuRBMiP5O 3EGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=O6OSZhcX; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d9si51641848pgo.355.2019.08.08.13.16.17; Thu, 08 Aug 2019 13:16:32 -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=@google.com header.s=20161025 header.b=O6OSZhcX; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404514AbfHHUOV (ORCPT + 99 others); Thu, 8 Aug 2019 16:14:21 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:42471 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389974AbfHHUOU (ORCPT ); Thu, 8 Aug 2019 16:14:20 -0400 Received: by mail-pf1-f193.google.com with SMTP id q10so44694111pff.9 for ; Thu, 08 Aug 2019 13:14:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=z0p3Ly8nHWKqpQa5LOcPd33JTDmAKsWV1WiLmHuKK/c=; b=O6OSZhcXBZgZyNdlY3s601J/EcxhsFbK3UKxJbI8Q1ZH0FannIN7EVr4dW9DOOTAlJ +xYvBUx+rlrd+yHDDR+bw570HAkKPGVIO7Q4GE8HhvOtce/kyIWwsFsmJChnRbaM6jkl tRUp230O99CEXKGfY5vZdH1K9leNz5fbDziAGrHBmVwqROY8mo+D5064GSUDCw0h0BvR eDLhGZQwASVBZpnnjsyQ6cZwizRK2ao3vyBm+oEj6w8wgZkwqn6kBjm5rT72qv9noeBI 7vjn5PVeN4gpKEK24UIwsAFsJBTma3KMC5vLd6qSh2q0a9XMjqpyaPKEMvROGYPKl1Il kw0A== 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:from:date :message-id:subject:to:cc; bh=z0p3Ly8nHWKqpQa5LOcPd33JTDmAKsWV1WiLmHuKK/c=; b=MU6mif4HBqrJd3JeGyFIQmAJSLFFslhvXhHIiatlNlcauJqViGv1SU+O6PRqZ9dHFQ VfZ/UVKaxVpfkMXIdlMSy50B+UEL3Hercjzrxwk6DoFajbgHZl+kP72bIkh4/XdTM7cm 6BZncjO9acNxCeEYqek1tMybGm/dVL3p2hjnQWXMUbJTAtWDOsGee4UWZ/cl2mo3EviC kobxzwSQrEHJZ03V52QpN7IHxS7nSvN81k3d3PVJylOCFauxMUay3XafbOwDNWPLqTjy Avmp4vOANR41ejq0OFWyhNz1XQq8s8DybSinRqrB04yLx9duyrOjsC2XVLlFR38d/ItQ lGWQ== X-Gm-Message-State: APjAAAWTVBjOWZmApX10KzQj1N1LSI8kjTp4bIi9eZTgb1wk0Kjt+A4W TVDM+XDmLzKZFys8Ls0YNzM56dF+jAVQJrs3OcT//g== X-Received: by 2002:a62:cec4:: with SMTP id y187mr17258563pfg.84.1565295259452; Thu, 08 Aug 2019 13:14:19 -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> <20190806125931.oqeqateyzqikusku@treble> In-Reply-To: <20190806125931.oqeqateyzqikusku@treble> From: Nick Desaulniers Date: Thu, 8 Aug 2019 13:14:07 -0700 Message-ID: Subject: Re: [PATCH] drm/i915: Remove redundant user_access_end() from __copy_from_user() error path To: Josh Poimboeuf , Thomas Gleixner Cc: Sedat Dilek , Chris Wilson , intel-gfx@lists.freedesktop.org, dri-devel , LKML , Peter Zijlstra , Linus Torvalds , 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 Tue, Aug 6, 2019 at 5:59 AM Josh Poimboeuf wrote: > > 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. tglx just picked up 2 other patches of mine, bumping just in case he's not picking up patches while on vacation. ;) -- Thanks, ~Nick Desaulniers