The result of __dev_get_by_index() is not checked for NULL, which then
passed to mlx5e_attach_encap() and gets dereferenced.
This patch backports commit <fe7738e> to correct the issue in 5.10 branch.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
On Sat, Dec 24, 2022 at 7:48 AM Andreas Ziegler <br015(a)umbiko.net> wrote:
>
> -- Observed in, but not limited to, Linux 6.1.1
Wait, "but not limited to"? What does that mean? Are there more
versions affected?
-- Slade