linux/drivers/net/ethernet
Colin Ian King e701a25840 net: thunderx: Fix unintentional sign extension issue
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 <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-04-12 13:13:57 -07:00
..
3com net: 3c509: Fix fall-through warnings for Clang 2021-03-10 12:45:15 -08:00
8390
actions net: ethernet: actions: Add Actions Semi Owl Ethernet MAC driver 2021-03-22 12:56:21 -07:00
adaptec
aeroflex
agere
alacritech
allwinner
alteon
altera
amazon net: ena: remove extra words from comments 2021-03-31 14:34:08 -07:00
amd Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-04-09 20:48:35 -07:00
apm
apple
aquantia
arc
atheros net: atheros: atl2: use module_pci_driver to simplify the code 2021-04-07 15:15:01 -07:00
broadcom Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-04-09 20:48:35 -07:00
brocade bna: Update driver to use ethtool_sprintf 2021-03-17 11:42:31 -07:00
cadence Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-04-09 20:48:35 -07:00
calxeda
cavium net: thunderx: Fix unintentional sign extension issue 2021-04-12 13:13:57 -07:00
chelsio cxgb4: Fix unintentional sign extension issues 2021-04-12 13:13:17 -07:00
cirrus
cisco enic: use module_pci_driver to simplify the code 2021-04-07 15:15:01 -07:00
cortina
davicom net: davicom: Use platform_get_irq_optional() 2021-03-08 12:01:58 -08:00
dec tulip: de2104x: use module_pci_driver to simplify the code 2021-04-07 15:15:01 -07:00
dlink net: sundance: use module_pci_driver to simplify the code 2021-04-07 15:15:01 -07:00
emulex
ezchip
faraday Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-03-25 15:31:22 -07:00
freescale Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-04-09 20:48:35 -07:00
fujitsu
google net: gve: remove duplicated allowed 2021-03-25 17:07:58 -07:00
hisilicon Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-04-09 20:48:35 -07:00
huawei hinic: avoid gcc -Wrestrict warning 2021-03-24 18:00:32 -07:00
i825xx
ibm ehea: add missing MODULE_DEVICE_TABLE 2021-04-11 16:42:38 -07:00
intel Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-04-09 20:48:35 -07:00
marvell net: marvell: Fix an alignment problem 2021-03-29 13:23:59 -07:00
mediatek net: ethernet: mtk_eth_soc: remove unneeded semicolon 2021-04-06 16:27:00 -07:00
mellanox net/mlx5: Add support for DSFP module EEPROM dumps 2021-04-11 16:34:56 -07:00
micrel
microchip Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-04-09 20:48:35 -07:00
moxa net: moxa: remove redundant dev_err call in moxart_mac_probe() 2021-03-28 18:06:50 -07:00
mscc time64.h: Consolidated PSEC_PER_SEC definition 2021-04-06 16:32:17 -07:00
myricom ethernet: myri10ge: Fix a use after free in myri10ge_sw_tso 2021-03-29 13:41:17 -07:00
natsemi
neterion net: ethernet: neterion: Fix a typo in the file s2io.c 2021-03-15 12:48:20 -07:00
netronome Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-04-09 20:48:35 -07:00
ni
nvidia
nxp net: lpc_eth: fix format warnings of block comments 2021-03-31 14:34:09 -07:00
oki-semi ptp_pch: Move 'pch_*()' prototypes to shared header 2021-03-12 17:09:34 -08:00
packetengines
pasemi
pensando ionic: extend ts_config set locking 2021-04-08 13:18:49 -07:00
qlogic qede: Use 'skb_add_rx_frag()' instead of hand coding it 2021-04-05 11:59:33 -07:00
qualcomm net: qualcomm: rmnet: don't use C bit-fields in rmnet checksum header 2021-03-15 20:41:58 -07:00
rdc
realtek r8169: use mac-managed PHY PM 2021-04-09 16:37:05 -07:00
renesas sh_eth: place RX/TX descriptor *enum*s after their *struct*s 2021-03-12 17:50:42 -08:00
rocker
samsung net: phy: rename PHY_IGNORE_INTERRUPT to PHY_MAC_INTERRUPT 2021-02-15 15:20:49 -08:00
seeq
sfc sfc: Use 'skb_add_rx_frag()' instead of hand coding it 2021-04-05 11:55:44 -07:00
sgi
silan
sis
smsc net: smsc911x: skip acpi_device_id table when !CONFIG_ACPI 2021-04-05 15:05:02 -07:00
socionext Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-03-25 16:30:46 -07:00
stmicro stmmac: intel: Enable SERDES PHY rx clk for PSE 2021-04-07 14:24:23 -07:00
sun Fix a typo 2021-03-18 19:46:19 -07:00
synopsys
tehuti net: tehuti: fix error return code in bdx_probe() 2021-03-05 12:59:32 -08:00
ti bpf, devmap: Move drop error path to devmap for XDP_REDIRECT 2021-03-18 16:38:51 +01:00
toshiba net: toshiba: fix the trailing format of some block comments 2021-03-31 14:34:09 -07:00
tundra
via net: ethernet: Fix typo of 'network' in comment 2021-03-30 18:14:11 -07:00
wiznet
xilinx Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-04-09 20:48:35 -07:00
xircom xircom: remove redundant error check on variable err 2021-04-07 14:48:32 -07:00
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c net: fealnx: use module_pci_driver to simplify the code 2021-04-07 15:15:02 -07:00
jme.c
jme.h
Kconfig net: ethernet: actions: Add Actions Semi Owl Ethernet MAC driver 2021-03-22 12:56:21 -07:00
korina.c
lantiq_etop.c
lantiq_xrx200.c net: lantiq: Remove redundant dev_err call in xrx200_probe() 2021-03-28 18:06:11 -07:00
Makefile net: ethernet: actions: Add Actions Semi Owl Ethernet MAC driver 2021-03-22 12:56:21 -07:00