u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/25] Fix some non-NULL terminated strings in the networking subsystem
@ 2021-09-27 11:21 Vladimir Oltean
  2021-09-27 11:21 ` [PATCH 01/25] arch: powerpc: mpc85xx: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation Vladimir Oltean
                   ` (24 more replies)
  0 siblings, 25 replies; 49+ messages in thread
From: Vladimir Oltean @ 2021-09-27 11:21 UTC (permalink / raw)
  To: u-boot; +Cc: Joe Hershberger, Ramon Fried

This series is the result of a small patching spree, which started off
by noticing some truncation that might take place when setting the MDIO
bus name in one driver, and then looked at what other drivers do, and
then.....

Vladimir Oltean (25):
  arch: powerpc: mpc85xx: ensure mdiodev->name is NULL terminated after
    MDIO_NAME_LEN truncation
  board: gdsys: a38x: ensure mdiodev->name is NULL terminated after
    MDIO_NAME_LEN truncation
  net: armada100_fec: ensure mdiodev->name is NULL terminated after
    MDIO_NAME_LEN truncation
  net: at91_emac: ensure mdiodev->name is NULL terminated after
    MDIO_NAME_LEN truncation
  net: bcm-sf2: ensure mdiodev->name is NULL terminated after
    MDIO_NAME_LEN truncation
  net: eepro100: ensure mdiodev->name is NULL terminated after
    MDIO_NAME_LEN truncation
  net: ep93xx: ensure mdiodev->name is NULL terminated after
    MDIO_NAME_LEN truncation
  net: enetc: ensure imdio.name is NULL terminated after MDIO_NAME_LEN
    truncation
  net: mcdmafec: ensure bus->name is NULL terminated after MDIO_NAME_LEN
    truncation
  net: ftmac110: ensure mdiodev->name is NULL terminated after
    MDIO_NAME_LEN truncation
  net: lpc32xx: ensure mdiodev->name is NULL terminated after
    MDIO_NAME_LEN truncation
  net: macb: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN
    truncation
  net: mpc8xx_fec: ensure mdiodev->name is NULL terminated after
    MDIO_NAME_LEN truncation
  net: dsa: felix: ensure mii_bus->name is NULL terminated after
    MDIO_NAME_LEN truncation
  net: mvgbe: ensure mdiodev->name is NULL terminated after
    MDIO_NAME_LEN truncation
  net: sh_eth: ensure mdiodev->name is NULL terminated after
    MDIO_NAME_LEN truncation
  net: smc911x: ensure mdiodev->name is NULL terminated after
    MDIO_NAME_LEN truncation
  net: davinci_emac: ensure mdiodev->name is NULL terminated after
    MDIO_NAME_LEN truncation
  net: qe: uec: ensure mdiodev->name is NULL terminated after
    MDIO_NAME_LEN truncation
  net: mdio-uclass: rewrite dm_mdio_post_probe using strlcpy
  scripts: ensure the cocci script for miiphy_register does not leave
    NULL-unterminated strings
  net: dsa: felix: check return code of mdio_alloc and mdio_register
  net: dsa: ensure port names are NULL-terminated after
    DSA_PORT_NAME_LENGTH truncation
  arch: powerpc: mpc85xx: free MDIO bus if mdio_register fails
  scripts: ensure the cocci script for miiphy_register does not leak the
    MDIO bus

 arch/powerpc/cpu/mpc85xx/ether_fcc.c       |  6 ++++--
 board/gdsys/a38x/ihs_phys.c                |  4 +---
 drivers/net/armada100_fec.c                |  2 +-
 drivers/net/at91_emac.c                    |  2 +-
 drivers/net/bcm-sf2-eth.c                  |  2 +-
 drivers/net/eepro100.c                     |  2 +-
 drivers/net/ep93xx_eth.c                   |  2 +-
 drivers/net/fsl_enetc.c                    |  2 +-
 drivers/net/fsl_mcdmafec.c                 |  2 +-
 drivers/net/ftmac110.c                     |  2 +-
 drivers/net/lpc32xx_eth.c                  |  2 +-
 drivers/net/macb.c                         |  4 ++--
 drivers/net/mpc8xx_fec.c                   |  2 +-
 drivers/net/mscc_eswitch/felix_switch.c    | 14 +++++++++++---
 drivers/net/mvgbe.c                        |  2 +-
 drivers/net/sh_eth.c                       |  2 +-
 drivers/net/smc911x.c                      |  2 +-
 drivers/net/ti/davinci_emac.c              |  2 +-
 drivers/qe/uec.c                           |  2 +-
 net/dsa-uclass.c                           |  4 ++--
 net/mdio-uclass.c                          |  2 +-
 scripts/coccinelle/net/mdio_register.cocci |  4 ++--
 22 files changed, 38 insertions(+), 30 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 49+ messages in thread

