Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3120523lqo; Tue, 14 May 2024 23:26:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVxphGpv8SToTPmNSRuyJktWZYPCrRh7YQxwgEATsvYa5YCjaEs/HJ+qx6PP/N4FVuRp+Zt+4dJWhFH3OvmbKC+X0gP0pWfDKRmobUQhw== X-Google-Smtp-Source: AGHT+IHWxCMvI5UlGYh/kQZ3m9PpuS+VM2WwcG1EvgeBUDY6GmsfpoZG3GcxGJ3olurCzWBYZw3y X-Received: by 2002:a05:6122:1807:b0:4c8:ee1:5a0b with SMTP id 71dfb90a1353d-4df88366153mr12774917e0c.15.1715754405944; Tue, 14 May 2024 23:26:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715754405; cv=pass; d=google.com; s=arc-20160816; b=Za+FDwt2CmXO4lC470NfjKiw9dVfya3+QumJp0c+NzxG8QTFhzsN1IxVWFPDSjXTul BtnqVBS6g1LjlfzvCMnHEhS1dqJFtDUGowtlnf5S8GWJTO5JAD8HzTmNombvAkcUEXGz 1A3kwGJXL+1OCD6XzdUGv6WmF3XZ070K2cvez1YWmmarwpUpgvcFXyfiQwbk3K81bOOr 9sWsUDmX6/Gfc9iuJG+I/EjJlkk49YTmkm7ZozkFODUAfXzrz8O4U8t/63iYCyQycrS8 POKcpPZDzICM/YnVvHmbv58WSJ+LHq0DM3+PWo9Dep+Pj4/nabKAwFNZ5FLvYj6zKw0x Kxiw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=FNSS98dUDgaOW4gwnCppO+ukaIIrb3BrPgBTEKeKqig=; fh=Ob7HIdjbQdZGG64uWk1GgGwaO9OpW59JJLrEcYhB7Wk=; b=Y8jUxE0WkPtVeXOcYpVupgmDH27W7ldojAsBd0wEuJ3h6SU/85GL5vcvssF03RXd9n h+Arn6UtPeUD5xhrjbY7qI9wL4qZtLDzEcSmu8CQGCTYCfFz4VfCAmdDA/mylY8thVgr J66P29rs+tboBZwFMl8wkl9rxsQrsJXUUm+iBPkw/BOWM3Rcp+LSI2o3K1pylxKVMV8z OvLjL8pAllMDLz3Jmn8dsrcz61/iZW1guuCE7EBL0Zt5f8kbkUqnETU+Bn/hzOiiBaSK ZJ4ml036+ev+E4gBCyEycBC9B5L9DnecMPyME4vqi2Adauk2kw9mDTmntWQTng4iZ8eG QO9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GdcrR6x9; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-179519-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179519-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf33b127si1296966185a.413.2024.05.14.23.26.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 23:26:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179519-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GdcrR6x9; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-179519-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179519-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 93C6C1C217C8 for ; Wed, 15 May 2024 06:26:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08DB73C460; Wed, 15 May 2024 06:26:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GdcrR6x9" Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) (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 E766F1E869; Wed, 15 May 2024 06:26:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715754394; cv=none; b=BsL72DDtN1BGZmnB3dGaklJpnvCYJ2IZjFQuhFzY8km0ZKViU0SSt72NlKHYXrP7CR4M9G4XiEV1Uc5NjBrlNbV48Kac+sgnjOWpfRXFLZSqUonnFFiHEp2AfCg2TjnaJOKo4Rhor6ENaEZ7eqnNkL3P2lGxI6tENOzl5/LXotg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715754394; c=relaxed/simple; bh=wEmn7uinhHT5RrRKL1/oFUCkOWbFeSQCbSn3qfR9dns=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=qXXwuBJgbdujSCOBRz4nv5lowe2DZ5c7xIRlURj7gMg6iv7HktA366ER2VXiXxNpiUru4/+oBB5Fk14kxoJQNQT1vh5ESNhppIEdlMOObTWIMgnatL96Y4wCp8uyLiv8a8oo1+hOzbNSa+yvcF2Sz4I7uYoRABm2IpxCsOs934Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GdcrR6x9; arc=none smtp.client-ip=209.85.215.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-5dca1efad59so4858469a12.2; Tue, 14 May 2024 23:26:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715754392; x=1716359192; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FNSS98dUDgaOW4gwnCppO+ukaIIrb3BrPgBTEKeKqig=; b=GdcrR6x9xSz8T2/Opqlm2yTxt6khZ2ndshOHMQWbAJE6b4iGFJ6krmCN/fRykOeDme XX8n93Mf2d+2wqi316cScc8T7D7gX6hOQDppNRLq7Ka6xiI3r70TV8L1J4wHiD+9aPAc ry0A8ZmW9ulzaDchTfGcFWIoGfERKtKSOcGOVUVqeNcvMR/4Wl5OrPPoPQw+bkiK/XWB pIN0l+qbr123/xaTK+61o1fvx0vQB+GR7lL0Rg3sBwqJDBttP1opfrqPCp9mnILv4jAR T5ygsWAelHa6CIzUC8VgvasIIKVzR4lx5TJ7IBnTXNIcBeXCWvPOMtzZX8qT13AIJu9C g2dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715754392; x=1716359192; h=content-transfer-encoding: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=FNSS98dUDgaOW4gwnCppO+ukaIIrb3BrPgBTEKeKqig=; b=EAWOc+YNIWey21qvOG2uCSRxpLb+W1XcB3r80w+vpgpLtEdt6/ZXxLWa8bdo8LvEm3 5uRIGLrBcF0NC1RwsxdsbM2w9h0Md3VGPsYxoRwWNvHcsZKLQqkwyp3L4lNAuKPl6h6p zpCwFZr6C6u4Bs6SnqGTpHWwnQnLcJ0WwaF9syROzWcfRm/BeP4WTaBtv6p8EDYP66Wz QRGfIIFaT3ruTomcH7Y4q8rMakMFWdyZHKtXAam0oD4m3P2Vf+Tz/NJ+yqt+0jfGhPfl QGOa90/ORabt/XalAIB99YKrBQJacBuy5GYVpyCusJM1wRv6SDMzDdtUjUyIFYv+EAPu wWow== X-Forwarded-Encrypted: i=1; AJvYcCW6O5gDrSRuCdx1LYU7SOMzpvIu1K7+lMXQMaqJwdXSB67BVaG2l2H+q56q2oOUrSD8w0dnDg4S4jVoWhU3S44Rts6kPn57n9Z/djFSHN27WfQxRzwlz8QfXx0ORgKnEUTuv9RjWWvUk4ZEHATrzc7bnTYoARM/fkXR X-Gm-Message-State: AOJu0YyFd24wmQR+RWEG1w2F7VS909h/xOin3kQcBztp3wUyz9gHiag7 vqKUeVyIPU6Om1Gt1v9tmbmDtDKhwjvjF7Bz/CK1fghE9G2/ggNckeUUSB83LBnBJBhOyG4ynEd aUDbhn42MjjEZJefqDJpzURdlzXv/tw== X-Received: by 2002:a05:6a20:6f89:b0:1af:cdc5:dfbd with SMTP id adf61e73a8af0-1afde0d230cmr13773821637.14.1715754392207; Tue, 14 May 2024 23:26:32 -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: Andrii Nakryiko Date: Wed, 15 May 2024 00:26:20 -0600 Message-ID: Subject: Re: [GIT PULL] Networking for v6.10 To: Linus Torvalds Cc: Jakub Kicinski , 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" Content-Transfer-Encoding: quoted-printable On Tue, May 14, 2024 at 10:06=E2=80=AFPM Linus Torvalds wrote: > > On Tue, 14 May 2024 at 20:32, Linus Torvalds > wrote: > > > > Why does it do that disgusting > > > > struct bpf_array *array =3D container_of(map, struct bpf_array,= map); > > ... > > *insn++ =3D BPF_ALU32_IMM(BPF_AND, BPF_REG_0, array->in= dex_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. There is a special check for non-percpu arrays (ops =3D=3D &array_map_ops check), which was missed and not updated for percpu arrays, unfortunately. I've added more map-in-map combinations to our tests so this can be caught sooner. Good thing Jakub tested in our production setup so we could catch this sooner! > > Oh well. I guess the bpf people will figure it out once they come back > from "partying at LSFMM" as you put it. Not much partying today, but the day was still quite hectic, sorry for delays. Just sent out the fix (rebased on top of the latest net-next/main). > > Linus >