lkml.org 
[lkml]   [2023]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] misc: hpilo: Fix use after free bug in ilo_remove due to race condition with ilo_open
Greg KH <gregkh@linuxfoundation.org> 于2023年4月18日周二 01:43写道:
>
> On Tue, Apr 18, 2023 at 12:52:46AM +0800, Zheng Wang 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;
>
> You now have 2 different structures doing reference counting logic on
> the same structure. That's just not ok at all, and is totally broken.
>

Thanks for your reply. I'll look into it and figure out effective fix.

Best regards,
Zheng

> greg k-h

\
 
 \ /
  Last update: 2023-04-19 07:29    [W:0.078 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site