Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp529690img; Fri, 22 Mar 2019 03:17:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzD2UCGp3lyJ9ekAb8N9KLdMOTBbArmTBGvGuehrfO8REUdtmjQA+TegeXgYa3dBTGPhdD0 X-Received: by 2002:a62:b61a:: with SMTP id j26mr8227523pff.151.1553249856495; Fri, 22 Mar 2019 03:17:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553249856; cv=none; d=google.com; s=arc-20160816; b=CE/ZXcUWlnPidKM4LFMirzYkhx0unbExrPKcpM69vsCh1d1iSe9CSMfJxPJ3FtDKmq a7OSx79zmW7B6VTvMAilMLYh/PpIyBzBQs0Zr+vR1BCOfE4eTsbGSiOTyV0KIZoMx+jm BTXStG4543zmXw8RArpFQNrFvWrs0ZgSgyZnnqbmz0qQxTRqb7ckH8P/uf7BqPCR46uq 3Ai8cqfqKm4pd9M39E9fFiX5Vy4nD8F6AwNzc3wEQzIYSelsdg7lsNksWSCjhgQI2pDk gzFEbfgoRSCRLs/YPPKNXMe2tTFXwGuU8OHCAA16P2X60Uxr8ghadPJ4zdYRzq2Qss6S yKog== 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=nBJewWCbdaJ5X4iQT6hRh0j0tFDuXREWOR4IbUJXZrw=; b=ouhpN8vrVVtcAZnDQXDh97vT//EfJniLOszteqpgPIUOac21M6t1lHko1QjsO7mRtL PAJFr0CIISeznnRgQaBNdxjqGb0Sh1YnqMeT89ZMrcbGxVLDyxLEYAI42BQVxyPqfK02 UrgwYn2TzV/NR1wYyCvmN6x530Al9QpdMbIK6vA2Uew2NM+V8R1bqgONxEun1991/wE3 HWVEO54WjLP+8xOyQ0QuEH+8qDRT3q/T3WqB7Y7AD7S6tOvobrMmgjethULDfHn1nQ+I GOsvgJvfZhDbjaKrIwnQM2dFpkVdcyQ9lX8FONwhaA5GgX96gU8gEo4zqBSdXMZri3u9 +C+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eHZqkMXu; 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 b2si6163798pgw.161.2019.03.22.03.17.21; Fri, 22 Mar 2019 03:17:36 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eHZqkMXu; 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 S1728046AbfCVKQB (ORCPT + 99 others); Fri, 22 Mar 2019 06:16:01 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:48150 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727860AbfCVKQA (ORCPT ); Fri, 22 Mar 2019 06:16:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=nBJewWCbdaJ5X4iQT6hRh0j0tFDuXREWOR4IbUJXZrw=; b=eHZqkMXuJaUupBq5agtV44k7F rlUiJ5cff+KL4dk+vjyMIFhLoq4JYR0WhK1ryKV7Nym63LnjGzMxBoF7HODFZyQuc1Zbb2hlBIlFH 77oZYullmVvDUschGOvwJxz1lqJf73QZPU364tHP/Wo7XGZICNCGIETJO/443iPrcSIWCock3qWYB 9nDvjnTkEZr6RyExdNRDyrQGRTu1GNBu4BevbyT/ZPs9HTctSQpu2/n+OiuQ19rVZT2sBOg2K/2B1 VVl/vIvTNpogP3pjWIta6k4fqBzVTHxeU0lc9vuMrv+O1eq+CzFe1WDPpeNaHB1W3Ep9RfU4VoXd/ KUnsSV5IA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1h7HD6-0003yd-1c; Fri, 22 Mar 2019 10:15:36 +0000 Date: Fri, 22 Mar 2019 03:15:35 -0700 From: Matthew Wilcox To: Waiman Long Cc: Andrew Morton , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , linux-kernel@vger.kernel.org, linux-mm@kvack.org, selinux@vger.kernel.org, Paul Moore , Stephen Smalley , Eric Paris , "Peter Zijlstra (Intel)" , Oleg Nesterov Subject: Re: [PATCH 0/4] Signal: Fix hard lockup problem in flush_sigqueue() Message-ID: <20190322101535.GA10344@bombadil.infradead.org> References: <20190321214512.11524-1-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190321214512.11524-1-longman@redhat.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 21, 2019 at 05:45:08PM -0400, Waiman Long wrote: > It was found that if a process has accumulated sufficient number of > pending signals, the exiting of that process may cause its parent to > have hard lockup when running on a debug kernel with a slow memory > freeing path (like with KASAN enabled). I appreciate these are "reliable" signals, but why do we accumulate so many signals to a task which will never receive them? Can we detect at signal delivery time that the task is going to die and avoid queueing them in the first place?