mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yuichiro Tsuji <yuichtsu@amazon.com>
To: <syzbot+20537064367a0f98d597@syzkaller.appspotmail.com>
Cc: <linux-kernel@vger.kernel.org>, <syzkaller-bugs@googlegroups.com>
Subject: Re: [syzbot] [usb?] UBSAN: shift-out-of-bounds in ax88772_bind
Date: Mon, 18 Aug 2025 15:22:17 +0900	[thread overview]
Message-ID: <20250818062217.1231-1-yuichtsu@amazon.com> (raw)
In-Reply-To: <68a208d0.050a0220.e29e5.006e.GAE@google.com>

#syz test

diff --git a/drivers/net/usb/asix_devices.c b/drivers/net/usb/asix_devices.c
index d9f5942ccc44..792ddda1ad49 100644
--- a/drivers/net/usb/asix_devices.c
+++ b/drivers/net/usb/asix_devices.c
@@ -676,7 +676,7 @@ static int ax88772_init_mdio(struct usbnet *dev)
        priv->mdio->read = &asix_mdio_bus_read;
        priv->mdio->write = &asix_mdio_bus_write;
        priv->mdio->name = "Asix MDIO Bus";
-       priv->mdio->phy_mask = ~(BIT(priv->phy_addr) | BIT(AX_EMBD_PHY_ADDR));
+       priv->mdio->phy_mask = ~(BIT(priv->phy_addr & 0x1f) | BIT(AX_EMBD_PHY_ADDR));
        /* mii bus name is usb-<usb bus number>-<usb device number> */
        snprintf(priv->mdio->id, MII_BUS_ID_SIZE, "usb-%03d:%03d",
                 dev->udev->bus->busnum, dev->udev->devnum);

  parent reply	other threads:[~2025-08-18  6:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-16  3:08 syzbot
2025-08-17 16:52 ` syzbot
2025-08-18  4:05   ` Yuichiro Tsuji
2025-08-18  4:59     ` syzbot
2025-08-18  5:12   ` Yuichiro Tsuji
2025-08-18  5:27     ` syzbot
2025-08-18  6:22   ` Yuichiro Tsuji [this message]
2025-08-18  6:53     ` syzbot
2025-08-17 19:42 ` Forwarded: syzbot
     [not found] <CAMV7Lq4Uob0YMb+rZQNUApX4YYPQyqarsDCA1pVTLMV5=vUgQw@mail.gmail.com>
2025-08-17 20:49 ` [syzbot] [usb?] UBSAN: shift-out-of-bounds in ax88772_bind 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=20250818062217.1231-1-yuichtsu@amazon.com \
    --to=yuichtsu@amazon.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+20537064367a0f98d597@syzkaller.appspotmail.com \
    --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

all inboxes | Powered by JetHome®