Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2718480rdb; Fri, 22 Sep 2023 06:45:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEd67r5U38sL1JnzTPU4mQh8K7eDuN1nmMkKqIGW60BX/CMLwP5edJi1RwSzt5M8HebsJCD X-Received: by 2002:a05:6a20:1444:b0:140:2ec5:2bd3 with SMTP id a4-20020a056a20144400b001402ec52bd3mr3883084pzi.27.1695390357546; Fri, 22 Sep 2023 06:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695390357; cv=none; d=google.com; s=arc-20160816; b=uYJGWMtdze3BCo18uc83cghTGcvQfaU7T/gzdmlcjQM02l7Ss9kSPONWxBDfFDpffF 3li7Qei3X/iSkvIU1vricF2qai9EcUUXDiGfZp/Pu4lswA+K0r6RXvSv+7xY6h63YQet vtFWN17tL84hP01892eqd9OWKQ3WuDzinBPVM0tzYOfOOoo57RDyaiAbWeI9nzTa1zbg RMX9REhthwUs7DUtHbJ5cq4da+QBulUT/3eswNTBNLKkBwXF/Vfr9wVmFIwS65ZjUAXD RiYDbI3aOos41AqeD2S2uGGlv2OllpXkr8Va8CXsMTNYrpjJykZANFMc6K89AjXsLXjT UiLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=CxSs54m7Vqb2i5tMpwwSHGWo3+l0xpTK9I+U8Cfqs34=; fh=I1YS8ncQkfnMrBuPilHN1U1PzCjw3KdVL2ZRPZSLICA=; b=Ekg+mOINT6be7pkTHczIQpxN8hmpd//+xf1GK1g8suI2tL9Y/xzyPOQ4J1aTol5K90 Tlsi/LlbLnVDbLA3ESl0hERGdAC9CzINaGMHrm+fMmtWVdqdYxl6gQ2cP67kf77PPJ+8 Kp52uJYFRsD7KWIIu6IYvJIsq/FHMMWYFw8aLxzi4eX0VwIoOaqzgHtT3Nikvryf8Glq 8CKQmbWiFiEB3yGp3OVcQOKPXPtga20QDBboLrco5uXJVCY+wZ3Q4eMeFbbSf2jRnBis Wzo3qLbtxjPzw9dtCb4uw6ezpDz/obRU9isbpPj3PhfiVZOrwdw9bOqnuTYZauTL/Xb1 xyYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ewHSFyZW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id y5-20020a63ce05000000b00573faa3bb3csi3886942pgf.307.2023.09.22.06.45.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 06:45:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ewHSFyZW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 55867801D087; Fri, 22 Sep 2023 06:35:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234107AbjIVNfQ (ORCPT + 99 others); Fri, 22 Sep 2023 09:35:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229989AbjIVNfO (ORCPT ); Fri, 22 Sep 2023 09:35:14 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF7FE194; Fri, 22 Sep 2023 06:35:07 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A237C433C9; Fri, 22 Sep 2023 13:35:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695389707; bh=hFU2ZNAaYrMwRcX66C2zAAyeU4y4hucIP2xCW7j7hEA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ewHSFyZWOi9bugrv7zDFugE5i45UWaM64191GjsAkXcELJ60M0dOQiQkkQWKF3TnW QP49rW5IY9NUtuDTPxlYFVlnRFpqeizKcGgfgoxC7RMAdVwdWbW/qVOaxAaeqbTPRK QDJRhHHR+zxHKuMt9XwiiA0tpWNVjpNhR0pgVMiez9zxNMahYxWb+iidfHNFZ7kYT3 R//XA6z0z7vJsdJasNM5ubYxNhI5/AMVHJC00zjkW6cVs686zL05LvdIvt7hyn3SsK cnkmigSK7TDYlRInQk+XtIPjMNwLc8I1yI6tUWvHmTVnvaSX5KTtou5/YEBI8YdRhO Wsae8uxqtMWzA== Received: by mail-oo1-f42.google.com with SMTP id 006d021491bc7-57b9193b1aeso69337eaf.0; Fri, 22 Sep 2023 06:35:07 -0700 (PDT) X-Gm-Message-State: AOJu0Ywk2RaHRM1uONG2nHy3pjNaUGqFCo5s59Mpoxf3sVqr3i4x/MBK QHE7TohZQ/hG76SnUYJucnD8kJwv7TsC1unDEq0= X-Received: by 2002:a05:6871:54b:b0:1a6:cfcc:befd with SMTP id t11-20020a056871054b00b001a6cfccbefdmr1764941oal.5.1695389706789; Fri, 22 Sep 2023 06:35:06 -0700 (PDT) MIME-Version: 1.0 References: <3d34a965-ab9c-d549-0c63-c717ab5d2edc@tweek.dk> In-Reply-To: From: Masahiro Yamada Date: Fri, 22 Sep 2023 22:34:30 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Use CRC32 and a 1MiB dictionary for XZ compressed modules To: Martin Nybo Andersen Cc: Tor Vic , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Nick Terrell , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Lucas De Marchi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 22 Sep 2023 06:35:21 -0700 (PDT) On Fri, Sep 22, 2023 at 8:04=E2=80=AFPM Martin Nybo Andersen wrote: > > > On Fri, 22 Sep 2023, Masahiro Yamada wrote: > > [...] > > > Hello, sorry for the delay. > > > > I am OK with picking the patch to my tree. > > Hi, > > That sound great :) > > > I think we can use --check=3Dcrc32 --lzma2=3Ddict=3D1MiB > > unconditionally. > > > > (But, if the in-kernel decompressor is improved > > to understand CRC64 in the future, we can loosen > > this restriction again.) > > Of course. > > > Just small change requests. > > > > Please do not use the Fixes tag to point at the Debian bug tracker. > > > > > > Instead, you can do > > > > Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1050582 > > > > or > > > > Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1050582 > > > > > > > > Also, mention that this change happened in > > > > kmod commit 09c9f8c5df04 ("libkmod: Use kernel decompression when avail= able") > > > > in the commit description might be helpful. > > > > > > > > > > I added Lukas to CC. > > He is the author of the change on kmod side. > > Is this ok? Yes, perfect! Thanks. > > Kmod is now (since kmod commit 09c9f8c5df04 ("libkmod: Use kernel > decompression when available")) using the kernel decompressor, when > loading compressed modules. > > However, the kernel XZ decompressor is XZ Embedded, which doesn't > handle CRC64 and dictionaries larger than 1MiB. > > Use CRC32 and 1MiB dictionary when XZ compressing and installing > kernel modules. > > Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1050582 > 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 =3D GZIP $@ > cmd_gzip =3D $(KGZIP) -n -f $< > quiet_cmd_xz =3D XZ $@ > - cmd_xz =3D $(XZ) --lzma2=3Ddict=3D2MiB -f $< > + cmd_xz =3D $(XZ) --check=3Dcrc32 --lzma2=3Ddict=3D1MiB -f $< > quiet_cmd_zstd =3D ZSTD $@ > cmd_zstd =3D $(ZSTD) -T0 --rm -f -q $< > -- > 2.40.1 --=20 Best Regards Masahiro Yamada