linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: KASAN: use-after-free Read in f_hidg_poll
       [not found] <20200517010233.GA35431@pizza01>
@ 2020-05-17  6:26 ` Greg KH
  0 siblings, 0 replies; only message in thread
From: Greg KH @ 2020-05-17  6:26 UTC (permalink / raw)
  To: Kyungtae Kim; +Cc: Felipe Balbi, USB list, LKML, syzkaller, Dave Tian

On Sun, May 17, 2020 at 01:02:40AM +0000, Kyungtae Kim wrote:
> We report a bug (in linux-5.6.11) found by FuzzUSB (a modified version
> of syzkaller)
> 
> kernel config: https://kt0755.github.io/etc/config_v5.6.11
> 
> This bug happened when accessing a f_hidg instance deallocated.
> Specifically, f_hidg_poll() tries to access hidg (at line 424), 
> but memory error occurs because hidg has been freed 
> by configfs_unlink() in another thread (PID: 3190).
> 
> To fix, we check if either hidg is still in use when deallocating
> or it is still vaild after poll_wait()  in f_hidg_poll().

Great, can you send a patch for this to resolve the issue?

thanks,

gre gk-h

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-17  6:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20200517010233.GA35431@pizza01>
2020-05-17  6:26 ` KASAN: use-after-free Read in f_hidg_poll Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).