From: Oliver Neukum <oneukum@suse.com>
To: syzbot <syzbot+6d8505fcdf25f00ac276@syzkaller.appspotmail.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: KASAN: use-after-free Read in chaoskey_disconnect
Date: Mon, 18 Nov 2019 13:58:50 +0100 [thread overview]
Message-ID: <1574081930.2698.5.camel@suse.com> (raw)
In-Reply-To: <0000000000006062280596203360@google.com>
Am Mittwoch, den 30.10.2019, 05:52 -0700 schrieb syzbot:
> Hello,
>
> syzbot found the following crash on:
>
> HEAD commit: ff6409a6 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=15e1ba24e00000
> kernel config: https://syzkaller.appspot.com/x/.config?x=3230c37d442895b7
> dashboard link: https://syzkaller.appspot.com/bug?extid=6d8505fcdf25f00ac276
> compiler: gcc (GCC) 9.0.0 20181231 (experimental)
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=169b8904e00000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=166f3104e00000
>
> IMPORTANT: if you fix the bug, please add the following tag to the commit:
> Reported-by: syzbot+6d8505fcdf25f00ac276@syzkaller.appspotmail.com
#syz test: https://github.com/google/kasan.git ff6409a6
From ca453a46d8ecd1e41ce4a39d99a17efb4ee76ab8 Mon Sep 17 00:00:00 2001
From: Oliver Neukum <oneukum@suse.com>
Date: Mon, 18 Nov 2019 13:55:17 +0100
Subject: [PATCH] chaoskey: DEBUGGING ONLY
THIS IS A SANITY TEST
---
drivers/usb/misc/chaoskey.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/misc/chaoskey.c b/drivers/usb/misc/chaoskey.c
index 87067c3d6109..252817bc1087 100644
--- a/drivers/usb/misc/chaoskey.c
+++ b/drivers/usb/misc/chaoskey.c
@@ -202,7 +202,7 @@ static int chaoskey_probe(struct usb_interface *interface,
dev->hwrng.read = chaoskey_rng_read;
dev->hwrng.quality = 1024;
- dev->hwrng_registered = (hwrng_register(&dev->hwrng) == 0);
+ //dev->hwrng_registered = (hwrng_register(&dev->hwrng) == 0);
if (!dev->hwrng_registered)
usb_err(interface, "Unable to register with hwrng");
--
2.16.4
next prev parent reply other threads:[~2019-11-18 12:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-30 12:52 KASAN: use-after-free Read in chaoskey_disconnect syzbot
2019-11-15 18:19 ` Stephen Boyd
2019-11-16 5:55 ` syzbot
2019-11-18 12:58 ` Oliver Neukum [this message]
2019-11-19 8:59 ` syzbot
2020-06-18 12:12 ` Andrey Konovalov
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=1574081930.2698.5.camel@suse.com \
--to=oneukum@suse.com \
--cc=linux-usb@vger.kernel.org \
--cc=syzbot+6d8505fcdf25f00ac276@syzkaller.appspotmail.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;
as well as URLs for NNTP newsgroup(s).