public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: KMSAN: uninit-value in alauda_check_media
@ 2019-10-11 11:17 Jas K
  2019-10-11 11:17 ` syzbot
  0 siblings, 1 reply; 2+ messages in thread
From: Jas K @ 2019-10-11 11:17 UTC (permalink / raw)
  To: syzbot+e7d46eb426883fb97efd
  Cc: stern, gregkh, linux-usb, usb-storage, linux-kernel

Hi, just taking a crack at this. Hope you guys don't mind.

#syz test: https://github.com/google/kasan.git 1e76a3e5

diff --git a/drivers/usb/storage/alauda.c b/drivers/usb/storage/alauda.c
index ddab2cd3d2e7..bb309b9ad65b 100644
--- a/drivers/usb/storage/alauda.c
+++ b/drivers/usb/storage/alauda.c
@@ -452,7 +452,7 @@ static int alauda_init_media(struct us_data *us)
 static int alauda_check_media(struct us_data *us)
 {
 	struct alauda_info *info = (struct alauda_info *) us->extra;
-	unsigned char status[2];
+	unsigned char *status = us->iobuf;
 	int rc;
 
 	rc = alauda_get_media_status(us, status);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: Re: KMSAN: uninit-value in alauda_check_media
  2019-10-11 11:17 KMSAN: uninit-value in alauda_check_media Jas K
@ 2019-10-11 11:17 ` syzbot
  0 siblings, 0 replies; 2+ messages in thread
From: syzbot @ 2019-10-11 11:17 UTC (permalink / raw)
  To: Jas K
  Cc: gregkh, jaskaransingh7654321, linux-kernel, linux-usb, stern,
	usb-storage, syzkaller-bugs

> Hi, just taking a crack at this. Hope you guys don't mind.

> #syz test: https://github.com/google/kasan.git 1e76a3e5

KMSAN bugs can only be tested on https://github.com/google/kmsan.git tree
because KMSAN tool is not upstreamed yet.
See https://goo.gl/tpsmEJ#kmsan-bugs for details.


> diff --git a/drivers/usb/storage/alauda.c b/drivers/usb/storage/alauda.c
> index ddab2cd3d2e7..bb309b9ad65b 100644
> --- a/drivers/usb/storage/alauda.c
> +++ b/drivers/usb/storage/alauda.c
> @@ -452,7 +452,7 @@ static int alauda_init_media(struct us_data *us)
>   static int alauda_check_media(struct us_data *us)
>   {
>   	struct alauda_info *info = (struct alauda_info *) us->extra;
> -	unsigned char status[2];
> +	unsigned char *status = us->iobuf;
>   	int rc;

>   	rc = alauda_get_media_status(us, status);

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-11 11:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-11 11:17 KMSAN: uninit-value in alauda_check_media Jas K
2019-10-11 11:17 ` syzbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox