Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3125704ybh; Mon, 5 Aug 2019 12:31:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7/gClAbQy4dSte91pnbwl4CozjMdjUE00W1hOP3v2Jv9wnfsfexbrMYe8srwkLQAdfCWh X-Received: by 2002:a63:1f1f:: with SMTP id f31mr136228861pgf.353.1565033476760; Mon, 05 Aug 2019 12:31:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565033476; cv=none; d=google.com; s=arc-20160816; b=xgnp55WL7XnoQSYV7YbfO8g3i7d7mXxqucgTemxCv5YysdNmEpXRJYyovnTXr00sxt vTE5McNBGYxKzdLcVgS6vFqCGmnB3rs8Sp9BpBaaE+10FUDCbBaN4LaHk7NvBS3QrNtF D4Ykoi8cgAf6ficHG0dqGl20MrTNUtLJ47INuDHNG2gxI8tzD1YA8Yr2TNPyoMQZD5ae COHvAMQ1jR3OIPawlZJXJ/wEmcNLtJBe30saD198hhKQuaVsb4ld1/lCbqCzdEb4n3Kx 9EXrIFgQYMhhAbrmo/0Xoc9W8JPutk9LJzVmndupuhNhrHOu2S3vkP2keafqn+p3Y0fx hcfQ== 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 :reply-to:in-reply-to:references:mime-version:dkim-signature; bh=4TR1ROvSxrSW2jGMt/9xUpK6NJiArbHQHezkRC5T3No=; b=jLPOL1Os/6FVQCQXutuz773Srmk6V9eMPLz2aRW76QgQgJACAzYDWyppGjhCN87Xgc /vhNG6ubj59ZRejaeEZ6RPoioIjA/CYoO7wWS+K9fGJXRBLhtBMgJ7eGyPvcdfQLISYB WVNH+0/j4rW5G24cOiP75VUOfKMsJ+CRCPYDTexDBKptpi5k4wdUm9yU2B2skdockfja biOvtXmjXMDBGmRHzV50SbkLecSqoryIcGGuKiB8bNyI0u3ca5BxXzXFgBDrk4s2NvHw fkIVIX8B0wgicw3g5Z2gDemwHr5OJCrfcieJaBOgrG0KmT6zhgeBYDFYiOKd+tJ/YDUg HcEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rZTyzChf; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p2si44859607pff.164.2019.08.05.12.31.00; Mon, 05 Aug 2019 12:31:16 -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=@gmail.com header.s=20161025 header.b=rZTyzChf; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730324AbfHETaH (ORCPT + 99 others); Mon, 5 Aug 2019 15:30:07 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:51981 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727460AbfHETaH (ORCPT ); Mon, 5 Aug 2019 15:30:07 -0400 Received: by mail-wm1-f68.google.com with SMTP id 207so75851826wma.1 for ; Mon, 05 Aug 2019 12:30:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=4TR1ROvSxrSW2jGMt/9xUpK6NJiArbHQHezkRC5T3No=; b=rZTyzChfgcWwwgTvCD/CVNOqEZQsoKiuqoj6vu6VFXxDpBxWbk6/3on5trmksfOnUM X70HVqGO+45T01EKlSpcM/e498+YYNoj1r+r3ZfwxrA3DLrvx8JZZN5/2dBeOMh3DYoR YTgGq08SWRokl8/7az8va7hPyfo9h17732xhpydMZ9QkZDZTChlAvwvkAhzzUQuICJa1 mtjvYaSwTv+/VuNuFmSLV4upxvAZVJdFv7aS6dU5vG/50Qvylr5mRb8UQCK0F12Gqbnn WtD66meo/gDN8udvs2t6HhYX0P3+EuKF48/xi5ibJVGT/4jAC1H29FMQ7esFHiaUncLz G8gw== 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:reply-to :from:date:message-id:subject:to:cc; bh=4TR1ROvSxrSW2jGMt/9xUpK6NJiArbHQHezkRC5T3No=; b=qdV1OSVW3Q6J6fUbQp4REGmp+PH5qzGCBPZmCxSQinjSz9mc2ZwGx4zGowmI890B9u IQiz3dIzZpS1YiZKVuGPLA5lkHbR3cubj7soBPkANcwcl0PARL9QzalIb8xVG9U0KQX9 kmlpxuLyaE+pe6Mx66iAO68zkZTA42AogOmXGgJ4KY0YqnF87DN0S15JU32rF0eMOFee fGqcFsIb+4hfdcrMXyveH8hS8Ou+9aT7pg8dBF1YOCEXSAO0YMxlipeAoSjtMkxa9xAe kV2Nwju4GElZrVpbb2m5/2x6ljp7/qU/zm1iu1h9dN4pRzxDTqrKC3icld42UGn2kM8b k1QQ== X-Gm-Message-State: APjAAAW6YO9/D4EDooHYhe6cOIM8xMaO5+meU1j0pMrNgfl0hyFbtfs7 p4MuU3eqK3Lt0AK8YHkNM6lj1K/5VO1f58kUVR8= X-Received: by 2002:a05:600c:225a:: with SMTP id a26mr20957306wmm.81.1565033405310; Mon, 05 Aug 2019 12:30:05 -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> In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Mon, 5 Aug 2019 21:29:53 +0200 Message-ID: Subject: Re: [PATCH] drm/i915: Remove redundant user_access_end() from __copy_from_user() error path To: Chris Wilson Cc: Thomas Gleixner , Josh Poimboeuf , 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 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 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. Thanks. Regards, - Sedat - [1] https://git.kernel.org/linus/882a0db9d143e5e8dac54b96e83135bccd1f68d1 [2] https://github.com/ClangBuiltLinux/linux/issues/617