On Mon, Aug 18, 2025 at 05:45:07PM +0900, Yuichiro Tsuji wrote: > 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@xxxxxxxxxxxxxxxxxxxxxxxxx > Closes: https://syzkaller.appspot.com/bug?extid=20537064367a0f98d597 > Tested-by: syzbot+20537064367a0f98d597@xxxxxxxxxxxxxxxxxxxxxxxxx > Signed-off-by: Yuichiro Tsuji <yuichtsu@xxxxxxxxxx> Reviewed-by: Andrew Lunn <andrew@xxxxxxx> Andrew