Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp995606imu; Fri, 11 Jan 2019 12:57:32 -0800 (PST) X-Google-Smtp-Source: ALg8bN7BFEKZMSo6JOcfHJL3lWPSZ9lKEwJnjyYI6sEy6smK5dTjr2BxpM8CJGFYCIcCig+o6zuA X-Received: by 2002:a17:902:b60a:: with SMTP id b10mr15151910pls.303.1547240252675; Fri, 11 Jan 2019 12:57:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547240252; cv=none; d=google.com; s=arc-20160816; b=O6xrw9sWGjUFk/sFdThW2FCM2Dkhc9zOKUjoxmJN/4dJku+yZ+npH1wyQYag9AIx15 jYUtSUNv6hYwLJwyNAEN4smZIeHd84PnHe1pSq/EN7jGQa4GbU+vQjLfo66doiBWUfEB HZ7qI78Wx4EVGz7IKjvYwAgyoXJ5x5a/CN/PzxCGK/zlyEfDlj3jl2+WR28VnnzTE6o+ Zz4f0s7qNYX8USMr3XGp7PLhF01CKUiSQ/MwM4mBY2bJDMlrB2VbGTjraiLe5Vj5HYEJ OwZcT3Vnder8nXLleiP9NZiAM8AGne4Fi/C9A67A382Q3lmovxYJtWHCrCtFaSC4yI2Y Svrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+CCqKfeR1VAuRhQk8t21C6yoxZes1BsouZ93Be7mIDo=; b=aCcG+h6675qfj9/KLi8rdyzvDJPRhBxawXrFt42Ze0vxjh3D6Ud4Evj4eQbe4l4MrL s7iRjPxcwNY+41pxK46oZ239KAZtC/dyLnNCFqFpPCLbFOX/jlUu++yhR4nTnNQQZ7F1 ucn3tP4hALo1uM+OApjDNPnVBeH2aH1fFNz5RwSWDQg7yBuYVot6bSPKCF2xwychuUQu v6Q5yhsfolOGozJn9V7WGFhOidT/uKKXNJ6EAuLqBe60y5r4xUB2St6hGRmfYDPf9LsE nwJiMJM7nvjsCQ8K7YrN2Mr/z0xrR4ZOXcafcUXtzyOvdGMKoSD5A4nfby8U9RRNDZlo m6sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=RblCAEjI; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b9si926595pgt.293.2019.01.11.12.57.17; Fri, 11 Jan 2019 12:57:32 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=RblCAEjI; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730554AbfAKRg7 (ORCPT + 99 others); Fri, 11 Jan 2019 12:36:59 -0500 Received: from mail.skyhub.de ([5.9.137.197]:50406 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725805AbfAKRg6 (ORCPT ); Fri, 11 Jan 2019 12:36:58 -0500 Received: from zn.tnic (p200300EC2BCAC5003956DFF8679C923C.dip0.t-ipconnect.de [IPv6:2003:ec:2bca:c500:3956:dff8:679c:923c]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 8C4101EC0432; Fri, 11 Jan 2019 18:36:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1547228217; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=+CCqKfeR1VAuRhQk8t21C6yoxZes1BsouZ93Be7mIDo=; b=RblCAEjIV05bLQEJHC1f4m1muAVxkkdRYGbowGCGbzPtRB/kwtDpdUS7XkYSGIqUTK2ohe GjKU0tSHh9/5sgod9HaWtx9rf7JBfopMkUudqzzK0urpvKWsW+8W1V44Zokh6hA0Yx9oO7 9LHGuRMR/320paSXcj6DAPDVUOB6XSI= Date: Fri, 11 Jan 2019 18:36:48 +0100 From: Borislav Petkov To: Peter Zijlstra Cc: Zhenzhong Duan , Waiman Long , LKML , SRINIVAS Subject: Re: Question about qspinlock nest Message-ID: <20190111173648.GH4729@zn.tnic> References: <910e9fb6-d0df-4711-fe2b-244b3c20eb82@redhat.com> <2eca6f60-3e8b-a389-27cb-8adbd9676607@oracle.com> <20190111091638.GK30894@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190111091638.GK30894@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 11, 2019 at 10:16:38AM +0100, Peter Zijlstra wrote: > > Not for debug exception, for MCE exception handler I found below two: > > > > do_machine_check->mce_report_event->schedule_work That has been the case at least since 2009. We probably never hit it or I've never seen a deadlock caused by it. > > do_machine_check->force_sig->force_sig_info This does: ist_begin_non_atomic(regs); local_irq_enable(); before forcing the signal. And there's blurb above ist_begin_non_atomic() why it is OK to schedule when the exception came from usermode. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.