Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp33235pxb; Tue, 7 Sep 2021 16:56:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgGiGnPqnW1DqeCHszXGUMDYOgoQdtaXCJpFX3hnB3FLfXVVQHt58Hb3FXP6riEpie+rGE X-Received: by 2002:a17:906:68c2:: with SMTP id y2mr1021031ejr.18.1631058986937; Tue, 07 Sep 2021 16:56:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631058986; cv=none; d=google.com; s=arc-20160816; b=J1mNciXa5hZYd2+DnlP2app8acywmtYZqm9j3uc06ATvZ63XtiFJpDXHny9DtATY09 rIQJ32+l+GyFNUtrxE7bNed5H1mM+Wce40U84UfoOf6LqYldNEUlvUxd+iPOcEMI2dmT /61Myn+Kh63yS0N7cJBTD+8KA1ckaC0+6k8ZRSEVkmREYe/nofNMRsoNJhQi6KBffWR3 XAIyF6CYx6uEYpDFxkWwRdKS91J6amHHLTmAecMowaNZlGzzW/f5NTCcRiGbnUYP7YDs 8K6OV0Ad3X4qeuQ3YW86TCfMY+F96+GZFiCRGTw90K/0RDauo5yjygedXOySXTTnH6uy RRRA== 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=FECPoa1g9+9dsqYv+iSJV+4ByXKkIUfIRQm65q5XJsw=; b=EkhYrUBe149aUw4ioQj6x/OMT1lRO+KZ6U+PBQnmiqp3+6zynIHrxDH05SEuvp0Owz CplpOE6D6+KjUm9B5tzhntmd+uJtV8Yr0aUlxeLMD9Ng8ifngmC1uv04HJxG2aXeJC5J wRbsvHJgkzwcxbOSDSCwP1qYBQDcOIMUQupOokdPDYxZZFozO/KnisCjnfNvHFP62FOX WzBIXwHHztRk2A/oJvA9DKQeUGp0dZZaOwTKBD7U3Tync/GgEmGoUkX0MfXWCxjmctco vE/94kTjQPvI/jmpDhutOWwE2ApquhjUlTnpGPwkVCAD/j9KwH78oMiQnCKiH2loTMDG yr3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Ao7WGPwi; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w10si521616ejv.584.2021.09.07.16.56.03; Tue, 07 Sep 2021 16:56:26 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Ao7WGPwi; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345865AbhIGXvE (ORCPT + 99 others); Tue, 7 Sep 2021 19:51:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231519AbhIGXvD (ORCPT ); Tue, 7 Sep 2021 19:51:03 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55A70C061575 for ; Tue, 7 Sep 2021 16:49:56 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id d16so402664ljq.4 for ; Tue, 07 Sep 2021 16:49:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FECPoa1g9+9dsqYv+iSJV+4ByXKkIUfIRQm65q5XJsw=; b=Ao7WGPwitXn5c2MO++qjMMxGjpAW4tTnL7npoHAF64WOVVCHhaM4k6teVfuN4ScyVZ DPFDpWA0mMTLjTVQ5fC0lNRLA0OsawTGUn8vrhyPxXJ4s8mfA40FAyw4QDmZSav7D8UH kba8D7ntoNzi/CZ/5UkXctqbluhNzpNIYeTS8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FECPoa1g9+9dsqYv+iSJV+4ByXKkIUfIRQm65q5XJsw=; b=CM9lw6gAEAFAktyMVIt5Iz+V2TODc2m0JXUJl6w+0QrfQYaCH6ZQkWM/BtQDzT20bU nNVXHSOnitXxJZU56qDPBCbc94cTrCVQ5sFUImbSoERz3D3YCQLHuU1vEJGaRhwdltnZ jVXTJC0LjhXBtZdbxvMHA2YttqyY2JoptQlJSKnONB0XaSEXNB+4+YE4VEiAUR+emqpc eS75Lqyswfw7O4QRa4v5y20TBE6TnGBUnkxra14UwAwvjH9m+OA2ve/4pWZYe/SdDDI7 p1ayiB2Mo9utNKYfjROE7OPx/wJaX6x+pZgoTM2Hz0OL/UGIC/imNeWpNmAC03no6Qjc Ao8Q== X-Gm-Message-State: AOAM533y8+fSbnVcluz8y1MVTgOgVExKx9mUiQe2NyNO6FD+v6mncLwq N2ojA/+heAaqhpCec/htxx4e2hB//09dq3OIaV8= X-Received: by 2002:a2e:7005:: with SMTP id l5mr528574ljc.355.1631058594327; Tue, 07 Sep 2021 16:49:54 -0700 (PDT) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com. [209.85.167.44]) by smtp.gmail.com with ESMTPSA id t184sm34353lff.250.2021.09.07.16.49.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Sep 2021 16:49:51 -0700 (PDT) Received: by mail-lf1-f44.google.com with SMTP id t19so619687lfe.13 for ; Tue, 07 Sep 2021 16:49:51 -0700 (PDT) X-Received: by 2002:a05:6512:2611:: with SMTP id bt17mr662435lfb.141.1631058590780; Tue, 07 Sep 2021 16:49:50 -0700 (PDT) MIME-Version: 1.0 References: <92c20b62-c4a7-8e63-4a94-76bdf6d9481e@kernel.org> In-Reply-To: <92c20b62-c4a7-8e63-4a94-76bdf6d9481e@kernel.org> From: Linus Torvalds Date: Tue, 7 Sep 2021 16:49:35 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: ipv4/tcp.c:4234:1: error: the frame size of 1152 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] To: Nathan Chancellor Cc: Naresh Kamboju , Mathias Nyman , Johannes Berg , Jakub Kicinski , Shuah Khan , Brendan Higgins , Ariel Elior , GR-everest-linux-l2@marvell.com, Wei Liu , Linux ARM , open list , Netdev , lkft-triage@lists.linaro.org, Arnd Bergmann , "David S. Miller" , Greg Kroah-Hartman , Nick Desaulniers , Daniel Borkmann , Alexei Starovoitov , Eric Dumazet Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 7, 2021 at 4:35 PM Nathan Chancellor wrote: > > Won't your example only fix the issue with CONFIG_CPUMASK_OFFSTACK=y Yes, but.. > or am I misreading the gigantic comment in include/linux/cpumask.h? you're not misreading the comment, but you are missing this important fact: config NR_CPUS_RANGE_END int depends on X86_64 default 8192 if SMP && CPUMASK_OFFSTACK default 512 if SMP && !CPUMASK_OFFSTACK default 1 if !SMP so basically you can't choose more than 512 CPU's unless CPUMASK_OFFSTACK is set. Of course, we may have some bug in the Kconfig elsewhere, and I didn't check other architectures. So maybe there's some way to work around it. But basically the rule is that CPUMASK_OFFSTACK and NR_CPUS are linked. That linkage is admittedly a bit hidden and much too subtle. I think the only real reason why it's done that way is because people wanted to do test builds with CPUMASK_OFFSTACK even without having to have some ludicrous number of NR_CPUS. You'll notice that the question "CPUMASK_OFFSTACK" is only enabled if DEBUG_PER_CPU_MAPS is true. That whole "for debugging" reason made more sense a decade ago when this was all new and fancy. It might make more sense to do that very explicitly, and make CPUMASK_OFFSTACK be just something like config NR_CPUS_RANGE_END def_bool NR_CPUS <= 512 and get rid of the subtlety and choice in the matter. Linus