Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1506179img; Wed, 27 Feb 2019 00:01:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IZMuHv1KEsbtyQvzKpd3qlhNKKM6vOD13He1fBBo4IKuL5GJar19rQae7X3AudJdessOAgK X-Received: by 2002:a17:902:788d:: with SMTP id q13mr866580pll.154.1551254509902; Wed, 27 Feb 2019 00:01:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551254509; cv=none; d=google.com; s=arc-20160816; b=zwyOjooLpzJIaKIqanHpFDa0ZC1AQcA6kUW5FNtwTjbt/RSLCbZdHBhE9/8Mlhu5b7 68UPGmet5G5TZWYuw7sDTlK4zXzlsKnHdpOER9jzslnwhwLTsP13Lw4NiQB9522QgtUe TK8J+Ih3pJliZe2k2RjmrX0fEXH9ph3VNarCy1Th2SWWt78BhGVaMxV6gVnBN2vJrz+b 2Ado/B79YgOdpi+qWeogqM/feCn2W5r6TBYzjhK0vf/h5eAj8kpl8il0BwktOVtRuG4c 4zMqfpeGf+K8KmI2oaynCtnsflhBqACZhKdSVxsyiplGT2CYgHtiqgagbhpHgVN9hqaw hv6A== 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:dkim-signature; bh=eOaSEjVF3dTmLFou+OG1uoIHG1sWUtxIukluUJvK3iM=; b=A79kY0zCI5XYjZLtOx6bZxfZfKTurQ0cbOjcyP8zWTx/bDvSqqM7BG74FFt6BhvMT9 sqh2yS2kDA90JdqciKi+0XS6OZCZdjBCJgDW0n5861OQOucbYibeRLKo6WtUA750cyyw 8c+L+aWFG6Ezfg7qObxe48sSzMPBvmMVWT79drjMy6IzjvS7LxSw9a6sFHUSjpvYknXC quUFc8PeXTmU2B9mhjjEtkBYwVFH7e9mcwt2XUxA/j0/wn0ipL4ZjCQv5oymWXyEveMz 0SEQNPt7nhyY8gYELjm7E+U+RET5yvc44Rnh8GTEVjOG/fKIQ/b6FYaPbBLKRFgy7/RZ r0Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=XYB4w9HS; 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 s139si6442459pfs.56.2019.02.27.00.01.33; Wed, 27 Feb 2019 00:01:49 -0800 (PST) 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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=XYB4w9HS; 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 S1726931AbfB0IBM (ORCPT + 99 others); Wed, 27 Feb 2019 03:01:12 -0500 Received: from merlin.infradead.org ([205.233.59.134]:60468 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726702AbfB0IBM (ORCPT ); Wed, 27 Feb 2019 03:01:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=eOaSEjVF3dTmLFou+OG1uoIHG1sWUtxIukluUJvK3iM=; b=XYB4w9HSYY3bjQd1EdcQzIWJa KCn9U9BuJtQ7bytbJbdv3N8v27hlq4poDikC5kWzBuu1cWHbABYmb71EQn3YvZsC8XI7UuDHPmfeg emR8jaL64uXxto3sPW6UaDENBlTWvZNlJDWjd0L3D6mGg8+xx6Q3llbp63tLugNIMFVYzkefmfy22 V38C+tft2xQ6p9C3MsXHxtYiUp20usZZeynCWcOGgmFy6JT9gU4WR5T9ty2ij2wPM4iGcsCwIvg0/ seuYB1yIN7ekwRtitXWXTJpwYTPrFb6gIH8DTq66foxJaceXZLi3BZZPyMM4tt1owRZwgqvqFzpNH PY50iAqcA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gyu8r-0006FT-2k; Wed, 27 Feb 2019 08:00:37 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 747F023D03C7A; Wed, 27 Feb 2019 09:00:34 +0100 (CET) Date: Wed, 27 Feb 2019 09:00:34 +0100 From: Peter Zijlstra To: Masami Hiramatsu Cc: Joel Fernandes , Steven Rostedt , Linus Torvalds , linux-kernel@vger.kernel.org, Andy Lutomirski , Ingo Molnar , Andrew Morton , Changbin Du , Jann Horn , Kees Cook , Andy Lutomirski , Alexei Starovoitov , Nadav Amit Subject: Re: [RFC PATCH 0/4] tracing/probes: uaccess: Add support user-space access Message-ID: <20190227080034.GJ32494@hirez.programming.kicks-ass.net> References: <155110348217.21156.3874419272673328527.stgit@devbox> <20190226213850.GA219025@google.com> <20190227164104.5f53f029a7fec898204e9b67@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190227164104.5f53f029a7fec898204e9b67@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 27, 2019 at 04:41:04PM +0900, Masami Hiramatsu wrote: > > IMHO, checking in access_ok() inside it is reasonable, but as it > commented, it is for "if pagefaults are enabled.". What we need another > access_ok() for the case when pagefaults are disabled, that is what PeterZ > suggested in below mail. > > https://lore.kernel.org/lkml/20190225150603.GE32494@hirez.programming.kicks-ass.net/T/#u FWIW, feel free to carry that patch with your other changes that require it. You can add my SoB if you write the Changelog ;-)