Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp232290lqi; Wed, 6 Mar 2024 15:46:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWqEgzXAZDWA5LeI04LNMS0uHInQMUqgGb4VWKIvIALY5vDlUGwc1+O3TqefBv6/SCGh+9aMKIY0ElOkp7/UjvXXDFuBuzKdL/BZa051Q== X-Google-Smtp-Source: AGHT+IH84rgB5MBVurQlQH9+rIPpFqck6oc5ZpRBhBHJPi+hYjzPJf4d/AUVr1xRFsh62U+hSLsr X-Received: by 2002:a17:902:c085:b0:1db:b36c:715f with SMTP id j5-20020a170902c08500b001dbb36c715fmr5546211pld.24.1709768801068; Wed, 06 Mar 2024 15:46:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709768801; cv=pass; d=google.com; s=arc-20160816; b=yaFwxwB+NlYIvhbY+MDrTVuyS3gNm+3lVvNTHq9P2L7WFnryQxkA2PSG9kgsL8mPXJ wUcqKcKsrnD1s770NVj9f3RpMZ2txWUq3bNqr1AQUT1tds6rt6glKVjq4sQO/sE3X+ol wYz1qR05nIOTmikVNmAJtBR34VF25QkB3tjF2H3h4wypAJn6vRjtA1boXzdCg0ez8gWv 8v8K7tsf/b73P1BQM+O7SorMfYCptwfHY5GiDNGYr9zrM8Pcwq6IGDxzz5aiCDVt4GA3 uK7zG1ZpTvekmXOfXTI+jrUsxrOAHp89A/jykXock3HJQpwdKC2Z9iwsTNhRzVoMcWwP EylA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KXRCoET8aNW/39aRLX1D1ZOWhLKJAW+cDfFuNbY9XEo=; fh=Rc5n6SXLKykQ3SGC8tj8EQuZvDX4+zTPgcWorcCC4W4=; b=XucStaq9f474Amj/EkCDJwdK0m7XuI7Eyl9+SBgVSo8Ssm1qWD9MHow0noiRd1Ng18 K9RAoko9Z2fER0GqNMWuXa8GBZ8LwFocgEncg409fGDK9x7t7ZUcM16IbqYU695jhIQi Ogi4JgJX1IGLB0QeF9p98uCSs/jrch0ZU6dvFVr6vwOiD3cBR+ocTa+iCGPjksbDifRf EB7JM9unKd3dTF2g6/D9fb+FszJAePr1JQwqK/Dpr/GMpyOg2A86y8X8TR13yEjYzSxR rg9T/D22gWi5tiMNgo07XsImaL/LNlNWcXV1Sus8yXHI790xN3CeEfdwTj6rzbSBQn1v qLKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FmSbYH6f; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-94742-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94742-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h21-20020a170902ac9500b001d8e974ed24si12288996plr.626.2024.03.06.15.46.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 15:46:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94742-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FmSbYH6f; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-94742-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94742-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8F0E3B245FC for ; Wed, 6 Mar 2024 23:44:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8FBC4208A0; Wed, 6 Mar 2024 23:42:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="FmSbYH6f" Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 46E0F1D545 for ; Wed, 6 Mar 2024 23:42:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709768572; cv=none; b=YJhk4XGEQxeEfEcxy6Sv1aFq0hdWv1CYhyLQPdqRbdMPry+KMRUZKoPJ2AxmUi6XBow4wkbw27k1TS30w89oZbs0ad3kZMQLReIrdN4DnGJUovehTiUFYD8Zk/N6spb6vojN9AtUM5GU0cYRk/0/nBaifiMV4fkkC9RwSXn9J20= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709768572; c=relaxed/simple; bh=1uAjtmVUg8TOo5XCruda8HusbcghSINaRVyMFyYA2J8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AnNGUnp8xB4+b2SWME2jrU6V6otJ9+Hbc462zQpHPd6+TbhBySTmVuc4qszyVwPZssC8KyBJHNLjQQNsJu6M85C8u1fMSDDKCow/TLlLdCsGxtyasgnqiTN5J7dozZlZv2eBxVoDV8rpaFUynoHK+YXGwtPlp2DLpRh7UPj4Ukc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=FmSbYH6f; arc=none smtp.client-ip=209.85.214.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1dcad814986so2582515ad.0 for ; Wed, 06 Mar 2024 15:42:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1709768570; x=1710373370; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=KXRCoET8aNW/39aRLX1D1ZOWhLKJAW+cDfFuNbY9XEo=; b=FmSbYH6fycrBViC7DCGpYBQTBNKeiLm5BFgumllN9wfDs9gtX8DjA+H2k+7xsw3uZh dVDfu9e02ZMkLJebbKwQGddns31OuD4WcmFXqqLYzox4ntB6UaHyv9djld8SEyOQScJr /jvP+RRIS4GVngcdsgUr5JwcyrGtNEeWI8B9M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709768570; x=1710373370; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KXRCoET8aNW/39aRLX1D1ZOWhLKJAW+cDfFuNbY9XEo=; b=IBTcqyetFdkNL5gNF/2mG38nVC0ZshAuHX6Haw0/BJyyy64xLEkf0EpRl4XI3ix7L5 yqdZ8NYM16M4ow7aja972+Po7eRj43HIGfvv81eVq4+pMZd+iIAiyIvP++inH1NXsoam 83flwT8OifJZwsE5V+Uqa5+ugw0TCUCEEg/Xbu/E76xapH4uhZBTa2AEADQg9eTknQDg EiL+GcEx3WfkrYCB3I1MJX1EEFkAA70DaKgpnI+8RJNAtQaR7Ie04Z/fSrah2V9TxptS cJFv7UmzsTWFEs6ZK2JbrQw5mD/srOU58uLSRQn3cntsBWK/lAtlYfxLZLpWAN86KfAl uPhg== X-Forwarded-Encrypted: i=1; AJvYcCXixChICVrfQomu74Bo4cjWWM/BTJX8fRL1ZfdQP7XenHwHh5zR4o1Gs3TyerL3SnrzhZlmfGiTdgBasFhIrrHJ6SLv2yQgE+oPZ6cE X-Gm-Message-State: AOJu0YwerhrW1aY2Xz/g31HOc1DVDU0PNLwJ2KROKXoTdEFqiifC9zKg NN9us7Q5wSnSbeJDfj86t0Xs9PxZqsTLmXhQjNIkupj0zLtIAQKWhG1Hq7D3wA== X-Received: by 2002:a17:903:11c3:b0:1dc:d8de:5664 with SMTP id q3-20020a17090311c300b001dcd8de5664mr7564197plh.33.1709768570588; Wed, 06 Mar 2024 15:42:50 -0800 (PST) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id u3-20020a17090341c300b001dd0d090954sm7330904ple.269.2024.03.06.15.42.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 15:42:49 -0800 (PST) Date: Wed, 6 Mar 2024 15:42:49 -0800 From: Kees Cook To: Jakub Kicinski Cc: Breno Leitao , "David S. Miller" , Eric Dumazet , Paolo Abeni , Andy Shevchenko , "Gustavo A. R. Silva" , netdev@vger.kernel.org, linux-hardening@vger.kernel.org, Simon Horman , Jiri Pirko , Daniel Borkmann , Coco Li , Amritha Nambiar , linux-kernel@vger.kernel.org Subject: Re: [PATCH] netdev: Use flexible array for trailing private bytes Message-ID: <202403061540.A8462E9@keescook> References: <20240229213018.work.556-kees@kernel.org> <20240229225910.79e224cf@kernel.org> <20240306070658.4216fdf2@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240306070658.4216fdf2@kernel.org> On Wed, Mar 06, 2024 at 07:06:58AM -0800, Jakub Kicinski wrote: > On Wed, 6 Mar 2024 05:16:16 -0800 Breno Leitao wrote: > > I've been looking at some of these embedders as reported by Kees[1], and > > most of them are for dummy interfaces. I.e, they are basically used for > > schedule NAPI poll. > > > > From that list[1], most of the driver matches with: > > > > # git grep init_dummy_netdev > > > > That said, do you think it is still worth cleaning up embedders for > > dummy net_devices? > > > > [1] https://lore.kernel.org/all/202402281554.C1CEEF744@keescook/ > > Yes, I think so. > Kees, did you plan to send a v2? Otherwise I can put the cleanup on our > "public ToDo" list :) I found the requested collateral changes that popped out of v1 to be rather a bit much for me to tackle right now, so I think adding to the TODO list is probably best. :) -Kees -- Kees Cook