end of thread, other threads:[~2021-09-28 13:44 UTC | newest]

Thread overview: 49+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-27 11:21 [PATCH 00/25] Fix some non-NULL terminated strings in the networking subsystem Vladimir Oltean
2021-09-27 11:21 ` [PATCH 01/25] arch: powerpc: mpc85xx: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation Vladimir Oltean
2021-09-28 13:24   ` Ramon Fried
2021-09-27 11:21 ` [PATCH 02/25] board: gdsys: a38x: " Vladimir Oltean
2021-09-28 13:24   ` Ramon Fried
2021-09-27 11:21 ` [PATCH 03/25] net: armada100_fec: " Vladimir Oltean
2021-09-28 13:31   ` Ramon Fried
2021-09-27 11:21 ` [PATCH 04/25] net: at91_emac: " Vladimir Oltean
2021-09-28 13:31   ` Ramon Fried
2021-09-27 11:21 ` [PATCH 05/25] net: bcm-sf2: " Vladimir Oltean
2021-09-28 13:31   ` Ramon Fried
2021-09-27 11:21 ` [PATCH 06/25] net: eepro100: " Vladimir Oltean
2021-09-28 13:31   ` Ramon Fried
2021-09-27 11:21 ` [PATCH 07/25] net: ep93xx: " Vladimir Oltean
2021-09-28 13:32   ` Ramon Fried
2021-09-27 11:21 ` [PATCH 08/25] net: enetc: ensure imdio.name " Vladimir Oltean
2021-09-28 13:32   ` Ramon Fried
2021-09-27 11:21 ` [PATCH 09/25] net: mcdmafec: ensure bus->name " Vladimir Oltean
2021-09-28 13:32   ` Ramon Fried
2021-09-27 11:21 ` [PATCH 10/25] net: ftmac110: ensure mdiodev->name " Vladimir Oltean
2021-09-28 13:32   ` Ramon Fried
2021-09-27 11:21 ` [PATCH 11/25] net: lpc32xx: " Vladimir Oltean
2021-09-28 13:32   ` Ramon Fried
2021-09-27 11:21 ` [PATCH 12/25] net: macb: " Vladimir Oltean
2021-09-28 13:32   ` Ramon Fried
2021-09-27 11:21 ` [PATCH 13/25] net: mpc8xx_fec: " Vladimir Oltean
2021-09-28 13:32   ` Ramon Fried
2021-09-27 11:21 ` [PATCH 14/25] net: dsa: felix: ensure mii_bus->name " Vladimir Oltean
2021-09-28 13:33   ` Ramon Fried
2021-09-27 11:21 ` [PATCH 15/25] net: mvgbe: ensure mdiodev->name " Vladimir Oltean
2021-09-28 13:33   ` Ramon Fried
2021-09-27 11:21 ` [PATCH 16/25] net: sh_eth: " Vladimir Oltean
2021-09-28 13:33   ` Ramon Fried
2021-09-27 11:21 ` [PATCH 17/25] net: smc911x: " Vladimir Oltean
2021-09-28 13:33   ` Ramon Fried
2021-09-27 11:21 ` [PATCH 18/25] net: davinci_emac: " Vladimir Oltean
2021-09-28 13:33   ` Ramon Fried
2021-09-27 11:21 ` [PATCH 19/25] net: qe: uec: " Vladimir Oltean
2021-09-28 13:33   ` Ramon Fried
2021-09-27 11:22 ` [PATCH 20/25] net: mdio-uclass: rewrite dm_mdio_post_probe using strlcpy Vladimir Oltean
2021-09-28 13:33   ` Ramon Fried
2021-09-27 11:22 ` [PATCH 21/25] scripts: ensure the cocci script for miiphy_register does not leave NULL-unterminated strings Vladimir Oltean
2021-09-27 11:22 ` [PATCH 22/25] net: dsa: felix: check return code of mdio_alloc and mdio_register Vladimir Oltean
2021-09-28 13:33   ` Ramon Fried
2021-09-27 11:22 ` [PATCH 23/25] net: dsa: ensure port names are NULL-terminated after DSA_PORT_NAME_LENGTH truncation Vladimir Oltean
2021-09-28 13:33   ` Ramon Fried
2021-09-27 11:22 ` [PATCH 24/25] arch: powerpc: mpc85xx: free MDIO bus if mdio_register fails Vladimir Oltean
2021-09-28 13:27   ` Ramon Fried
2021-09-27 11:22 ` [PATCH 25/25] scripts: ensure the cocci script for miiphy_register does not leak the MDIO bus Vladimir Oltean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).