Skip to contentSkip to conversation

Linux 3.7.8

DISCUSSION Greg KH 2 participants 4 messages Feb 14, 2013 – Jun 29, 2013 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 3.7.8 kernel.

All users of the 3.7 kernel series must upgrade.

The updated 3.7.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.7.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

thanks,

greg k-h

------------

 MAINTAINERS                                          |    6 
 Makefile                                             |    2 
 drivers/atm/iphase.h                                 |  146 +++++++++----------
 drivers/char/virtio_console.c                        |    3 
 drivers/gpu/drm/nouveau/core/core/subdev.c           |    2 
 drivers/gpu/drm/nouveau/core/include/core/object.h   |    7 
 drivers/gpu/drm/nouveau/nouveau_drm.c                |    3 
 drivers/infiniband/hw/qib/qib_qp.c                   |   11 -
 drivers/isdn/gigaset/capi.c                          |    2 
 drivers/md/dm-thin.c                                 |   13 -
 drivers/media/usb/pwc/pwc-if.c                       |    6 
 drivers/mfd/db8500-prcmu.c                           |    6 
 drivers/net/can/c_can/c_can.c                        |    6 
 drivers/net/ethernet/calxeda/xgmac.c                 |    4 
 drivers/net/ethernet/intel/e1000e/defines.h          |    9 +
 drivers/net/ethernet/intel/e1000e/e1000.h            |    2 
 drivers/net/ethernet/intel/e1000e/ethtool.c          |    2 
 drivers/net/ethernet/intel/e1000e/hw.h               |    1 
 drivers/net/ethernet/intel/e1000e/ich8lan.c          |   11 +
 drivers/net/ethernet/intel/e1000e/netdev.c           |   46 +++++
 drivers/net/ethernet/mellanox/mlx4/en_tx.c           |   13 +
 drivers/net/ethernet/mellanox/mlx4/main.c            |   11 -
 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c |    2 
 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c |    2 
 drivers/net/ethernet/realtek/r8169.c                 |    7 
 drivers/net/ethernet/via/via-rhine.c                 |    8 -
 drivers/net/loopback.c                               |    5 
 drivers/net/macvlan.c                                |    5 
 drivers/net/wireless/ath/ath9k/ar9003_calib.c        |    2 
 drivers/net/wireless/ath/ath9k/ar9003_phy.c          |    2 
 drivers/net/wireless/ath/ath9k/hw.h                  |    1 
 drivers/net/wireless/iwlwifi/dvm/tx.c                |   24 ---
 drivers/net/wireless/mwifiex/scan.c                  |    9 -
 drivers/net/wireless/rtlwifi/base.c                  |    7 
 drivers/net/wireless/rtlwifi/usb.c                   |    4 
 drivers/net/xen-netback/common.h                     |    3 
 drivers/net/xen-netback/interface.c                  |   23 +-
 drivers/net/xen-netback/netback.c                    |  115 +++++++++-----
 drivers/regulator/max8998.c                          |    2 
 drivers/regulator/of_regulator.c                     |    6 
 drivers/regulator/s2mps11.c                          |    4 
 include/linux/netdevice.h                            |    3 
 include/net/ip.h                                     |    2 
 net/bluetooth/smp.c                                  |   13 +
 net/core/dev.c                                       |    8 +
 net/core/pktgen.c                                    |    9 -
 net/core/request_sock.c                              |    2 
 net/core/skbuff.c                                    |   44 +----
 net/ipv4/datagram.c                                  |   25 +++
 net/ipv4/ip_gre.c                                    |    6 
 net/ipv4/ip_sockglue.c                               |    2 
 net/ipv4/ping.c                                      |    1 
 net/ipv4/raw.c                                       |    1 
 net/ipv4/route.c                                     |   54 ++++++-
 net/ipv4/tcp.c                                       |   27 ++-
 net/ipv4/tcp_cong.c                                  |   14 +
 net/ipv4/tcp_input.c                                 |    8 -
 net/ipv4/tcp_ipv4.c                                  |    9 -
 net/ipv4/udp.c                                       |    1 
 net/ipv6/addrconf.c                                  |    2 
 net/ipv6/icmp.c                                      |   12 +
 net/ipv6/ip6_gre.c                                   |    2 
 net/ipv6/ip6_output.c                                |    4 
 net/ipv6/route.c                                     |    2 
 net/packet/af_packet.c                               |   10 -
 net/sctp/endpointola.c                               |    5 
 net/sctp/outqueue.c                                  |   12 +
 net/sctp/socket.c                                    |    2 
 net/wireless/core.c                                  |    3 
 69 files changed, 536 insertions(+), 290 deletions(-)

Alexander Stein (1):
can: c_can: Set reserved bit in IFx_MASK2 to 1 on write

Alim Akhtar (1):
regulator: s2mps11: fix incorrect register for buck10

Bing Zhao (1):
mwifiex: fix incomplete scan in case of IE parsing error

Bruce Allan (1):
e1000e: enable ECC on I217/I218 to catch packet buffer memory errors

Cong Wang (2):
net: prevent setting ttl=0 via IP_TTL
pktgen: correctly handle failures when adding a device

Daniel Borkmann (2):
net: sctp: sctp_setsockopt_auth_key: use kzfree instead of kfree
net: sctp: sctp_endpoint_free: zero out secret key data

David S. Miller (1):
via-rhine: Fix bugs in NAPI support.

Emmanuel Grumbach (1):
Revert "iwlwifi: fix the reclaimed packet tracking upon flush queue"

Eric Dumazet (11):
tcp: fix a panic on UP machines in reqsk_fastopen_remove
macvlan: fix macvlan_get_size()
tcp: fix incorrect LOCKDROPPEDICMPS counter
netxen: fix off by one bug in netxen_release_tx_buffer()
net: loopback: fix a dst refcounting issue
tcp: fix an infinite loop in tcp_slow_start()
tcp: frto should not set snd_cwnd to 0
tcp: splice: fix an infinite loop in tcp_read_sock()
tcp: fix splice() and tcp collapsing interaction
net: splice: avoid high order page splitting
net: splice: fix __splice_segment()

Felix Fietkau (1):
ath9k_hw: fix calibration issues on chainmask that don't include chain 0

Greg Kroah-Hartman (1):

      Linux 3.7.8

Heiko Carstens (1):

      atm/iphase: rename fregt_t -> ffreg_t

Ian Campbell (3):
xen/netback: shutdown the ring if it contains garbage. xen/netback: free already allocated memory on failure in xen_netbk_get_requests
netback: correct netbk_tx_err to handle wrap around.

Ilpo Järvinen (1):
tcp: fix for zero packets_in_flight was too broad

Johan Hedberg (1):
Bluetooth: Fix handling of unexpected SMP PDUs

Larry Finger (2):
rtlwifi: Fix the usage of the wrong variable in usb.c
rtlwifi: Fix scheduling while atomic bug

Linus Walleij (1):
mfd: db8500-prcmu: Fix irqdomain usage

Marcelo Ricardo Leitner (1):
ipv6: do not create neighbor entries for local delivery

Marcin Slusarz (1):
drm/nouveau: add lockdep annotations

Marek Szyprowski (1):
regulator: max8998: fix incorrect min_uV value for ldo10

Matthew Daley (1):
xen/netback: don't leak pages on failure in xen_netbk_tx_check_gop.

Mauro Carvalho Chehab (1):
media: pwc-if: must check vb2_queue_init() success

Mike Marciniszyn (1):
IB/qib: Fix for broken sparse warning fix

Mike Snitzer (1):
dm thin: fix queue limits stacking

Neil Horman (1):
sctp: refactor sctp_outq_teardown to insure proper re-initalization

Or Gerlitz (1):
net/mlx4_core: Set number of msix vectors under SRIOV mode to firmware defaults

Phil Sutter (1):
packet: fix leakage of tx_ring memory

Pravin B Shelar (1):
IP_GRE: Fix kernel panic in IP_GRE with GRE csum.

Rob Herring (1):
net: calxedaxgmac: throw away overrun frames

Romain KUNTZ (1):
ipv6: fix header length calculation in ip6_append_data()

Romain Kuntz (1):
ipv6: fix the noflags test in addrconf_get_prefix_route

Sjur Brændeland (1):
virtio_console: Don't access uninitialized data.

Stanislaw Gruszka (1):
net, wireless: overwrite default_ethtool_ops

Steffen Klassert (6):
ipv4: Remove output route check in ipv4_mtu
ipv4: Don't update the pmtu on mtu locked routes
ipv6: Add an error handler for icmp6
ipv4: Invalidate the socket cached route on pmtu events if possible
ipv4: Add a socket release callback for datagram sockets
ipv4: Fix route refcount on pmtu discovery

Stephen Hemminger (1):
MAINTAINERS: Stephen Hemminger email change

Stephen Warren (1):
regulator: clear state each invocation of of_regulator_match

Tilman Schmidt (1):
isdn/gigaset: fix zero size border case in debug dump

Timo Teräs (1):
r8169: remove the obsolete and incorrect AMD workaround

Tommi Rantala (1):
ipv6/ip6_gre: fix error case handling in ip6gre_tunnel_xmit()

Willy Tarreau (1):
tcp: don't abort splice() after small transfers

Yan Burman (1):
net/mlx4_en: Fix bridged vSwitch configuration for non SRIOV mode

Yuchung Cheng (1):
tcp: detect SYN/data drop when F-RTO is disabled

author maintainer
#1 lore raw
MAINTAINERS +3 -3
index 9386a63..4eb1deb 100644
@@ -2898,7 +2898,7 @@ S:	Maintained
 F:	drivers/net/ethernet/i825xx/eexpress.*
 
 ETHERNET BRIDGE
-M:	Stephen Hemminger <[email protected]>
+M:	Stephen Hemminger <[email protected]>
 L:	[email protected]
 L:	[email protected]
 W:	http://www.linuxfoundation.org/en/Net:Bridge
@@ -4739,7 +4739,7 @@ S:	Maintained
 
 MARVELL GIGABIT ETHERNET DRIVERS (skge/sky2)
 M:	Mirko Lindner <[email protected]>
-M:	Stephen Hemminger <[email protected]>
+M:	Stephen Hemminger <[email protected]>
 L:	[email protected]
 S:	Maintained
 F:	drivers/net/ethernet/marvell/sk*
@@ -4993,7 +4993,7 @@ S:	Supported
 F:	drivers/infiniband/hw/nes/
 
 NETEM NETWORK EMULATOR
-M:	Stephen Hemminger <[email protected]>
+M:	Stephen Hemminger <[email protected]>
 L:	[email protected]
 S:	Maintained
 F:	net/sched/sch_netem.c
Makefile +1 -1
index 39f170a..ad48987 100644
@@ -1,6 +1,6 @@
 VERSION = 3
 PATCHLEVEL = 7
-SUBLEVEL = 7
+SUBLEVEL = 8
 EXTRAVERSION =
 NAME = Terrified Chipmunk
 
drivers/atm/iphase.h +73 -73

155 lines not on this page · raw message

drivers/char/virtio_console.c +2 -1
index 8ab9c3d..088c8fd 100644
@@ -1966,7 +1966,8 @@ static void virtcons_remove(struct virtio_device *vdev)
 	/* Disable interrupts for vqs */
 	vdev->config->reset(vdev);
 	/* Finish up work that's lined up */
-	cancel_work_sync(&portdev->control_work);
+	if (use_multiport(portdev))
+		cancel_work_sync(&portdev->control_work);
 
 	list_for_each_entry_safe(port, port2, &portdev->ports, list)
 		unplug_port(port);
