[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <63adabd9-83b6-0bc0-33aa-3afc54ae6836@kernel.org>
Date: Sun, 18 Sep 2022 09:31:19 -0600
From: David Ahern <dsahern@...nel.org>
To: Ido Schimmel <idosch@...dia.com>, netdev@...r.kernel.org
Cc: davem@...emloft.net, kuba@...nel.org, pabeni@...hat.com,
edumazet@...gle.com, yoshfuji@...ux-ipv6.org, rroberto2r@...il.com,
mlxsw@...dia.com
Subject: Re: [PATCH net] ipv6: Fix crash when IPv6 is administratively
disabled
On 9/16/22 2:48 AM, Ido Schimmel wrote:
> The global 'raw_v6_hashinfo' variable can be accessed even when IPv6 is
> administratively disabled via the 'ipv6.disable=1' kernel command line
> option, leading to a crash [1].
>
> Fix by restoring the original behavior and always initializing the
> variable, regardless of IPv6 support being administratively disabled or
> not.
>
...
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Fixes: 0daf07e52709 ("raw: convert raw sockets to RCU")
> Reported-by: Roberto Ricci <rroberto2r@...il.com>
> Tested-by: Roberto Ricci <rroberto2r@...il.com>
> Signed-off-by: Ido Schimmel <idosch@...dia.com>
> ---
> net/ipv6/af_inet6.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Reviewed-by: David Ahern <dsahern@...nel.org>
Powered by blists - more mailing lists