Re: [PATCH net-next v14 07/14] net: Add struct kernel_ethtool_ts_info

From: Kory Maincent
Date: Thu Jun 06 2024 - 05:42:44 EST


On Thu, 06 Jun 2024 11:14:47 +0200
Paolo Abeni <pabeni@xxxxxxxxxx> wrote:

> On Tue, 2024-06-04 at 12:39 +0200, Kory Maincent wrote:
> [...]
>
> It looks like 'info' is not zeroed anymore...
>
> [...]
>
> ... 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!

Regards,
--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com