Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1539555rwl; Fri, 24 Mar 2023 11:54:13 -0700 (PDT) X-Google-Smtp-Source: AKy350ZBGbEx+v0nYSNzLhWXkRNIYt8HGf6d0Z1eqwbjujX7fyvvaJXXiAe1z4cJ36GYfPzEN6PD X-Received: by 2002:a17:90b:314d:b0:23e:f8e2:9ec8 with SMTP id ip13-20020a17090b314d00b0023ef8e29ec8mr3856267pjb.16.1679684053090; Fri, 24 Mar 2023 11:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679684053; cv=none; d=google.com; s=arc-20160816; b=h4tbTxzcUfoPPEfWlBxV+C/r8F7r2Qn2It9+ZcnZNpMFpET8s3GCbQxnMVaUsx0YZw Xcgbaro5Ws34pENAQmH+kOM6BcNownvExbvguPcGxy/vgRKC3tHKpPAKOTfctzCVTCpN 1IU7nwMVkm/VnFb8HDySpazF0S+cG2VqIAKek1K1xKO3PavFRtgg5ESyYZoMmSLYohh/ rRfTjRw2cQJwE9VesEc9mKI6V4A38G19rlz9T4fDETjgX2cVKANFnlIHOypg2Kwae6pu e68UoTXXlkmYbV/FW0V12Xditot6cbbz+vabf7rZBX/Rc4vZm6hBaw1ihO0mztiaNLrp e1tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8dtrVZxItauX11UB4f80WXUPADDXCAOcUF0i9BW2H9k=; b=Yk85Iq9Ko//841URLI+r4tqQ6vXZNNrW1X/RZBRv0d9pr9mDuHEsD53FpTMNdrM1+N qltJ+e6sPPiLnN2YWDtPout4Ob53nGfQzk3D3VuWWLiw3xsqIB3a3xao+905XdHZtO8p xotymwuzU7V334Hpkc5nDI/JCSxi5hpJshRLlPxrBS3yGRMzB0XE7cxXT0dS0ZLjR3nq kF/1f11JrvoFvg7yyiyULJUm7kLQiqrfaZFcRckNLgURdAO5BUfHQc6Z469CGbcmET/u obMg2b+XI48XVsY84ACqpup4cslsdGjilbc056dSDVJ/ZoPUSE+aHn6ShrPYqerUVcyE NbIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=qR47UVnF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t13-20020a63444d000000b005031abe8d8bsi21399930pgk.745.2023.03.24.11.54.00; Fri, 24 Mar 2023 11:54:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=qR47UVnF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231359AbjCXSrY (ORCPT + 99 others); Fri, 24 Mar 2023 14:47:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229943AbjCXSrW (ORCPT ); Fri, 24 Mar 2023 14:47:22 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17A82F1; Fri, 24 Mar 2023 11:47:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description; bh=8dtrVZxItauX11UB4f80WXUPADDXCAOcUF0i9BW2H9k=; b=qR47UVnFHk2OHyqfEV+Qna+ckx jA3BDaASobqqDwuqyNstDsyKTX0e13ny5NGVfC4LFlxqXnS3C3yzyf52GlzF1A/nS0srl31uqmUnc x86PGqWttWtZ0CFzoVXT5oc8DzXJBFocXsiPr5wfiaGUXYyzZPfjtLRQOA/GKldsKkN0Tf8mDhDpB JwyRS6NVDRh8t9jjE6cjWsd6sgllbORAvRJkI/E5ejLRAMa5jA/ePzyqqMgV9U1w1QS90LmoyGp3q qs8pMu2cTd3pP+jiXnDpnIxJIoo57is2icg9rKJnfveuIDs3jhomTJGg9pMUZn8eDyhSDMyOoyz6b W2Pz7mGA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1pfmRW-005Lhh-0H; Fri, 24 Mar 2023 18:47:14 +0000 Date: Fri, 24 Mar 2023 11:47:14 -0700 From: Luis Chamberlain To: Lucas De Marchi Cc: Vincenzo Palazzo , Petr Mladek , Petr Pavlu , Prarit Bhargava , Vegard Nossum , Borislav Petkov , NeilBrown , Goldwyn Rodrigues , david@redhat.com, mwilck@suse.com, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Lucas De Marchi , Ben Hutchings , Adam Manzanares Subject: Re: [PATCH v2] module: Don't wait for GOING modules Message-ID: References: <79aad139-5305-1081-8a84-42ef3763d4f4@suse.com> <20230312062505.man5h4oo6mjbiov6@ldmartin-desk2.lan> <20230323150125.35e5nwtrez46dv4b@ldmartin-desk2.lan> <20230324060321.c2szz34n6zggvubj@ldmartin-desk2.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230324060321.c2szz34n6zggvubj@ldmartin-desk2.lan> Sender: Luis Chamberlain X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 23, 2023 at 11:03:21PM -0700, Lucas De Marchi wrote: > On Thu, Mar 23, 2023 at 08:08:49AM -0700, Luis Chamberlain wrote: > > On Thu, Mar 23, 2023 at 8:02 AM Lucas De Marchi > > wrote: > > > > > > On Wed, Mar 22, 2023 at 03:31:59PM -0700, Luis Chamberlain wrote: > > > >On Sat, Mar 11, 2023 at 10:25:05PM -0800, Lucas De Marchi wrote: > > > >> On Sat, Jan 21, 2023 at 02:40:20PM -0800, Luis Chamberlain wrote: > > > >> > On Thu, Jan 19, 2023 at 04:58:53PM -0800, Luis Chamberlain wrote: > > > >> > > On Thu, Jan 19, 2023 at 04:51:27PM -0800, Luis Chamberlain wrote: > > > >> > > > On Thu, Jan 19, 2023 at 04:47:05PM +0100, Petr Mladek wrote: > > > >> > > > > Yes, the -EINVAL error is strange. It is returned also in > > > >> > > > > kernel/module/main.c on few locations. But neither of them > > > >> > > > > looks like a good candidate. > > > >> > > > > > > >> > > > OK I updated to next-20230119 and I don't see the issue now. > > > >> > > > Odd. It could have been an issue with next-20221207 which I was > > > >> > > > on before. > > > >> > > > > > > >> > > > I'll run some more test and if nothing fails I'll send the fix > > > >> > > > to Linux for rc5. > > > >> > > > > > >> > > Jeesh it just occured to me the difference, which I'll have to > > > >> > > test next, for next-20221207 I had enabled module compression > > > >> > > on kdevops with zstd. > > > >> > > > > > >> > > You can see the issues on kdevops git log with that... and I finally > > > >> > > disabled it and the kmod test issue is gone. So it could be that > > > >> > > but I just am ending my day so will check tomorrow if that was it. > > > >> > > But if someone else beats me then great. > > > >> > > > > > >> > > With kdevops it should be a matter of just enabling zstd as I > > > >> > > just bumped support for next-20230119 and that has module decompression > > > >> > > disabled. > > > >> > > > > >> > So indeed, my suspcions were correct. There is one bug with > > > >> > compression on debian: > > > >> > > > > >> > - gzip compressed modules don't end up in the initramfs > > > >> > > > > >> > There is a generic upstream kmod bug: > > > >> > > > > >> > - modprobe --show-depends won't grok compressed modules so initramfs > > > >> > tools that use this as Debian likely are not getting module dependencies > > > >> > installed in their initramfs > > > >> > > > >> are you sure you have the relevant compression setting enabled > > > >> in kmod? > > > >> > > > >> $ kmod --version > > > >> kmod version 30 > > > >> +ZSTD +XZ +ZLIB +LIBCRYPTO -EXPERIMENTAL > > > > > > > >Debian has: > > > > > > > >kmod version 30 > > > >+ZSTD +XZ -ZLIB +LIBCRYPTO -EXPERIMENTAL > > > > > > ^ so... mind the minus :). It doesn't support zlib. > > > > > > Change your kernel config to either compress the modules as xz or zstd. > > > > Oh so then we should complain about these things if an initramfs is > > detected with modules compressed using a compression algorithm which > > modprobe installed does not support. What tool would do that? > > I guess we could add that in depmod side as a dummy handler for when > that config is off. Thoughts? That sounds like a good solution, better than and complain before allowing someone to boot and *not* be able to. Luis