[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20191013.141522.129979750557733725.davem@davemloft.net>
Date: Sun, 13 Oct 2019 14:15:22 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: yuehaibing@...wei.com
Cc: jakub.kicinski@...ronome.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] netdevsim: Fix error handling in nsim_fib_init and
nsim_fib_exit
From: YueHaibing <yuehaibing@...wei.com>
Date: Fri, 11 Oct 2019 17:46:53 +0800
> In nsim_fib_init(), if register_fib_notifier failed, nsim_fib_net_ops
> should be unregistered before return.
>
> In nsim_fib_exit(), unregister_fib_notifier should be called before
> nsim_fib_net_ops be unregistered, otherwise may cause use-after-free:
...
> Reported-by: Hulk Robot <hulkci@...wei.com>
> Fixes: 59c84b9fcf42 ("netdevsim: Restore per-network namespace accounting for fib entries")
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
Applied and queued up for -stable.
Powered by blists - more mailing lists