Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4567164rwb; Sat, 21 Jan 2023 14:56:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXuLaWyh5U86KR7I63QWUQ4Q69Auj8f9EC/aZmS60FmlCl3I56oLOEp3tC3l4vvcCLRHN0YA X-Received: by 2002:a05:6402:378a:b0:49e:65e4:ff1d with SMTP id et10-20020a056402378a00b0049e65e4ff1dmr12147218edb.24.1674341803318; Sat, 21 Jan 2023 14:56:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674341803; cv=none; d=google.com; s=arc-20160816; b=YwMEFvB1asJUs0Q9mlJ5gDWHLd7Bd1Xm9xy0hcwpICyU/uWLbNb2Kvq3OiOX40mKrD R4p5dR9rF4SmqTTeDQ8L2coeO8PyK0kEc+Vhu89wGZfIDoxLKBPTK5OCuiPLMy71+01j 5gdUAPIgROE2K5KfePujc+AXetQU73D7MkET7tXvW29xLL4vVhoahn061cbTFO7suRcc YUZIfU31H7M6tNTiC4YWnR3Xdwq1VQH90p6axvlBCoit1T9qAFGgVv9zeuAlihT56kVx tJM8/WEpSmEKZSzKDafH4JPTyykSym28tdpoiA6QSQCYvpLrjHOArodFTU/tQ2HP03Uj Cahg== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=f1sXpB/ldHPBQkMrWpc9cKM6bbQ1+cEzMMxY2SoT348=; b=E/SD2D3XZrYsjK7nHQjQxVkEn3TOyOkFOsEVqxGzzoCXaaD66iZ/01rdzyXE8q/yPS ol3tqMmSl9ErlilP5cbz2tRtLSH3vmAUgdRgaJynSnp1FHRVjzNVSahgsW7Pvbf5pWGd Ye69ufF0J9zB74nCHwuEN7ihd5a9pkmmNOveg9IOeIlDKj2bNQUGuVIbrCrcqeyHwEId 6d7nQdrYeHkG9JMTqYBWNzOso4XF9HrOCOFmfXoKWVWbKytE+K/nOPMhaFz7RgMzV1Aw Ndyb1MNxzK9tfd/D2fxp1mEsbT8Uumf7iNTAl4foYfEdp9BvbgVtm8fxg/rkAZIUik65 k7ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=trVG+Vph; 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 dz17-20020a0564021d5100b0047bb02c3cefsi10591991edb.265.2023.01.21.14.56.30; Sat, 21 Jan 2023 14:56:43 -0800 (PST) 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=trVG+Vph; 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 S229875AbjAUWke (ORCPT + 52 others); Sat, 21 Jan 2023 17:40:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229578AbjAUWkd (ORCPT ); Sat, 21 Jan 2023 17:40:33 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7963623672; Sat, 21 Jan 2023 14:40:30 -0800 (PST) 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-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=f1sXpB/ldHPBQkMrWpc9cKM6bbQ1+cEzMMxY2SoT348=; b=trVG+VphLGnzZD2GeyrkAXKlN+ l+bjro69F9+NpltjaOM1iA4mDQxjUqF62/ZMIk2FKh1e6Gv8jiXgT+2glgfP2iujDwozmUiEhkCRl 3vBBNpPvjKhPYTTLkoUOEJ/Lp9JLfXfgmhKYVxOHfaZXREb37bdXSI7+tMI1NFzluzwWxq8/QH4KG 2rttHa1Sz4haee+hwLf3W9lNg6PDxvsUo8bFfzgDU9FxKRt5E0AxpvziZ1IS+yAfVgkVxCiYL4vUe soyiawRq09F0C939BXFdQeMmmcMkPpaPkZYQSZFunynYbIysaVtOvZqm3hi/5JL8ZvsL5MYlhBEIc 4v8NUDCA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJMX6-00EcXk-4M; Sat, 21 Jan 2023 22:40:20 +0000 Date: Sat, 21 Jan 2023 14:40:20 -0800 From: Luis Chamberlain To: Petr Mladek Cc: 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: <20221205103557.18363-1-petr.pavlu@suse.com> <79aad139-5305-1081-8a84-42ef3763d4f4@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Luis Chamberlain X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=ham 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, 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 But using xz compression reveals 4 GiB memory is not enough for kmod.sh test 0004, the -EINVAL is due to an OOM hit on modprobe so the request fails. That's a test bug. But increasing memory (8 GiB seems to do it) still reveals kmod.sh test 0009 does fail, not all the times, and it is why the test runs 150 times if you run the test once. The failure is not deterministic but surely fails for me every time at least once out of the 150 runs. Test 0009 tries to trigger running kmod_concurrent over max_modprobes for get_fs_type(). I'm trying to test to see if I this failure can trigger without module compression but I don't see the failure yet. Reverting the patch on this thread on linux-next does not fix that issue and so this has perhaps been broken for a much longer time. And so this patch still remains a candidate fix. Luis