Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp407826imu; Fri, 21 Dec 2018 00:58:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN7MYARgmQoWJKajENZzyDyOPjbUB/+YFYdJZbWeEvwecDlGZFSbA4MFq1ZcQykcaXX3BbOQ X-Received: by 2002:a63:7b06:: with SMTP id w6mr1565481pgc.288.1545382721100; Fri, 21 Dec 2018 00:58:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545382721; cv=none; d=google.com; s=arc-20160816; b=v5D5m81RgenZCh4/Yve0IwY4ZvYGn93RJtYipcLOQhXO8DDVoPvr2L0A1ixEWFc+DV dUoDSViF0uGEPxZndwnRVQvvDHKhFWFvDwzfBj/15l8KVel28scDQdW20/YLftRe/Eox 8pbZ8Tq0QpCFpBsx7a9oOgST8i4trcy69HiaC1IQEcgiywP9nZMw8/krE+vijudcbZEU TJ/6ovk1GOPzQUUQn6tuXXtzauetk6LyQuPB81rJAMYFmCd29wmJ91oFLVU3SfuqzoI/ LUA+4C1RiLkJNtFxt0L9MFQKPFm2rZlKnvzbTHg+QcMVYimfTyowYdteavR7Yu0vObuX 5xTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=C3n6m6Q1P7MInmAFx3wJ2RdGlgjjPve6/B5RwyFvqwI=; b=MuvPKIv9mRimHzE1lHJRuRGHT1TUQvik6Yi3EP6D09gmIAY2AKMP9ENbx98C5FDr0F 66VIcEQTRFMmz3Iuoku/8lNrJ4dJLMFFViodtYj15t/S3TxTN8tq+DlaKZWkc8ROrBLz bjp+Rih7vyVObqcmiIQY5lCP8wNUsNIGOW5D5AP1mdz5uJyYgrMscGKEbXvvrWP/mSZx stmhSYxWVAEKmRBzsNMwOgXVkB1IOX9rEaKtXi+IZeFgKrFUEIik48Y9l3xjwOI1cSg0 HE76p1QKyNrm9sy0H28saxGayrAzitR3Nd2+lgabjAbFI3pqr2Uryjn/bh0H5t+YKzB7 lYeQ== 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 e7si19924905pgi.263.2018.12.21.00.58.25; Fri, 21 Dec 2018 00:58:41 -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; 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 S1725829AbeLUFH6 (ORCPT + 99 others); Fri, 21 Dec 2018 00:07:58 -0500 Received: from ozlabs.org ([203.11.71.1]:56131 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725818AbeLUFH6 (ORCPT ); Fri, 21 Dec 2018 00:07:58 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 43Lc8C5vtYz9s9G; Fri, 21 Dec 2018 16:07:55 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , ruscur@russell.cc Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [RFC PATCH v2 04/11] powerpc/mm: Add a framework for Kernel Userspace Access Protection In-Reply-To: References: <76d777b36e54e7b8d4c196405decc712fc5eaf45.1543356926.git.christophe.leroy@c-s.fr> Date: Fri, 21 Dec 2018 16:07:53 +1100 Message-ID: <87sgyrpivq.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe Leroy writes: > This patch implements a framework for Kernel Userspace Access > Protection. > > Then subarches will have to possibility to provide their own > implementation by providing setup_kuap() and lock/unlock_user_access() > > Some platform will need to know the area accessed and whether it is > accessed from read, write or both. Therefore source, destination and > size and handed over to the two functions. > > Signed-off-by: Christophe Leroy I think some of this code came from Russell's original patch? In which case we should have his signed-off-by here. cheers