Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp409557imu; Fri, 21 Dec 2018 01:00:40 -0800 (PST) X-Google-Smtp-Source: ALg8bN7OVWFwXtpWd1Cd/Q3AQLg9s4qSnxhw/NKb1brNhxYw5/1A9run+Okdp4ldYi/PKOfLUgTj X-Received: by 2002:a63:b649:: with SMTP id v9mr1572169pgt.436.1545382840058; Fri, 21 Dec 2018 01:00:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545382839; cv=none; d=google.com; s=arc-20160816; b=xASlp3GKezTvVq4OvpiYF7JCGf618jxBWPktQiBcEiA6SqkGTgLlo7RqLGG9b+t60E aT3v7hP7iGn2XKpkglhbeSsxuRFKyaSOBPpyNo5v++5g7UrPkUWvpKQ5aiyq3El21j1H DkbZdisPXCPfPHN4PhnJOSBruCeFKtAaGQh5C5gnqoe7knN72EJLs3TB8xAPQYMyZOk/ LwNUcTnqN9FcGRG0OkZ1tQP4bPbS3PRSkSGLA7PjOzbsOKKdA7cdDq8VPzNw6zLYC8Rh U5hx06jUuEPfbHNbCYKJcQs9pTDir8FeY+FDCBOTi4Gje1T6w3VBUOHUjVkJbGROKTql hxVQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=83n46YEX89HzN73GWK18GMhPuDcMcoDxkL6OMp9/OIw=; b=ddBT1kv5DU3+z2XJ94eIzy97o4i5/DooK1J/rrcqlzbsfkwXMPE9Lsd1xQmSIOXv6F M5VRwGJRJAJ/FwqJpXgAOBH7E0VZNLdLvXHwJdw1uH1euHggtGs2r0Rhey/mXe8D89E2 RjBcYSZEIb0XafrjfMdQkWrt6FtrIUasEa6sbb0tehra0SMWnbRldvMx6tkearnAvEmA 9IH9TP6/oCtxi/8PuiUIBeh8psIsuFGc0KK/6y5ey7+gTodf3T7uvBKkg7riWlfsAqvC tDvY3LHPv/er8wH+r6QFzSkgdkIIGAL0IoHffNpTMH4eTOFC6PgSCbRrj0XnroD+vrDf rMew== 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 bi2si19542254plb.200.2018.12.21.01.00.24; Fri, 21 Dec 2018 01:00:39 -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 S1731420AbeLUGsM (ORCPT + 99 others); Fri, 21 Dec 2018 01:48:12 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:59163 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730676AbeLUGsM (ORCPT ); Fri, 21 Dec 2018 01:48:12 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 43LfMs1M9Dz9vC2L; Fri, 21 Dec 2018 07:48:09 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id 94YfZ2MBPxVa; Fri, 21 Dec 2018 07:48:09 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 43LfMs0YYfz9vC2K; Fri, 21 Dec 2018 07:48:09 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id EB7DF8B8E1; Fri, 21 Dec 2018 07:48:09 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id ZlqXfQ8e9pLc; Fri, 21 Dec 2018 07:48:09 +0100 (CET) Received: from PO15451 (po15451.idsi0.si.c-s.fr [172.25.231.2]) by messagerie.si.c-s.fr (Postfix) with ESMTP id BEEA58B75F; Fri, 21 Dec 2018 07:48:09 +0100 (CET) Subject: Re: [RFC PATCH v2 04/11] powerpc/mm: Add a framework for Kernel Userspace Access Protection To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , ruscur@russell.cc Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <76d777b36e54e7b8d4c196405decc712fc5eaf45.1543356926.git.christophe.leroy@c-s.fr> <87sgyrpivq.fsf@concordia.ellerman.id.au> From: Christophe Leroy Message-ID: Date: Fri, 21 Dec 2018 07:48:08 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 In-Reply-To: <87sgyrpivq.fsf@concordia.ellerman.id.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 21/12/2018 à 06:07, Michael Ellerman a écrit : > 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. > Yes that's right the ppc64 part is from Russel. As it's still an RFC and there is still some work to be done I didn't pay much attention to Signed-off and other tags yet. Signed-off-by: Russell Currey Christophe