From: syzbot <syzbot+bfd77469c8966de076f7@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Forwarded: Re: [syzbot] [sound?] [usb?] KASAN: slab-out-of-bounds Write in copy_to_urb
Date: Wed, 05 Nov 2025 23:50:02 -0800 [thread overview]
Message-ID: <690c532a.050a0220.1e8caa.00b9.GAE@google.com> (raw)
In-Reply-To: <690b6b46.050a0220.3d0d33.0054.GAE@google.com>
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: Re: [syzbot] [sound?] [usb?] KASAN: slab-out-of-bounds Write in copy_to_urb
Author: lizhi.xu@windriver.com
#syz test
diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c
index 54d01dfd820f..a4c0ea685b8a 100644
--- a/sound/usb/pcm.c
+++ b/sound/usb/pcm.c
@@ -1606,6 +1606,9 @@ static int prepare_playback_urb(struct snd_usb_substream *subs,
subs->cur_audiofmt->dsd_bitrev)) {
fill_playback_urb_dsd_bitrev(subs, urb, bytes);
} else {
+ if (bytes > ctx->buffer_size)
+ return -EPIPE;
+
/* usual PCM */
if (!subs->tx_length_quirk)
copy_to_urb(subs, urb, 0, stride, bytes);
next prev parent reply other threads:[~2025-11-06 7:50 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-05 15:20 [syzbot] [sound?] [usb?] KASAN: slab-out-of-bounds Write in copy_to_urb syzbot
2025-11-06 2:10 ` Hillf Danton
2025-11-06 2:32 ` syzbot
2025-11-06 7:50 ` syzbot [this message]
2025-11-06 8:33 ` [PATCH] ALSA: usb-audio: Prevent urb from writing out of bounds Lizhi Xu
2025-11-06 10:02 ` Takashi Iwai
2025-11-06 11:31 ` Lizhi Xu
2025-11-06 11:49 ` Takashi Iwai
2025-11-06 14:35 ` Lizhi Xu
2025-11-06 16:41 ` Takashi Iwai
2025-11-06 23:51 ` Hillf Danton
2025-11-07 0:12 ` [syzbot] [sound?] [usb?] KASAN: slab-out-of-bounds Write in copy_to_urb syzbot
2025-11-07 0:54 ` [PATCH] ALSA: usb-audio: Prevent urb from writing out of bounds Lizhi Xu
2025-11-07 1:13 ` Lizhi Xu
2025-11-08 7:54 ` Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2025-10-30 22:34 [syzbot] [ext4?] WARNING in ext4_xattr_inode_update_ref (2) syzbot
2025-11-06 7:26 ` Forwarded: Re: [syzbot] [sound?] [usb?] KASAN: slab-out-of-bounds Write in copy_to_urb 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=690c532a.050a0220.1e8caa.00b9.GAE@google.com \
--to=syzbot+bfd77469c8966de076f7@syzkaller.appspotmail.com \
--cc=linux-kernel@vger.kernel.org \
/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