Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp572366ybi; Wed, 19 Jun 2019 04:26:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/a5g9IT1M0PODz34m/YE6MieeyFKTXX0AO8qby67pBaSyeCbF+VMilxCohSnUmOUDmo/1 X-Received: by 2002:a17:902:124:: with SMTP id 33mr58780691plb.145.1560943608315; Wed, 19 Jun 2019 04:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560943608; cv=none; d=google.com; s=arc-20160816; b=M8/usY1U3UyX1TNM5wHzUG+XyEfJ8JtMO3gOdar3rEYgTcDz4LlU9ADrhbyrHmeab+ xqjf5QtlgccbA6dCYYEsCY5H1xCocYkRpBOEN67dBA0dQgAWlZ9/tDqW3cvXB0WNlL43 yXjXjSWXQ3MK4s4UGx+LWFZ00eE2JPeeN06qvqz5quN/QhZG/1ZV5WD3riOPAqNf6WJ1 Z7Pf9lbcKj0y3tEmLxJqAUTy/A8Elf1OJ9NNtyKfeCEgK5S/Lvi0xiB+yiK5098Sl3KE g0dWgwwuoOgmVXGhFlhJabxo7Q+92ywIxsxHwtwH1tuujisyY8K+RbAe8TEuVCOILFJJ Vtrw== 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=v6YivmBrw5L1i+bfL46EzgafKRjz06uka2Dpxe2XHM8=; b=edI2CsW+e9QBbutGTi3DaRrRAiq75cfAnduiJsg/L9lf+Rb6DUda04khKKXc7vTDvt xzCYtmTAczojyi4e5TUfE/K0/Yk10JmQMqJjrif2lGqm7PGzFVYQcfDb+3qwv+SBFoEb LjQ0r9w+8mi4eNgbd44kZqGyU5VGwSGcTuiqogTE7Le/dL3zCtkEvt66jEqtRyh7/inD 6GSuyLnPUqW9jYZPiO7jmoynnErI+pFg16/oHmIuvOYrpB6uzClePrROt2H870awedEr 0xp/bwAvltoUCqDmnOG5ma33Cm4mdfohf/Hd2MJOfsMLTipohMaL4yCQJ2oMRDPy11u2 /tag== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=1jbBrbcV; 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 f9si16568983pfd.110.2019.06.19.04.26.32; Wed, 19 Jun 2019 04:26:48 -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=merlin.20170209 header.b=1jbBrbcV; 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 S1731633AbfFSL0E (ORCPT + 99 others); Wed, 19 Jun 2019 07:26:04 -0400 Received: from merlin.infradead.org ([205.233.59.134]:58588 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731483AbfFSL0E (ORCPT ); Wed, 19 Jun 2019 07:26:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=v6YivmBrw5L1i+bfL46EzgafKRjz06uka2Dpxe2XHM8=; b=1jbBrbcVaoBCQONn9ugrpQKwH ASd6uzmQQCIx+nJ64oCqdwXTFA0mnZM6GnbgAaeEWuZC9kx4Ii6mEXFtiHa9/w5Opf9YzQN6tKFTc aTMy8h90kXE/5m1UGzTM0jRB6nqjQminh5jFI1dkDKsnYi/EfiVQoWoBhQ64yj8jOk5ojtNdiDYFl ibqEFLSXOC1w2MRWRLdKmriGzZ9XcNmDvC3Itpt0fG+ksdSD1roBmNNCKjFI6PAZJYYh+I1iG+xWW 9iYdUjyxkK8fvyQfas+ESRjl08Rh8f98OvXfvILqM+NwlNvu0FXFxP3VVdt1GGyJ+ZIXCRH6l6iMh bVH0skLyA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hdYiZ-0006fG-0G; Wed, 19 Jun 2019 11:25:31 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 846BD20796503; Wed, 19 Jun 2019 13:25:29 +0200 (CEST) Date: Wed, 19 Jun 2019 13:25:29 +0200 From: Peter Zijlstra To: Miroslav Benes Cc: Jessica Yu , linux-kernel@vger.kernel.org, jpoimboe@redhat.com, jikos@kernel.org, pmladek@suse.com, rostedt@goodmis.org, ast@kernel.org, daniel@iogearbox.net Subject: Re: [RFC][PATCH] module: Propagate MODULE_STATE_COMING notifier errors Message-ID: <20190619112529.GO3419@hirez.programming.kicks-ass.net> References: <20190617090335.GX3436@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed, Jun 19, 2019 at 01:12:12PM +0200, Miroslav Benes wrote: > On Mon, 17 Jun 2019, Peter Zijlstra wrote: > > > > > Some module notifiers; such as jump_label_module_notifier(), > > tracepoint_module_notify(); can fail the MODULE_STATE_COMING callback > > (due to -ENOMEM for example). However module.c:prepare_coming_module() > > ignores all such errors, even though this function can already fail due > > to klp_module_coming(). > > It does, but there is no change from the pre-prepare_coming_module() > times. Coming notifiers were called in complete_formation(), their return > values happily ignored and going notifiers not called to clean up even > before. Sure; but I didn't care to look before :-) The fact that it can currently fail means most/all the unwinding is already there and we only need to consider the additional cases.