Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5609017imu; Mon, 26 Nov 2018 02:57:51 -0800 (PST) X-Google-Smtp-Source: AFSGD/VPxJldQol9wh93JskgLB6Rm4iM5vb1K/Wy6jLQy94bQafWGuZPvkh0KfvlkOBBD+A1/+of X-Received: by 2002:a17:902:5a86:: with SMTP id r6mr26192954pli.301.1543229871260; Mon, 26 Nov 2018 02:57:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543229871; cv=none; d=google.com; s=arc-20160816; b=TNwlWNxzSXcGaLC72gHEn48Q7dRLXSoHpsAgnq6kNKzw3Ui6adCAWj83M/5BXS/W+H A4sJMG/mZ9Y7knTg8yddLdpdzGKPWPvY4t/k1VeT3aFSw8y33NIxJ6K8833Wq6DDNueT 6K0o1D8uM6z/pGp4uTP3z4U1buZpICXxUX8nmcUm9rVbLfZr8i6R77OwGdJbneHOdb8z 0arnrYKNAr6ue6GdMKQAIYjix5uyfdHnM7blbGDrm674SvY8Rclg1C3xSjBg5CvqzrpD YUmdGqrrb5c1N7FSkuLh9vm0v+J/1asiOXrtfnLy5ZrsvBvV93broDKWP1M3otu3SyBH d3RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VRrCm13wyy5oCZhXnO1RIQbMVu5DA5dMmSTEUC6KZxc=; b=ItN2jCrKi0YA0hGx+zLgSZjSSmphOeDZKJrG7VH98ArMwxArkdurFBu15dXBGHbiXY 3Xoxca4mOjeTRVl3YRU2g15BD0PnBLkJZzPYYeimb35a/OU5GXaqed7+xOkLn6K1KnlK uX4IS46f3TjNd+rASTU3x30T9/D0+c55YgOabcxWriWpx7mFYVPZk55u3LWrKJI/9iQ3 HUDOPy79jsmN9Rm/OrJPwf7wOi2yr7peogNDvhz8uopUjhlyPoSrF2m/QmmfTDNA59zv SOcYavqJ1DIo9Ttt9ewmpZyDxBP1ZrCF38R9muXg+qECCvIRj238ULNoDhDeZjgkw+vD kzOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=h0FdE9Gx; 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 o9si6927414pfe.63.2018.11.26.02.57.36; Mon, 26 Nov 2018 02:57:51 -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=pass header.i=@kernel.org header.s=default header.b=h0FdE9Gx; 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 S1728346AbeKZVuD (ORCPT + 99 others); Mon, 26 Nov 2018 16:50:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:59134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726532AbeKZVuC (ORCPT ); Mon, 26 Nov 2018 16:50:02 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1BF1920817; Mon, 26 Nov 2018 10:56:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543229778; bh=8vyfbczEdgoN7ym2BJodVEEa8wzOGJnyMz8ZZyLhXbg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h0FdE9Gx2ueueUtkkfQqFI7kUczm/mSKudu+NcZ6aiGFd6GmYsVSaWThyYxf7UpQI VismTXXXsFj3AbAPihTiyOW6pB95YJL4a36u9hTM/4kf+Kdtp1pT85Eif9y4Xi7Qya ICHtlu3sYWJK645RJjIKnVpAlEnLY4B5fxHTbVA4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Al Viro Subject: [PATCH 4.4 69/70] new helper: uaccess_kernel() Date: Mon, 26 Nov 2018 11:51:24 +0100 Message-Id: <20181126105053.166095595@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181126105046.722096341@linuxfoundation.org> References: <20181126105046.722096341@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Al Viro commit db68ce10c4f0a27c1ff9fa0e789e5c41f8c4ea63 upstream. Signed-off-by: Al Viro [only take the include/linux/uaccess.h portion - gregkh] Signed-off-by: Greg Kroah-Hartman --- include/linux/uaccess.h | 3 +++ 1 file changed, 3 insertions(+) --- a/include/linux/uaccess.h +++ b/include/linux/uaccess.h @@ -2,6 +2,9 @@ #define __LINUX_UACCESS_H__ #include + +#define uaccess_kernel() segment_eq(get_fs(), KERNEL_DS) + #include static __always_inline void pagefault_disabled_inc(void)