The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Yoochan Lee <yoochan1026@gmail.com>
Cc: matt.hsiao@hpe.com, arnd@arndb.de, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] misc: hpilo: Fix use-after-free in ilo_open
Date: Sat, 31 Dec 2022 10:58:21 +0100	[thread overview]
Message-ID: <Y7AHvYfZreO/G/kT@kroah.com> (raw)
In-Reply-To: <20221231055310.2040648-1-yoochan1026@gmail.com>

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

  parent reply	other threads:[~2022-12-31  9:58 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-31  5:53 [PATCH] misc: hpilo: Fix use-after-free in ilo_open Yoochan Lee
2022-12-31  8:50 ` kernel test robot
2022-12-31  8:56   ` Yoochan Lee
2022-12-31  9:23     ` Yoochan Lee
2022-12-31  9:57 ` Greg KH
2022-12-31  9:58 ` Greg KH [this message]
2022-12-31 10:05   ` Yoochan Lee
2022-12-31 11:46     ` Greg KH
2022-12-31 13:06       ` Yoochan Lee
2022-12-31 13:48         ` Greg KH
2023-01-01  1:19           ` Yoochan Lee
2023-01-03  2:35             ` Matt Hsiao
2022-12-31 10:31 ` kernel test robot
2022-12-31 10:31 ` kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y7AHvYfZreO/G/kT@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=arnd@arndb.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matt.hsiao@hpe.com \
    --cc=yoochan1026@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox