Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48606bb1 authored by Xin Long's avatar Xin Long Committed by Greg Kroah-Hartman
Browse files

netlink: reset extack earlier in netlink_rcv_skb




[ Upstream commit cd443f1e ]

Move up the extack reset/initialization in netlink_rcv_skb, so that
those 'goto ack' will not skip it. Otherwise, later on netlink_ack
may use the uninitialized extack and cause kernel crash.

Fixes: cbbdf843 ("netlink: extack needs to be reset each time through loop")
Reported-by: default avatar <syzbot+03bee3680a37466775e7@syzkaller.appspotmail.com>
Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
Acked-by: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a8c21ba7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment