Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp395522lqt; Mon, 18 Mar 2024 10:49:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNDN1uYwVGZfBsZJfI2a5PF0HrQNuo1Dww4EQ5vjRa4KOOKeuwDFfTppKwsyXz5agzcALfUWk+V5O4y/XR0MeBvdfhCNGabp/l2N0DXg== X-Google-Smtp-Source: AGHT+IEGi9eXlZR/g+qyReodh7mCNfqG8muixRkUqiTbNp7eHv9N51BmjgftiN3qvVKuc7kOyEkf X-Received: by 2002:a17:90a:4282:b0:29b:6e9d:5897 with SMTP id p2-20020a17090a428200b0029b6e9d5897mr10202359pjg.23.1710784179774; Mon, 18 Mar 2024 10:49:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710784179; cv=pass; d=google.com; s=arc-20160816; b=ew3khq0IStOl9aC65BQ5V+8sRNvFPVd7n5hrrhF2OSN2AWlUS+Il/fUrqErUpSBF/Q 9qSg9D5UGxUKCx6/XxrkqdgtsMj+klqMia58i+Pioj77gSv9nJxxkUKa+n1Kr42NkAd8 p9sWF5W+3zxiRK0QkaFbDxIhth5PeVGR2Ed/pGOma5C4QNqtpH3AekIbX8y9dkH2rcua xip7P+AWrT4XX6w0uesQ2WilRvEaAfHe7NTscD3EiZMLQTuIAYkMUoe/y1lC5T6/CdVV x9UaUFD3J+tXZoN4LpDKXUI8wKu1DWul5hS8ssxJJgenuZZBu4/SNbqJofATt+L8hcwO R9ZA== 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=/hzHXHAYAO5IILy822dDVSoGujLH1eorSOetYUN+2mo=; fh=0l7bWkjqHrWrOxNWcDQrWLIS6qe5+sy9RFCwnZH3hhg=; b=BEEsl9GqoJy5KZO8ATrHxvSR5nZogZha3Uv6KrsCbJJb5gKYJZXQr3Gd4teAuY5uf+ 6fofMErTyd8AQ8A3AN3/hZ++lfdpZAGCOXlw5jwmm7zqECrWiFfi4ckYcQxcdKrLOmaU T4aj+SJRv/tAD/E9BctnyqMd1DyHQn+gwuUSynayCN45rLGBKrSRg56LufcH9v54+4BE iwo+Vwg3DZlEBdX7PfkZDmk37nO36ifQzj4WmhpXwjxUH3J0cPblGIDfHJV35N/bHBpo Tx8eZZTkxLRwtpQMRrcyF6/F8KQ3lCenpIssIeIJKXa5fE6y6gRA/mUJbgXUEUHNqSi7 70Dw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bjRLZC5A; 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-106479-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106479-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a1-20020a17090acb8100b0029bd2ab76cdsi8581763pju.118.2024.03.18.10.49.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 10:49:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106479-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bjRLZC5A; 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-106479-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106479-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 74CBF286911 for ; Mon, 18 Mar 2024 17:49:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74AC055E45; Mon, 18 Mar 2024 17:49:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="bjRLZC5A" Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 4B85555C14 for ; Mon, 18 Mar 2024 17:49:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710784169; cv=none; b=o5gfyahehbsmAyAFulYsqglWainWAzh8z8hg06omc4QyfdNIKiPaokX3ZuFgLR8tFHfDo0XmMim0kWV6dqfsCR3XZSTROtBuS0/xsc8WpOFxeBcwJoupBrS9HKdtswE06bUtyhJDlmp8be9ID1dsdK6/OW2Ks5k1AlwzVK/Hons= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710784169; c=relaxed/simple; bh=AYMfYRY6klCQYJM0bVnZCDDZuEIucFRaAGMVi5tuFig=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HyCjKaayu8Q6K7e6jbLbjOdZ1XeXlZy8MsWLqNCysfw6RbzQkQEaq0FuwIJAMJ/xR08x1xtIvwvcr6CNV6B2I5v0gZWFbIcCjhtitvsp80ZUSIyoz+S9J30JRWDgYCM+xStoxmj3YNaoFONQhNU7dnqmMbmIpj3yjEu7u48vBGc= 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=bjRLZC5A; arc=none smtp.client-ip=209.85.214.182 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-f182.google.com with SMTP id d9443c01a7336-1e0189323b4so10311855ad.1 for ; Mon, 18 Mar 2024 10:49:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1710784168; x=1711388968; 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=/hzHXHAYAO5IILy822dDVSoGujLH1eorSOetYUN+2mo=; b=bjRLZC5A/VZvwMZxMp6m++hqN3+TDHrVFJOL8i9Y4qYNXCFVHT/w5eFPJ3MlhWgwC2 AxObZ2dTh+6MTahoIj8Q++Z7GMoNnS5VDOJtEsriJGwuU3qhDaTnw9iBCX7+heF84yMO A7rJK6NzInsVUiegfehtPIsvpPSfzL/zy80Hk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710784168; x=1711388968; 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=/hzHXHAYAO5IILy822dDVSoGujLH1eorSOetYUN+2mo=; b=jBTeDuQnSAE2JDdqPzKRD9fBtHd0eMIVE1oBx0javsVxdx0riflMbdXSMpZOknDWmD 2a7XHed1GNQuIHIy3KNwgSKPeP/tU0iMJthb1onExsb/yXGd7AjlI7CTDqVQ58f5n49z wC2NuQjQk1ayqC5cinOzWQXBDvp7hQnh7Mevcs8QavSrhotyMS6IeZT7+oy1S5K2Mwa+ FUgsFBQZ+wXA4SBibwnzbRvTGTy9mG06m1AYzD001sqGb8vsLU/MSRXe68+hhOCcs903 A29O+bNcX1qqxHAvCt+XxC9KmikcKzKvtOMUxOB9W0B95U27EI97I7P4Zm2zrSOemtvo 9zAA== X-Forwarded-Encrypted: i=1; AJvYcCWTFckz2xUeLnlRV1F5NIWCR5a045hpPPm7Z5orBtOtu0s67blAbMTNN/vS2kPwmSSN5jgtlrxkx17Cfa+YVTGtNgLkmQq2/sT2D9Wd X-Gm-Message-State: AOJu0YyA2zokIZorNnjRfvTIaZbIoeWI7LPgCgLN1KGr/zvPtUk5mKNc tHh2qDRY1i2kVd26yArona3IqtLMJVAiqLwt5dOme/Gx9XvTh7YNRRDxJgbkfw== X-Received: by 2002:a17:902:da8c:b0:1df:f9fc:e572 with SMTP id j12-20020a170902da8c00b001dff9fce572mr9150174plx.22.1710784167690; Mon, 18 Mar 2024 10:49:27 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id y14-20020a17090322ce00b001dcc8ea6247sm9547206plg.15.2024.03.18.10.49.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 10:49:26 -0700 (PDT) Date: Mon, 18 Mar 2024 10:49:25 -0700 From: Kees Cook To: Alexander Lobakin Cc: linux-hardening@vger.kernel.org, "Gustavo A. R. Silva" , Marco Elver , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC kspp-next 0/3] compiler_types: add Endianness-dependent __counted_by_{le,be} Message-ID: <202403181038.EC9DF8CE3C@keescook> References: <20240318130354.2713265-1-aleksander.lobakin@intel.com> 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: <20240318130354.2713265-1-aleksander.lobakin@intel.com> On Mon, Mar 18, 2024 at 02:03:51PM +0100, Alexander Lobakin wrote: > include/linux/compiler_types.h | 11 ++++++++++ > drivers/net/ethernet/intel/idpf/virtchnl2.h | 24 ++++++++++----------- > 2 files changed, 23 insertions(+), 12 deletions(-) Oh, I see the Subject says "kspp-next" -- normally I'd expect things touch net to go through netdev. I'm fine with this going through either tree. Perhaps better through netdev since that subsystem has the most users and may gain more using the new macros? -Kees -- Kees Cook