linux-stable/drivers/net
Dominik Czarnota 28866e0921 sxgbe: Fix off by one in samsung driver strncpy size arg
[ Upstream commit f3cc008bf6 ]

This patch fixes an off-by-one error in strncpy size argument in
drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c. The issue is that in:

        strncmp(opt, "eee_timer:", 6)

the passed string literal: "eee_timer:" has 10 bytes (without the NULL
byte) and the passed size argument is 6. As a result, the logic will
also accept other, malformed strings, e.g. "eee_tiXXX:".

This bug doesn't seem to have any security impact since its present in
module's cmdline parsing code.

Signed-off-by: Dominik Czarnota <dominik.b.czarnota@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-02 15:28:15 +02:00
..
appletalk
arcnet
bonding bonding/alb: make sure arp header is pulled before accessing it 2020-03-18 07:14:18 +01:00
caif
can slcan: not call free_netdev before rtnl_unlock in slcan_open 2020-04-02 15:28:12 +02:00
dsa net: dsa: mt7530: Change the LINK bit to reflect the link status 2020-04-02 15:28:13 +02:00
ethernet sxgbe: Fix off by one in samsung driver strncpy size arg 2020-04-02 15:28:15 +02:00
fddi
fjes fjes: fix missed check in fjes_acpi_add 2019-12-31 16:34:36 +01:00
hamradio 6pack,mkiss: fix possible deadlock 2020-01-04 19:13:27 +01:00
hippi
hyperv hv_netvsc: Fix unwanted wakeup in netvsc_attach() 2020-03-05 16:42:19 +01:00
ieee802154
ipvlan ipvlan: don't deref eth hdr before checking it's set 2020-03-18 07:14:12 +01:00
netdevsim
phy net: phy: mdio-mux-bcm-iproc: check clk_prepare_enable() return value 2020-04-02 15:28:13 +02:00
plip
ppp ppp: Adjust indentation into ppp_async_input 2020-02-11 04:34:13 -08:00
slip slip: not call free_netdev before rtnl_unlock in slip_open 2020-03-20 11:55:54 +01:00
team team: add missing attribute validation for array index 2020-03-18 07:14:16 +01:00
usb net: qmi_wwan: add support for ASKEY WWHC050 2020-04-02 15:28:11 +02:00
vmxnet3
wan wan: ixp4xx_hss: fix compile-testing on 64-bit 2020-02-24 08:34:46 +01:00
wimax wimax: i2400: Fix memory leak in i2400m_op_rfkill_sw_toggle 2020-03-20 11:55:57 +01:00
wireless mt76: fix array overflow on receiving too many fragments for a packet 2020-03-18 07:14:22 +01:00
xen-netback
dummy.c
eql.c
geneve.c geneve: move debug check after netdev unregister 2020-04-02 15:28:10 +02:00
gtp.c gtp: use __GFP_NOWARN to avoid memalloc warning 2020-02-11 04:33:52 -08:00
ifb.c
Kconfig geneve: change NET_UDP_TUNNEL dependency to select 2019-12-05 09:21:10 +01:00
LICENSE.SRC
loopback.c
macsec.c macsec: restrict to ethernet devices 2020-04-02 15:28:10 +02:00
macvlan.c macvlan: add cond_resched() during multicast processing 2020-03-18 07:14:19 +01:00
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c ntb_netdev: fix sleep time mismatch 2019-12-01 09:17:13 +01:00
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c tun: add mutex_unlock() call and napi.skb clearing in tun_get_user() 2020-01-29 16:43:17 +01:00
veth.c
virtio_net.c
vrf.c Revert "vrf: mark skb for multicast or link-local as enslaved to VRF" 2020-03-25 08:06:14 +01:00
vsockmon.c
vxlan.c vxlan: check return value of gro_cells_init() 2020-04-02 15:28:13 +02:00
xen-netfront.c