[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y7AHvYfZreO/G/kT@kroah.com>
Date: Sat, 31 Dec 2022 10:58:21 +0100
From: Greg KH <gregkh@...uxfoundation.org>
To: Yoochan Lee <yoochan1026@...il.com>
Cc: matt.hsiao@....com, arnd@...db.de, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] misc: hpilo: Fix use-after-free in ilo_open
On Sat, Dec 31, 2022 at 02:53:10PM +0900, Yoochan Lee wrote:
> --- a/drivers/misc/hpilo.h
> +++ b/drivers/misc/hpilo.h
> @@ -62,6 +62,7 @@ struct ilo_hwinfo {
> spinlock_t fifo_lock;
>
> struct cdev cdev;
> + struct kref refcnt;
This is obviously incorrect, please never have 2 reference counts for
the same structure.
greg k-h
Powered by blists - more mailing lists