From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C18FE41D226 for ; Mon, 21 Sep 2026 14:15:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790000106; cv=none; b=f3GUeShWELLjqUTaj6aMQFyxAnx9D+HRShBSeWSh3kwJV9ukAlup4TgssJsx5UX9OuOKuMfT2ITVsmZ9bYvDACrMdhgN7Dq9GagIBTg3Ugeh4VgdkT8NQaDdArz/QCD98EB4nfD42UFGHQw/f8TIxVTeLcLkl0XtcGbAVcw7ypE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790000106; c=relaxed/simple; bh=QYUNhse7s8jbvPJPVoD8smtqkNiMSRBx/BETLp9ASyE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tZpP2AH/LQAK1rYPNtAS/2K5rECVqEJbqIo13oc28IrM0xcBJGGB/Nm2n/EfL1Xx96Cq8SnDytamEpEyvViT6rU01V1orkyQev2+0sSfdbWArLeWXdM7OsHXMV6qtb60shbcQ2K3pt/pumdktPhsilI7iQ0ycxcW1pbfZ4prRJM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=WBailNZo; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="WBailNZo" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1790000103; 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: in-reply-to:in-reply-to:references:references; bh=JYmkAVW6MGL7d6FmukCxqbleAMN+cIrtRe3QYgaLMXk=; b=WBailNZoWR0EzfTGWE9eQoEei8v0C1VxeW1TIHX6kD1/viE9Y52j+hj78yGIhCcaRBsb35 vR4jPu0rXhfRIIwIAr0h7OuM4oSYaJHtFl4huWJWAFpNu5VbxJyjZQFBScTeRTWS29d7AG k/0d3fHJ9BOdhY4iABoQgiDW2jLDaUE= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-133-aXu1BVHwN_OPLkok5J7aYw-1; Mon, 21 Sep 2026 10:14:59 -0400 X-MC-Unique: aXu1BVHwN_OPLkok5J7aYw-1 X-Mimecast-MFC-AGG-ID: aXu1BVHwN_OPLkok5J7aYw_1790000097 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7805B180B5C9; Mon, 21 Sep 2026 14:14:57 +0000 (UTC) Received: from fedora (headnet03.pony-001.prod.iad2.dc.redhat.com [10.2.32.114]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id EF8DD1800348; Mon, 21 Sep 2026 14:14:53 +0000 (UTC) Received: by fedora (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Mon, 21 Sep 2026 16:14:57 +0200 (CEST) Date: Mon, 21 Sep 2026 16:14:52 +0200 From: Oleg Nesterov To: Christian Brauner Cc: Chris Mason , linux-fsdevel@vger.kernel.org, Jens Axboe , Alexander Viro , Jan Kara , NeilBrown , Ingo Molnar , Peter Zijlstra , linux-mm@kvack.org, io-uring@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v3 12/17] exec: cancel io_uring requests before de_thread() Message-ID: References: <20260921-work-coredump-fixes-v3-0-8e4adb1619e6@kernel.org> <20260921-work-coredump-fixes-v3-12-8e4adb1619e6@kernel.org> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260921-work-coredump-fixes-v3-12-8e4adb1619e6@kernel.org> X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 On 09/21, Christian Brauner wrote: > > --- a/fs/exec.c > +++ b/fs/exec.c > @@ -1149,16 +1149,19 @@ int begin_new_exec(struct linux_binprm * bprm) > */ > bprm->point_of_no_return = true; > > + /* > + * Cancel any io_uring activity across execve. This runs task work > + * that may still create an io-wq worker, so do it while de_thread() > + * can still zap it. > + */ > + io_uring_task_cancel(); Acked-by: Oleg Nesterov