WSL2-Linux-Kernel/drivers/net/phy
Radu Pirea (OSS) aaae6d3031 net: phy: nxp-c45-tja11xx: fix unsigned long multiplication overflow
commit bdaaecc127 upstream.

Any multiplication between GENMASK(31, 0) and a number bigger than 1
will be truncated because of the overflow, if the size of unsigned long
is 32 bits.

Replaced GENMASK with GENMASK_ULL to make sure that multiplication will
be between 64 bits values.

Cc: <stable@vger.kernel.org> # 5.15+
Fixes: 514def5dd3 ("phy: nxp-c45-tja11xx: add timestamping support")
Signed-off-by: Radu Pirea (OSS) <radu-nicolae.pirea@oss.nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20230406095953.75622-1-radu-nicolae.pirea@oss.nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-04-20 12:13:55 +02:00
..
mscc net: phy: mscc: macsec: clear encryption keys when freeing a flow 2022-11-16 09:58:22 +01:00
Kconfig
Makefile
adin.c
amd.c
aquantia.h
aquantia_hwmon.c
aquantia_main.c net: phy: aquantia: wait for the suspend/resume operations to finish 2022-09-28 11:11:47 +02:00
at803x.c net: phy: at803x: move page selection fix to config_init 2022-04-08 14:23:26 +02:00
ax88796b.c net: phy: ax88772a: fix lost pause advertisement configuration 2022-07-07 17:53:28 +02:00
bcm-cygnus.c
bcm-phy-lib.c
bcm-phy-lib.h
bcm7xxx.c
bcm63xx.c
bcm87xx.c
bcm54140.c
bcm84881.c
broadcom.c net: phy: broadcom: Fix brcm_fet_config_init() 2022-04-08 14:23:52 +02:00
cicada.c
cortina.c
davicom.c
dp83tc811.c
dp83640.c
dp83640_reg.h
dp83822.c net: phy: dp83822: Fix null pointer access on DP83825/DP83826 devices 2023-02-09 11:26:35 +01:00
dp83848.c
dp83867.c net: phy: dp83867: Extend RX strap quirk for SGMII mode 2022-10-29 10:12:55 +02:00
dp83869.c net: phy: dp83869: fix default value for tx-/rx-internal-delay 2023-04-05 11:24:59 +02:00
et1011c.c
fixed_phy.c
icplus.c
intel-xway.c
linkmode.c
lxt.c
marvell-88x2222.c
marvell.c net: phy: marvell: add sleep time after enabling the loopback bit 2022-11-26 09:24:47 +01:00
marvell10g.c net: phy: marvell10g: fix return value on error 2022-05-09 09:14:37 +02:00
mdio-boardinfo.c
mdio-boardinfo.h
mdio_bus.c net: mdio: validate parameter addr in mdiobus_get_phy() 2023-02-01 08:27:10 +01:00
mdio_device.c net: mdio: fix unbalanced fwnode reference count in mdio_device_release() 2022-12-14 11:37:28 +01:00
mdio_devres.c net: mdio: fix owner field for mdio buses registered using device-tree 2023-03-30 12:47:46 +02:00
mediatek-ge.c net: phy: mediatek: remove PHY mode check on MT7531 2022-02-23 12:03:12 +01:00
meson-gxl.c net: phy: meson-gxl: use MMD access dummy stubs for GXL, internal PHY 2023-02-14 19:17:59 +01:00
micrel.c net: phy: micrel: Allow probing without .driver_data 2022-06-09 10:22:38 +02:00
microchip.c net: lan78xx: fix accessing the LAN7800's internal phy specific registers from the MAC driver 2023-03-17 08:48:54 +01:00
microchip_t1.c
mii_timestamper.c
motorcomm.c
mxl-gpy.c net: phy: mxl-gpy: fix version reporting 2022-12-14 11:37:29 +01:00
national.c
nxp-c45-tja11xx.c net: phy: nxp-c45-tja11xx: fix unsigned long multiplication overflow 2023-04-20 12:13:55 +02:00
nxp-tja11xx.c
phy-c45.c
phy-core.c net: phy: prefer 1000baseT over 1000baseKX 2022-01-27 11:04:38 +01:00
phy.c net: phy: Ensure state transitions are processed from phy_stop() 2023-03-30 12:47:45 +02:00
phy_device.c net: phylib: get rid of unnecessary locking 2023-03-17 08:48:55 +01:00
phy_led_triggers.c
phylink.c net: phylink: move phy_device_free() to correctly release phy device 2023-02-14 19:17:58 +01:00
qsemi.c
realtek.c
rockchip.c
sfp-bus.c net: sfp: add 2500base-X quirk for Lantech SFP module 2022-04-13 20:59:09 +02:00
sfp.c net: sfp: initialize sfp->i2c_block_size at sfp allocation 2023-04-20 12:13:55 +02:00
sfp.h
smsc.c net: phy: smsc: bail out in lan87xx_read_status if genphy_read_status fails 2023-03-22 13:31:26 +01:00
spi_ks8995.c
ste10Xp.c
swphy.c
swphy.h
teranetics.c
uPD60620.c
vitesse.c
xilinx_gmii2rgmii.c net: phy: xgmiitorgmii: Fix refcount leak in xgmiitorgmii_probe 2023-01-12 11:59:13 +01:00