Re: [PATCH net] macsec: fix UAF bug for real_dev

From: Ziyang Xuan (William)
Date: Tue May 31 2022 - 02:28:09 EST


> On Sat, 28 May 2022 17:36:59 +0800 Ziyang Xuan wrote:
>> --- a/drivers/net/macsec.c
>> +++ b/drivers/net/macsec.c
>> @@ -107,6 +107,7 @@ struct pcpu_secy_stats {
>> struct macsec_dev {
>> struct macsec_secy secy;
>> struct net_device *real_dev;
>> + netdevice_tracker dev_tracker;
>
> You need to add kdoc for @dev_tracker.

Yes, it's right. I will give v2 later.

Thank you!
> .
>