Received: by 10.213.65.68 with SMTP id h4csp11825imn; Fri, 16 Mar 2018 15:36:24 -0700 (PDT) X-Google-Smtp-Source: AG47ELvwoVz/YcjoI6DQ2k0/LhyGESXggNDy0dOe/y5TxcGIf4Rs6+SBPCNlY0MzWjrqYgf1SiKX X-Received: by 2002:a17:902:4001:: with SMTP id b1-v6mr3685693pld.28.1521239784102; Fri, 16 Mar 2018 15:36:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521239784; cv=none; d=google.com; s=arc-20160816; b=n4UJLMx/8yc5uGMalZ6vK/GijbElkVuKLqj9IfXt66SwdpApOEW6GbFUAVEiThxmkB FM4BOwCJql4HDrRWY9T95zpspQkQDSIwF9N8Ycakcw/UFNsswvOAlalw9uBKsK2fTTwc 3UYs1AN+gG9SNPQTS8XVD2G6+6WnqGuSJSewmVpg7tX/1atCbyDXQ2k/eVbaVqPKYiHz +uSXMX4S7KCp6jJA0nmTOj9s+ZJTjkQ+niQ3kY4InD5icRVvJOWgX0BPUdxf3THUmTMp 31WACrC54lwTBbsD2FkZxhwy1gmcwoymGerKPuxzS472dm2x8xUylDkBzZoIfzGm9d8O Vzig== 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:cc:references:to:subject:arc-authentication-results; bh=JJLRLJRzvcmpYoFXGEksBJbCRZFqAqQrsqIu+H90U+s=; b=1EK8Id9uWHTqYFhtfBMr3I4vvSqQs4os30T1kpO4Wr8hWVJmwh10vvzgsUjiG1kEza GA5IrGny6wsnnb6YRWN+7+K9fFfmnOnDX/B6NzwsK+8KfWjXItfZZuCe4vMNIgtqiOut IKGBcqeKYRVU68bcf03Y407gicAzUxD3YUaNt9EHu3ZC/ri0S/iIUNNdPNoIIqz99f1O qbd1gxjDjiijK6VAIvBmG9JzlTvVX4v0EnhwcHZWi63q1BBXoc9117G5sNiPo+e5LYXQ wOk/kJTgtJM8K9eKLmeJS+4FoxK958npehQxjA24KXhZVsksynlaPyG0kdkmBfeG7vpA RiyA== 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 i1si5686385pgc.229.2018.03.16.15.36.02; Fri, 16 Mar 2018 15:36: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752656AbeCPWfD (ORCPT + 99 others); Fri, 16 Mar 2018 18:35:03 -0400 Received: from mga12.intel.com ([192.55.52.136]:54867 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751969AbeCPWfB (ORCPT ); Fri, 16 Mar 2018 18:35:01 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Mar 2018 15:35:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,317,1517904000"; d="scan'208";a="25373747" Received: from ray.jf.intel.com (HELO [10.7.201.16]) ([10.7.201.16]) by orsmga007.jf.intel.com with ESMTP; 16 Mar 2018 15:35:00 -0700 Subject: Re: [PATCH v12 22/22] selftests/vm: Fix deadlock in protection_keys.c To: Ram Pai , shuahkh@osg.samsung.com, linux-kselftest@vger.kernel.org References: <1519264541-7621-1-git-send-email-linuxram@us.ibm.com> <1519264541-7621-23-git-send-email-linuxram@us.ibm.com> Cc: mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, x86@kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, akpm@linux-foundation.org, benh@kernel.crashing.org, paulus@samba.org, khandual@linux.vnet.ibm.com, aneesh.kumar@linux.vnet.ibm.com, bsingharora@gmail.com, hbabu@us.ibm.com, mhocko@kernel.org, bauerman@linux.vnet.ibm.com, ebiederm@xmission.com, arnd@arndb.de From: Dave Hansen Message-ID: <0c82a148-3f10-66f4-a7d7-cace557ff038@intel.com> Date: Fri, 16 Mar 2018 15:34:52 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1519264541-7621-23-git-send-email-linuxram@us.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/21/2018 05:55 PM, Ram Pai wrote: > From: Thiago Jung Bauermann > > The sig_chld() handler calls dprintf2() taking care of setting > dprint_in_signal so that sigsafe_printf() won't call printf(). > Unfortunately, this precaution is is negated by dprintf_level(), which > has a call to fflush(). > > This function acquires a lock, which means that if the signal interrupts an > ongoing fflush() the process will deadlock. At least on powerpc this is > easy to trigger, resulting in the following backtrace when attaching to the > frozen process: Ugh, yeah, I've run into this too. Acked-by: Dave Hansen