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

From
Kory Maincent <kory.maincent@bootlin.com>
Date
2024-06-06 09:34:59
Also in
linux-doc, lkml
Reply to
Paolo Abeni, 2024-06-06
On Thu, 06 Jun 2024 11:14:47 +0200
Paolo Abeni [off-list ref] 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
Thread (20 messages) 20 messages, 3 authors, last reply 2024-06-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help