Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp190727rbe; Wed, 28 Feb 2024 17:17:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVXptKtmjRFPHaN4QofyqQ0o46MCeIVYGQIEYT8Totwr7fQsiv4/6Tn1x9Z6F2tAcuswIb9HddQKPSSHZ+570EEnjQaAZrkzWZ/SqoPmw== X-Google-Smtp-Source: AGHT+IHrGHneOHaSEZ1cAdJUeRAiWaPow++T5gXd0SaEmO8AID00VygFCYwtisShpAQNaaVloUcV X-Received: by 2002:a05:6512:370d:b0:513:2618:1517 with SMTP id z13-20020a056512370d00b0051326181517mr95893lfr.48.1709169454339; Wed, 28 Feb 2024 17:17:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709169454; cv=pass; d=google.com; s=arc-20160816; b=UBfGTlZx7dx+mwT4XeApJfcyAYIQJyeqKVyA8T+kTL9tg3NqgJd1hEhabDm3p07W6F bjVFxTGlBvGakagci48We9x6a7u2v56z4WUD7U516Z79WdzPD23oWIU3/iDfHqW6gTt5 QTcBUjE8+i06z0g+Hfs7Dix697nQZhIgZpjLxzTEPje0HebWVZP2hm3IvWsSE6RRK8VM 0yVnw3It4TK6w2nHv5UIqOFEBfF2F/EmfcpQVbbtEwzEh9KOhxeCCShNDEuTR0OCkJQi uQv6zZ1cKYZadvuxVlZzN41m+kpiLjPzz1IK9DWQlSDj/vdXfCCCqyx5YLVq6EyGNASg cP8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=KBOTTqsdtZgwVhU0ouDC8P1Pw8ERk6YxtzTNZWn5OtE=; fh=7/b7n+ZXKryF1i8bMYgDEyTIgkn38wWPC3h/0tFCAZM=; b=YIXrBXXHQUJjIdY65k0aQShgOvB4RFgm8CD1p5X62R8WeEg7vuTXud4LGgKHf0Ycm3 spHZu/desekzsClM5dxFVeAiJPoX3IZXVYVe8Lzxt4NaDdPIMKTnKE29HZ434TsaddaY xG5+BvJcQcOoxyhHPledUY67v4jgFH4gk4wthPunnf107+xvKpnSQ0WMaXKoyjfPMdGE 3rB/j0KhsnMzNaAizFooJqyeMe9q0Jp4yH27n2Ou5bLT8L0ppOFCl0h7z12U/iuI+Sku wvziCUWMhh8uDaVeJvVuFA2mbNZaHEeZuDm1hPIKNrPZWgXKIPJxeqvB6vV+tAIYDqbF PeLA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=BWLInSMj; arc=pass (i=1 spf=pass spfdomain=embeddedor.com dkim=pass dkdomain=embeddedor.com); spf=pass (google.com: domain of linux-kernel+bounces-85983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85983-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 a17-20020a17090640d100b00a4436de8264si92123ejk.794.2024.02.28.17.17.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 17:17:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85983-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=fail header.i=@embeddedor.com header.s=default header.b=BWLInSMj; arc=pass (i=1 spf=pass spfdomain=embeddedor.com dkim=pass dkdomain=embeddedor.com); spf=pass (google.com: domain of linux-kernel+bounces-85983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85983-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 63FE11F2AEA9 for ; Thu, 29 Feb 2024 01:11:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C788F364DF; Thu, 29 Feb 2024 01:03:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=embeddedor.com header.i=@embeddedor.com header.b="BWLInSMj" Received: from omta034.useast.a.cloudfilter.net (omta034.useast.a.cloudfilter.net [44.202.169.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7BD45364AC for ; Thu, 29 Feb 2024 01:03:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=44.202.169.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709168609; cv=none; b=ReQbatAEMk6OjJxqQPdt2twWDlPxVU6KgFmYzShnvO40UzLMS9P2G3lge2f7UN55yfYZj58jFH4YtztAADTsDwme0FUkvc7qeAsp5YDsD+NwthMeN1eScxe7e1E+5S4NlbbCiJOjZJdcMtwRIwASKqgDS6R7IDVxlDfik/Qjl7U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709168609; c=relaxed/simple; bh=aFMYAjr2Kwl3Bq7QOoD1HkmCDlg/qynNYcIWlH3skcQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=K9PWNwAzFnj8XyDhIAW+d4aQODhlu5DmIsQMdxAHioHwZOeX3DjLKoMwSplE99gUCF2Z5l4bef6uaP/Op4OkJW0sDLqAtB443Nat1qwppFIJnoBpzMKtFqgoXvEhHYDTvAjNyYbYmm4U6lR3bv5C7NCF90yVAEd825arw3rat5g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=embeddedor.com; spf=pass smtp.mailfrom=embeddedor.com; dkim=pass (2048-bit key) header.d=embeddedor.com header.i=@embeddedor.com header.b=BWLInSMj; arc=none smtp.client-ip=44.202.169.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=embeddedor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=embeddedor.com Received: from eig-obgw-5004a.ext.cloudfilter.net ([10.0.29.221]) by cmsmtp with ESMTPS id fSS5r4OG9s4yTfUpariU7z; Thu, 29 Feb 2024 01:03:26 +0000 Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with ESMTPS id fUpZrQhiapZ2hfUpZruRV1; Thu, 29 Feb 2024 01:03:26 +0000 X-Authority-Analysis: v=2.4 cv=EZvOQumC c=1 sm=1 tr=0 ts=65dfd7de a=1YbLdUo/zbTtOZ3uB5T3HA==:117 a=VhncohosazJxI00KdYJ/5A==:17 a=IkcTkHD0fZMA:10 a=k7vzHIieQBIA:10 a=wYkD_t78qR0A:10 a=geO6l3TllUDVLW6gesMA:9 a=QEXdDO2ut3YA:10 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=embeddedor.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KBOTTqsdtZgwVhU0ouDC8P1Pw8ERk6YxtzTNZWn5OtE=; b=BWLInSMjsxRqyUlKy1+ZZI/0mw rChvfHJHA7IhUbQR20kcbnULtGDxOtyDM4WwAAlnZj+p16hPezaj5k+oL2pEX1dL7IYxGdtAScO59 +n+HA2/lhE38EZ98aFuE3k5gC1b+9KmX+5OAvV6dr2kq3Ny0tcGu+mzsGOYoZkCcuh1OQw6CbsdJn hIGPJj3EfmQmA5HNFKJdpMw7PMNx2Qm2EUik3O+fqQbY9HJlfRcxiBl3ia62+9U48Z5hdDpPQwlFx Eup+wtSYRzz89/gG5NiWhg+oI4n6WArW/Teq8lImknBwSiEG4YuUQa6P0dtBE/XAn8tNk5r6CuYh4 4x1bwyKQ==; Received: from [201.172.172.225] (port=35524 helo=[192.168.15.10]) by gator4166.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96.2) (envelope-from ) id 1rfUpX-002Jt3-2S; Wed, 28 Feb 2024 19:03:24 -0600 Message-ID: <49f55b02-ce21-40ac-a4cc-02894cd5eb8f@embeddedor.com> Date: Wed, 28 Feb 2024 19:03:12 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 7/8] net-device: Use new helpers from overflow.h in netdevice APIs Content-Language: en-US To: Jakub Kicinski Cc: Kees Cook , Andy Shevchenko , Vinod Koul , Linus Walleij , Jonathan Cameron , Mark Brown , linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-spi@vger.kernel.org, netdev@vger.kernel.org, linux-hardening@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen , "David S. Miller" , Eric Dumazet , Paolo Abeni , "Gustavo A. R. Silva" References: <20240228204919.3680786-1-andriy.shevchenko@linux.intel.com> <20240228204919.3680786-8-andriy.shevchenko@linux.intel.com> <202402281341.AC67EB6E35@keescook> <20240228144148.5c227487@kernel.org> <202402281554.C1CEEF744@keescook> <653bbfe8-1b35-4f5e-b89d-9e374c64e46b@embeddedor.com> <20240228165730.3171d76c@kernel.org> From: "Gustavo A. R. Silva" In-Reply-To: <20240228165730.3171d76c@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 201.172.172.225 X-Source-L: No X-Exim-ID: 1rfUpX-002Jt3-2S X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.15.10]) [201.172.172.225]:35524 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 11 X-Org: HG=hgshared;ORG=hostgator; X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfIejUPpcs3ONXF99mtvefk0dH/jIn3cueMepzHonThISUAvDsCRkspuXbvImAqQgIMr36MvQtV1O7gE5O2f9pCI97CD8QW+CKAe/YqNDdqO0HQHQYFGS vQ2D8Blahg5k1yZeztXtqfpeHKP0Pnt1y+34xIk4jWtHje6pUBmU5l0FAvrhS6gvnfF8GdqCB4/X/SSsLrzalCu7RhkVqqBiE/sa+baD1txAJjqlRQThuFpi On 2/28/24 18:57, Jakub Kicinski wrote: > On Wed, 28 Feb 2024 18:49:25 -0600 Gustavo A. R. Silva wrote: >> struct net_device { >> struct_group_tagged(net_device_hdr, hdr, >> ... >> u32 priv_size; >> ); >> u8 priv_data[] __counted_by(priv_size) __aligned(NETDEV_ALIGN); >> } > > No, no, that's not happening. Thanks, one less flex-struct to change. :)