Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3076725lqo; Tue, 14 May 2024 21:06:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUPft8mW0zx0ueh1SqVl9j8etAiby02dGao1jsKBDR52Er5PXCsBW+rccePGLqkAmwluTfHyZu+Aabt6w5LNhuS1ZbaFvRnW3kxnTD44Q== X-Google-Smtp-Source: AGHT+IE0UyhDcJ/lKhGXixw6yZb7qiGOd6vuWntQ+DPz1wtQ/J/9l7O+0oMWGKI2KLQENiNs187e X-Received: by 2002:a05:6512:3f03:b0:520:9df8:f245 with SMTP id 2adb3069b0e04-5220fb7688fmr12487313e87.1.1715746000193; Tue, 14 May 2024 21:06:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715746000; cv=pass; d=google.com; s=arc-20160816; b=Vw9IGA+f45pHQKpXFyDkGAMjOXY5dlQdMGJ6VAmUt0iX4sMl3EQ+hrZHPKVO6gkZhs MowzPxD9Ibm0VEzi690jFTLKvc3a6XVzodZoW2iPs7j7Advy2DHprK0t92ji0FUImN7c cHLgYfZI9uTmN+zSB8/MA7UUhp5N/VCZD3b4oEJEV9r/3jmHhktyA1x11DmxDhDoB5Gz 2WtuKesF1GrYY0ZuFGAdIOcNr6YF6jkd4IJc/0yE4O5DaYXGi3Z7GDLcqY2CM743xy4j Ipl0yhs1UQeNcnuw+iMXK7Z7uxkYC+P4BIMoqPuOXeIb5PViUaWCkKwmKzmhfOT0Bik6 m9Xg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=+u4pNlcSDf7Fk1kCACrrWSs8MI1xPyfKcfZOZfur+Vc=; fh=IHQqofBbwILHyZGg7XOHGne+JtfwFYlD97uDjRqO1jo=; b=RXGX5/rOwBmAERANsuk605EM8HuMZSiqSFTfLgNJ90zn8IQvRQoXao6d8R4SmFpICx re9u/7erKWDWOuAXbueAUI+HmMfEJ/KvztMwf3KE00Q2pABw+eMpRKsrjhfCmqP2WTtj mBFF8ZV+m5m6cxI5zWYVgem+Pf0dSDOB6Rxa7Y3J76MYRvEl/DAxrGAro+KL5q5ukU/O FgRvCk7/Wl3+pDNHpLRZsezNIL+ysC56r15F6GsUKZGzgnz2kJ+9FJfiq3UFXnhO/VFY wP+M3nqGERNMeNF/3wwnkGcvUkhQpELs8E26Qojo0q0hNarQVJJlyiBYTDqNGawGUfkf N3yw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="ba/rrUgM"; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-179389-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179389-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733beac427si6777557a12.27.2024.05.14.21.06.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 21:06:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179389-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="ba/rrUgM"; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-179389-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179389-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E768F1F22EDF for ; Wed, 15 May 2024 04:06:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8792B38F82; Wed, 15 May 2024 04:06:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="ba/rrUgM" Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04E0038FA1 for ; Wed, 15 May 2024 04:06:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715745988; cv=none; b=jhdx2C0M/CAV8uy1bnM0tsyKAQoXWQ+NJE9d7aQoGq+wa4Uwpn9POktC50R8fjIj3NBV8iQnP6HESZlax4HkAUWSKkOs3SQNXgJ2DQBp5+sQr38594SGLk2bmb0iChOvEKBIn2R8HGS8+tLyH7BjU4rJ4TkONmr3RK/GipThxE8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715745988; c=relaxed/simple; bh=oDK0dZjxuFm0H+MXlbyx+nVtTUik/dIpxYkVCNyTtUw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=SDhlSqxlU/yFNeFL5dQsO4ZYWaZ7QhC6fH8pd0RpdLIs/6dL2o2q+XTru3L+3Eo9X2yrt8FTplwRte24BhA37sfgrLFQs6rqqykKLeqWH86TyEfTbSFEyqYWQpcv4VZjXTkY0opO8bR09a0rczgqc3N89xReAHaIS/kZGxZ32X0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=ba/rrUgM; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a599a298990so135978266b.2 for ; Tue, 14 May 2024 21:06:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1715745985; x=1716350785; 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=+u4pNlcSDf7Fk1kCACrrWSs8MI1xPyfKcfZOZfur+Vc=; b=ba/rrUgMqTY3COfZZjp0hpAesSpYB71Oi6ydTUngd4rWDWzhCFGmaNI5K6Bi1nfxmw h9KKZY3XlUYkn7IbXDib1H0auNWB2+ZPcVEjKJh39ZUygevs4kXjA/cYkR8QXJMrpGI7 yPAUe8xfCRBsFcMkkQ9fcCq65dMvLhpUPhDm0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715745985; x=1716350785; 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=+u4pNlcSDf7Fk1kCACrrWSs8MI1xPyfKcfZOZfur+Vc=; b=uh63z0FtHcNgKBIVuZBrMNQ+CrIj7mBqmXceQX4kEmJYzQA/Vc2y9jcFaZIUapYYs1 +vnr5cobFnccj8K64dgoV26UrTr1o44RKMdQBtmXDJEH+pBohdcdBDiWVZSl7oj7vizA dbBKE2xcvFjw5z122bxtiOinTA0ZtGNljCM9S+kdUpjZSabJryiYw4n6SoM9vA1PZUXg Dg7pRT7FZNbmxKtLjRQK9/WoRWVj/qiuLnEtHt83kY//pFUt40QYQn13SUtfm2cEQV08 J/nVhc0B8LtSuQqvuf9ZVx41atzcmwd934KItI+WJK17zxKP8a6o8xXPrlLBmBmE7vrj ANOA== X-Forwarded-Encrypted: i=1; AJvYcCVjp24+uZ+xsiyI2uU40W+uycG48cI4cjQMOWdFAP4LrMmHZ3kwNGvuXnM0d7z8VPsbk4ppfqx0dmWZL98GuKJg7CxU+yENQYKQsSDf X-Gm-Message-State: AOJu0Yzne4hkzBDuCEes8p7cFW5//u0fmHsO07n+YxWdrvhPs0309B+1 O+ZynTxEvGYRoPw+BbHMsQ7OLckzt+4MWfDEHatlpBaHgR3Zpsc4NDVSAIe+NkpW17Vwg4LOnPy p77NVyw== X-Received: by 2002:a17:906:f296:b0:a59:c833:d272 with SMTP id a640c23a62f3a-a5a2d5356eamr1048514466b.13.1715745984956; Tue, 14 May 2024 21:06:24 -0700 (PDT) Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com. [209.85.218.41]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c81b4sm798177566b.113.2024.05.14.21.06.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 May 2024 21:06:23 -0700 (PDT) Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a59b49162aeso100259166b.3 for ; Tue, 14 May 2024 21:06:23 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCVYRaSLTnl6XB6ux1ZrYitl8PWD0TGBB6nYeCnW+TNhMse0ATekrbhS249BUjnW/LeFtkPYRK6BL52fB6gsk3Mk59Aw/q5SRiKkX+q3 X-Received: by 2002:a17:906:7196:b0:a55:5ba7:2889 with SMTP id a640c23a62f3a-a5a2d5c9f69mr956803166b.42.1715745983374; Tue, 14 May 2024 21:06:23 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240514231155.1004295-1-kuba@kernel.org> In-Reply-To: From: Linus Torvalds Date: Tue, 14 May 2024 21:06:06 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] Networking for v6.10 To: Jakub Kicinski Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, pabeni@redhat.com, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Tue, 14 May 2024 at 20:32, Linus Torvalds wrote: > > Why does it do that disgusting > > struct bpf_array *array = container_of(map, struct bpf_array, map); > ... > *insn++ = BPF_ALU32_IMM(BPF_AND, BPF_REG_0, array->index_mask); > > thing? As far as I can tell, a bpf map can be embedded in many > different structures, not just that 'bpf_array' thing. Bah. It still needs to do that array->elem_size, so it's not just the spectre-v1 code that needs that 'bpf_array' thing. And the non-percpu case seems to do all the same contortions, so I don't know why the new percpu array would show issues. Oh well. I guess the bpf people will figure it out once they come back from "partying at LSFMM" as you put it. Linus