Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp254753lqt; Thu, 6 Jun 2024 02:35:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXwXl7swy9Yu9no5QKVrCOHqDe8eUIiasrbdq+42XrlRk8PdT8b2yltzy9LYsIVcu4IIK7gC563BvUTjdsY/ZnXnz7baRuoi5dbzr4Ufw== X-Google-Smtp-Source: AGHT+IEZVoWr835Aj3vx6zHEyXLR3zmXn3ngAwwtR4dL0hortBeRXahwlzLDW20hT1MkpI8RuYNu X-Received: by 2002:a05:6a20:8406:b0:1b2:b220:2da6 with SMTP id adf61e73a8af0-1b2b6e4ab57mr6586335637.12.1717666552226; Thu, 06 Jun 2024 02:35:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717666552; cv=pass; d=google.com; s=arc-20160816; b=eXcdVgjWo8uiY5IgMO8IdDkDJ6cEkhAscihFc07hmIKkc5Pxm1n47+WHcxU7DgJt5/ BgYiaolbLrfplRE+5kN6ng8gilzqKd4VzPmp448J/yNC4+YMwep7vy/IdtLjRXWwpSVr /xM6sUFctb/j7iY0pzG5zYXu54BRHreMEjtbPr/1xqpBm79KsOyg8KgvoRDApXzs4Tys ThhZKQ/G2nGPia07OziZXTzTMJQ6Me+7CRcvnra/itWgTPvO0JK+VfMHj7KdBPfU8Ks8 VaaYUNPUDJEQvlHK4ArDnh94hG+5IaDB31U5Xq5Jh3o0hQdEWt4j3fMCVCFLuWP80vZN L3tw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=RS0s9L44RI2bohZZrpnBXbgm/qsCjn1tbXIkJCFMuX8=; fh=7ZnIGtU3PNNGfxuh84SIJ+sL/zOdNRw+JBtenzFPWgI=; b=U1qL9bDbBYstrDKjFcNQf8FcnPsWPncx2W0cwMYe3JDv+oqBK11ZsF+a/vqPowBMF8 iHrB4x7Fy766MHynm/JiNFzWOAejYD9JXZEiMCVE8yXwsyOaH0qgtnQJPT2rU2Xkx+vC PgbUbF0VY/+RydYjhzlkci2e/2kGK/BY8+DO+yQfUyUoIjr9VJUDCYGRfy17U6XYKK/D JznNcccQpudW2d3RXztf2bADHhchxIf0fTPAPwRlq2pUiRYVMw44DVdKJS/t/NZ5qXS3 9aOeHTrbAAIoawn/NhT3uM0OJhx4Aml4MIc0SoCPcj+YFqUVBecgSjkg8+810Y9j4QP+ G3xA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=lpEBkUbw; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-204019-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204019-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-703fd38e537si817208b3a.44.2024.06.06.02.35.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 02:35:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204019-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=@bootlin.com header.s=gm1 header.b=lpEBkUbw; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-204019-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204019-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4BE82286517 for ; Thu, 6 Jun 2024 09:35:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 461F2168C38; Thu, 6 Jun 2024 09:35:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="lpEBkUbw" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 F08D51534E4; Thu, 6 Jun 2024 09:34:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717666502; cv=none; b=ezVyZDydXMFSYHRvZooVagSyLmHTVoZZ/G6pi+WjUnlb0fG9cVPaurY9TzCJPZoQCtK15bZGxxwC10NVOBIDRDROKqTk3CaGW1dVs2mmx7HyQWI0S1UKBXjZMTPbmsyUczDYwNYFobiUbUGxc4XT7M/iTUN61Js/ovpRB6SY8yg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717666502; c=relaxed/simple; bh=AteQUiMN9mu0T8tkg+4d+kFHWiS7N/ANiSWeyPvJSGo=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Xpv17e7LTOyh/bwryJQkgUd6WfaGJQNsR4P6PYAZU/HnnhgzyUU4zuFqfIZbuAMSd0OFcKPimzTucrFrvNbFYBmoW2KIay3fpik5z7WkXr1Q/2Sp6cyKpORt03ZBxtZTZXXgQV1v6FdQkF2LhTSSfJQQDXQsyhBCEh1uo5jTE7U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=lpEBkUbw; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id EA5BF4000A; Thu, 6 Jun 2024 09:34:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1717666497; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RS0s9L44RI2bohZZrpnBXbgm/qsCjn1tbXIkJCFMuX8=; b=lpEBkUbwH6HwdJRVgyaQVE9iH81VHMRt8U5Y0dwkSR7NAer3zyjr5MpO+tvb8U8rPBWHaU 2tPH9q14mkbOYPB0+chmRbILHw3gQnuCbUNUt1No/2IJ/XLOm0ElK5yoqKHuriTN43E7Bn +KUJM/6oRXnk5PRYtGobsJsKs75osPy1NGxpFxhwL9Nwnrg9AZ+9gseSBxqGMAmn2Krwdz g4Ea88qrO6yFtwZukNgZP9MNDZiJmolIwnDgLjlqWHe5GzkmwppRsLkt5nl4OZlWvsn3zW BsZmFzBwGrUQ5ST7fyZCcZ7Kjd+kefi7x5p2qvI7RbfTyjI0q/hXbV8b0doXew== Date: Thu, 6 Jun 2024 11:34:54 +0200 From: Kory Maincent To: Paolo Abeni Cc: Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Richard Cochran , Radu Pirea , Jay Vosburgh , Andy Gospodarek , Nicolas Ferre , Claudiu Beznea , Willem de Bruijn , Jonathan Corbet , Horatiu Vultur , UNGLinuxDriver@microchip.com, Simon Horman , Vladimir Oltean , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Maxime Chevallier , Rahul Rameshbabu , Alexandra Winter Subject: Re: [PATCH net-next v14 07/14] net: Add struct kernel_ethtool_ts_info Message-ID: <20240606113454.209ca92a@kmaincent-XPS-13-7390> In-Reply-To: <8b5e1ffe0bc5a9e03c622166f4d5d26c5c6ce9b5.camel@redhat.com> References: <20240604-feature_ptp_netnext-v14-0-77b6f6efea40@bootlin.com> <20240604-feature_ptp_netnext-v14-7-77b6f6efea40@bootlin.com> <8b5e1ffe0bc5a9e03c622166f4d5d26c5c6ce9b5.camel@redhat.com> Organization: bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) 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=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com On Thu, 06 Jun 2024 11:14:47 +0200 Paolo Abeni wrote: > On Tue, 2024-06-04 at 12:39 +0200, Kory Maincent wrote: > [...] =20 >=20 > It looks like 'info' is not zeroed anymore... >=20 > [...] =20 >=20 > ... so this risk exposing to user-space unintialized kernel memory You are right, tx/rx_reserved fields are indeed not initialized anymore. Thanks for spotting it! =20 Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com