Received: by 10.192.165.148 with SMTP id m20csp3974987imm; Mon, 30 Apr 2018 09:30:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp2NXg/9hYz5C6T9hhS6gcDfceYyCqX5GL4BEk8Y2AhnFUFs7f/2DvoF4DcLtzEyH7dnGYH X-Received: by 2002:a65:60d1:: with SMTP id r17-v6mr5724097pgv.410.1525105824549; Mon, 30 Apr 2018 09:30:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525105824; cv=none; d=google.com; s=arc-20160816; b=VLK8c2KwgODBhp2lpBj4vCgFl4h9mCYDmCJxJ+Ig0p7WmMviQULOi1xFnHoghIvWTy orZts+iIBP4RseEsd/9skvgLNH2LrMY01ohnuBsR5zssqODc/G1L2tGI1ZURkBszWGMT WJVMrQsKeWWrNpjtf/5/OjUJsiuyjhN9JbPt/Jx15ijcHXEU02vkCbse6n0bRMZIMt3n 12y/jpLlpiodA8MjWrOO1GXnSzRW8cHEKaK7iIZeykyRPymP4aMifaYcBLOCv4XhhG7m 6bK0VWM0ieIb5gy8T1UnDBJDzCh03YIE1MZSaweb6HvbyjND+8kuXN1bw0QLyYU2ut1L sHAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date:arc-authentication-results; bh=0nSHwj/w0J8eIZV9P8QjTzkgqGad17rRmmuqO+bfijk=; b=bzOizeau5WWnUfCV4aTrFfHWp/utnWcBZWvqPEIGaacHNcp48UhM5kyHv2LFgSujQd 3vE9dcjzwpSRUIXpoVciXNaUh5BLHE/qFKS75Ftg3LyjvgL/yxr9IFGMRkFJo0DTAFXd ipcqt0a3p3KL55Ldw+1A5i+9qyqnRMQekPz6T/On2wAQw72hbf24J5SuoyCc5JTpESl5 i/o6m6My+eKqS6oPWyZAh6ymx3OZgydEZbGXbrCpcrRBpYmIbNTFExyH+jFV26odkDDz KnxOSrZYS6XYx8Uo9H9cnPjR9ZSHEDKXRAVIHhY8B+Jou8SviymlWlx1b8sHP+Nk39Q4 AGLA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b68si7779176pfg.94.2018.04.30.09.30.10; Mon, 30 Apr 2018 09:30:24 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754651AbeD3Q2v (ORCPT + 99 others); Mon, 30 Apr 2018 12:28:51 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:53646 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753334AbeD3Q2u (ORCPT ); Mon, 30 Apr 2018 12:28:50 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3UGSjqk132839 for ; Mon, 30 Apr 2018 12:28:49 -0400 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0b-001b2d01.pphosted.com with ESMTP id 2hp5px2ph2-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 30 Apr 2018 12:28:48 -0400 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 30 Apr 2018 17:28:32 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp14.uk.ibm.com (192.168.101.144) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 30 Apr 2018 17:28:29 +0100 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3UGSTMa9109814; Mon, 30 Apr 2018 16:28:29 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 82B8542049; Mon, 30 Apr 2018 17:19:43 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6607D42041; Mon, 30 Apr 2018 17:19:41 +0100 (BST) Received: from ram.oc3035372033.ibm.com (unknown [9.80.213.204]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Mon, 30 Apr 2018 17:19:41 +0100 (BST) Date: Mon, 30 Apr 2018 09:28:23 -0700 From: Ram Pai To: Dave Hansen Cc: Ingo Molnar , Dave Hansen , linux-kernel@vger.kernel.org, linux-mm@kvack.org, tglx@linutronix.de, mpe@ellerman.id.au, akpm@linux-foundation.org, shuah@kernel.org, shakeelb@google.com Subject: Re: [PATCH 0/9] [v3] x86, pkeys: two protection keys bug fixes Reply-To: Ram Pai References: <20180427174527.0031016C@viggo.jf.intel.com> <20180428070553.yjlt22sb6ntcaqnc@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-12-10) X-TM-AS-GCONF: 00 x-cbid: 18043016-0044-0000-0000-0000054D8989 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18043016-0045-0000-0000-0000288EA1DB Message-Id: <20180430162823.GB5666@ram.oc3035372033.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-30_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804300158 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 30, 2018 at 08:30:43AM -0700, Dave Hansen wrote: > On 04/28/2018 12:05 AM, Ingo Molnar wrote: > > In the above kernel that was missing the PROT_EXEC fix I was repeatedly running > > the 64-bit and 32-bit testcases as non-root and as root as well, until I got a > > hang in the middle of a 32-bit test running as root: > > > > test 7 PASSED (iteration 19) > > test 8 PASSED (iteration 19) > > test 9 PASSED (iteration 19) > > > > < test just hangs here > > > For the hang, there is a known issue with the use of printf() in the > signal handler and a resulting deadlock. I *thought* there was a patch > merged to fix this from Ram Pai or one of the other IBM folks. Yes. there is a patch. unfortunately that patch assumes the selftest has been moved into selftests/vm directory. One option is -- I merge your changes in my selftest patchset, and send the entire series for upstream merge. Or you can manually massage-in the specific fix. The patch is "selftests/vm: Fix deadlock in protection_keys.c" https://patchwork.ozlabs.org/patch/864394/ Let me know, -- Ram Pai