Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2560344rdb; Fri, 22 Sep 2023 02:06:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IERiujrvQw+DwP3+z2bmqdrq8jUnx8w7GMTiG3sScANa2q+6GVDwYpvBc4XmdvudgoBN8iR X-Received: by 2002:a05:6a00:cd4:b0:68f:f741:57a1 with SMTP id b20-20020a056a000cd400b0068ff74157a1mr9116502pfv.7.1695373603848; Fri, 22 Sep 2023 02:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695373603; cv=none; d=google.com; s=arc-20160816; b=igU6nApYLYmSfFZQLCZQxSndcmZDCaFUIX1PT3N6Wo1Pr7nmsas0daaGeMX8RuZ9IY RUpfKXH8Bl5DzKz6LOwTNJZEWoHbnVfYZlH6557S81U9VQY3P/P8xHZ41oyF8h2RY9UB 1RpGADIDrMBvTIfdFYRqNR1Y1MD0L8ngu5Dh9wPVIgPkKOptlTRKbtewLvw63JEXlbg8 QNbEyKX8pjrP8uszScLZokBtQmb/YWDwKMDXZ5Y0jvrgU8GxI2/E8B4uSYFrtGm/X9R4 l50KKTR7O+dibwxyODtZWceZcqTAgkO/uQ+EFX8x9sNgc+NmrilFzcR/zhJD8uZuWClJ 1KOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date; bh=ClJ7/GDbWrvYqrzwXM3cCkhBZvGtps+LmWSbAMnwoNY=; fh=vESxgQqrr4q0nyXTA84FHvmnaA2moDU1GCkjYe759Dk=; b=dZLbfsgw9R5dR4+9q6F0MICamm79+3eVdUh/u+9+I53e2qx2Mw+Dc2CLbZg4rEFTrd LDplloRz/bv0x5WwVZ+/q873jWM5+jT3WqDsQAVWO8KYXv1A1cRnNF+FCZEnlvLnlp36 +ahUQqQIXh2uPw64bVpYht9Pry+vKmMKMdsI2Ck5HDCpo+Q/I4lJdVS/MGUiFdsv24o7 OHwSE++T9L3mGe2UfEgOEBWRx2QGnYmAEyooEHG5s2r5GseFIuaoPBbVJ3M0kLXyHAEe bVRH3HVf8PT8fLLh3fJJQWA7rMa0YqC1NoyN16BihLsHT9VnySrKUL0OFN/mWTe/I4ZC jrPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id bv8-20020a632e08000000b00578b6e32b58si3302596pgb.400.2023.09.22.02.06.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 02:06:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 7E52F837468A; Fri, 22 Sep 2023 01:52:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231814AbjIVIwZ (ORCPT + 99 others); Fri, 22 Sep 2023 04:52:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232494AbjIVIwY (ORCPT ); Fri, 22 Sep 2023 04:52:24 -0400 Received: from mx.tweek.dk (mx.tweek.dk [13.53.76.2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D50EBB; Fri, 22 Sep 2023 01:52:15 -0700 (PDT) Received: from tweek.dk ([192.168.170.2] helo=odin.tweek.dk) by mx.tweek.dk with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qjbtK-000Axq-2f; Fri, 22 Sep 2023 10:52:02 +0200 Received: from tweek (helo=localhost) by odin.tweek.dk with local-esmtp (Exim 4.97-RC0) (envelope-from ) id 1qjbtK-00000002HH2-24HI; Fri, 22 Sep 2023 10:52:02 +0200 Date: Fri, 22 Sep 2023 10:52:02 +0200 (CEST) From: Martin Nybo Andersen To: Tor Vic cc: Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Nick Terrell , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Use CRC32 and a 1MiB dictionary for XZ compressed modules In-Reply-To: Message-ID: References: <3d34a965-ab9c-d549-0c63-c717ab5d2edc@tweek.dk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1463811414-1003633596-1695372722=:541272" X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 22 Sep 2023 01:52:30 -0700 (PDT) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811414-1003633596-1695372722=:541272 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Fri, 22 Sep 2023, Tor Vic wrote: >> >> Hello? > > Hello, :) >> Anyone? >> >> Best regards, >> - Martin >> >> On Fri, 15 Sep 2023, Martin Nybo Andersen wrote: >> >>> Kmod is now using the kernel decompressor which doesn't handle CRC64 >>> and dictionaries larger than 1MiB. >>> >>> Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050582 >>> Signed-off-by: Martin Nybo Andersen >>> --- >>> scripts/Makefile.modinst | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/scripts/Makefile.modinst b/scripts/Makefile.modinst >>> index c59cc57286ba..ffbafbd3aeea 100644 >>> --- a/scripts/Makefile.modinst >>> +++ b/scripts/Makefile.modinst >>> @@ -144,7 +144,7 @@ endif >>> quiet_cmd_gzip = GZIP    $@ >>>       cmd_gzip = $(KGZIP) -n -f $< >>> quiet_cmd_xz = XZ      $@ >>> -      cmd_xz = $(XZ) --lzma2=dict=2MiB -f $< >>> +      cmd_xz = $(XZ) --check=crc32 --lzma2=dict=1MiB -f $< > > I wonder whether it should be guarded with > ifdef CONFIG_MODULE_DECOMPRESS > > But on the other hand, the difference between 1M and 2M is likely very small > in terms of compression ratio. That would work, since kmod decompress the modules in userspace if CONFIG_MODULE_DECOMPRESS if off. What I'm aiming for is just that the kernel should be able to decompress its own modules, when it advertises it. Cheers, Martin > Cheers, > Tor Vic > >>> quiet_cmd_zstd = ZSTD    $@ >>>       cmd_zstd = $(ZSTD) -T0 --rm -f -q $< >>> >>> -- >>> 2.40.1 >>> >>> >> > > ---1463811414-1003633596-1695372722=:541272--