drivers/gpu/drm/nouveau/core/core/subdev.c +1 -1
index f74c30a..48f0637 100644
@@ -99,7 +99,7 @@ nouveau_subdev_create_(struct nouveau_object *parent,
 	if (ret)
 		return ret;
 
-	mutex_init(&subdev->mutex);
+	__mutex_init(&subdev->mutex, subname, &oclass->lock_class_key);
 	subdev->name = subname;
 
 	if (parent) {
drivers/gpu/drm/nouveau/core/include/core/object.h +5 -2
index 486f1a9..727ba4f 100644
@@ -50,10 +50,13 @@ int  nouveau_object_fini(struct nouveau_object *, bool suspend);
 
 extern struct nouveau_ofuncs nouveau_object_ofuncs;
 
+/* Don't allocate dynamically, because lockdep needs lock_class_keys to be in
+ * ".data". */
 struct nouveau_oclass {
 	u32 handle;
-	struct nouveau_ofuncs *ofuncs;
-	struct nouveau_omthds *omthds;
+	struct nouveau_ofuncs * ofuncs;
+	struct nouveau_omthds * const omthds;
+	struct lock_class_key lock_class_key;
 };
 
 #define nv_oclass(o)    nv_object(o)->oclass
drivers/gpu/drm/nouveau/nouveau_drm.c +3 -0
index 8503b2e..572c216 100644
@@ -241,6 +241,8 @@ nouveau_drm_probe(struct pci_dev *pdev, const struct pci_device_id *pent)
 	return 0;
 }
 
+static struct lock_class_key drm_client_lock_class_key;
+
 static int
 nouveau_drm_load(struct drm_device *dev, unsigned long flags)
 {
@@ -252,6 +254,7 @@ nouveau_drm_load(struct drm_device *dev, unsigned long flags)
 	ret = nouveau_cli_create(pdev, "DRM", sizeof(*drm), (void**)&drm);
 	if (ret)
 		return ret;
+	lockdep_set_class(&drm->client.mutex, &drm_client_lock_class_key);
 
 	dev->dev_private = drm;
 	drm->dev = dev;
drivers/infiniband/hw/qib/qib_qp.c +3 -8
index 4850d03..3527509 100644
@@ -263,20 +263,15 @@ static void remove_qp(struct qib_ibdev *dev, struct qib_qp *qp)
 		struct qib_qp __rcu **qpp;
 
 		qpp = &dev->qp_table[n];
-		q = rcu_dereference_protected(*qpp,
-			lockdep_is_held(&dev->qpt_lock));
-		for (; q; qpp = &q->next) {
+		for (; (q = rcu_dereference_protected(*qpp,
+				lockdep_is_held(&dev->qpt_lock))) != NULL;
+				qpp = &q->next)
 			if (q == qp) {
 				atomic_dec(&qp->refcount);
 				*qpp = qp->next;
 				rcu_assign_pointer(qp->next, NULL);
-				q = rcu_dereference_protected(*qpp,
-					lockdep_is_held(&dev->qpt_lock));
 				break;
 			}
-			q = rcu_dereference_protected(*qpp,
-				lockdep_is_held(&dev->qpt_lock));
-		}
 	}
 
 	spin_unlock_irqrestore(&dev->qpt_lock, flags);
drivers/isdn/gigaset/capi.c +2 -0
index 68452b7..03a0a01 100644
@@ -248,6 +248,8 @@ static inline void dump_rawmsg(enum debuglevel level, const char *tag,
 		CAPIMSG_APPID(data), CAPIMSG_MSGID(data), l,
 		CAPIMSG_CONTROL(data));
 	l -= 12;
+	if (l <= 0)
+		return;
 	dbgline = kmalloc(3 * l, GFP_ATOMIC);
 	if (!dbgline)
 		return;
drivers/md/dm-thin.c +1 -12
index 41c9e81..3fc12b9 100644
@@ -2766,19 +2766,9 @@ static int thin_iterate_devices(struct dm_target *ti,
 	return 0;
 }
 
-/*
- * A thin device always inherits its queue limits from its pool.
- */
-static void thin_io_hints(struct dm_target *ti, struct queue_limits *limits)
-{
-	struct thin_c *tc = ti->private;
-
-	*limits = bdev_get_queue(tc->pool_dev->bdev)->limits;
-}
-
 static struct target_type thin_target = {
 	.name = "thin",
-	.version = {1, 5, 0},
+	.version = {1, 5, 1},
 	.module	= THIS_MODULE,
 	.ctr = thin_ctr,
 	.dtr = thin_dtr,
@@ -2787,7 +2777,6 @@ static struct target_type thin_target = {
 	.postsuspend = thin_postsuspend,
 	.status = thin_status,
 	.iterate_devices = thin_iterate_devices,
-	.io_hints = thin_io_hints,
 };
 
 /*----------------------------------------------------------------*/
drivers/media/usb/pwc/pwc-if.c +5 -1
index 42e36ba..4d12397 100644
@@ -1000,7 +1000,11 @@ static int usb_pwc_probe(struct usb_interface *intf, const struct usb_device_id
 	pdev->vb_queue.buf_struct_size = sizeof(struct pwc_frame_buf);
 	pdev->vb_queue.ops = &pwc_vb_queue_ops;
 	pdev->vb_queue.mem_ops = &vb2_vmalloc_memops;
-	vb2_queue_init(&pdev->vb_queue);
+	rc = vb2_queue_init(&pdev->vb_queue);
+	if (rc < 0) {
+		PWC_ERROR("Oops, could not initialize vb2 queue.\n");
+		goto err_free_mem;
+	}
 
 	/* Init video_device structure */
 	memcpy(&pdev->vdev, &pwc_template, sizeof(pwc_template));
drivers/mfd/db8500-prcmu.c +5 -1
index 00b8b0f..296e3c4 100644
@@ -2478,7 +2478,7 @@ static bool read_mailbox_0(void)
 
 		for (n = 0; n < NUM_PRCMU_WAKEUPS; n++) {
 			if (ev & prcmu_irq_bit[n])
-				generic_handle_irq(IRQ_PRCMU_BASE + n);
+				generic_handle_irq(irq_find_mapping(db8500_irq_domain, n));
 		}
 		r = true;
 		break;
@@ -2706,6 +2706,10 @@ static int db8500_irq_init(struct device_node *np)
 		return -ENOSYS;
 	}
 
+	/* All wakeups will be used, so create mappings for all */
+	for (i = 0; i < NUM_PRCMU_WAKEUPS; i++)
+		irq_create_mapping(db8500_irq_domain, i);
+
 	return 0;
 }
 
drivers/net/can/c_can/c_can.c +5 -1
index 3391bdd..d301f8a 100644
@@ -482,8 +482,12 @@ static void c_can_setup_receive_object(struct net_device *dev, int iface,
 
 	priv->write_reg(priv, C_CAN_IFACE(MASK1_REG, iface),
 			IFX_WRITE_LOW_16BIT(mask));
+
+	/* According to C_CAN documentation, the reserved bit
+	 * in IFx_MASK2 register is fixed 1
+	 */
 	priv->write_reg(priv, C_CAN_IFACE(MASK2_REG, iface),
-			IFX_WRITE_HIGH_16BIT(mask));
+			IFX_WRITE_HIGH_16BIT(mask) | BIT(13));
 
 	priv->write_reg(priv, C_CAN_IFACE(ARB1_REG, iface),
 			IFX_WRITE_LOW_16BIT(id));
drivers/net/ethernet/calxeda/xgmac.c +4 -0
index 16814b3..e29c1b6 100644
@@ -546,6 +546,10 @@ static int desc_get_rx_status(struct xgmac_priv *priv, struct xgmac_dma_desc *p)
 		return -1;
 	}
 
+	/* All frames should fit into a single buffer */
+	if (!(status & RXDESC_FIRST_SEG) || !(status & RXDESC_LAST_SEG))
+		return -1;
+
 	/* Check if packet has checksum already */
 	if ((status & RXDESC_FRAME_TYPE) && (status & RXDESC_EXT_STATUS) &&
 		!(ext_status & RXDESC_IP_PAYLOAD_MASK))
drivers/net/ethernet/intel/e1000e/defines.h +9 -0
index 76edbc1..cccbbe8 100644
@@ -233,6 +233,7 @@
 #define E1000_CTRL_FRCDPX   0x00001000  /* Force Duplex */
 #define E1000_CTRL_LANPHYPC_OVERRIDE 0x00010000 /* SW control of LANPHYPC */
 #define E1000_CTRL_LANPHYPC_VALUE    0x00020000 /* SW value of LANPHYPC */
+#define E1000_CTRL_MEHE     0x00080000  /* Memory Error Handling Enable */
 #define E1000_CTRL_SWDPIN0  0x00040000  /* SWDPIN 0 value */
 #define E1000_CTRL_SWDPIN1  0x00080000  /* SWDPIN 1 value */
 #define E1000_CTRL_SWDPIO0  0x00400000  /* SWDPIN 0 Input or output */
@@ -391,6 +392,12 @@
 
 #define E1000_PBS_16K E1000_PBA_16K
 
+/* Uncorrectable/correctable ECC Error counts and enable bits */
+#define E1000_PBECCSTS_CORR_ERR_CNT_MASK	0x000000FF
+#define E1000_PBECCSTS_UNCORR_ERR_CNT_MASK	0x0000FF00
+#define E1000_PBECCSTS_UNCORR_ERR_CNT_SHIFT	8
+#define E1000_PBECCSTS_ECC_ENABLE		0x00010000
+
 #define IFS_MAX       80
 #define IFS_MIN       40
 #define IFS_RATIO     4
@@ -410,6 +417,7 @@
 #define E1000_ICR_RXSEQ         0x00000008 /* Rx sequence error */
 #define E1000_ICR_RXDMT0        0x00000010 /* Rx desc min. threshold (0) */
 #define E1000_ICR_RXT0          0x00000080 /* Rx timer intr (ring 0) */
+#define E1000_ICR_ECCER         0x00400000 /* Uncorrectable ECC Error */
 #define E1000_ICR_INT_ASSERTED  0x80000000 /* If this bit asserted, the driver should claim the interrupt */
 #define E1000_ICR_RXQ0          0x00100000 /* Rx Queue 0 Interrupt */
 #define E1000_ICR_RXQ1          0x00200000 /* Rx Queue 1 Interrupt */
@@ -446,6 +454,7 @@
 #define E1000_IMS_RXSEQ     E1000_ICR_RXSEQ     /* Rx sequence error */
 #define E1000_IMS_RXDMT0    E1000_ICR_RXDMT0    /* Rx desc min. threshold */
 #define E1000_IMS_RXT0      E1000_ICR_RXT0      /* Rx timer intr */
+#define E1000_IMS_ECCER     E1000_ICR_ECCER     /* Uncorrectable ECC Error */
 #define E1000_IMS_RXQ0      E1000_ICR_RXQ0      /* Rx Queue 0 Interrupt */
 #define E1000_IMS_RXQ1      E1000_ICR_RXQ1      /* Rx Queue 1 Interrupt */
 #define E1000_IMS_TXQ0      E1000_ICR_TXQ0      /* Tx Queue 0 Interrupt */
