[<prev] [next>] [day] [month] [year] [list]
Message-ID: <359e4cfa-d1f4-41ce-a986-89440fcf66cd@web.de>
Date: Sat, 2 Nov 2024 18:30:22 +0100
From: Markus Elfring <Markus.Elfring@....de>
To: Yi Zou <03zouyi09.25@...il.com>, netdev@...r.kernel.org
Cc: David Ahern <dsahern@...nel.org>, "David S. Miller"
<davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
LKML <linux-kernel@...r.kernel.org>, 21210240012@...udan.edu.cn,
21302010073@...udan.edu.cn
Subject: Re: [PATCH] ipv6: ip6_fib: fix possible null-pointer-dereference in
ipv6_route_native_seq_show
> 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.
Would you like to send another improved patch version (instead of a reply)
according to a change review?
Regards,
Markus
Powered by blists - more mailing lists