[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221214084358.161f9d6f@kernel.org>
Date: Wed, 14 Dec 2022 08:43:58 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Leon Romanovsky <leon@...nel.org>
Cc: Nir Levy <bhr166@...il.com>, davem@...emloft.net,
edumazet@...gle.com, pabeni@...hat.com,
linux-atm-general@...ts.sourceforge.net, netdev@...r.kernel.org
Subject: Re: [PATCH net v2] net: atm: Fix use-after-free bug in
atm_dev_register()
On Wed, 14 Dec 2022 09:51:09 +0200 Leon Romanovsky wrote:
> > Also atm_dev_register() still frees the dev on atm_register_sysfs()
> > failure, is that okay?
>
> Yes, the kernel panic points that class_dev (not dev) had use-after-free.
How is that possible? "class_dev" is embedded in dev (struct atm_dev).
Powered by blists - more mailing lists