Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp774268pxb; Wed, 8 Sep 2021 12:02:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoFk+9XPB8y4D9YI3oHWBIPUHwo6hHYYlYSWqKmc7GQxQHv5t30Cw2xnlT63b7Us3DWfKg X-Received: by 2002:a02:7709:: with SMTP id g9mr5266199jac.104.1631127733783; Wed, 08 Sep 2021 12:02:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631127733; cv=none; d=google.com; s=arc-20160816; b=egKmrG4BUlzim5A93n8wC5gFTCnVoV1GXXBABYPoZ2oZN5c2ytdfnxd5eJwl4u1pEG d/+9D6869ozOcQzaS5Khj9MJjbG+kRsChSYthLs80oAZpzmeefeXe0HNmtNbjI2/cE4A kDAjzM6CBzqWG7EnYGJI/3TNLLyJl15o6NQ+3KdB57lKMhkmBmayO2cD9jwfRgpxvSM1 Bd/PMFlmIgTNnyZvwtCYgFQHgSm98Uk/Fi6OzjxaOJKpK7j4zw9HtLc+zn5XL6BclyQL 4CIFOUQkOpbLSOw3HV2K5OY06gFXRnv2cgBN/icR5YhC2gAMhTFWrEMW5H1eqKMIV3HB lqIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=R1V00rL3dMr2J4zT62rZi14Y7GO7EsmbyQDqyX63/HM=; b=ujgHbnH22sYfvzdhlzZxoipP+tvxZCULTF7NBVt7bz6BDo3Pl8+ZdD3BrvTnKVPVr5 Gr3i84t3w1ZR0hwndPDgOJJJktK4bnfS22MHlBqxZ/2K63RP6c3QIuhO/Rtb8nqrLqZh SuvXweqrxBqOae9XCjRnEFth5xrHxkWfxHjQbHmmbSx48xWlKeY1ejBf5y335f5IL9f/ 6bSbse1h3QCVkQQVrQ1fa2iqqYdIbuvctVhMbc6U9RQqZsk9oD6+64a8TcQIHodklhvo 1LZh7XOuA1ND9kPKhkW3VfADVCXgM74PxuDw6AzQxrz3vG/q95LlDWCGtIqe9lAmyzEN iP5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f10si2709624ile.158.2021.09.08.12.01.55; Wed, 08 Sep 2021 12:02:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1347558AbhIHQN2 (ORCPT + 99 others); Wed, 8 Sep 2021 12:13:28 -0400 Received: from mail-wr1-f42.google.com ([209.85.221.42]:36405 "EHLO mail-wr1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230091AbhIHQN1 (ORCPT ); Wed, 8 Sep 2021 12:13:27 -0400 Received: by mail-wr1-f42.google.com with SMTP id g16so4135908wrb.3; Wed, 08 Sep 2021 09:12:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=R1V00rL3dMr2J4zT62rZi14Y7GO7EsmbyQDqyX63/HM=; b=7Xeb0cdPwAiRdkB6mtPPiEj9MbBPmGVbx+LzknxUNRO37gb2FbcIC2iEI4w5gCwfx7 SfwryGKtyZfaAZH2Oo9cls1+0TbL8EtzaD8DSOiYwKukcbcMazAwbo5aBQuqfLF7TBap iwLZ2/39c8ldVr/mtB1XJP6FpR8tN8i3OMJPv78Dkr6Hr1GVEKADBZJ3/PFoka5cmgPG 1i5GWtiq0ebBrDXyPnU9dAwIoZPz8GYsvykx4Y6nvHpNDnSQEpmOlnEZaMREUvkcjAio CJvmLeDVMDzJx1cTrfEY4T84+juNiYpYt2UGVFSN8xUN3BtAuanYYHhx8JdpkAJ2rQkw V1Lw== X-Gm-Message-State: AOAM531t7HVoDnnP/NZh1P50hK2ZRgXbl9FtvcFQheA1HdECqDLyY5an oDAo0AkHN823V9RrcFRoZAI= X-Received: by 2002:adf:f507:: with SMTP id q7mr4971172wro.7.1631117538860; Wed, 08 Sep 2021 09:12:18 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id p5sm2795750wrd.25.2021.09.08.09.12.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Sep 2021 09:12:18 -0700 (PDT) Date: Wed, 8 Sep 2021 16:12:16 +0000 From: Wei Liu To: Linus Torvalds Cc: Wei Liu , Naresh Kamboju , Mathias Nyman , Johannes Berg , Jakub Kicinski , Shuah Khan , Brendan Higgins , Ariel Elior , GR-everest-linux-l2@marvell.com, Linux ARM , open list , Netdev , lkft-triage@lists.linaro.org, Arnd Bergmann , "David S. Miller" , Greg Kroah-Hartman , Nick Desaulniers , Nathan Chancellor , Daniel Borkmann , Alexei Starovoitov , Eric Dumazet Subject: Re: ipv4/tcp.c:4234:1: error: the frame size of 1152 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] Message-ID: <20210908161216.jn3ppqslnavhjr4z@liuwe-devbox-debian-v2> References: <20210908100304.oknxj4v436sbg3nb@liuwe-devbox-debian-v2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 08, 2021 at 08:59:36AM -0700, Linus Torvalds wrote: > On Wed, Sep 8, 2021 at 3:03 AM Wei Liu wrote: > > > > Thanks for the heads-up. I found one instance of this bad practice in > > hv_apic.c. Presumably that's the one you were referring to. > > Yeah, that must have been the one I saw. > > > However calling into the allocator from that IPI path seems very heavy > > weight. I will discuss with fellow engineers on how to fix it properly. > > In other places, the options have been fairly straightforward: > > (a) avoid the allocation entirely. > > I think the main reason hyperv does it is because it wants to clear > the "current cpu" from the cpumask for the ALL_BUT_SELF case, and if > you can just instead keep track of that "all but self" bit separately > and pass it down the call chain, you may not need that allocation at > all. [..] > > That said, if you are already just iterating over the mask, doing (a) > may be trivial. No allocation at all is even better than a percpu one. > Yep. I just wrote two patches for this approach. Wei.