Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp511735pxb; Thu, 21 Oct 2021 04:14:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwR6guxqg9Q2e3gvs1INt3pVqRRPKdGzXEKAS2S9rzfTihgBqPktAlBsRQeqR4y31yeAN+B X-Received: by 2002:a17:90b:1bce:: with SMTP id oa14mr5886350pjb.225.1634814862798; Thu, 21 Oct 2021 04:14:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634814862; cv=none; d=google.com; s=arc-20160816; b=s2slE4R8x0YT5LOdXvR8fBRUCS3+TWOloKUaNuPhEUigQZmsT1IAwwAetNRQhf66lU Yw1sDCzZrHMmaKwwbrvLBIg0XCbVwBHJAGMVIvUexiVPtoYBVM/IoRjCCAnkJuYLorw2 za+r2sVKxfOBkU4b3+UhbItmn29LUSvmRgXByonYlPvyI1pW2qJUxZh5yhrLIjjXmPmJ Xj/k2T3DiGuUxZDhUeA7tsH2lSXfm6E8xrkQqpoM9TRzoD4nmcSyz96f1Yx1G79qh1cN MmqZ/g3NTJZuwuHNV+viAOn8KB2QjoWuk/H4W3ZyX6DalNJtBmgeT/Jr7vOoYjp6p3IG 2zMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ot6BoOREJVsPeSpSVlitYEN/YRc+jriHmGG5NiWBxhk=; b=Yt8aV67GaVw8E5h3VeihS6ohHIHCTY9HOEOUzYfAwz0XNjD8kk/5884PMrdb0PK/J8 8QzmOsBmv9UNpz+wZLexg3gvelgVHdXU7In6xDYWQkRpIqEuaHLHBn8i9L94Wo6MhU8l bc/S84BTTLz90o4ANxLFS+4rIH2nD2Mdj3H0iV+ZH/Pju5nuvOg7RDwKZ32n2GANLHl+ +oVVK2kVTinnCnde3mHYs0AjC/yuX7ri579KcizzHb3jWtSHkP13j9+e9WZUcVAcnVVc +RCZzjx1+vzC2H0F3VoOtxUnnZNMqQF1b2L+gqWQh0O0TlWGyPo9V7gllaSiz2fp02KX MHYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=4pH7raY1; 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 f2si6521232plr.323.2021.10.21.04.14.10; Thu, 21 Oct 2021 04:14:22 -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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=4pH7raY1; 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 S230213AbhJULOi (ORCPT + 99 others); Thu, 21 Oct 2021 07:14:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229765AbhJULOh (ORCPT ); Thu, 21 Oct 2021 07:14:37 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D441C06161C; Thu, 21 Oct 2021 04:12:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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; bh=ot6BoOREJVsPeSpSVlitYEN/YRc+jriHmGG5NiWBxhk=; b=4pH7raY1P8DEgo9UWXVTxSKn2r dCQ6xggO9wUyU30/QgWYxLSUScN0fc7KUhfPbKptPCZmPCKJBqcahrNcRz36GrlU8+2qlNmxVk6yn gif0BU0JJehvSlypk45tomMwxOifUrInkbn7fUJ+HeMciMdM0ErxDFem+VoVMXJiQJTT1jtmZo5yA +I9X6thSoHQAxnj8xLkMdVZrdYq/2RgS07kropx1qzAWPvI4Up6uIyzOiXCZ7E/sXgsdQvq/E4cQZ ypbHMUTzgoqP/clVvTZP7ieLgkXfK2mLGCSYIFSA7o6YGVw1Bqp/9pNRsXu8hwRjHUeXiAZFm16Jo INn1t8TA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdVzh-007JwJ-5C; Thu, 21 Oct 2021 11:12:21 +0000 Date: Thu, 21 Oct 2021 04:12:21 -0700 From: Christoph Hellwig To: "Eric W. Biederman" Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Linus Torvalds , Oleg Nesterov , Al Viro , Kees Cook Subject: Re: [PATCH 12/20] exit/kthread: Have kernel threads return instead of calling do_exit Message-ID: References: <87y26nmwkb.fsf@disp2133> <20211020174406.17889-12-ebiederm@xmission.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211020174406.17889-12-ebiederm@xmission.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 20, 2021 at 12:43:58PM -0500, Eric W. Biederman wrote: > In 2009 Oleg reworked[1] the kernel threads so that it is not > necessary to call do_exit if you are not using kthread_stop(). Remove > the explicit calls of do_exit and complete_and_exit (with a NULL > completion) that were previously necessary. With this we should also be able to drop the export for do_exit.