Re: [PATCH net] vxlan: Fix uninit-value in vxlan_vnifilter_dump()
From: Jakub Kicinski
Date: Mon Jan 27 2025 - 18:01:23 EST
On Thu, 23 Jan 2025 23:57:46 +0900 Shigeru Yoshida wrote:
> + if (cb->nlh->nlmsg_len < nlmsg_msg_size(sizeof(struct tunnel_msg))) {
> + NL_SET_ERR_MSG(cb->extack, "Invalid msg length");
> + return -EINVAL;
> + }
> +
> tmsg = nlmsg_data(cb->nlh);
We really should have a better helper for combined message length
validation and nlmsg_data(). I'll add this to our list of outstanding
cleanup tasks..