android_kernel_motorola_sm6375/drivers/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Colin Ian King e1d10b2cc7 net: thunderx: Fix unintentional sign extension issue
[ Upstream commit e701a25840360706fe4cf5de0015913ca19c274b ]

The shifting of the u8 integers rq->caching by 26 bits to
the left will be promoted to a 32 bit signed int and then
sign-extended to a u64. In the event that rq->caching is
greater than 0x1f then all then all the upper 32 bits of
the u64 end up as also being set because of the int
sign-extension. Fix this by casting the u8 values to a
u64 before the 26 bit left shift.

Addresses-Coverity: ("Unintended sign extension")
Fixes: 4863dea3fa ("net: Adding support for Cavium ThunderX network controller")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2021-05-14 09:44:28 +02:00
..
appletalk
arcnet
bonding
caif
can drivers: net: fix memory leak in peak_usb_create_dev 2021-04-14 08:24:18 +02:00
dsa net: phy: marvell: fix detection of PHY on Topaz switches 2021-04-21 12:56:18 +02:00
ethernet net: thunderx: Fix unintentional sign extension issue 2021-05-14 09:44:28 +02:00
fddi FDDI: defxx: Bail out gracefully with unassigned PCI resource for CSR 2021-05-14 09:44:12 +02:00
fjes
hamradio
hippi
hyperv
ieee802154 drivers: net: fix memory leak in atusb_probe 2021-04-14 08:24:18 +02:00
ipvlan
netdevsim netdevsim: init u64 stats for 32bit hardware 2021-03-17 17:03:35 +01:00
phy net: phy: marvell: fix detection of PHY on Topaz switches 2021-04-21 12:56:18 +02:00
plip
ppp
slip
team team: protect features update by RCU to avoid deadlock 2021-02-03 23:26:02 +01:00
usb net: usb: ax88179_178a: initialize local variables before use 2021-05-07 10:51:37 +02:00
vmxnet3
wan net: lapbether: Prevent racing when checking whether the netif is running 2021-05-14 09:44:26 +02:00
wimax staging: wimax/i2400m: fix byte-order issue 2021-05-11 14:04:05 +02:00
wireless mt7601u: fix always true expression 2021-05-14 09:44:28 +02:00
xen-netback xen-netback: Check for hotplug-status existence before watching 2021-04-28 13:19:15 +02:00
dummy.c
eql.c
geneve.c net: geneve: check skb is large enough for IPv4/IPv6 header 2021-04-28 13:19:15 +02:00
gtp.c net: icmp: pass zeroed opts from icmp{,v6}_ndo_send before sending 2021-03-04 10:26:53 +01:00
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c net: fix dev_ifsioc_locked() race condition 2021-03-07 12:20:43 +01:00
thunderbolt.c
tun.c net: tun: set tun->dev->addr_len during TUNSETLINK processing 2021-04-14 08:24:18 +02:00
veth.c veth: Store queue_mapping independently of XDP prog presence 2021-03-30 14:35:24 +02:00
virtio_net.c virtio_net: Add XDP meta data support 2021-04-14 08:24:13 +02:00
vrf.c
vsockmon.c
vxlan.c vxlan: move debug check after netdev unregister 2021-03-04 10:26:38 +01:00
xen-netfront.c