aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/rust/pin-init/internal/src
diff options
context:
space:
mode:
authorYuichiro Tsuji <yuichtsu@amazon.com>2025-08-18 17:45:07 +0900
committerJakub Kicinski <kuba@kernel.org>2025-08-19 17:52:29 -0700
commit24ef2f53c07f273bad99173e27ee88d44d135b1c (patch)
treeb21233b317a4569bc87aa6119e58159417041401 /rust/pin-init/internal/src
parentphy: mscc: Fix timestamping for vsc8584 (diff)
downloadwireguard-linux-24ef2f53c07f273bad99173e27ee88d44d135b1c.tar.xz
wireguard-linux-24ef2f53c07f273bad99173e27ee88d44d135b1c.zip
net: usb: asix_devices: Fix PHY address mask in MDIO bus initialization
Syzbot reported shift-out-of-bounds exception on MDIO bus initialization. The PHY address should be masked to 5 bits (0-31). Without this mask, invalid PHY addresses could be used, potentially causing issues with MDIO bus operations. Fix this by masking the PHY address with 0x1f (31 decimal) to ensure it stays within the valid range. Fixes: 4faff70959d5 ("net: usb: asix_devices: add phy_mask for ax88772 mdio bus") Reported-by: syzbot+20537064367a0f98d597@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=20537064367a0f98d597 Tested-by: syzbot+20537064367a0f98d597@syzkaller.appspotmail.com Signed-off-by: Yuichiro Tsuji <yuichtsu@amazon.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://patch.msgid.link/20250818084541.1958-1-yuichtsu@amazon.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/pin-init/internal/src')
0 files changed, 0 insertions, 0 deletions