Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp191518rdb; Thu, 2 Nov 2023 00:04:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHgA1bc+vNDOTubQIT2aEZTE4x2wRB5/VWUq2j5u0a/Um0DVTtMTUMZhzVKa4JdAEQt0Bmu X-Received: by 2002:a05:6870:a9a1:b0:1b0:649f:e68a with SMTP id ep33-20020a056870a9a100b001b0649fe68amr21719515oab.25.1698908650067; Thu, 02 Nov 2023 00:04:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698908650; cv=none; d=google.com; s=arc-20160816; b=shiX8gULdmRjB39nLhNTb0YwbxwUeBtqpj9HeMX7zwAiArmA5Qcx5LGAO8hvtMQzdV VJZzhnZG6Tg412JyQsVia6sFvDOO4YkQbHkCkdLmm8f5TuNk5+PKpMlAHN6dnZyG4n08 3g2CuLGNCAgK4dCHVMeLjqQy4dORH6/s6Hfw/h1KZ0pb8iCc1LUYIlDy9nLVo/33H5jm kPB/YI/4PKkGshb9Infhk3ENne728bVie2SVHihE19YPNa/Bv8cH5TpKRAHejhpkvabM qwdTN2HjLeiNILs3T6wU6HXpKDJcTObNK/Tx8HafkSrWx2dlS7xQqwKS0auGGIZMYmZU 1azQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=V3nhXdUPcKAOv9+XK9xkbhx4vVS0XEkJFjF8wpYBYas=; fh=UTHIrACfCapN2CjePvwZNLsCbVibC17WqekrrFy14vg=; b=HPmE69iYkiBo5M6HYwAuLGyr+1x3Zv3peDrcyF8YVjLzFzQiZTgGhdBhl/0z3r+wM4 YZCTEdD48olGLkIY1EAasQTVjEJz4CqcwfhAXqhA3Zy1SlkAPoDgZ83mTfFx4AgqsT1t qA2kyiiv/herXgdAlwbHDJATTYAplGWpGU6ZwpmHK7pcuDKnxDRRTpgcrR7CfGwOOKim xyzmcmRe46354wn+96ciANG/BjCXKDUiE3X3Wltb2UBYQTzphj7YBbp7FvbuKoK3ov7H WAelk0t+B8+QhyVHMAn8WEv8GCwICSrLHCXAWXV0pj4i89khumVeB3hhWj1KkM8cKWWK KkVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=PZvkTZLS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id m9-20020a654389000000b005b8f446408esi1239091pgp.120.2023.11.02.00.04.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 00:04:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=PZvkTZLS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id C4E9B801B65B; Thu, 2 Nov 2023 00:03:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233483AbjKBHDT (ORCPT + 99 others); Thu, 2 Nov 2023 03:03:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjKBHDR (ORCPT ); Thu, 2 Nov 2023 03:03:17 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAC56123 for ; Thu, 2 Nov 2023 00:03:11 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-99bdeae1d0aso88292766b.1 for ; Thu, 02 Nov 2023 00:03:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1698908590; x=1699513390; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=V3nhXdUPcKAOv9+XK9xkbhx4vVS0XEkJFjF8wpYBYas=; b=PZvkTZLSCjzskNRrUu77F7RNNcqYyUyt7u0oST7Mq66TkkW0RP+vwQ2X3PcwIJPDpR MZnHXo23TgwSmDJ/eEx8gssiH70/OrDUC34xXCxn4KZhgRLeyUvopPQeh6UsTbBGjzfe MQuTHWVMF6/xGwIoRbPXyJJypr5iwP+hJ3Q3M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698908590; x=1699513390; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=V3nhXdUPcKAOv9+XK9xkbhx4vVS0XEkJFjF8wpYBYas=; b=MsPKpPH4viXOWpZbkddOjXl69ejRyX5b4eqmouUpy2jJCOt6uWxLJEwQIPyVM2C5IZ n0wm4q+BgZS5Zd2rqiFgJ8q8qi4v0GPEMHy2QKH7E00CAmVbMgVp9R/r8kjqZv5SJB8s e54oiGa+DBLiJO78hAoYZyOC56+E8r2jauvqO1W0jvrE9i5dHC+2aMLn2HA5k2DKdZM1 k1NnnRsgeQLAWSwQbcgigLITdbcs6aO2rel2kX4VRvSnIYz5DIbf3X933q+qLAA45PHm UvNiWhggLYTdeFjYOWYj1vXxsXpKGCFaycdlrFxj5hkSO4WGk1Adz4sh1dkE96sG9Gyn BcCg== X-Gm-Message-State: AOJu0YxXiTNmeigoiBEEaMK8Us5h02wqJpYIad1Gwpr5I3Z0gUn98DdZ gfdSV74ZFMy+NIeTJMw2hh2517T3v5oDDgZ3oyTpyDbg X-Received: by 2002:a17:907:7da6:b0:9a9:ef41:e5c7 with SMTP id oz38-20020a1709077da600b009a9ef41e5c7mr4385878ejc.8.1698908590200; Thu, 02 Nov 2023 00:03:10 -0700 (PDT) Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com. [209.85.208.53]) by smtp.gmail.com with ESMTPSA id p26-20020a1709060dda00b0099ce025f8ccsm761626eji.186.2023.11.02.00.03.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Nov 2023 00:03:08 -0700 (PDT) Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-54366784377so866595a12.3 for ; Thu, 02 Nov 2023 00:03:08 -0700 (PDT) X-Received: by 2002:a17:906:4fc8:b0:9bd:ac0f:83dc with SMTP id i8-20020a1709064fc800b009bdac0f83dcmr3363405ejw.54.1698908588450; Thu, 02 Nov 2023 00:03:08 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Wed, 1 Nov 2023 21:02:51 -1000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] Modules changes for v6.7-rc1 To: Luis Chamberlain Cc: linux-modules@vger.kernel.org, patches@lists.linux.dev, linux-kernel@vger.kernel.org, andrea.righi@canonical.com, keescook@chromium.org, zhumao001@208suo.com, yangtiezhu@loongson.cn, ojeda@kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 02 Nov 2023 00:03:46 -0700 (PDT) On Wed, 1 Nov 2023 at 10:13, Luis Chamberlain wrote: > > The only thing worth highligthing is that gzip moves to use vmalloc() instead of > kmalloc just as we had a fix for this for zstd on v6.6-rc1. Actually, that's almost certainly entirely the wrong thing to do. Unless you *know* that the allocation is large, you shouldn't use vmalloc(). And since kmalloc() has worked fine, you most definitely don't know that. So we have 'kvmalloc()' *exactly* for this reason, which is a "use kmalloc, unless that is too small, then use vmalloc". kmalloc() isn't just about "use physically contiguous allocations". It's also more memory-efficient, and a *lot* faster than vmalloc(), which has to play VM tricks. So this "just switch to vmalloc()" is entirely wrong. Linus