Subject: Re: [PATCH] ieee802154: fix kernel-infoleak in dgram_recvmsg()

From: Miquel Raynal <[email-masked]>
Date: Thu, 28 May 2026 09:45:00 +0200

Hello,

LGTM.

> -	addr->mode = mode;
> -
> -	if (mode == IEEE802154_ADDR_NONE)
> +	if (mode == IEEE802154_ADDR_NONE) {
> +		memset(addr, 0, sizeof(*addr));
> +		addr->mode = IEEE802154_ADDR_NONE;
>  		return 0;
> +	}
> +
> +	addr->mode = mode;
>  
>  	if (!omit_pan) {
>  		memcpy(&addr->pan_id, buf + pos, 2);
>
>

Reviewed-by: Miquel Raynal <[email-masked]>

Thanks,
Miquèl