linux-stable/drivers/net/ethernet/microchip/sparx5
Justin Stitt e343023e03 net: sparx5: replace deprecated strncpy with ethtool_sprintf
strncpy() is deprecated for use on NUL-terminated destination strings
[1] and as such we should prefer more robust and less ambiguous string
interfaces.

ethtool_sprintf() is designed specifically for get_strings() usage.
Let's replace strncpy() in favor of this more robust and easier to
understand interface.

Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strncpy-on-nul-terminated-strings [1]
Link: https://manpages.debian.org/testing/linux-manual-4.8/strscpy.9.en.html [2]
Link: https://github.com/KSPP/linux/issues/90
Signed-off-by: Justin Stitt <justinstitt@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20231011-strncpy-drivers-net-ethernet-microchip-sparx5-sparx5_ethtool-c-v1-1-410953d07f42@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-10-13 17:10:32 -07:00
..
Kconfig
Makefile net: microchip: sparx5: add support for PSFP flow-meters 2023-02-06 08:26:25 +00:00
sparx5_calendar.c
sparx5_dcb.c net: microchip: sparx5: fix deletion of existing DSCP mappings 2023-03-08 13:07:59 +00:00
sparx5_ethtool.c net: sparx5: replace deprecated strncpy with ethtool_sprintf 2023-10-13 17:10:32 -07:00
sparx5_fdma.c
sparx5_mactable.c
sparx5_main.c net: ethernet: microchip: Convert to platform remove callback returning void 2023-09-20 09:06:39 +01:00
sparx5_main.h net: microchip: Remove unused declarations 2023-08-22 10:31:47 -07:00
sparx5_main_regs.h net: microchip: sparx5: Updated register interface with VCAP ES0 access 2023-02-16 08:59:48 +01:00
sparx5_netdev.c net: remove phy_has_hwtstamp() -> phy_mii_ioctl() decision from converted drivers 2023-08-02 19:11:06 -07:00
sparx5_packet.c
sparx5_pgid.c
sparx5_phylink.c net: sparx5: update PCS driver to use neg_mode 2023-06-22 19:41:02 -07:00
sparx5_police.c net: microchip: sparx5: add support for service policers 2023-02-06 08:26:25 +00:00
sparx5_pool.c net: microchip: sparx5: add resource pools 2023-02-06 08:26:25 +00:00
sparx5_port.c net: microchip: sparx5: Discard frames with SMAC multicast addresses 2023-02-16 08:59:48 +01:00
sparx5_port.h
sparx5_psfp.c net: microchip: sparx5: initialize PSFP 2023-02-06 08:26:26 +00:00
sparx5_ptp.c net: sparx5: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set() 2023-08-02 19:11:06 -07:00
sparx5_qos.c net: microchip: sparx5: initialize PSFP 2023-02-06 08:26:26 +00:00
sparx5_qos.h
sparx5_sdlb.c net: microchip: sparx5: add support for Service Dual Leacky Buckets 2023-02-06 08:26:25 +00:00
sparx5_switchdev.c
sparx5_tc.c net/sched: move struct tc_mqprio_qopt_offload from pkt_cls.h to pkt_sched.h 2023-02-06 10:06:43 +00:00
sparx5_tc.h net: microchip: sparx5: Add TC vlan action support for the ES0 VCAP 2023-02-16 08:59:49 +01:00
sparx5_tc_flower.c net: microchip: sparx5: Update return value check for vcap_get_rule() 2023-08-19 19:29:23 +01:00
sparx5_tc_matchall.c
sparx5_vcap_ag_api.c net: microchip: sparx5: Add ES0 VCAP model and updated KUNIT VCAP model 2023-02-16 08:59:48 +01:00
sparx5_vcap_ag_api.h
sparx5_vcap_debugfs.c net: microchip: sparx5: Correct the spelling of the keysets in debugfs 2023-03-08 13:19:43 +00:00
sparx5_vcap_debugfs.h
sparx5_vcap_impl.c net: microchip: sparx5: Add port keyset changing functionality 2023-03-08 13:19:43 +00:00
sparx5_vcap_impl.h net: microchip: sparx5: Add port keyset changing functionality 2023-03-08 13:19:43 +00:00
sparx5_vlan.c net: microchip: sparx5: Egress VLAN TPID configuration follows IFH 2023-02-16 08:59:48 +01:00