public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: syzbot <syzbot+1f53a30781af65d2c955@syzkaller.appspotmail.com>
To: hridesh699@gmail.com
Cc: hridesh699@gmail.com, linux-kernel@vger.kernel.org,
	 syzkaller-bugs@googlegroups.com
Subject: Re: KMSAN: uninit-value in mii_nway_restart
Date: Sat, 07 Sep 2024 04:09:29 -0700	[thread overview]
Message-ID: <000000000000b90a470621858e8b@google.com> (raw)
In-Reply-To: <CALiyAom35=FOaBTWuqT-vta9PFuQAshkq6CkSJirK62oxuo7VQ@mail.gmail.com>

> #syz test

This bug is already marked as fixed. No point in testing.

> diff --git a/drivers/net/usb/dm9601.c b/drivers/net/usb/dm9601.c
> index 48d7d278631e..2e2bb22e60ea 100644
> --- a/drivers/net/usb/dm9601.c
> +++ b/drivers/net/usb/dm9601.c
> @@ -10,6 +10,7 @@
>
>  //#define DEBUG
>
> +#include "net/net_debug.h"
>  #include <linux/module.h>
>  #include <linux/sched.h>
>  #include <linux/stddef.h>
> @@ -222,13 +223,18 @@ static int dm9601_mdio_read(struct net_device
> *netdev, int phy_id, int loc)
>     struct usbnet *dev = netdev_priv(netdev);
>
>     __le16 res;
> +   int err;
>
>     if (phy_id) {
>         netdev_dbg(dev->net, "Only internal phy supported\n");
>         return 0;
>     }
>
> -   dm_read_shared_word(dev, 1, loc, &res);
> +   err = dm_read_shared_word(dev, 1, loc, &res);
> +   if (err < 0) {
> +       netdev_err(dev->net, "MDIO read error: %d\n", err);
> +       return err;
> +   }
>
>     netdev_dbg(dev->net,
>            "dm9601_mdio_read() phy_id=0x%02x, loc=0x%02x, returns=0x%04x\n",

       reply	other threads:[~2024-09-07 11:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CALiyAom35=FOaBTWuqT-vta9PFuQAshkq6CkSJirK62oxuo7VQ@mail.gmail.com>
2024-09-07 11:09 ` syzbot [this message]
     [not found] <CABMo7LJa5deYaxgCuSFBMxSQeaX5PH4_mMyVnDnRQ+rJHi03pQ@mail.gmail.com>
2024-12-07 19:16 ` KMSAN: uninit-value in mii_nway_restart syzbot
     [not found] <CAFRctSGbnUwgYE9yTU1V+ULZuo_AXxwHR8s-_7=+MiAHKE-Qow@mail.gmail.com>
2024-09-28 21:14 ` syzbot
     [not found] <CACb6ct19G+OKzjHTaMM3N-uO_5DC_UZWiHPv5V90XoWLoRzeHQ@mail.gmail.com>
2024-09-12 10:23 ` syzbot
     [not found] <CACb6ct1hN+xLbMyKvmxuExkSqoSgahV30HFsdo0Epm4sjqWfkA@mail.gmail.com>
2024-09-12 10:20 ` syzbot
     [not found] <CACb6ct0LWnXzbEyFYL4dBMZX8m8xZD3Yc5JOtKJhK=Sj306Wzg@mail.gmail.com>
2024-09-12  9:41 ` syzbot
2019-06-04 10:32 syzbot
     [not found] ` <b15ccfc3-4b86-4a6c-b72c-880963d842f6n@googlegroups.com>
2022-08-30  8:26   ` Alexander Potapenko

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=000000000000b90a470621858e8b@google.com \
    --to=syzbot+1f53a30781af65d2c955@syzkaller.appspotmail.com \
    --cc=hridesh699@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