* Re: [syzbot] divide error in alauda_transport
[not found] <20261122174409.2818-1-arbabhaider649@gmail.com>
@ 2026-11-22 17:44 ` syzbot
0 siblings, 0 replies; 2+ messages in thread
From: syzbot @ 2026-11-22 17:44 UTC (permalink / raw)
To: arbabhaider649; +Cc: arbabhaider649, syzkaller-bugs, linux-kernel
> #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;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [syzbot] divide error in alauda_transport
[not found] <20261122155945.2625-1-arbabhaider649@gmail.com>
@ 2026-11-22 15:59 ` syzbot
0 siblings, 0 replies; 2+ messages in thread
From: syzbot @ 2026-11-22 15:59 UTC (permalink / raw)
To: arbabhaider649; +Cc: arbabhaider649, linux-kernel, syzkaller-bugs
> #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;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-22 17:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20261122174409.2818-1-arbabhaider649@gmail.com>
2026-11-22 17:44 ` [syzbot] divide error in alauda_transport syzbot
[not found] <20261122155945.2625-1-arbabhaider649@gmail.com>
2026-11-22 15:59 ` syzbot
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®