Re: [PATCH] net/ieee802154: fix uninit value bug in dgram_sendmsg
From: Alexander Aring
Date: Wed Aug 24 2022 - 08:38:42 EST
Hi,
cc mailing lists again.
On Wed, Aug 24, 2022 at 7:55 AM zhang haiming <tcs.kernel@xxxxxxxxx> wrote:
>
> If msg_namelen is too small like 1, the addr_type field will be
> unexpected. Meanwhile, check msg_namelen < sizeof(*daddr) is
Then check if space for addr_type is available, if not -EINVAL. If
addr_type available, evaluate it, if it's unknown -EINVAL, the minimum
length differs here if it's known.
> necessary and enough as dgram_bind and dgram_connect did.
>
you probably found similar issues.
It is a nitpick and I see that the current behaviour is not correct here.
- Alex