From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752063AbdKFV27 (ORCPT ); Mon, 6 Nov 2017 16:28:59 -0500 Received: from albireo.enyo.de ([5.158.152.32]:46092 "EHLO albireo.enyo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751046AbdKFV26 (ORCPT ); Mon, 6 Nov 2017 16:28:58 -0500 From: Florian Weimer To: Ram Pai Cc: mpe@ellerman.id.au, mingo@redhat.com, akpm@linux-foundation.org, corbet@lwn.net, arnd@arndb.de, linux-arch@vger.kernel.org, ebiederm@xmission.com, linux-doc@vger.kernel.org, x86@kernel.org, dave.hansen@intel.com, linux-kernel@vger.kernel.org, mhocko@kernel.org, linux-mm@kvack.org, paulus@samba.org, aneesh.kumar@linux.vnet.ibm.com, linux-kselftest@vger.kernel.org, bauerman@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org, khandual@linux.vnet.ibm.com Subject: Re: [PATCH v9 00/51] powerpc, mm: Memory Protection Keys References: <1509958663-18737-1-git-send-email-linuxram@us.ibm.com> Date: Mon, 06 Nov 2017 22:28:41 +0100 In-Reply-To: <1509958663-18737-1-git-send-email-linuxram@us.ibm.com> (Ram Pai's message of "Mon, 6 Nov 2017 00:56:52 -0800") Message-ID: <87efpbm706.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Ram Pai: > Testing: > ------- > This patch series has passed all the protection key > tests available in the selftest directory.The > tests are updated to work on both x86 and powerpc. > The selftests have passed on x86 and powerpc hardware. How do you deal with the key reuse problem? Is it the same as x86-64, where it's quite easy to accidentally grant existing threads access to a just-allocated key, either due to key reuse or a changed init_pkru parameter? What about siglongjmp from a signal handler? I wonder if it's possible to fix some of these things before the exact semantics of these interfaces are set in stone.