drivers/net/ethernet/intel/e1000e/e1000.h +2 -0
index 04668b4..5faa1a8 100644
@@ -314,6 +314,8 @@ struct e1000_adapter {
 
 	struct napi_struct napi;
 
+	unsigned int uncorr_errors;	/* uncorrectable ECC errors */
+	unsigned int corr_errors;	/* correctable ECC errors */
 	unsigned int restart_queue;
 	u32 txd_cmd;
 
drivers/net/ethernet/intel/e1000e/ethtool.c +2 -0
index c11ac27..da048f3 100644
@@ -108,6 +108,8 @@ static const struct e1000_stats e1000_gstrings_stats[] = {
 	E1000_STAT("dropped_smbus", stats.mgpdc),
 	E1000_STAT("rx_dma_failed", rx_dma_failed),
 	E1000_STAT("tx_dma_failed", tx_dma_failed),
+	E1000_STAT("uncorr_ecc_errors", uncorr_errors),
+	E1000_STAT("corr_ecc_errors", corr_errors),
 };
 
 #define E1000_GLOBAL_STATS_LEN	ARRAY_SIZE(e1000_gstrings_stats)
drivers/net/ethernet/intel/e1000e/hw.h +1 -0
index d37bfd9..a64f22e 100644
@@ -77,6 +77,7 @@ enum e1e_registers {
 #define E1000_POEMB	E1000_PHY_CTRL	/* PHY OEM Bits */
 	E1000_PBA      = 0x01000, /* Packet Buffer Allocation - RW */
 	E1000_PBS      = 0x01008, /* Packet Buffer Size */
+	E1000_PBECCSTS = 0x0100C, /* Packet Buffer ECC Status - RW */
 	E1000_EEMNGCTL = 0x01010, /* MNG EEprom Control */
 	E1000_EEWR     = 0x0102C, /* EEPROM Write Register - RW */
 	E1000_FLOP     = 0x0103C, /* FLASH Opcode Register */
drivers/net/ethernet/intel/e1000e/ich8lan.c +11 -0
index e3a7b07..abc9770 100644
@@ -3690,6 +3690,17 @@ static void e1000_initialize_hw_bits_ich8lan(struct e1000_hw *hw)
 	if (hw->mac.type == e1000_ich8lan)
 		reg |= (E1000_RFCTL_IPV6_EX_DIS | E1000_RFCTL_NEW_IPV6_EXT_DIS);
 	ew32(RFCTL, reg);
+
+	/* Enable ECC on Lynxpoint */
+	if (hw->mac.type == e1000_pch_lpt) {
+		reg = er32(PBECCSTS);
+		reg |= E1000_PBECCSTS_ECC_ENABLE;
+		ew32(PBECCSTS, reg);
+
+		reg = er32(CTRL);
+		reg |= E1000_CTRL_MEHE;
+		ew32(CTRL, reg);
+	}
 }
 
 /**
drivers/net/ethernet/intel/e1000e/netdev.c +46 -0

70 lines not on this page · raw message

drivers/net/ethernet/mellanox/mlx4/en_tx.c +9 -4
index b35094c..fc1ac65 100644
@@ -629,10 +629,15 @@ netdev_tx_t mlx4_en_xmit(struct sk_buff *skb, struct net_device *dev)
 		ring->tx_csum++;
 	}
 
-	/* Copy dst mac address to wqe */
-	ethh = (struct ethhdr *)skb->data;
-	tx_desc->ctrl.srcrb_flags16[0] = get_unaligned((__be16 *)ethh->h_dest);
-	tx_desc->ctrl.imm = get_unaligned((__be32 *)(ethh->h_dest + 2));
+	if (mlx4_is_mfunc(mdev->dev) || priv->validate_loopback) {
+		/* Copy dst mac address to wqe. This allows loopback in eSwitch,
+		 * so that VFs and PF can communicate with each other
+		 */
+		ethh = (struct ethhdr *)skb->data;
+		tx_desc->ctrl.srcrb_flags16[0] = get_unaligned((__be16 *)ethh->h_dest);
+		tx_desc->ctrl.imm = get_unaligned((__be32 *)(ethh->h_dest + 2));
+	}
+
 	/* Handle LSO (TSO) packets */
 	if (lso_header_size) {
 		/* Mark opcode as LSO */
drivers/net/ethernet/mellanox/mlx4/main.c +2 -9
index 2aa80af..d4b3935 100644
@@ -1702,15 +1702,8 @@ static void mlx4_enable_msi_x(struct mlx4_dev *dev)
 	int i;
 
 	if (msi_x) {
-		/* In multifunction mode each function gets 2 msi-X vectors
-		 * one for data path completions anf the other for asynch events
-		 * or command completions */
-		if (mlx4_is_mfunc(dev)) {
-			nreq = 2;
-		} else {
-			nreq = min_t(int, dev->caps.num_eqs -
-				     dev->caps.reserved_eqs, nreq);
-		}
+		nreq = min_t(int, dev->caps.num_eqs - dev->caps.reserved_eqs,
+			     nreq);
 
 		entries = kcalloc(nreq, sizeof *entries, GFP_KERNEL);
 		if (!entries)
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c +1 -1
index bc165f4..695667d 100644
@@ -144,7 +144,7 @@ void netxen_release_tx_buffers(struct netxen_adapter *adapter)
 					 buffrag->length, PCI_DMA_TODEVICE);
 			buffrag->dma = 0ULL;
 		}
-		for (j = 0; j < cmd_buf->frag_count; j++) {
+		for (j = 1; j < cmd_buf->frag_count; j++) {
 			buffrag++;
 			if (buffrag->dma) {
 				pci_unmap_page(adapter->pdev, buffrag->dma,
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c +2 -0
index df45061..1b55ca1 100644
@@ -1963,10 +1963,12 @@ unwind:
 	while (--i >= 0) {
 		nf = &pbuf->frag_array[i+1];
 		pci_unmap_page(pdev, nf->dma, nf->length, PCI_DMA_TODEVICE);
+		nf->dma = 0ULL;
 	}
 
 	nf = &pbuf->frag_array[0];
 	pci_unmap_single(pdev, nf->dma, skb_headlen(skb), PCI_DMA_TODEVICE);
+	nf->dma = 0ULL;
 
 out_err:
 	return -ENOMEM;
drivers/net/ethernet/realtek/r8169.c +0 -7
index 927aa33..6afe74e 100644
@@ -6064,13 +6064,6 @@ process_pkt:
 			tp->rx_stats.bytes += pkt_size;
 			u64_stats_update_end(&tp->rx_stats.syncp);
 		}
-
-		/* Work around for AMD plateform. */
-		if ((desc->opts2 & cpu_to_le32(0xfffe000)) &&
-		    (tp->mac_version == RTL_GIGA_MAC_VER_05)) {
-			desc->opts2 = 0;
-			cur_rx++;
-		}
 	}
 
 	count = cur_rx - tp->cur_rx;
drivers/net/ethernet/via/via-rhine.c +2 -6
index 0459c09..046526e0 100644
@@ -1802,7 +1802,7 @@ static void rhine_tx(struct net_device *dev)
 					 rp->tx_skbuff[entry]->len,
 					 PCI_DMA_TODEVICE);
 		}
-		dev_kfree_skb_irq(rp->tx_skbuff[entry]);
+		dev_kfree_skb(rp->tx_skbuff[entry]);
 		rp->tx_skbuff[entry] = NULL;
 		entry = (++rp->dirty_tx) % TX_RING_SIZE;
 	}
@@ -2011,11 +2011,7 @@ static void rhine_slow_event_task(struct work_struct *work)
 	if (intr_status & IntrPCIErr)
 		netif_warn(rp, hw, dev, "PCI error\n");
 
-	napi_disable(&rp->napi);
-	rhine_irq_disable(rp);
-	/* Slow and safe. Consider __napi_schedule as a replacement ? */
-	napi_enable(&rp->napi);
-	napi_schedule(&rp->napi);
+	iowrite16(RHINE_EVENT & 0xffff, rp->base + IntrEnable);
 
 out_unlock:
 	mutex_unlock(&rp->task_lock);
