linux/drivers/net/ethernet
Jacob Keller c23544b196 fm10k: fix incorrect free on skb in ts_tx_enqueue
This patch resolves a bug in the ts_tx_enqueue code responsible for a
NULL pointer dereference and invalid access of the skb list. We
incorrectly freed the actual skb we found instead of our copy. Thus the
skb queue is essentially invalidated. Resolve this by freeing our clone
in the cases where we did not add it to the queue. This also avoids the
skb memory leak caused by failure to free the clone.

[  589.719320] BUG: unable to handle kernel NULL pointer dereference at           (null)
[  589.722344] IP: [<ffffffffa0310e60>] fm10k_ts_tx_subtask+0xb0/0x160 [fm10k]
[  589.723796] PGD 0
[  589.725228] Oops: 0000 [#1] SMP

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2015-06-17 14:20:36 -07:00
..
3com
8390 net:treewide: Fix typo in drivers/net 2015-04-27 13:40:53 -04:00
adaptec
adi ptp: blackfin: use helpers for converting ns to timespec. 2015-03-31 17:19:19 -04:00
aeroflex
agere
allwinner
alteon
altera altera_tse: Correct rx packet length 2015-04-29 15:19:34 -04:00
amd Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-06-08 20:06:56 -07:00
apm Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-05-13 14:31:43 -04:00
apple powerpc updates for 4.1 2015-04-16 13:53:32 -05:00
arc ethernet: arc: ARC_EMAC and EMAC_ROCKCHIP should depend on HAS_DMA 2015-04-23 14:09:58 -04:00
atheros trivial: net: atl1e: atl1e_hw.h: fix 0x0x prefix 2015-04-29 14:56:39 -04:00
broadcom net: bcmgenet: handle broken turn-around for specific PHYs 2015-06-11 00:32:20 -07:00
brocade bna: use netdev_* and dev_* instead of printk and pr_* 2015-06-11 15:57:18 -07:00
cadence Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-05-23 01:22:35 -04:00
calxeda
cavium Fix Cavium Liquidio build related errors and warnings 2015-06-12 19:16:04 -07:00
chelsio cxgb4: Add debugfs entry to dump channel rate 2015-06-10 22:00:27 -07:00
cirrus
cisco Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-06-13 23:56:52 -07:00
davicom
dec net: tulip: rearrange order of searching for substrings 2015-06-03 20:21:24 -07:00
dlink net: dl2k: Use setup_timer 2015-05-31 21:34:38 -07:00
emulex Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-06-08 20:06:56 -07:00
faraday
freescale net: fs_enet: use swap() in fs_enet_rx_napi() 2015-06-11 15:19:41 -07:00
fujitsu
hisilicon net: batch of last_rx update avoidance in ethernet drivers. 2015-05-14 17:38:17 -04:00
hp
i825xx
ibm net/ibm/emac: use swap() in emac_make_bootlist() 2015-06-11 15:19:41 -07:00
icplus
intel fm10k: fix incorrect free on skb in ts_tx_enqueue 2015-06-17 14:20:36 -07:00
marvell net: mv643xx_eth: Use setup_timer 2015-05-31 21:23:28 -07:00
mellanox net/mlx4_en: Support ndo_get_vf_stats 2015-06-15 17:23:03 -07:00
micrel ethernet: micrel: use time_is_before_eq_jiffies 2015-06-07 19:22:49 -07:00
microchip
moxa net: batch of last_rx update avoidance in ethernet drivers. 2015-05-14 17:38:17 -04:00
myricom ethernet: myri10ge: use arch_phys_wc_add() 2015-04-23 14:28:14 -04:00
natsemi
neterion vxge: use swap() in vxge_hw_channel_dtr_alloc() 2015-06-11 15:19:41 -07:00
nuvoton
nvidia
nxp
octeon
oki-semi
packetengines
pasemi
qlogic Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-06-01 22:51:30 -07:00
qualcomm Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-05-13 14:31:43 -04:00
rdc
realtek r8169: Do not use dev_kfree_skb in xmit path 2015-05-04 00:06:55 -04:00
renesas Renesas Ethernet AVB PTP clock driver 2015-06-11 00:24:12 -07:00
rocker bridge: del external_learned fdbs from device on flush or ageout 2015-06-15 17:08:49 -07:00
samsung
seeq
sfc sfc: mark state UNINIT after unregister 2015-06-15 19:55:01 -07:00
sgi
silan
sis
smsc Revert "Revert "smc91x: retrieve IRQ and trigger flags in a modern way"" 2015-05-04 15:12:33 -04:00
stmicro Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-06-01 22:51:30 -07:00
sun sungem, sunhme, sunvnet: Update drivers to use dma_wmb/rmb 2015-04-08 12:15:14 -04:00
tehuti
ti net: cpsw: remove redundant calls disabling dma interrupts. 2015-05-25 18:19:09 -04:00
tile net: batch of last_rx update avoidance in ethernet drivers. 2015-05-14 17:38:17 -04:00
toshiba net/ps3_gelic: Fix build error with DEBUG 2015-06-11 00:38:12 -07:00
tundra
via via-rhine: close SMP transmit races. 2015-05-04 00:18:27 -04:00
wiznet
xilinx net: ll_temac: Remove sparse warnings 2015-06-07 15:20:42 -07:00
xircom
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
Kconfig net: Adding support for Cavium ThunderX network controller 2015-05-27 14:19:44 -04:00
korina.c
lantiq_etop.c
Makefile net: Adding support for Cavium ThunderX network controller 2015-05-27 14:19:44 -04:00
netx-eth.c