Received: by 2002:a05:6520:2586:b029:fa:41f3:c225 with SMTP id u6csp13061lky; Wed, 9 Jun 2021 14:29:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCNpDeut+qsh0oqnNvEJVCvT1EnlsFlAsx0sxrzCa/Pw2LgdoOpiVwEFMpw3mT0Z3Cc2/m X-Received: by 2002:a05:6402:1216:: with SMTP id c22mr1388017edw.36.1623274179675; Wed, 09 Jun 2021 14:29:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623274179; cv=none; d=google.com; s=arc-20160816; b=Y7vHg/+twlQQqz1ow5Cpaob4yLv+gWjxpa6stDKPApANmOIqMFPnfJlnSXwLN/GhjZ 14gDcUA7pVs9P1iflHkfjnASmtBveYbbojCXcIcLZSsohg+FOloEoVhirLHthI8oChou WxFxR8wOf9Nf/JsQsFHfRLmRu/Mp2DETgchHXpmT+fo0Vuu5ZrJE0J0y+Dl0RjnB/W74 crGvV180jk95oSlilYpAacQu2tU8LFsM6ky7t536XokmVAuVBY9WY/Cm05wWVg/bY80o Zxyp59zW5uKj28uTISoJmETbDN9fCl24QMELyeV8VjZKN9Vl9mFYO/G5bK4v0sP2xSG7 ckHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=PwygGhy4kgn6N0xBG+BlYSMmD057El8cfF9LAgY3p4E=; b=SKrYeJHj/0Rw59cKpyob3bTdPYiARAAekTd7wsSbr6ztmVYikoyBLsqfGRiptw2qTx dgR73ZVAyeLC6Qi2Rm2Kcaueccz7kCaaCWoC3ECEF+awKzhXK0oeqLh1Pm87wrIW4b99 gta8oUEGnT4N8w4Yx4Dvd9ZHA3IKCVdsfZdeTLmg/bb4CtHaflQ8wFLovS0MRM2h5GtB nWLyWfVNr+6KM1K9LD94WfzKuQvP3qdEH76/M3tNWg8Xjf0fLc3ghW8T0Nx1OjXn60GO GtSJLaiN3wHAuYYs2vSXBGBs7zAc9aq80Xl9/oOFGQxdGqE1B+Fz3RTwyyWiwSSIlC3E 0pcg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz1si682531ejc.257.2021.06.09.14.28.51; Wed, 09 Jun 2021 14:29:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229715AbhFIV2b (ORCPT + 99 others); Wed, 9 Jun 2021 17:28:31 -0400 Received: from cloud48395.mywhc.ca ([173.209.37.211]:58252 "EHLO cloud48395.mywhc.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbhFIV2a (ORCPT ); Wed, 9 Jun 2021 17:28:30 -0400 Received: from modemcable064.203-130-66.mc.videotron.ca ([66.130.203.64]:51956 helo=[192.168.1.179]) by cloud48395.mywhc.ca with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1lr5iZ-0001et-BU; Wed, 09 Jun 2021 17:26:31 -0400 Message-ID: Subject: Re: [RFC] coredump: Do not interrupt dump for TIF_NOTIFY_SIGNAL From: Olivier Langlois To: "Eric W. Biederman" Cc: Linus Torvalds , Linux Kernel Mailing List , linux-fsdevel , io-uring , Alexander Viro , Jens Axboe , "Pavel Begunkov>" , Oleg Nesterov Date: Wed, 09 Jun 2021 17:26:30 -0400 In-Reply-To: <87eeda7nqe.fsf@disp2133> References: <192c9697e379bf084636a8213108be6c3b948d0b.camel@trillion01.com> <9692dbb420eef43a9775f425cb8f6f33c9ba2db9.camel@trillion01.com> <87h7i694ij.fsf_-_@disp2133> <198e912402486f66214146d4eabad8cb3f010a8e.camel@trillion01.com> <87eeda7nqe.fsf@disp2133> Organization: Trillion01 Inc Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.40.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud48395.mywhc.ca X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - trillion01.com X-Get-Message-Sender-Via: cloud48395.mywhc.ca: authenticated_id: olivier@trillion01.com X-Authenticated-Sender: cloud48395.mywhc.ca: olivier@trillion01.com X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2021-06-09 at 16:05 -0500, Eric W. Biederman wrote: > > > > So the TIF_NOTIFY_SIGNAL does get set WHILE the core dump is > > written. > > Did you mean? > > So the TIF_NOTIFY_SIGNAL does _not_ get set WHILE the core dump is > written. > > Absolutely not. I did really mean what I have said. Bear with me that, I am not qualifying myself as an expert kernel dev yet so feel free to correct me if I say some heresy... io_uring is placing my task in my TCP socket wait queue because it wants to read data from it. The task returns to user space and core dump with a SEGV. now my understanding is that the code that is waking up tasks, it is the NIC driver interrupt handler which can occur while the core dump is written. does that make sense? my testing is telling me that this is exactly what happens...