drivers/net/loopback.c +5 -0
index 81f8f9e..fcbf680 100644
@@ -77,6 +77,11 @@ static netdev_tx_t loopback_xmit(struct sk_buff *skb,
 
 	skb_orphan(skb);
 
+	/* Before queueing this packet to netif_rx(),
+	 * make sure dst is refcounted.
+	 */
+	skb_dst_force(skb);
+
 	skb->protocol = eth_type_trans(skb, dev);
 
 	/* it's OK to use per_cpu_ptr() because BHs are off */
drivers/net/macvlan.c +4 -1
index 68a43fe..d3fb97d 100644
@@ -822,7 +822,10 @@ static int macvlan_changelink(struct net_device *dev,
 
 static size_t macvlan_get_size(const struct net_device *dev)
 {
-	return nla_total_size(4);
+	return (0
+		+ nla_total_size(4) /* IFLA_MACVLAN_MODE */
+		+ nla_total_size(2) /* IFLA_MACVLAN_FLAGS */
+		);
 }
 
 static int macvlan_fill_info(struct sk_buff *skb,
drivers/net/wireless/ath/ath9k/ar9003_calib.c +2 -0
index 84b558d..678854a 100644
@@ -903,6 +903,8 @@ static bool ar9003_hw_init_cal(struct ath_hw *ah,
 					  AR_PHY_CL_TAB_1,
 					  AR_PHY_CL_TAB_2 };
 
+	ar9003_hw_set_chain_masks(ah, ah->caps.rx_chainmask, ah->caps.tx_chainmask);
+
 	if (rtt) {
 		if (!ar9003_hw_rtt_restore(ah, chan))
 			run_rtt_cal = true;
drivers/net/wireless/ath/ath9k/ar9003_phy.c +1 -1
index 8a38ff2..6784986 100644
@@ -586,7 +586,7 @@ static void ar9003_hw_init_bb(struct ath_hw *ah,
 	ath9k_hw_synth_delay(ah, chan, synthDelay);
 }
 
-static void ar9003_hw_set_chain_masks(struct ath_hw *ah, u8 rx, u8 tx)
+void ar9003_hw_set_chain_masks(struct ath_hw *ah, u8 rx, u8 tx)
 {
 	if (ah->caps.tx_chainmask == 5 || ah->caps.rx_chainmask == 5)
 		REG_SET_BIT(ah, AR_PHY_ANALOG_SWAP,
drivers/net/wireless/ath/ath9k/hw.h +1 -0
index dbc1b7a..b68aaf5 100644
@@ -1063,6 +1063,7 @@ int ar9003_paprd_create_curve(struct ath_hw *ah,
 int ar9003_paprd_setup_gain_table(struct ath_hw *ah, int chain);
 int ar9003_paprd_init_table(struct ath_hw *ah);
 bool ar9003_paprd_is_done(struct ath_hw *ah);
+void ar9003_hw_set_chain_masks(struct ath_hw *ah, u8 rx, u8 tx);
 
 /* Hardware family op attach helpers */
 void ar5008_hw_attach_phy_ops(struct ath_hw *ah);
drivers/net/wireless/iwlwifi/dvm/tx.c +7 -17
index aecf1ce..b09adab 100644
@@ -1154,6 +1154,13 @@ int iwlagn_rx_reply_tx(struct iwl_priv *priv, struct iwl_rx_cmd_buffer *rxb,
 			next_reclaimed = ssn;
 		}
 
+		if (tid != IWL_TID_NON_QOS) {
+			priv->tid_data[sta_id][tid].next_reclaimed =
+				next_reclaimed;
+			IWL_DEBUG_TX_REPLY(priv, "Next reclaimed packet:%d\n",
+						  next_reclaimed);
+		}
+
 		iwl_trans_reclaim(priv->trans, txq_id, ssn, &skbs);
 
 		iwlagn_check_ratid_empty(priv, sta_id, tid);
@@ -1204,28 +1211,11 @@ int iwlagn_rx_reply_tx(struct iwl_priv *priv, struct iwl_rx_cmd_buffer *rxb,
 			if (!is_agg)
 				iwlagn_non_agg_tx_status(priv, ctx, hdr->addr1);
 
-			/*
-			 * W/A for FW bug - the seq_ctl isn't updated when the
-			 * queues are flushed. Fetch it from the packet itself
-			 */
-			if (!is_agg && status == TX_STATUS_FAIL_FIFO_FLUSHED) {
-				next_reclaimed = le16_to_cpu(hdr->seq_ctrl);
-				next_reclaimed =
-					SEQ_TO_SN(next_reclaimed + 0x10);
-			}
-
 			is_offchannel_skb =
 				(info->flags & IEEE80211_TX_CTL_TX_OFFCHAN);
 			freed++;
 		}
 
-		if (tid != IWL_TID_NON_QOS) {
-			priv->tid_data[sta_id][tid].next_reclaimed =
-				next_reclaimed;
-			IWL_DEBUG_TX_REPLY(priv, "Next reclaimed packet:%d\n",
-					   next_reclaimed);
-		}
-
 		WARN_ON(!is_agg && freed != 1);
 
 		/*
drivers/net/wireless/mwifiex/scan.c +5 -4
index 9171aae..bd84069 100644
@@ -1555,7 +1555,7 @@ int mwifiex_ret_802_11_scan(struct mwifiex_private *priv,
 		dev_err(adapter->dev, "SCAN_RESP: too many AP returned (%d)\n",
 			scan_rsp->number_of_sets);
 		ret = -1;
-		goto done;
+		goto check_next_scan;
 	}
 
 	bytes_left = le16_to_cpu(scan_rsp->bss_descript_size);
@@ -1626,7 +1626,8 @@ int mwifiex_ret_802_11_scan(struct mwifiex_private *priv,
 		if (!beacon_size || beacon_size > bytes_left) {
 			bss_info += bytes_left;
 			bytes_left = 0;
-			return -1;
+			ret = -1;
+			goto check_next_scan;
 		}
 
 		/* Initialize the current working beacon pointer for this BSS
@@ -1682,7 +1683,7 @@ int mwifiex_ret_802_11_scan(struct mwifiex_private *priv,
 				dev_err(priv->adapter->dev,
 					"%s: bytes left < IE length\n",
 					__func__);
-				goto done;
+				goto check_next_scan;
 			}
 			if (element_id == WLAN_EID_DS_PARAMS) {
 				channel = *(current_ptr + sizeof(struct ieee_types_header));
@@ -1745,6 +1746,7 @@ int mwifiex_ret_802_11_scan(struct mwifiex_private *priv,
 		}
 	}
 
+check_next_scan:
 	spin_lock_irqsave(&adapter->scan_pending_q_lock, flags);
 	if (list_empty(&adapter->scan_pending_q)) {
 		spin_unlock_irqrestore(&adapter->scan_pending_q_lock, flags);
@@ -1792,7 +1794,6 @@ int mwifiex_ret_802_11_scan(struct mwifiex_private *priv,
 		}
 	}
 
-done:
 	return ret;
 }
 
drivers/net/wireless/rtlwifi/base.c +4 -3
index 59381fe..9f32b09 100644
@@ -980,7 +980,8 @@ u8 rtl_is_special_data(struct ieee80211_hw *hw, struct sk_buff *skb, u8 is_tx)
 					 is_tx ? "Tx" : "Rx");
 
 				if (is_tx) {
-					rtl_lps_leave(hw);
+					schedule_work(&rtlpriv->
+						      works.lps_leave_work);
 					ppsc->last_delaylps_stamp_jiffies =
 					    jiffies;
 				}
@@ -990,7 +991,7 @@ u8 rtl_is_special_data(struct ieee80211_hw *hw, struct sk_buff *skb, u8 is_tx)
 		}
 	} else if (ETH_P_ARP == ether_type) {
 		if (is_tx) {
-			rtl_lps_leave(hw);
+			schedule_work(&rtlpriv->works.lps_leave_work);
 			ppsc->last_delaylps_stamp_jiffies = jiffies;
 		}
 
@@ -1000,7 +1001,7 @@ u8 rtl_is_special_data(struct ieee80211_hw *hw, struct sk_buff *skb, u8 is_tx)
 			 "802.1X %s EAPOL pkt!!\n", is_tx ? "Tx" : "Rx");
 
 		if (is_tx) {
-			rtl_lps_leave(hw);
+			schedule_work(&rtlpriv->works.lps_leave_work);
 			ppsc->last_delaylps_stamp_jiffies = jiffies;
 		}
 
drivers/net/wireless/rtlwifi/usb.c +2 -2
index 46ccbf7..d1c3a7e 100644
@@ -542,8 +542,8 @@ static void _rtl_rx_pre_process(struct ieee80211_hw *hw, struct sk_buff *skb)
 	WARN_ON(skb_queue_empty(&rx_queue));
 	while (!skb_queue_empty(&rx_queue)) {
 		_skb = skb_dequeue(&rx_queue);
-		_rtl_usb_rx_process_agg(hw, skb);
-		ieee80211_rx_irqsafe(hw, skb);
+		_rtl_usb_rx_process_agg(hw, _skb);
+		ieee80211_rx_irqsafe(hw, _skb);
 	}
 }
 
drivers/net/xen-netback/common.h +3 -0
index 94b79c3..9d7f172 100644
@@ -151,6 +151,9 @@ void xen_netbk_queue_tx_skb(struct xenvif *vif, struct sk_buff *skb);
 /* Notify xenvif that ring now has space to send an skb to the frontend */
 void xenvif_notify_tx_completion(struct xenvif *vif);
 
+/* Prevent the device from generating any further traffic. */
+void xenvif_carrier_off(struct xenvif *vif);
+
 /* Returns number of ring slots required to send an skb to the frontend */
 unsigned int xen_netbk_count_skb_slots(struct xenvif *vif, struct sk_buff *skb);
 
drivers/net/xen-netback/interface.c +14 -9
index b7d41f8..b8c5193 100644
@@ -343,17 +343,22 @@ err:
 	return err;
 }
 
-void xenvif_disconnect(struct xenvif *vif)
+void xenvif_carrier_off(struct xenvif *vif)
 {
 	struct net_device *dev = vif->dev;
-	if (netif_carrier_ok(dev)) {
-		rtnl_lock();
-		netif_carrier_off(dev); /* discard queued packets */
-		if (netif_running(dev))
-			xenvif_down(vif);
-		rtnl_unlock();
-		xenvif_put(vif);
-	}
+
+	rtnl_lock();
+	netif_carrier_off(dev); /* discard queued packets */
+	if (netif_running(dev))
+		xenvif_down(vif);
+	rtnl_unlock();
+	xenvif_put(vif);
+}
+
+void xenvif_disconnect(struct xenvif *vif)
+{
+	if (netif_carrier_ok(vif->dev))
+		xenvif_carrier_off(vif);
 
 	atomic_dec(&vif->refcnt);
 	wait_event(vif->waiting_to_free, atomic_read(&vif->refcnt) == 0);
drivers/net/xen-netback/netback.c +71 -44

288 lines not on this page · raw message

drivers/regulator/max8998.c +1 -1
index 6a20019..6b431a7 100644
@@ -65,7 +65,7 @@ static const struct voltage_map_desc ldo9_voltage_map_desc = {
 	.min = 2800000,	.step = 100000,	.max = 3100000,
 };
 static const struct voltage_map_desc ldo10_voltage_map_desc = {
-	.min = 95000,	.step = 50000,	.max = 1300000,
+	.min = 950000,	.step = 50000,	.max = 1300000,
 };
 static const struct voltage_map_desc ldo1213_voltage_map_desc = {
 	.min = 800000,	.step = 100000,	.max = 3300000,
drivers/regulator/of_regulator.c +6 -0
index 6f68491..66ca769 100644
@@ -120,6 +120,12 @@ int of_regulator_match(struct device *dev, struct device_node *node,
 	if (!dev || !node)
 		return -EINVAL;
 
+	for (i = 0; i < num_matches; i++) {
+		struct of_regulator_match *match = &matches[i];
+		match->init_data = NULL;
+		match->of_node = NULL;
+	}
+
 	for_each_child_of_node(node, child) {
 		name = of_get_property(child,
 					"regulator-compatible", NULL);
drivers/regulator/s2mps11.c +2 -2
index 3fd1b88..d6e4e1c 100644
@@ -174,9 +174,9 @@ static struct regulator_ops s2mps11_buck_ops = {
 	.min_uV		= S2MPS11_BUCK_MIN2,			\
 	.uV_step	= S2MPS11_BUCK_STEP2,			\
 	.n_voltages	= S2MPS11_BUCK_N_VOLTAGES,		\
-	.vsel_reg	= S2MPS11_REG_B9CTRL2,			\
+	.vsel_reg	= S2MPS11_REG_B10CTRL2,			\
 	.vsel_mask	= S2MPS11_BUCK_VSEL_MASK,		\
-	.enable_reg	= S2MPS11_REG_B9CTRL1,			\
+	.enable_reg	= S2MPS11_REG_B10CTRL1,			\
 	.enable_mask	= S2MPS11_ENABLE_MASK			\
 }
 
include/linux/netdevice.h +3 -0
index a848ffc..825fb7e 100644
@@ -60,6 +60,9 @@ struct wireless_dev;
 #define SET_ETHTOOL_OPS(netdev,ops) \
 	( (netdev)->ethtool_ops = (ops) )
 
+extern void netdev_set_default_ethtool_ops(struct net_device *dev,
+					   const struct ethtool_ops *ops);
+
 /* hardware address assignment types */
 #define NET_ADDR_PERM		0	/* address is permanent (default) */
 #define NET_ADDR_RANDOM		1	/* address is generated randomly */
include/net/ip.h +2 -0
index 0707fb9..a68f838 100644
@@ -143,6 +143,8 @@ static inline struct sk_buff *ip_finish_skb(struct sock *sk, struct flowi4 *fl4)
 extern int		ip4_datagram_connect(struct sock *sk, 
 					     struct sockaddr *uaddr, int addr_len);
 
+extern void ip4_datagram_release_cb(struct sock *sk);
+
 struct ip_reply_arg {
 	struct kvec iov[1];   
 	int	    flags;
net/bluetooth/smp.c +13 -0
index a592337..cf31bad 100644
@@ -859,6 +859,19 @@ int smp_sig_channel(struct l2cap_conn *conn, struct sk_buff *skb)
 
 	skb_pull(skb, sizeof(code));
 
+	/*
+	 * The SMP context must be initialized for all other PDUs except
+	 * pairing and security requests. If we get any other PDU when
+	 * not initialized simply disconnect (done if this function
+	 * returns an error).
+	 */
+	if (code != SMP_CMD_PAIRING_REQ && code != SMP_CMD_SECURITY_REQ &&
+	    !conn->smp_chan) {
+		BT_ERR("Unexpected SMP command 0x%02x. Disconnecting.", code);
+		kfree_skb(skb);
+		return -ENOTSUPP;
+	}
+
 	switch (code) {
 	case SMP_CMD_PAIRING_REQ:
 		reason = smp_cmd_pairing_req(conn, skb);
net/core/dev.c +8 -0
index e5942bf..3470794 100644
@@ -6012,6 +6012,14 @@ struct netdev_queue *dev_ingress_queue_create(struct net_device *dev)
 
 static const struct ethtool_ops default_ethtool_ops;
 
+void netdev_set_default_ethtool_ops(struct net_device *dev,
+				    const struct ethtool_ops *ops)
+{
+	if (dev->ethtool_ops == &default_ethtool_ops)
+		dev->ethtool_ops = ops;
+}
+EXPORT_SYMBOL_GPL(netdev_set_default_ethtool_ops);
+
 /**
  *	alloc_netdev_mqs - allocate network device
  *	@sizeof_priv:	size of private data to allocate space for
net/core/pktgen.c +6 -3
index d1dc14c..21350db 100644
@@ -1795,10 +1795,13 @@ static ssize_t pktgen_thread_write(struct file *file,
 			return -EFAULT;
 		i += len;
 		mutex_lock(&pktgen_thread_lock);
-		pktgen_add_device(t, f);
+		ret = pktgen_add_device(t, f);
 		mutex_unlock(&pktgen_thread_lock);
-		ret = count;
-		sprintf(pg_result, "OK: add_device=%s", f);
+		if (!ret) {
+			ret = count;
+			sprintf(pg_result, "OK: add_device=%s", f);
+		} else
+			sprintf(pg_result, "ERROR: can not add device %s", f);
 		goto out;
 	}
 
net/core/request_sock.c +0 -2
index c31d9e8..4425148 100644
@@ -186,8 +186,6 @@ void reqsk_fastopen_remove(struct sock *sk, struct request_sock *req,
 	struct fastopen_queue *fastopenq =
 	    inet_csk(lsk)->icsk_accept_queue.fastopenq;
 
-	BUG_ON(!spin_is_locked(&sk->sk_lock.slock) && !sock_owned_by_user(sk));
-
 	tcp_sk(sk)->fastopen_rsk = NULL;
 	spin_lock_bh(&fastopenq->lock);
 	fastopenq->qlen--;
net/core/skbuff.c +13 -31

94 lines not on this page · raw message

net/ipv4/datagram.c +25 -0
index 424fafb..b28e863 100644
@@ -85,3 +85,28 @@ out:
 	return err;
 }
 EXPORT_SYMBOL(ip4_datagram_connect);
+
+void ip4_datagram_release_cb(struct sock *sk)
+{
+	const struct inet_sock *inet = inet_sk(sk);
+	const struct ip_options_rcu *inet_opt;
+	__be32 daddr = inet->inet_daddr;
+	struct flowi4 fl4;
+	struct rtable *rt;
+
+	if (! __sk_dst_get(sk) || __sk_dst_check(sk, 0))
+		return;
+
+	rcu_read_lock();
+	inet_opt = rcu_dereference(inet->inet_opt);
+	if (inet_opt && inet_opt->opt.srr)
+		daddr = inet_opt->opt.faddr;
+	rt = ip_route_output_ports(sock_net(sk), &fl4, sk, daddr,
+				   inet->inet_saddr, inet->inet_dport,
+				   inet->inet_sport, sk->sk_protocol,
+				   RT_CONN_FLAGS(sk), sk->sk_bound_dev_if);
+	if (!IS_ERR(rt))
+		__sk_dst_set(sk, &rt->dst);
+	rcu_read_unlock();
+}
+EXPORT_SYMBOL_GPL(ip4_datagram_release_cb);
net/ipv4/ip_gre.c +5 -1
index 7240f8e..07538a7 100644
@@ -972,8 +972,12 @@ static netdev_tx_t ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev
 			ptr--;
 		}
 		if (tunnel->parms.o_flags&GRE_CSUM) {
+			int offset = skb_transport_offset(skb);
+
 			*ptr = 0;
-			*(__sum16 *)ptr = ip_compute_csum((void *)(iph+1), skb->len - sizeof(struct iphdr));
+			*(__sum16 *)ptr = csum_fold(skb_checksum(skb, offset,
+								 skb->len - offset,
+								 0));
 		}
 	}
 
net/ipv4/ip_sockglue.c +1 -1
index 14bbfcf..e95d72b 100644
@@ -590,7 +590,7 @@ static int do_ip_setsockopt(struct sock *sk, int level,
 	case IP_TTL:
 		if (optlen < 1)
 			goto e_inval;
-		if (val != -1 && (val < 0 || val > 255))
+		if (val != -1 && (val < 1 || val > 255))
 			goto e_inval;
 		inet->uc_ttl = val;
 		break;
net/ipv4/ping.c +1 -0
index 8f3d054..6f9c072 100644
@@ -738,6 +738,7 @@ struct proto ping_prot = {
 	.recvmsg =	ping_recvmsg,
 	.bind =		ping_bind,
 	.backlog_rcv =	ping_queue_rcv_skb,
+	.release_cb =	ip4_datagram_release_cb,
 	.hash =		ping_v4_hash,
 	.unhash =	ping_v4_unhash,
 	.get_port =	ping_v4_get_port,
net/ipv4/raw.c +1 -0
index 73d1e4d..6f08991 100644
@@ -894,6 +894,7 @@ struct proto raw_prot = {
 	.recvmsg	   = raw_recvmsg,
 	.bind		   = raw_bind,
 	.backlog_rcv	   = raw_rcv_skb,
+	.release_cb	   = ip4_datagram_release_cb,
 	.hash		   = raw_hash_sk,
 	.unhash		   = raw_unhash_sk,
 	.obj_size	   = sizeof(struct raw_sock),
net/ipv4/route.c +52 -2

78 lines not on this page · raw message

net/ipv4/tcp.c +19 -8
index e457c7a..667e8a0 100644
@@ -1427,12 +1427,12 @@ static void tcp_service_net_dma(struct sock *sk, bool wait)
 }
 #endif
 
-static inline struct sk_buff *tcp_recv_skb(struct sock *sk, u32 seq, u32 *off)
+static struct sk_buff *tcp_recv_skb(struct sock *sk, u32 seq, u32 *off)
 {
 	struct sk_buff *skb;
 	u32 offset;
 
-	skb_queue_walk(&sk->sk_receive_queue, skb) {
+	while ((skb = skb_peek(&sk->sk_receive_queue)) != NULL) {
 		offset = seq - TCP_SKB_CB(skb)->seq;
 		if (tcp_hdr(skb)->syn)
 			offset--;
@@ -1440,6 +1440,11 @@ static inline struct sk_buff *tcp_recv_skb(struct sock *sk, u32 seq, u32 *off)
 			*off = offset;
 			return skb;
 		}
+		/* This looks weird, but this can happen if TCP collapsing
+		 * splitted a fat GRO packet, while we released socket lock
+		 * in skb_splice_bits()
+		 */
+		sk_eat_skb(sk, skb, false);
 	}
 	return NULL;
 }
@@ -1481,7 +1486,7 @@ int tcp_read_sock(struct sock *sk, read_descriptor_t *desc,
 					break;
 			}
 			used = recv_actor(desc, skb, offset, len);
-			if (used < 0) {
+			if (used <= 0) {
 				if (!copied)
 					copied = used;
 				break;
@@ -1490,15 +1495,19 @@ int tcp_read_sock(struct sock *sk, read_descriptor_t *desc,
 				copied += used;
 				offset += used;
 			}
-			/*
-			 * If recv_actor drops the lock (e.g. TCP splice
+			/* If recv_actor drops the lock (e.g. TCP splice
 			 * receive) the skb pointer might be invalid when
 			 * getting here: tcp_collapse might have deleted it
 			 * while aggregating skbs from the socket queue.
 			 */
-			skb = tcp_recv_skb(sk, seq-1, &offset);
-			if (!skb || (offset+1 != skb->len))
+			skb = tcp_recv_skb(sk, seq - 1, &offset);
+			if (!skb)
 				break;
+			/* TCP coalescing might have appended data to the skb.
+			 * Try to splice more frags
+			 */
+			if (offset + 1 != skb->len)
+				continue;
 		}
 		if (tcp_hdr(skb)->fin) {
 			sk_eat_skb(sk, skb, false);
@@ -1515,8 +1524,10 @@ int tcp_read_sock(struct sock *sk, read_descriptor_t *desc,
 	tcp_rcv_space_adjust(sk);
 
 	/* Clean up data we have read: This will do ACK frames. */
-	if (copied > 0)
+	if (copied > 0) {
+		tcp_recv_skb(sk, seq, &offset);
 		tcp_cleanup_rbuf(sk, copied);
+	}
 	return copied;
 }
 EXPORT_SYMBOL(tcp_read_sock);
net/ipv4/tcp_cong.c +10 -4
index 1432cdb..fc582a7 100644
@@ -309,6 +309,12 @@ void tcp_slow_start(struct tcp_sock *tp)
 {
 	int cnt; /* increase in packets */
 	unsigned int delta = 0;
+	u32 snd_cwnd = tp->snd_cwnd;
+
+	if (unlikely(!snd_cwnd)) {
+		pr_err_once("snd_cwnd is nul, please report this bug.\n");
+		snd_cwnd = 1U;
+	}
 
 	/* RFC3465: ABC Slow start
 	 * Increase only after a full MSS of bytes is acked
@@ -323,7 +329,7 @@ void tcp_slow_start(struct tcp_sock *tp)
 	if (sysctl_tcp_max_ssthresh > 0 && tp->snd_cwnd > sysctl_tcp_max_ssthresh)
 		cnt = sysctl_tcp_max_ssthresh >> 1;	/* limited slow start */
 	else
-		cnt = tp->snd_cwnd;			/* exponential increase */
+		cnt = snd_cwnd;				/* exponential increase */
 
 	/* RFC3465: ABC
 	 * We MAY increase by 2 if discovered delayed ack
@@ -333,11 +339,11 @@ void tcp_slow_start(struct tcp_sock *tp)
 	tp->bytes_acked = 0;
 
 	tp->snd_cwnd_cnt += cnt;
-	while (tp->snd_cwnd_cnt >= tp->snd_cwnd) {
-		tp->snd_cwnd_cnt -= tp->snd_cwnd;
+	while (tp->snd_cwnd_cnt >= snd_cwnd) {
+		tp->snd_cwnd_cnt -= snd_cwnd;
 		delta++;
 	}
-	tp->snd_cwnd = min(tp->snd_cwnd + delta, tp->snd_cwnd_clamp);
+	tp->snd_cwnd = min(snd_cwnd + delta, tp->snd_cwnd_clamp);
 }
 EXPORT_SYMBOL_GPL(tcp_slow_start);
 
net/ipv4/tcp_input.c +6 -2
index 181fc82..beabc80 100644
@@ -3504,6 +3504,11 @@ static bool tcp_process_frto(struct sock *sk, int flag)
 		}
 	} else {
 		if (!(flag & FLAG_DATA_ACKED) && (tp->frto_counter == 1)) {
+			if (!tcp_packets_in_flight(tp)) {
+				tcp_enter_frto_loss(sk, 2, flag);
+				return true;
+			}
+
 			/* Prevent sending of new data. */
 			tp->snd_cwnd = min(tp->snd_cwnd,
 					   tcp_packets_in_flight(tp));
@@ -5639,8 +5644,7 @@ static bool tcp_rcv_fastopen_synack(struct sock *sk, struct sk_buff *synack,
 	 * the remote receives only the retransmitted (regular) SYNs: either
 	 * the original SYN-data or the corresponding SYN-ACK is lost.
 	 */
-	syn_drop = (cookie->len <= 0 && data &&
-		    inet_csk(sk)->icsk_retransmits);
+	syn_drop = (cookie->len <= 0 && data && tp->total_retrans);
 
 	tcp_fastopen_cache_set(sk, mss, cookie, syn_drop);
 
net/ipv4/tcp_ipv4.c +4 -5
index bc3cb46..e637770 100644
@@ -380,11 +380,10 @@ void tcp_v4_err(struct sk_buff *icmp_skb, u32 info)
 	 * We do take care of PMTU discovery (RFC1191) special case :
 	 * we can receive locally generated ICMP messages while socket is held.
 	 */
-	if (sock_owned_by_user(sk) &&
-	    type != ICMP_DEST_UNREACH &&
-	    code != ICMP_FRAG_NEEDED)
-		NET_INC_STATS_BH(net, LINUX_MIB_LOCKDROPPEDICMPS);
-
+	if (sock_owned_by_user(sk)) {
+		if (!(type == ICMP_DEST_UNREACH && code == ICMP_FRAG_NEEDED))
+			NET_INC_STATS_BH(net, LINUX_MIB_LOCKDROPPEDICMPS);
+	}
 	if (sk->sk_state == TCP_CLOSE)
 		goto out;
 
net/ipv4/udp.c +1 -0
index 79c8dbe..1f4d405 100644
@@ -1952,6 +1952,7 @@ struct proto udp_prot = {
 	.recvmsg	   = udp_recvmsg,
 	.sendpage	   = udp_sendpage,
 	.backlog_rcv	   = __udp_queue_rcv_skb,
+	.release_cb	   = ip4_datagram_release_cb,
 	.hash		   = udp_lib_hash,
 	.unhash		   = udp_lib_unhash,
 	.rehash		   = udp_v4_rehash,
net/ipv6/addrconf.c +1 -1
index 0424e4e..a468a36 100644
@@ -1723,7 +1723,7 @@ static struct rt6_info *addrconf_get_prefix_route(const struct in6_addr *pfx,
 			continue;
 		if ((rt->rt6i_flags & flags) != flags)
 			continue;
-		if ((noflags != 0) && ((rt->rt6i_flags & flags) != 0))
+		if ((rt->rt6i_flags & noflags) != 0)
 			continue;
 		dst_hold(&rt->dst);
 		break;
net/ipv6/icmp.c +12 -0
index 24d69db..4d844d7 100644
@@ -81,10 +81,22 @@ static inline struct sock *icmpv6_sk(struct net *net)
 	return net->ipv6.icmp_sk[smp_processor_id()];
 }
 
+static void icmpv6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
+		       u8 type, u8 code, int offset, __be32 info)
+{
+	struct net *net = dev_net(skb->dev);
+
+	if (type == ICMPV6_PKT_TOOBIG)
+		ip6_update_pmtu(skb, net, info, 0, 0);
+	else if (type == NDISC_REDIRECT)
+		ip6_redirect(skb, net, 0, 0);
+}
+
 static int icmpv6_rcv(struct sk_buff *skb);
 
 static const struct inet6_protocol icmpv6_protocol = {
 	.handler	=	icmpv6_rcv,
+	.err_handler	=	icmpv6_err,
 	.flags		=	INET6_PROTO_NOPOLICY|INET6_PROTO_FINAL,
 };
 
net/ipv6/ip6_gre.c +1 -1
index d5cb3c4..a23350c 100644
@@ -976,7 +976,7 @@ static netdev_tx_t ip6gre_tunnel_xmit(struct sk_buff *skb,
 	int ret;
 
 	if (!ip6_tnl_xmit_ctl(t))
-		return -1;
+		goto tx_err;
 
 	switch (skb->protocol) {
 	case htons(ETH_P_IP):
net/ipv6/ip6_output.c +2 -2
index aece3e7..8dea314 100644
@@ -1279,10 +1279,10 @@ int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to,
 		if (dst_allfrag(rt->dst.path))
 			cork->flags |= IPCORK_ALLFRAG;
 		cork->length = 0;
-		exthdrlen = (opt ? opt->opt_flen : 0) - rt->rt6i_nfheader_len;
+		exthdrlen = (opt ? opt->opt_flen : 0);
 		length += exthdrlen;
 		transhdrlen += exthdrlen;
-		dst_exthdrlen = rt->dst.header_len;
+		dst_exthdrlen = rt->dst.header_len - rt->rt6i_nfheader_len;
 	} else {
 		rt = (struct rt6_info *)cork->dst;
 		fl6 = &inet->cork.fl.u.ip6;
net/ipv6/route.c +1 -1
index b1e6cf0..b140ef2 100644
@@ -872,7 +872,7 @@ restart:
 	dst_hold(&rt->dst);
 	read_unlock_bh(&table->tb6_lock);
 
-	if (!rt->n && !(rt->rt6i_flags & RTF_NONEXTHOP))
+	if (!rt->n && !(rt->rt6i_flags & (RTF_NONEXTHOP | RTF_LOCAL)))
 		nrt = rt6_alloc_cow(rt, &fl6->daddr, &fl6->saddr);
 	else if (!(rt->dst.flags & DST_HOST))
 		nrt = rt6_alloc_clone(rt, &fl6->daddr);
net/packet/af_packet.c +6 -4
index 94060ed..5db6316 100644
@@ -2335,13 +2335,15 @@ static int packet_release(struct socket *sock)
 
 	packet_flush_mclist(sk);
 
-	memset(&req_u, 0, sizeof(req_u));
-
-	if (po->rx_ring.pg_vec)
+	if (po->rx_ring.pg_vec) {
+		memset(&req_u, 0, sizeof(req_u));
 		packet_set_ring(sk, &req_u, 1, 0);
+	}
 
-	if (po->tx_ring.pg_vec)
+	if (po->tx_ring.pg_vec) {
+		memset(&req_u, 0, sizeof(req_u));
 		packet_set_ring(sk, &req_u, 1, 1);
+	}
 
 	fanout_release(sk);
 
net/sctp/endpointola.c +5 -0
index 1859e2b..80a7264 100644
@@ -249,6 +249,8 @@ void sctp_endpoint_free(struct sctp_endpoint *ep)
 /* Final destructor for endpoint.  */
 static void sctp_endpoint_destroy(struct sctp_endpoint *ep)
 {
+	int i;
+
 	SCTP_ASSERT(ep->base.dead, "Endpoint is not dead", return);
 
 	/* Free up the HMAC transform. */
@@ -271,6 +273,9 @@ static void sctp_endpoint_destroy(struct sctp_endpoint *ep)
 	sctp_inq_free(&ep->base.inqueue);
 	sctp_bind_addr_free(&ep->base.bind_addr);
 
+	for (i = 0; i < SCTP_HOW_MANY_SECRETS; ++i)
+		memset(&ep->secret_key[i], 0, SCTP_SECRET_SIZE);
+
 	/* Remove and free the port */
 	if (sctp_sk(ep->base.sk)->bind_hash)
 		sctp_put_port(ep->base.sk);
net/sctp/outqueue.c +8 -4
index 1b4a7f8..bcaa4c8 100644
@@ -224,7 +224,7 @@ void sctp_outq_init(struct sctp_association *asoc, struct sctp_outq *q)
 
 /* Free the outqueue structure and any related pending chunks.
  */
-void sctp_outq_teardown(struct sctp_outq *q)
+static void __sctp_outq_teardown(struct sctp_outq *q)
 {
 	struct sctp_transport *transport;
 	struct list_head *lchunk, *temp;
@@ -277,8 +277,6 @@ void sctp_outq_teardown(struct sctp_outq *q)
 		sctp_chunk_free(chunk);
 	}
 
-	q->error = 0;
-
 	/* Throw away any leftover control chunks. */
 	list_for_each_entry_safe(chunk, tmp, &q->control_chunk_list, list) {
 		list_del_init(&chunk->list);
@@ -286,11 +284,17 @@ void sctp_outq_teardown(struct sctp_outq *q)
 	}
 }
 
+void sctp_outq_teardown(struct sctp_outq *q)
+{
+	__sctp_outq_teardown(q);
+	sctp_outq_init(q->asoc, q);
+}
+
 /* Free the outqueue structure and any related pending chunks.  */
 void sctp_outq_free(struct sctp_outq *q)
 {
 	/* Throw away leftover chunks. */
-	sctp_outq_teardown(q);
+	__sctp_outq_teardown(q);
 
 	/* If we were kmalloc()'d, free the memory.  */
 	if (q->malloced)
net/sctp/socket.c +1 -1
index 406d957..9261d9a 100644
@@ -3388,7 +3388,7 @@ static int sctp_setsockopt_auth_key(struct sock *sk,
 
 	ret = sctp_auth_set_key(sctp_sk(sk)->ep, asoc, authkey);
 out:
-	kfree(authkey);
+	kzfree(authkey);
 	return ret;
 }
 
net/wireless/core.c +1 -2
index 3f72530..d1531e5 100644
@@ -856,8 +856,7 @@ static int cfg80211_netdev_notifier_call(struct notifier_block *nb,
 		/* allow mac80211 to determine the timeout */
 		wdev->ps_timeout = -1;
 
-		if (!dev->ethtool_ops)
-			dev->ethtool_ops = &cfg80211_ethtool_ops;
+		netdev_set_default_ethtool_ops(dev, &cfg80211_ethtool_ops);
 
 		if ((wdev->iftype == NL80211_IFTYPE_STATION ||
 		     wdev->iftype == NL80211_IFTYPE_P2P_CLIENT ||
#2 lore raw
In reply to Greg KH

Hi,

Quoted 1 line · Greg KH

I'm announcing the release of the 3.7.8 kernel.

I've got issues with my radeon GPU on 3.7.8
...

[   20.944106] BUG: unable to handle kernel NULL pointer dereference
at 00000000000001f8
[   20.945753] IP: [<ffffffff812a11a3>] radeon_vm_bo_add+0xb3/0x110
[   20.946498] PGD 243c0a067 PUD 243cbb067 PMD 0
[   20.947236] Oops: 0000 [#1] PREEMPT SMP
[   20.947964] Modules linked in:
[   20.948675] CPU 3
[   20.948682] Pid: 2759, comm: X Not tainted 3.9.8 #1 SAMSUNG
ELECTRONICS CO., LTD.
355V4C/355V4X/355V5C/355V5X/356V4C/356V4X/356V5C/356V5X/3445VC/3445VX/3545VC/3545VX/NP355V5C-S0NRU
[   20.950160] RIP: 0010:[<ffffffff812a11a3>]  [<ffffffff812a11a3>]
radeon_vm_bo_add+0xb3/0x110
[   20.950961] RSP: 0018:ffff880244dd3c08  EFLAGS: 00010246
[   20.951745] RAX: ffff88024578a210 RBX: ffff880243f7c2a0 RCX: 0000000000000000
[   20.952534] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88024578a240
[   20.953331] RBP: ffff88024578a200 R08: 0000000000014400 R09: ffff880243f7c2a0
[   20.954131] R10: 0000000000000005 R11: ffffffffffffffff R12: 00000000000001f0
[   20.954941] R13: ffff880243f7c2d0 R14: ffff88024578a240 R15: ffff880245fa9000
[   20.955757] FS:  00007f5c2424e880(0000) GS:ffff88024ed80000(0000)
knlGS:0000000000000000
[   20.956590] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   20.957424] CR2: 00000000000001f8 CR3: 00000002451c3000 CR4: 00000000000407e0
[   20.958273] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   20.959124] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[   20.959969] Process X (pid: 2759, threadinfo ffff880244dd2000, task
ffff880245e277f0)
[   20.960828] Stack:
[   20.961679]  ffff880245fba000 ffff88024578a200 ffff880244ea8800
ffff880244ea8800
[   20.962572]  ffff880244ea8820 ffffffff81289dab ffff880245fa9020
ffff880245fa9020
[   20.963463]  ffff8802450f25c8 ffff880243cbd400 ffffffff812650c1
0000000000000000
[   20.964362] Call Trace:
[   20.965250]  [<ffffffff81289dab>] ? radeon_driver_open_kms+0x6b/0xd0
[   20.966165]  [<ffffffff812650c1>] ? drm_open+0x281/0x6d0
[   20.967075]  [<ffffffff810d92e8>] ? exact_lock+0x8/0x20
[   20.967980]  [<ffffffff81265e63>] ? drm_stub_open+0x103/0x1a0
[   20.968886]  [<ffffffff810d9716>] ? chrdev_open+0x96/0x1c0
[   20.969787]  [<ffffffff810d9680>] ? cdev_put+0x20/0x20
[   20.970682]  [<ffffffff810d3a42>] ? do_dentry_open.isra.18+0x192/0x280
[   20.971588]  [<ffffffff810d3b45>] ? finish_open+0x15/0x20
[   20.972489]  [<ffffffff810e220b>] ? do_last.isra.59+0x29b/0xc90
[   20.973393]  [<ffffffff810b0000>] ? __do_fault+0x1e0/0x500
[   20.974294]  [<ffffffff810e2cb5>] ? path_openat.isra.60+0xb5/0x4b0
[   20.975199]  [<ffffffff810b2d3b>] ? handle_pte_fault+0x9b/0x7a0
[   20.976105]  [<ffffffff810e3e60>] ? do_filp_open+0x40/0x90
[   20.977010]  [<ffffffff810eff97>] ? __alloc_fd+0x97/0x120
[   20.977904]  [<ffffffff810d4bb3>] ? do_sys_open+0xf3/0x1d0
[   20.978797]  [<ffffffff81653f52>] ? system_call_fastpath+0x16/0x1b
[   20.979690] Code: 89 5b 08 4c 89 6b 30 4c 89 6b 38 e8 68 f8 3a 00
48 8b 45 10 4c 89 f7 4c 89 68 08 48 89 43 30 48 8d 45 10 48 89 43 38
4c 89 6d 10 <49> 8b 44 24 08 49 89 5c 24 08 4c 89 23 48 89 43 08 48 89
18 e8
[   20.981714] RIP  [<ffffffff812a11a3>] radeon_vm_bo_add+0xb3/0x110
[   20.982673]  RSP <ffff880244dd3c08>
[   20.983616] CR2: 00000000000001f8
[   20.984613] ---[ end trace 4c43aa9ba50a68eb ]---
Quoted 231 lines

All users of the 3.7 kernel series must upgrade.

The updated 3.7.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.7.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

thanks,

greg k-h

------------

 MAINTAINERS                                          |    6
 Makefile                                             |    2
 drivers/atm/iphase.h                                 |  146 +++++++++----------
 drivers/char/virtio_console.c                        |    3
 drivers/gpu/drm/nouveau/core/core/subdev.c           |    2
 drivers/gpu/drm/nouveau/core/include/core/object.h   |    7
 drivers/gpu/drm/nouveau/nouveau_drm.c                |    3
 drivers/infiniband/hw/qib/qib_qp.c                   |   11 -
 drivers/isdn/gigaset/capi.c                          |    2
 drivers/md/dm-thin.c                                 |   13 -
 drivers/media/usb/pwc/pwc-if.c                       |    6
 drivers/mfd/db8500-prcmu.c                           |    6
 drivers/net/can/c_can/c_can.c                        |    6
 drivers/net/ethernet/calxeda/xgmac.c                 |    4
 drivers/net/ethernet/intel/e1000e/defines.h          |    9 +
 drivers/net/ethernet/intel/e1000e/e1000.h            |    2
 drivers/net/ethernet/intel/e1000e/ethtool.c          |    2
 drivers/net/ethernet/intel/e1000e/hw.h               |    1
 drivers/net/ethernet/intel/e1000e/ich8lan.c          |   11 +
 drivers/net/ethernet/intel/e1000e/netdev.c           |   46 +++++
 drivers/net/ethernet/mellanox/mlx4/en_tx.c           |   13 +
 drivers/net/ethernet/mellanox/mlx4/main.c            |   11 -
 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c |    2
 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c |    2
 drivers/net/ethernet/realtek/r8169.c                 |    7
 drivers/net/ethernet/via/via-rhine.c                 |    8 -
 drivers/net/loopback.c                               |    5
 drivers/net/macvlan.c                                |    5
 drivers/net/wireless/ath/ath9k/ar9003_calib.c        |    2
 drivers/net/wireless/ath/ath9k/ar9003_phy.c          |    2
 drivers/net/wireless/ath/ath9k/hw.h                  |    1
 drivers/net/wireless/iwlwifi/dvm/tx.c                |   24 ---
 drivers/net/wireless/mwifiex/scan.c                  |    9 -
 drivers/net/wireless/rtlwifi/base.c                  |    7
 drivers/net/wireless/rtlwifi/usb.c                   |    4
 drivers/net/xen-netback/common.h                     |    3
 drivers/net/xen-netback/interface.c                  |   23 +-
 drivers/net/xen-netback/netback.c                    |  115 +++++++++-----
 drivers/regulator/max8998.c                          |    2
 drivers/regulator/of_regulator.c                     |    6
 drivers/regulator/s2mps11.c                          |    4
 include/linux/netdevice.h                            |    3
 include/net/ip.h                                     |    2
 net/bluetooth/smp.c                                  |   13 +
 net/core/dev.c                                       |    8 +
 net/core/pktgen.c                                    |    9 -
 net/core/request_sock.c                              |    2
 net/core/skbuff.c                                    |   44 +----
 net/ipv4/datagram.c                                  |   25 +++
 net/ipv4/ip_gre.c                                    |    6
 net/ipv4/ip_sockglue.c                               |    2
 net/ipv4/ping.c                                      |    1
 net/ipv4/raw.c                                       |    1
 net/ipv4/route.c                                     |   54 ++++++-
 net/ipv4/tcp.c                                       |   27 ++-
 net/ipv4/tcp_cong.c                                  |   14 +
 net/ipv4/tcp_input.c                                 |    8 -
 net/ipv4/tcp_ipv4.c                                  |    9 -
 net/ipv4/udp.c                                       |    1
 net/ipv6/addrconf.c                                  |    2
 net/ipv6/icmp.c                                      |   12 +
 net/ipv6/ip6_gre.c                                   |    2
 net/ipv6/ip6_output.c                                |    4
 net/ipv6/route.c                                     |    2
 net/packet/af_packet.c                               |   10 -
 net/sctp/endpointola.c                               |    5
 net/sctp/outqueue.c                                  |   12 +
 net/sctp/socket.c                                    |    2
 net/wireless/core.c                                  |    3
 69 files changed, 536 insertions(+), 290 deletions(-)

Alexander Stein (1):
can: c_can: Set reserved bit in IFx_MASK2 to 1 on write

Alim Akhtar (1):
regulator: s2mps11: fix incorrect register for buck10

Bing Zhao (1):
mwifiex: fix incomplete scan in case of IE parsing error

Bruce Allan (1):
e1000e: enable ECC on I217/I218 to catch packet buffer memory errors

Cong Wang (2):
net: prevent setting ttl=0 via IP_TTL
pktgen: correctly handle failures when adding a device

Daniel Borkmann (2):
net: sctp: sctp_setsockopt_auth_key: use kzfree instead of kfree
net: sctp: sctp_endpoint_free: zero out secret key data

David S. Miller (1):
via-rhine: Fix bugs in NAPI support.

Emmanuel Grumbach (1):
Revert "iwlwifi: fix the reclaimed packet tracking upon flush queue"

Eric Dumazet (11):
tcp: fix a panic on UP machines in reqsk_fastopen_remove
macvlan: fix macvlan_get_size()
tcp: fix incorrect LOCKDROPPEDICMPS counter
netxen: fix off by one bug in netxen_release_tx_buffer()
net: loopback: fix a dst refcounting issue
tcp: fix an infinite loop in tcp_slow_start()
tcp: frto should not set snd_cwnd to 0
tcp: splice: fix an infinite loop in tcp_read_sock()
tcp: fix splice() and tcp collapsing interaction
net: splice: avoid high order page splitting
net: splice: fix __splice_segment()

Felix Fietkau (1):
ath9k_hw: fix calibration issues on chainmask that don't include chain 0

Greg Kroah-Hartman (1):

      Linux 3.7.8

Heiko Carstens (1):

      atm/iphase: rename fregt_t -> ffreg_t

Ian Campbell (3):
xen/netback: shutdown the ring if it contains garbage. xen/netback: free already allocated memory on failure in xen_netbk_get_requests
netback: correct netbk_tx_err to handle wrap around.

Ilpo Järvinen (1):
tcp: fix for zero packets_in_flight was too broad

Johan Hedberg (1):
Bluetooth: Fix handling of unexpected SMP PDUs

Larry Finger (2):
rtlwifi: Fix the usage of the wrong variable in usb.c
rtlwifi: Fix scheduling while atomic bug

Linus Walleij (1):
mfd: db8500-prcmu: Fix irqdomain usage

Marcelo Ricardo Leitner (1):
ipv6: do not create neighbor entries for local delivery

Marcin Slusarz (1):
drm/nouveau: add lockdep annotations

Marek Szyprowski (1):
regulator: max8998: fix incorrect min_uV value for ldo10

Matthew Daley (1):
xen/netback: don't leak pages on failure in xen_netbk_tx_check_gop.

Mauro Carvalho Chehab (1):
media: pwc-if: must check vb2_queue_init() success

Mike Marciniszyn (1):
IB/qib: Fix for broken sparse warning fix

Mike Snitzer (1):
dm thin: fix queue limits stacking

Neil Horman (1):
sctp: refactor sctp_outq_teardown to insure proper re-initalization

Or Gerlitz (1):
net/mlx4_core: Set number of msix vectors under SRIOV mode to firmware defaults

Phil Sutter (1):
packet: fix leakage of tx_ring memory

Pravin B Shelar (1):
IP_GRE: Fix kernel panic in IP_GRE with GRE csum.

Rob Herring (1):
net: calxedaxgmac: throw away overrun frames

Romain KUNTZ (1):
ipv6: fix header length calculation in ip6_append_data()

Romain Kuntz (1):
ipv6: fix the noflags test in addrconf_get_prefix_route

Sjur Brændeland (1):
virtio_console: Don't access uninitialized data.

Stanislaw Gruszka (1):
net, wireless: overwrite default_ethtool_ops

Steffen Klassert (6):
ipv4: Remove output route check in ipv4_mtu
ipv4: Don't update the pmtu on mtu locked routes
ipv6: Add an error handler for icmp6
ipv4: Invalidate the socket cached route on pmtu events if possible
ipv4: Add a socket release callback for datagram sockets
ipv4: Fix route refcount on pmtu discovery

Stephen Hemminger (1):
MAINTAINERS: Stephen Hemminger email change

Stephen Warren (1):
regulator: clear state each invocation of of_regulator_match

Tilman Schmidt (1):
isdn/gigaset: fix zero size border case in debug dump

Timo Teräs (1):
r8169: remove the obsolete and incorrect AMD workaround

Tommi Rantala (1):
ipv6/ip6_gre: fix error case handling in ip6gre_tunnel_xmit()

Willy Tarreau (1):
tcp: don't abort splice() after small transfers

Yan Burman (1):
net/mlx4_en: Fix bridged vSwitch configuration for non SRIOV mode

Yuchung Cheng (1):
tcp: detect SYN/data drop when F-RTO is disabled

#3 lore raw
Quoted 4 lines · Sergey Meirovich

Hi,

Quoted 1 line · Greg KH

I'm announcing the release of the 3.7.8 kernel.

Please ignore - this is about 3.9.8 kernel

Quoted 295 lines

I've got issues with my radeon GPU on 3.7.8
...

[   20.944106] BUG: unable to handle kernel NULL pointer dereference
at 00000000000001f8
[   20.945753] IP: [<ffffffff812a11a3>] radeon_vm_bo_add+0xb3/0x110
[   20.946498] PGD 243c0a067 PUD 243cbb067 PMD 0
[   20.947236] Oops: 0000 [#1] PREEMPT SMP
[   20.947964] Modules linked in:
[   20.948675] CPU 3
[   20.948682] Pid: 2759, comm: X Not tainted 3.9.8 #1 SAMSUNG
ELECTRONICS CO., LTD.
355V4C/355V4X/355V5C/355V5X/356V4C/356V4X/356V5C/356V5X/3445VC/3445VX/3545VC/3545VX/NP355V5C-S0NRU
[   20.950160] RIP: 0010:[<ffffffff812a11a3>]  [<ffffffff812a11a3>]
radeon_vm_bo_add+0xb3/0x110
[   20.950961] RSP: 0018:ffff880244dd3c08  EFLAGS: 00010246
[   20.951745] RAX: ffff88024578a210 RBX: ffff880243f7c2a0 RCX: 0000000000000000
[   20.952534] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88024578a240
[   20.953331] RBP: ffff88024578a200 R08: 0000000000014400 R09: ffff880243f7c2a0
[   20.954131] R10: 0000000000000005 R11: ffffffffffffffff R12: 00000000000001f0
[   20.954941] R13: ffff880243f7c2d0 R14: ffff88024578a240 R15: ffff880245fa9000
[   20.955757] FS:  00007f5c2424e880(0000) GS:ffff88024ed80000(0000)
knlGS:0000000000000000
[   20.956590] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   20.957424] CR2: 00000000000001f8 CR3: 00000002451c3000 CR4: 00000000000407e0
[   20.958273] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   20.959124] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[   20.959969] Process X (pid: 2759, threadinfo ffff880244dd2000, task
ffff880245e277f0)
[   20.960828] Stack:
[   20.961679]  ffff880245fba000 ffff88024578a200 ffff880244ea8800
ffff880244ea8800
[   20.962572]  ffff880244ea8820 ffffffff81289dab ffff880245fa9020
ffff880245fa9020
[   20.963463]  ffff8802450f25c8 ffff880243cbd400 ffffffff812650c1
0000000000000000
[   20.964362] Call Trace:
[   20.965250]  [<ffffffff81289dab>] ? radeon_driver_open_kms+0x6b/0xd0
[   20.966165]  [<ffffffff812650c1>] ? drm_open+0x281/0x6d0
[   20.967075]  [<ffffffff810d92e8>] ? exact_lock+0x8/0x20
[   20.967980]  [<ffffffff81265e63>] ? drm_stub_open+0x103/0x1a0
[   20.968886]  [<ffffffff810d9716>] ? chrdev_open+0x96/0x1c0
[   20.969787]  [<ffffffff810d9680>] ? cdev_put+0x20/0x20
[   20.970682]  [<ffffffff810d3a42>] ? do_dentry_open.isra.18+0x192/0x280
[   20.971588]  [<ffffffff810d3b45>] ? finish_open+0x15/0x20
[   20.972489]  [<ffffffff810e220b>] ? do_last.isra.59+0x29b/0xc90
[   20.973393]  [<ffffffff810b0000>] ? __do_fault+0x1e0/0x500
[   20.974294]  [<ffffffff810e2cb5>] ? path_openat.isra.60+0xb5/0x4b0
[   20.975199]  [<ffffffff810b2d3b>] ? handle_pte_fault+0x9b/0x7a0
[   20.976105]  [<ffffffff810e3e60>] ? do_filp_open+0x40/0x90
[   20.977010]  [<ffffffff810eff97>] ? __alloc_fd+0x97/0x120
[   20.977904]  [<ffffffff810d4bb3>] ? do_sys_open+0xf3/0x1d0
[   20.978797]  [<ffffffff81653f52>] ? system_call_fastpath+0x16/0x1b
[   20.979690] Code: 89 5b 08 4c 89 6b 30 4c 89 6b 38 e8 68 f8 3a 00
48 8b 45 10 4c 89 f7 4c 89 68 08 48 89 43 30 48 8d 45 10 48 89 43 38
4c 89 6d 10 <49> 8b 44 24 08 49 89 5c 24 08 4c 89 23 48 89 43 08 48 89
18 e8
[   20.981714] RIP  [<ffffffff812a11a3>] radeon_vm_bo_add+0xb3/0x110
[   20.982673]  RSP <ffff880244dd3c08>
[   20.983616] CR2: 00000000000001f8
[   20.984613] ---[ end trace 4c43aa9ba50a68eb ]---
Quoted 231 lines

All users of the 3.7 kernel series must upgrade.

The updated 3.7.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.7.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

thanks,

greg k-h

------------

 MAINTAINERS                                          |    6
 Makefile                                             |    2
 drivers/atm/iphase.h                                 |  146 +++++++++----------
 drivers/char/virtio_console.c                        |    3
 drivers/gpu/drm/nouveau/core/core/subdev.c           |    2
 drivers/gpu/drm/nouveau/core/include/core/object.h   |    7
 drivers/gpu/drm/nouveau/nouveau_drm.c                |    3
 drivers/infiniband/hw/qib/qib_qp.c                   |   11 -
 drivers/isdn/gigaset/capi.c                          |    2
 drivers/md/dm-thin.c                                 |   13 -
 drivers/media/usb/pwc/pwc-if.c                       |    6
 drivers/mfd/db8500-prcmu.c                           |    6
 drivers/net/can/c_can/c_can.c                        |    6
 drivers/net/ethernet/calxeda/xgmac.c                 |    4
 drivers/net/ethernet/intel/e1000e/defines.h          |    9 +
 drivers/net/ethernet/intel/e1000e/e1000.h            |    2
 drivers/net/ethernet/intel/e1000e/ethtool.c          |    2
 drivers/net/ethernet/intel/e1000e/hw.h               |    1
 drivers/net/ethernet/intel/e1000e/ich8lan.c          |   11 +
 drivers/net/ethernet/intel/e1000e/netdev.c           |   46 +++++
 drivers/net/ethernet/mellanox/mlx4/en_tx.c           |   13 +
 drivers/net/ethernet/mellanox/mlx4/main.c            |   11 -
 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c |    2
 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c |    2
 drivers/net/ethernet/realtek/r8169.c                 |    7
 drivers/net/ethernet/via/via-rhine.c                 |    8 -
 drivers/net/loopback.c                               |    5
 drivers/net/macvlan.c                                |    5
 drivers/net/wireless/ath/ath9k/ar9003_calib.c        |    2
 drivers/net/wireless/ath/ath9k/ar9003_phy.c          |    2
 drivers/net/wireless/ath/ath9k/hw.h                  |    1
 drivers/net/wireless/iwlwifi/dvm/tx.c                |   24 ---
 drivers/net/wireless/mwifiex/scan.c                  |    9 -
 drivers/net/wireless/rtlwifi/base.c                  |    7
 drivers/net/wireless/rtlwifi/usb.c                   |    4
 drivers/net/xen-netback/common.h                     |    3
 drivers/net/xen-netback/interface.c                  |   23 +-
 drivers/net/xen-netback/netback.c                    |  115 +++++++++-----
 drivers/regulator/max8998.c                          |    2
 drivers/regulator/of_regulator.c                     |    6
 drivers/regulator/s2mps11.c                          |    4
 include/linux/netdevice.h                            |    3
 include/net/ip.h                                     |    2
 net/bluetooth/smp.c                                  |   13 +
 net/core/dev.c                                       |    8 +
 net/core/pktgen.c                                    |    9 -
 net/core/request_sock.c                              |    2
 net/core/skbuff.c                                    |   44 +----
 net/ipv4/datagram.c                                  |   25 +++
 net/ipv4/ip_gre.c                                    |    6
 net/ipv4/ip_sockglue.c                               |    2
 net/ipv4/ping.c                                      |    1
 net/ipv4/raw.c                                       |    1
 net/ipv4/route.c                                     |   54 ++++++-
 net/ipv4/tcp.c                                       |   27 ++-
 net/ipv4/tcp_cong.c                                  |   14 +
 net/ipv4/tcp_input.c                                 |    8 -
 net/ipv4/tcp_ipv4.c                                  |    9 -
 net/ipv4/udp.c                                       |    1
 net/ipv6/addrconf.c                                  |    2
 net/ipv6/icmp.c                                      |   12 +
 net/ipv6/ip6_gre.c                                   |    2
 net/ipv6/ip6_output.c                                |    4
 net/ipv6/route.c                                     |    2
 net/packet/af_packet.c                               |   10 -
 net/sctp/endpointola.c                               |    5
 net/sctp/outqueue.c                                  |   12 +
 net/sctp/socket.c                                    |    2
 net/wireless/core.c                                  |    3
 69 files changed, 536 insertions(+), 290 deletions(-)

Alexander Stein (1):
can: c_can: Set reserved bit in IFx_MASK2 to 1 on write

Alim Akhtar (1):
regulator: s2mps11: fix incorrect register for buck10

Bing Zhao (1):
mwifiex: fix incomplete scan in case of IE parsing error

Bruce Allan (1):
e1000e: enable ECC on I217/I218 to catch packet buffer memory errors

Cong Wang (2):
net: prevent setting ttl=0 via IP_TTL
pktgen: correctly handle failures when adding a device

Daniel Borkmann (2):
net: sctp: sctp_setsockopt_auth_key: use kzfree instead of kfree
net: sctp: sctp_endpoint_free: zero out secret key data

David S. Miller (1):
via-rhine: Fix bugs in NAPI support.

Emmanuel Grumbach (1):
Revert "iwlwifi: fix the reclaimed packet tracking upon flush queue"

Eric Dumazet (11):
tcp: fix a panic on UP machines in reqsk_fastopen_remove
macvlan: fix macvlan_get_size()
tcp: fix incorrect LOCKDROPPEDICMPS counter
netxen: fix off by one bug in netxen_release_tx_buffer()
net: loopback: fix a dst refcounting issue
tcp: fix an infinite loop in tcp_slow_start()
tcp: frto should not set snd_cwnd to 0
tcp: splice: fix an infinite loop in tcp_read_sock()
tcp: fix splice() and tcp collapsing interaction
net: splice: avoid high order page splitting
net: splice: fix __splice_segment()

Felix Fietkau (1):
ath9k_hw: fix calibration issues on chainmask that don't include chain 0

Greg Kroah-Hartman (1):

      Linux 3.7.8

Heiko Carstens (1):

      atm/iphase: rename fregt_t -> ffreg_t

Ian Campbell (3):
xen/netback: shutdown the ring if it contains garbage. xen/netback: free already allocated memory on failure in xen_netbk_get_requests
netback: correct netbk_tx_err to handle wrap around.

Ilpo Järvinen (1):
tcp: fix for zero packets_in_flight was too broad

Johan Hedberg (1):
Bluetooth: Fix handling of unexpected SMP PDUs

Larry Finger (2):
rtlwifi: Fix the usage of the wrong variable in usb.c
rtlwifi: Fix scheduling while atomic bug

Linus Walleij (1):
mfd: db8500-prcmu: Fix irqdomain usage

Marcelo Ricardo Leitner (1):
ipv6: do not create neighbor entries for local delivery

Marcin Slusarz (1):
drm/nouveau: add lockdep annotations

Marek Szyprowski (1):
regulator: max8998: fix incorrect min_uV value for ldo10

Matthew Daley (1):
xen/netback: don't leak pages on failure in xen_netbk_tx_check_gop.

Mauro Carvalho Chehab (1):
media: pwc-if: must check vb2_queue_init() success

Mike Marciniszyn (1):
IB/qib: Fix for broken sparse warning fix

Mike Snitzer (1):
dm thin: fix queue limits stacking

Neil Horman (1):
sctp: refactor sctp_outq_teardown to insure proper re-initalization

Or Gerlitz (1):
net/mlx4_core: Set number of msix vectors under SRIOV mode to firmware defaults

Phil Sutter (1):
packet: fix leakage of tx_ring memory

Pravin B Shelar (1):
IP_GRE: Fix kernel panic in IP_GRE with GRE csum.

Rob Herring (1):
net: calxedaxgmac: throw away overrun frames

Romain KUNTZ (1):
ipv6: fix header length calculation in ip6_append_data()

Romain Kuntz (1):
ipv6: fix the noflags test in addrconf_get_prefix_route

Sjur Brændeland (1):
virtio_console: Don't access uninitialized data.

Stanislaw Gruszka (1):
net, wireless: overwrite default_ethtool_ops

Steffen Klassert (6):
ipv4: Remove output route check in ipv4_mtu
ipv4: Don't update the pmtu on mtu locked routes
ipv6: Add an error handler for icmp6
ipv4: Invalidate the socket cached route on pmtu events if possible
ipv4: Add a socket release callback for datagram sockets
ipv4: Fix route refcount on pmtu discovery

Stephen Hemminger (1):
MAINTAINERS: Stephen Hemminger email change

Stephen Warren (1):
regulator: clear state each invocation of of_regulator_match

Tilman Schmidt (1):
isdn/gigaset: fix zero size border case in debug dump

Timo Teräs (1):
r8169: remove the obsolete and incorrect AMD workaround

Tommi Rantala (1):
ipv6/ip6_gre: fix error case handling in ip6gre_tunnel_xmit()

Willy Tarreau (1):
tcp: don't abort splice() after small transfers

Yan Burman (1):
net/mlx4_en: Fix bridged vSwitch configuration for non SRIOV mode

Yuchung Cheng (1):
tcp: detect SYN/data drop when F-RTO is disabled