From: syzbot <syzbot+dc208a8cf8d37cf3e5ac@syzkaller.appspotmail.com>
To: arbabhaider649@gmail.com
Cc: arbabhaider649@gmail.com, syzkaller-bugs@googlegroups.com,
linux-kernel@vger.kernel.org
Subject: Re: [syzbot] divide error in alauda_transport
Date: Sun, 22 Nov 2026 09:44:22 -0800 [thread overview]
Message-ID: <6b0329f6.a481e175.27cf24.000f.GAE@google.com> (raw)
In-Reply-To: <20261122174409.2818-1-arbabhaider649@gmail.com>
> #syz test
Patch testing via #syz test is temporarily disabled.
See https://github.com/google/syzkaller/issues/8122 for details.
>
> diff --git a/drivers/usb/storage/alauda.c b/drivers/usb/storage/alauda.c
> index 5e7f99ba8..5493f25a7 100644
> --- a/drivers/usb/storage/alauda.c
> +++ b/drivers/usb/storage/alauda.c
> @@ -96,6 +96,8 @@ struct alauda_media_info {
>
> u16 **lba_to_pba; /* logical to physical block map */
> u16 **pba_to_lba; /* physical to logical block map */
> +
> + bool media_initialized;
> };
>
> struct alauda_info {
> @@ -105,8 +107,6 @@ struct alauda_info {
> unsigned char sense_key;
> unsigned long sense_asc; /* additional sense code */
> unsigned long sense_ascq; /* additional sense code qualifier */
> -
> - bool media_initialized;
> };
>
> #define short_pack(lsb,msb) ( ((u16)(lsb)) | ( ((u16)(msb))<<8 ) )
> @@ -471,6 +471,7 @@ static int alauda_check_media(struct us_data *us)
> || ((status[1] & 0x01) == 0)) {
> usb_stor_dbg(us, "No media, or door open\n");
> alauda_free_maps(&MEDIA_INFO(us));
> + MEDIA_INFO(us).media_initialized = false;
> info->sense_key = 0x02;
> info->sense_asc = 0x3A;
> info->sense_ascq = 0x00;
> @@ -478,12 +479,13 @@ static int alauda_check_media(struct us_data *us)
> }
>
> /* Check for media change */
> - if (status[0] & 0x08 || !info->media_initialized) {
> + if (status[0] & 0x08 || !MEDIA_INFO(us).media_initialized) {
> usb_stor_dbg(us, "Media change detected\n");
> alauda_free_maps(&MEDIA_INFO(us));
> + MEDIA_INFO(us).media_initialized = false;
> rc = alauda_init_media(us);
> if (rc == USB_STOR_TRANSPORT_GOOD)
> - info->media_initialized = true;
> + MEDIA_INFO(us).media_initialized = true;
> info->sense_key = UNIT_ATTENTION;
> info->sense_asc = 0x28;
> info->sense_ascq = 0x00;
next parent reply other threads:[~2026-11-22 17:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20261122174409.2818-1-arbabhaider649@gmail.com>
2026-11-22 17:44 ` syzbot [this message]
[not found] <20261122155945.2625-1-arbabhaider649@gmail.com>
2026-11-22 15:59 ` [syzbot] divide error in alauda_transport 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=6b0329f6.a481e175.27cf24.000f.GAE@google.com \
--to=syzbot+dc208a8cf8d37cf3e5ac@syzkaller.appspotmail.com \
--cc=arbabhaider649@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--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