Re: [PATCH v4?] ipv6: ip6_fib: fix null-pointer dereference in ipv6_route_native_seq_show()
From: Markus Elfring
Date: Sun Nov 03 2024 - 03:10:11 EST
> Check if fib6_nh is non-NULL before accessing fib6_nh->fib_nh_gw_family
> in ipv6_route_native_seq_show() to prevent a null-pointer dereference.
> Assign dev as dev = fib6_nh ? fib6_nh->fib_nh_dev : NULL to ensure safe
> handling when nexthop_fib6_nh(rt->nh) returns NULL.
…
> ---
> net/ipv6/ip6_fib.c | 4 ++--
…
It would have been more appropriate to add also a patch version description.
See also:
* https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.12-rc5#n321
* https://lore.kernel.org/all/?q=%22This+looks+like+a+new+version+of+a+previously+submitted+patch%22
Regards,
Markus