From: Pavel Skripkin <paskripkin@gmail.com>
To: syzbot <syzbot+1a247e36149ffd709a9b@syzkaller.appspotmail.com>,
isely@pobox.com, linux-kernel@vger.kernel.org,
linux-media@vger.kernel.org, mchehab@kernel.org,
syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] UBSAN: array-index-out-of-bounds in pvr2_i2c_core_init
Date: Thu, 14 Apr 2022 23:04:15 +0300 [thread overview]
Message-ID: <88a47762-fac7-6158-1730-344bb2905fc9@gmail.com> (raw)
In-Reply-To: <0000000000005abf2305dca1b91b@google.com>
[-- Attachment #1.1.1: Type: text/plain, Size: 1250 bytes --]
Hi Syzbot,
On 4/14/22 21:47, syzbot wrote:
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: 4ea3c6425269 Merge tag 'powerpc-5.18-2' of git://git.kerne..
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=148cb824f00000
> kernel config: https://syzkaller.appspot.com/x/.config?x=307baecfd5e87ced
> dashboard link: https://syzkaller.appspot.com/bug?extid=1a247e36149ffd709a9b
> compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17279a70f00000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=121dc124f00000
>
> Bisection is inconclusive: the issue happens on the oldest tested release.
>
> bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=142753df700000
> final oops: https://syzkaller.appspot.com/x/report.txt?x=162753df700000
> console output: https://syzkaller.appspot.com/x/log.txt?x=122753df700000
>
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
just guessing
#syz test:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
With regards,
Pavel Skripkin
[-- Attachment #1.1.2: ph --]
[-- Type: text/plain, Size: 504 bytes --]
diff --git a/drivers/media/usb/pvrusb2/pvrusb2-hdw.c b/drivers/media/usb/pvrusb2/pvrusb2-hdw.c
index cd7b118d5929..2a1a0a0ca225 100644
--- a/drivers/media/usb/pvrusb2/pvrusb2-hdw.c
+++ b/drivers/media/usb/pvrusb2/pvrusb2-hdw.c
@@ -2569,6 +2569,9 @@ struct pvr2_hdw *pvr2_hdw_create(struct usb_interface *intf,
} while (0);
mutex_unlock(&pvr2_unit_mtx);
+ if (hdw->unit_number == -1)
+ goto fail;
+
cnt1 = 0;
cnt2 = scnprintf(hdw->name+cnt1,sizeof(hdw->name)-cnt1,"pvrusb2");
cnt1 += cnt2;
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
next prev parent reply other threads:[~2022-04-14 20:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-14 18:47 syzbot
2022-04-14 20:04 ` Pavel Skripkin [this message]
2022-04-14 20:14 ` syzbot
2022-04-14 20:18 ` Pavel Skripkin
2022-04-14 23:31 ` syzbot
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=88a47762-fac7-6158-1730-344bb2905fc9@gmail.com \
--to=paskripkin@gmail.com \
--cc=isely@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=syzbot+1a247e36149ffd709a9b@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.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
all inboxes | Powered by JetHome®