linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Biggers <ebiggers@kernel.org>
To: Oliver Neukum <oneukum@suse.com>
Cc: syzbot <syzbot+0c90fc937c84f97d0aa6@syzkaller.appspotmail.com>,
	keescook@chromium.org, andreyknvl@google.com,
	syzkaller-bugs@googlegroups.com, mchehab@kernel.org,
	tglx@linutronix.de, sakari.ailus@linux.intel.com,
	kstewart@linuxfoundation.org, allison@lohutok.net,
	linux-kernel@vger.kernel.org, linux-media@vger.kernel.org,
	linux-usb@vger.kernel.org, hverkuil-cisco@xs4all.nl
Subject: Re: KASAN: use-after-free Read in cpia2_usb_disconnect
Date: Wed, 3 Jul 2019 10:10:09 -0700	[thread overview]
Message-ID: <20190703171008.GA10080@gmail.com> (raw)
In-Reply-To: <1562139729.5819.28.camel@suse.com>

On Wed, Jul 03, 2019 at 09:42:09AM +0200, Oliver Neukum wrote:
> Am Dienstag, den 02.07.2019, 18:01 -0700 schrieb syzbot:
> > syzbot has found a reproducer for the following crash on:
> > 
> > HEAD commit:    7829a896 usb-fuzzer: main usb gadget fuzzer driver
> > git tree:       https://github.com/google/kasan.git usb-fuzzer
> > console output: https://syzkaller.appspot.com/x/log.txt?x=11e19043a00000
> > kernel config:  https://syzkaller.appspot.com/x/.config?x=f6d4561982f71f63
> > dashboard link: https://syzkaller.appspot.com/bug?extid=0c90fc937c84f97d0aa6
> > compiler:       gcc (GCC) 9.0.0 20181231 (experimental)
> > syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=147d42eda00000
> > C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=104c268ba00000
> > 
> > IMPORTANT: if you fix the bug, please add the following tag to the commit:
> > Reported-by: syzbot+0c90fc937c84f97d0aa6@syzkaller.appspotmail.com
> > 
> > cpia2: Message: count = 1, register[0] = 0x0
> > cpia2: Unexpected error: -19
> > ==================================================================
> > BUG: KASAN: use-after-free in cpia2_usb_disconnect+0x1a4/0x1c0  
> > drivers/media/usb/cpia2/cpia2_usb.c:898
> > Read of size 8 at addr ffff8881cf6c4e50 by task kworker/1:1/22
> 
> Please try this:
> 
> From a0a73298fc23acb95e7b6487e960be707563eb34 Mon Sep 17 00:00:00 2001
> From: Oliver Neukum <oneukum@suse.com>
> Date: Wed, 8 May 2019 12:36:40 +0200
> Subject: [PATCH] cpia2_usb: first wake up, then free in disconnect
> 

Who are you talking to?  If you want syzbot to test your patch, follow the
directions at https://github.com/google/syzkaller/blob/master/docs/syzbot.md#testing-patches

- Eric

  reply	other threads:[~2019-07-03 17:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-16 11:16 KASAN: use-after-free Read in cpia2_usb_disconnect syzbot
2019-07-03  1:01 ` syzbot
2019-07-03  7:42   ` Oliver Neukum
2019-07-03 17:10     ` Eric Biggers [this message]
2019-07-04  9:36       ` Oliver Neukum

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=20190703171008.GA10080@gmail.com \
    --to=ebiggers@kernel.org \
    --cc=allison@lohutok.net \
    --cc=andreyknvl@google.com \
    --cc=hverkuil-cisco@xs4all.nl \
    --cc=keescook@chromium.org \
    --cc=kstewart@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=oneukum@suse.com \
    --cc=sakari.ailus@linux.intel.com \
    --cc=syzbot+0c90fc937c84f97d0aa6@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.com \
    --cc=tglx@linutronix.de \
    /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;
as well as URLs for NNTP newsgroup(s).