lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <0c2b1c2c-1c2e-af5e-76e3-2e2196490fc5@pengutronix.de>
Date:   Mon, 11 Mar 2019 13:23:12 +0100
From:   Marc Kleine-Budde <mkl@...gutronix.de>
To:     "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        ptx kernel <kernel@...gutronix.de>,
        Heiner Kallweit <hkallweit1@...il.com>,
        Andrew Lunn <andrew@...n.ch>
Subject: BUG: "13d0ab6750b2 net: phy: check return code when requesting PHY
 driver module" breaks NFS-Root

Hello,

I'm on next-next/master and noticed that the following patch:

| 13d0ab6750b2 net: phy: check return code when requesting PHY
|              driver module

breaks NFS Root for my embedded device (riotboard). The kernel dhcp
fails to get an address and thus no NFS Root.

> [    1.869897] mdio_bus 2188000.ethernet-1:04: error -2 loading PHY driver module for ID 0x004dd072

The PHY driver is not compiled as a module, but compiled into the kernel:

> git grep 0x004dd072 drivers/net/phy/
> drivers/net/phy/at803x.c:#define ATH8035_PHY_ID 0x004dd072

> grep AT803 .config
> CONFIG_AT803X_PHY=y

After hacking the return value check away, the system boots again.

> diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
> index ddb12f420940..49c8aa7c7c03 100644
> --- a/drivers/net/phy/phy_device.c
> +++ b/drivers/net/phy/phy_device.c
> @@ -558,7 +558,7 @@ static int phy_request_driver_module(struct phy_device *dev, int phy_id)
>         if (IS_ENABLED(CONFIG_MODULES) && ret < 0) {
>                 phydev_err(dev, "error %d loading PHY driver module for ID 0x%08x\n",
>                            ret, phy_id);
> -               return ret;
> +               return 0;
>         }
> 
>         return 0;

regards,
Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |



Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