Linux 3.11.9
Greg KH
maintainerI'm announcing the release of the 3.11.9 kernel.
All users of the 3.11 kernel series must upgrade.
The updated 3.11.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.11.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
------------
Makefile | 2 drivers/gpu/drm/i915/intel_dp.c | 20 ++++ drivers/media/platform/sh_vou.c | 2 drivers/misc/atmel_pwm.c | 6 - drivers/net/ethernet/chelsio/cxgb3/sge.c | 3 drivers/net/ethernet/mellanox/mlx4/cmd.c | 2 drivers/net/virtio_net.c | 13 +- drivers/net/wireless/iwlwifi/pcie/drv.c | 35 ++++++- drivers/net/xen-netback/common.h | 1 drivers/net/xen-netback/interface.c | 3 drivers/net/xen-netback/netback.c | 10 +- drivers/net/xen-netback/xenbus.c | 152 ++++++++++++++++++++++++------- drivers/thermal/x86_pkg_temp_thermal.c | 14 +- drivers/usb/core/hcd.c | 1 drivers/usb/core/hub.c | 18 +++ drivers/usb/core/usb.h | 1 drivers/usb/serial/option.c | 17 +++ drivers/video/backlight/atmel-pwm-bl.c | 9 + drivers/video/hyperv_fb.c | 40 +++++++- include/net/ip6_fib.h | 1 include/uapi/linux/perf_event.h | 12 +- kernel/events/ring_buffer.c | 31 +++++- kernel/trace/trace.c | 5 - net/core/flow_dissector.c | 2 net/ipv4/tcp_offload.c | 13 +- net/ipv6/route.c | 9 + net/sctp/sm_sideeffect.c | 1 sound/pci/hda/patch_hdmi.c | 5 - 28 files changed, 336 insertions(+), 92 deletions(-)
Anssi Hannula (1):
ALSA: hda - hdmi: Fix reported channel map on common default layouts
Ben Hutchings (1):
cxgb3: Fix length calculation in write_ofld_wr() on 32-bit architectures
Dan Carpenter (1):
media: sh_vou: almost forever loop in sh_vou_try_fmt_vid_out()
Daniel Borkmann (1):
net: sctp: do not trigger BUG_ON in sctp_cmd_delete_tcb
David Vrabel (1):
xen-netback: transition to CLOSED when removing a VIF
Eric Dumazet (1):
tcp: gso: fix truesize tracking
Gerd Hoffmann (1):
hyperv-fb: add pci stub
Greg Kroah-Hartman (1):
Linux 3.11.9
Hannes Frederic Sowa (2):
ipv6: ip6_dst_check needs to check for expired dst_entries
ipv6: reset dst.expires value when clearing expire flag
Jack Morgenstein (1):
net/mlx4_core: Fix call to __mlx4_unregister_mac
Jani Nikula (1):
drm/i915/dp: workaround BIOS eDP bpp clamping issue
Jason Wang (2):
net: flow_dissector: fail on evil iph->ihl
virtio-net: correctly handle cpu hotplug notifier during resuming
Johan Hovold (2):
misc: atmel_pwm: add deferred-probing support
backlight: atmel-pwm-bl: fix deferred probe from __init
Krzysztof Mazur (2):
usb: fix cleanup after failure in hub_configure()
usb: fail on usb_hub_create_port_device() errors
Matti Gottlieb (1):
iwlwifi: pcie: add new SKUs for 7000 & 3160 NIC series
Paul Durrant (1):
xen-netback: Handle backend state transitions in a more robust way
Peter Zijlstra (1):
perf: Fix perf ring buffer memory ordering
Rui li (1):
USB: add new zte 3g-dongle's pid to option.c
Srinivas Pandruvada (1):
Thermal: x86_pkg_temp: change spin lock
Steven Rostedt (1):
tracing: Fix potential out-of-bounds in trace_get_user()
Wei Liu (1):
xen-netback: use jiffies_64 value to calculate credit timeout
Xenia Ragiadakou (1):
usbcore: set lpm_capable field for LPM capable root hubs
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 11 -SUBLEVEL = 8 +SUBLEVEL = 9 EXTRAVERSION = NAME = Linux for Workgroups
drivers/gpu/drm/i915/intel_dp.c +20 -0
@@ -1389,6 +1389,26 @@ static void intel_dp_get_config(struct intel_encoder *encoder, } pipe_config->adjusted_mode.flags |= flags; + +if (is_edp (intel_dp) && dev_priv->vbt.edp_bpp && + pipe_config->pipe_bpp > dev_priv->vbt.edp_bpp) { +/* +* This is a big fat ugly hack. +* +* Some machines in UEFI boot mode provide us a VBT that has 18 +* bpp and 1.62 GHz link bandwidth for eDP, which for reasons +* unknown we fail to light up. Yet the same BIOS boots up with +* 24 bpp and 2.7 GHz link. Use the same bpp as the BIOS uses as +* max, not what it tells us to use. +* +* Note: This will still be broken if the eDP panel is not lit +* up by the BIOS, and thus we can't get the mode at module +* load. +*/ +DRM_DEBUG_KMS ("pipe has %d bpp for eDP panel, overriding BIOS-provided max %d bpp\n" , + pipe_config->pipe_bpp, dev_priv->vbt.edp_bpp); + dev_priv->vbt.edp_bpp = pipe_config->pipe_bpp; + } }static void intel_disable_dp (struct intel_encoder *encoder)
drivers/media/platform/sh_vou.c +1 -1
@@ -776,7 +776,7 @@ static int sh_vou_try_fmt_vid_out(struct file *file, void *priv,v4l_bound_align_image (&pix->width,0 ,VOU_MAX_IMAGE_WIDTH ,1 , &pix->height,0 ,VOU_MAX_IMAGE_HEIGHT ,1 ,0 ); -for (i =0 ;ARRAY_SIZE (vou_fmt); i++) +for (i =0 ; i <ARRAY_SIZE (vou_fmt); i++)if (vou_fmt[i].pfmt == pix->pixelformat)return 0 ;
drivers/misc/atmel_pwm.c +4 -2
@@ -90,8 +90,10 @@ int pwm_channel_alloc(int index, struct pwm_channel *ch)unsigned long flags;int status =0 ; -/* insist on PWM init, with this signal pinned out */ -if (!pwm || !(pwm->mask &1 << index)) +if (!pwm) +return -EPROBE_DEFER ; + +if (!(pwm->mask &1 << index))return -ENODEV ;if (index <0 || index >=PWM_NCHAN || !ch)
drivers/net/ethernet/chelsio/cxgb3/sge.c +2 -1
@@ -1599,7 +1599,8 @@ static void write_ofld_wr(struct adapter *adap, struct sk_buff *skb, flits =skb_transport_offset (skb) /8 ; sgp = ndesc ==1 ? (struct sg_ent *)&d->flit[flits] : sgl; sgl_flits =make_sgl (skb, sgp,skb_transport_header (skb), - skb->tail - skb->transport_header, +skb_tail_pointer (skb) - +skb_transport_header (skb), adap->pdev);if (need_skb_unmap ()) {setup_deferred_unmapping (skb, adap->pdev, sgp, sgl_flits);
drivers/net/ethernet/mellanox/mlx4/cmd.c +1 -1
@@ -1673,7 +1673,7 @@ static void mlx4_master_deactivate_admin_state(struct mlx4_priv *priv, int slave vp_oper->vlan_idx =NO_INDX ; }if (NO_INDX != vp_oper->mac_idx) { -__mlx4_unregister_mac (&priv->dev, port, vp_oper->mac_idx); +__mlx4_unregister_mac (&priv->dev, port, vp_oper->state.mac); vp_oper->mac_idx =NO_INDX ; } }
drivers/net/virtio_net.c +6 -7
@@ -1096,11 +1096,6 @@ static int virtnet_cpu_callback(struct notifier_block *nfb, { struct virtnet_info *vi = container_of(nfb, struct virtnet_info, nb); -mutex_lock (&vi->config_lock); - -if (!vi->config_enable) - goto done; -switch (action & ~CPU_TASKS_FROZEN ) {case CPU_ONLINE :case CPU_DOWN_FAILED :
@@ -1114,8 +1109,6 @@ static int virtnet_cpu_callback(struct notifier_block *nfb,break ; } -done: -mutex_unlock (&vi->config_lock);return NOTIFY_OK ; }
@@ -1672,6 +1665,8 @@ static int virtnet_freeze(struct virtio_device *vdev)struct virtnet_info *vi = vdev->priv;int i; +unregister_hotcpu_notifier (&vi->nb); +/* Prevent config work handler from accessing the device */ mutex_lock (&vi->config_lock); vi->config_enable = false;
@@ -1720,6 +1715,10 @@ static int virtnet_restore(struct virtio_device *vdev)virtnet_set_queues (vi, vi->curr_queue_pairs);rtnl_unlock (); + err =register_hotcpu_notifier (&vi->nb); +if (err) +return err; + return 0; }#endif
drivers/net/wireless/iwlwifi/pcie/drv.c +32 -3
@@ -270,54 +270,83 @@ static DEFINE_PCI_DEVICE_TABLE(iwl_hw_card_ids) = { #if IS_ENABLED(CONFIG_IWLMVM) /* 7000 Series */ {IWL_PCI_DEVICE(0x08B1, 0x4070, iwl7260_2ac_cfg)}, + {IWL_PCI_DEVICE(0x08B1, 0x4072, iwl7260_2ac_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0x4170, iwl7260_2ac_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0x4060, iwl7260_2n_cfg)}, + {IWL_PCI_DEVICE(0x08B1, 0x406A, iwl7260_2n_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0x4160, iwl7260_2n_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0x4062, iwl7260_n_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0x4162, iwl7260_n_cfg)}, {IWL_PCI_DEVICE(0x08B2, 0x4270, iwl7260_2ac_cfg)}, + {IWL_PCI_DEVICE(0x08B2, 0x4272, iwl7260_2ac_cfg)}, {IWL_PCI_DEVICE(0x08B2, 0x4260, iwl7260_2n_cfg)}, + {IWL_PCI_DEVICE(0x08B2, 0x426A, iwl7260_2n_cfg)}, {IWL_PCI_DEVICE(0x08B2, 0x4262, iwl7260_n_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0x4470, iwl7260_2ac_cfg)}, + {IWL_PCI_DEVICE(0x08B1, 0x4472, iwl7260_2ac_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0x4460, iwl7260_2n_cfg)}, + {IWL_PCI_DEVICE(0x08B1, 0x446A, iwl7260_2n_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0x4462, iwl7260_n_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0x4870, iwl7260_2ac_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0x486E, iwl7260_2ac_cfg)}, - {IWL_PCI_DEVICE(0x08B1, 0x4A70, iwl7260_2ac_cfg)}, - {IWL_PCI_DEVICE(0x08B1, 0x4A6E, iwl7260_2ac_cfg)}, - {IWL_PCI_DEVICE(0x08B1, 0x4A6C, iwl7260_2ac_cfg)}, + {IWL_PCI_DEVICE(0x08B1, 0x4570, iwl7260_2ac_cfg)}, + {IWL_PCI_DEVICE(0x08B1, 0x4560, iwl7260_2n_cfg)}, + {IWL_PCI_DEVICE(0x08B2, 0x4370, iwl7260_2ac_cfg)}, + {IWL_PCI_DEVICE(0x08B2, 0x4360, iwl7260_2n_cfg)}, + {IWL_PCI_DEVICE(0x08B1, 0x5070, iwl7260_2ac_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0x4020, iwl7260_2n_cfg)}, + {IWL_PCI_DEVICE(0x08B1, 0x402A, iwl7260_2n_cfg)}, {IWL_PCI_DEVICE(0x08B2, 0x4220, iwl7260_2n_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0x4420, iwl7260_2n_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0xC070, iwl7260_2ac_cfg)}, + {IWL_PCI_DEVICE(0x08B1, 0xC072, iwl7260_2ac_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0xC170, iwl7260_2ac_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0xC060, iwl7260_2n_cfg)}, + {IWL_PCI_DEVICE(0x08B1, 0xC06A, iwl7260_2n_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0xC160, iwl7260_2n_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0xC062, iwl7260_n_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0xC162, iwl7260_n_cfg)}, + {IWL_PCI_DEVICE(0x08B1, 0xC770, iwl7260_2ac_cfg)}, + {IWL_PCI_DEVICE(0x08B1, 0xC760, iwl7260_2n_cfg)}, {IWL_PCI_DEVICE(0x08B2, 0xC270, iwl7260_2ac_cfg)}, + {IWL_PCI_DEVICE(0x08B2, 0xC272, iwl7260_2ac_cfg)}, {IWL_PCI_DEVICE(0x08B2, 0xC260, iwl7260_2n_cfg)}, + {IWL_PCI_DEVICE(0x08B2, 0xC26A, iwl7260_n_cfg)}, {IWL_PCI_DEVICE(0x08B2, 0xC262, iwl7260_n_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0xC470, iwl7260_2ac_cfg)}, + {IWL_PCI_DEVICE(0x08B1, 0xC472, iwl7260_2ac_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0xC460, iwl7260_2n_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0xC462, iwl7260_n_cfg)}, + {IWL_PCI_DEVICE(0x08B1, 0xC570, iwl7260_2ac_cfg)}, + {IWL_PCI_DEVICE(0x08B1, 0xC560, iwl7260_2n_cfg)}, + {IWL_PCI_DEVICE(0x08B2, 0xC370, iwl7260_2ac_cfg)}, + {IWL_PCI_DEVICE(0x08B1, 0xC360, iwl7260_2n_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0xC020, iwl7260_2n_cfg)}, + {IWL_PCI_DEVICE(0x08B1, 0xC02A, iwl7260_2n_cfg)}, {IWL_PCI_DEVICE(0x08B2, 0xC220, iwl7260_2n_cfg)}, {IWL_PCI_DEVICE(0x08B1, 0xC420, iwl7260_2n_cfg)}, /* 3160 Series */ {IWL_PCI_DEVICE(0x08B3, 0x0070, iwl3160_2ac_cfg)}, + {IWL_PCI_DEVICE(0x08B3, 0x0072, iwl3160_2ac_cfg)}, {IWL_PCI_DEVICE(0x08B3, 0x0170, iwl3160_2ac_cfg)}, + {IWL_PCI_DEVICE(0x08B3, 0x0172, iwl3160_2ac_cfg)}, {IWL_PCI_DEVICE(0x08B3, 0x0060, iwl3160_2n_cfg)}, {IWL_PCI_DEVICE(0x08B3, 0x0062, iwl3160_n_cfg)}, {IWL_PCI_DEVICE(0x08B4, 0x0270, iwl3160_2ac_cfg)}, + {IWL_PCI_DEVICE(0x08B4, 0x0272, iwl3160_2ac_cfg)}, {IWL_PCI_DEVICE(0x08B3, 0x0470, iwl3160_2ac_cfg)}, + {IWL_PCI_DEVICE(0x08B3, 0x0472, iwl3160_2ac_cfg)}, + {IWL_PCI_DEVICE(0x08B4, 0x0370, iwl3160_2ac_cfg)}, {IWL_PCI_DEVICE(0x08B3, 0x8070, iwl3160_2ac_cfg)}, + {IWL_PCI_DEVICE(0x08B3, 0x8072, iwl3160_2ac_cfg)}, {IWL_PCI_DEVICE(0x08B3, 0x8170, iwl3160_2ac_cfg)}, + {IWL_PCI_DEVICE(0x08B3, 0x8172, iwl3160_2ac_cfg)}, {IWL_PCI_DEVICE(0x08B3, 0x8060, iwl3160_2n_cfg)}, {IWL_PCI_DEVICE(0x08B3, 0x8062, iwl3160_n_cfg)}, {IWL_PCI_DEVICE(0x08B4, 0x8270, iwl3160_2ac_cfg)}, {IWL_PCI_DEVICE(0x08B3, 0x8470, iwl3160_2ac_cfg)}, + {IWL_PCI_DEVICE(0x08B3, 0x8570, iwl3160_2ac_cfg)}, #endif /* CONFIG_IWLMVM */ {0}
drivers/net/xen-netback/common.h +1 -0
@@ -92,6 +92,7 @@ struct xenvif {unsigned long credit_usec;unsigned long remaining_credit;struct timer_list credit_timeout; +u64 credit_window_start;/* Statistics */ unsigned long rx_gso_checksum_fixup;
drivers/net/xen-netback/interface.c +1 -2
@@ -297,8 +297,7 @@ struct xenvif *xenvif_alloc(struct device *parent, domid_t domid, vif->credit_bytes = vif->remaining_credit = ~0UL ; vif->credit_usec =0UL ;init_timer (&vif->credit_timeout); -/* Initialize 'expires' now: it's used to track the credit window. */ - vif->credit_timeout.expires = jiffies; + vif->credit_window_start =get_jiffies_64 (); dev->netdev_ops = &xenvif_netdev_ops; dev->hw_features =NETIF_F_SG |NETIF_F_IP_CSUM |NETIF_F_TSO ;
drivers/net/xen-netback/netback.c +5 -5
@@ -1430,9 +1430,8 @@ out:static bool tx_credit_exceeded (struct xenvif *vif,unsigned size) { -unsigned long now = jiffies; -unsigned long next_credit = - vif->credit_timeout.expires + +u64 now =get_jiffies_64 (); +u64 next_credit = vif->credit_window_start +msecs_to_jiffies (vif->credit_usec /1000 );/* Timer could already be pending in rare cases. */
@@ -1440,8 +1439,8 @@ static bool tx_credit_exceeded(struct xenvif *vif, unsigned size)return true;/* Passed the point where we can replenish credit? */ -if (time_after_eq (now, next_credit)) { - vif->credit_timeout.expires = now; +if (time_after_eq64 (now, next_credit)) { + vif->credit_window_start = now;tx_add_credit (vif); }
@@ -1453,6 +1452,7 @@ static bool tx_credit_exceeded(struct xenvif *vif, unsigned size) tx_credit_callback;mod_timer (&vif->credit_timeout, next_credit); + vif->credit_window_start = next_credit;return true; }
drivers/net/xen-netback/xenbus.c +122 -30
228 lines not on this page · raw message
drivers/thermal/x86_pkg_temp_thermal.c +8 -6
@@ -316,18 +316,19 @@ static void pkg_temp_thermal_threshold_work_fn(struct work_struct *work)int phy_id =topology_physical_package_id (cpu);struct phy_dev_entry *phdev =pkg_temp_thermal_get_phy_entry (cpu);bool notify = false; +unsigned long flags;if (!phdev)return ; -spin_lock (&pkg_work_lock); +spin_lock_irqsave (&pkg_work_lock, flags); ++pkg_work_cnt;if (unlikely (phy_id > max_phy_id)) { -spin_unlock (&pkg_work_lock); +spin_unlock_irqrestore (&pkg_work_lock, flags);return ; } pkg_work_scheduled[phy_id] =0 ; -spin_unlock (&pkg_work_lock); +spin_unlock_irqrestore (&pkg_work_lock, flags);enable_pkg_thres_interrupt ();rdmsrl (MSR_IA32_PACKAGE_THERM_STATUS , msr_val);
@@ -397,6 +398,7 @@ static int pkg_temp_thermal_device_add(unsigned int cpu)int thres_count;u32 eax, ebx, ecx, edx;u8 *temp; +unsigned long flags;cpuid (6 , &eax, &ebx, &ecx, &edx); thres_count = ebx &0x07 ;
@@ -420,19 +422,19 @@ static int pkg_temp_thermal_device_add(unsigned int cpu) goto err_ret_unlock; } -spin_lock (&pkg_work_lock); +spin_lock_irqsave (&pkg_work_lock, flags);if (topology_physical_package_id (cpu) > max_phy_id) max_phy_id =topology_physical_package_id (cpu); temp =krealloc (pkg_work_scheduled, (max_phy_id+1 ) *sizeof (u8),GFP_ATOMIC );if (!temp) { -spin_unlock (&pkg_work_lock); +spin_unlock_irqrestore (&pkg_work_lock, flags); err = -ENOMEM ; goto err_ret_free; } pkg_work_scheduled = temp; pkg_work_scheduled[topology_physical_package_id (cpu)] =0 ; -spin_unlock (&pkg_work_lock); +spin_unlock_irqrestore (&pkg_work_lock, flags); phy_dev_entry->phys_proc_id =topology_physical_package_id (cpu); phy_dev_entry->first_cpu = cpu;
drivers/usb/core/hcd.c +1 -0
@@ -1035,6 +1035,7 @@ static int register_root_hub(struct usb_hcd *hcd) dev_name(&usb_dev->dev), retval);return retval; } + usb_dev->lpm_capable =usb_device_supports_lpm (usb_dev); } retval =usb_new_device (usb_dev);
drivers/usb/core/hub.c +15 -3
@@ -135,7 +135,7 @@ struct usb_hub *usb_hub_to_struct_hub(struct usb_device *hdev)return usb_get_intfdata (hdev->actconfig->interface[0 ]); } -static int usb_device_supports_lpm (struct usb_device *udev) +int usb_device_supports_lpm (struct usb_device *udev) {/* USB 2.1 (and greater) devices indicate LPM support through * their USB 2.0 Extended Capabilities BOS descriptor.
@@ -156,6 +156,11 @@ static int usb_device_supports_lpm(struct usb_device *udev) "Power management will be impacted.\n");return 0 ; } + +/* udev is root hub */ +if (!udev->parent) +return 1 ; +if (udev->parent->lpm_capable)return 1 ;
@@ -1557,10 +1562,15 @@ static int hub_configure(struct usb_hub *hub,if (hub->has_indicators && blinkenlights) hub->indicator [0 ] =INDICATOR_CYCLE ; -for (i =0 ; i < hdev->maxchild; i++) -if (usb_hub_create_port_device (hub, i +1 ) <0 ) +for (i =0 ; i < hdev->maxchild; i++) { + ret =usb_hub_create_port_device (hub, i +1 ); +if (ret <0 ) {dev_err (hub->intfdev,"couldn't create port%d device.\n" , i +1 ); + hdev->maxchild = i; + goto fail_keep_maxchild; + } + }usb_hub_adjust_deviceremovable (hdev, hub->descriptor);
@@ -1568,6 +1578,8 @@ static int hub_configure(struct usb_hub *hub,return 0 ; fail: + hdev->maxchild =0 ; +fail_keep_maxchild:dev_err (hub_dev,"config failed, %s (err %d)\n" , message, ret);/* hub_disconnect() frees urb and descriptor */
drivers/usb/core/usb.h +1 -0
@@ -35,6 +35,7 @@ extern int usb_get_device_descriptor(struct usb_device *dev, unsigned int size);extern int usb_get_bos_descriptor (struct usb_device *dev);extern void usb_release_bos_descriptor (struct usb_device *dev); +extern int usb_device_supports_lpm (struct usb_device *udev);extern char *usb_cache_string (struct usb_device *udev,int index);extern int usb_set_configuration (struct usb_device *dev,int configuration);extern int usb_choose_configuration (struct usb_device *udev);
drivers/usb/serial/option.c +17 -0
@@ -1376,6 +1376,23 @@ static const struct usb_device_id option_ids[] = { .driver_info = (kernel_ulong_t)&net_intf2_blacklist }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1426, 0xff, 0xff, 0xff), /* ZTE MF91 */ .driver_info = (kernel_ulong_t)&net_intf2_blacklist }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1533, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1534, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1535, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1545, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1546, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1547, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1565, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1566, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1567, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1589, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1590, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1591, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1592, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1594, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1596, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1598, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1600, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x2002, 0xff, 0xff, 0xff), .driver_info = (kernel_ulong_t)&zte_k3765_z_blacklist }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x2003, 0xff, 0xff, 0xff) },
drivers/video/backlight/atmel-pwm-bl.c +5 -4
@@ -118,7 +118,7 @@ static const struct backlight_ops atmel_pwm_bl_ops = { .update_status = atmel_pwm_bl_set_intensity, }; -static int __init atmel_pwm_bl_probe (struct platform_device *pdev) +static int atmel_pwm_bl_probe (struct platform_device *pdev) {struct backlight_properties props;const struct atmel_pwm_bl_platform_data *pdata;
@@ -202,7 +202,7 @@ err_free_mem:return retval; } -static int __exit atmel_pwm_bl_remove(struct platform_device *pdev) +static int atmel_pwm_bl_remove (struct platform_device *pdev) {struct atmel_pwm_bl *pwmbl =platform_get_drvdata (pdev);
@@ -220,10 +220,11 @@ static struct platform_driver atmel_pwm_bl_driver = { .name = "atmel-pwm-bl", }, /* REVISIT add suspend() and resume() */ - .remove = __exit_p(atmel_pwm_bl_remove), + .probe = atmel_pwm_bl_probe, + .remove = atmel_pwm_bl_remove, }; -module_platform_driver_probe (atmel_pwm_bl_driver, atmel_pwm_bl_probe); +module_platform_driver (atmel_pwm_bl_driver);MODULE_AUTHOR ("Hans-Christian egtvedt <[email protected]>" );MODULE_DESCRIPTION ("Atmel PWM backlight driver" );
drivers/video/hyperv_fb.c +39 -1
@@ -795,12 +795,21 @@ static int hvfb_remove(struct hv_device *hdev) } +static DEFINE_PCI_DEVICE_TABLE (pci_stub_id_table) = { + { + .vendor =PCI_VENDOR_ID_MICROSOFT , + .device =PCI_DEVICE_ID_HYPERV_VIDEO , + }, + {/* end of list */ } +}; +static const struct hv_vmbus_device_id id_table[] = {/* Synthetic Video Device GUID */ {HV_SYNTHVID_GUID }, {} }; +MODULE_DEVICE_TABLE (pci, pci_stub_id_table);MODULE_DEVICE_TABLE (vmbus, id_table);static struct hv_driver hvfb_drv = {
@@ -810,14 +819,43 @@ static struct hv_driver hvfb_drv = { .remove = hvfb_remove, }; +static int hvfb_pci_stub_probe (struct pci_dev *pdev, +const struct pci_device_id *ent) +{ +return 0 ; +} + +static void hvfb_pci_stub_remove (struct pci_dev *pdev) +{ +} + +static struct pci_driver hvfb_pci_stub_driver = { + .name =KBUILD_MODNAME , + .id_table = pci_stub_id_table, + .probe = hvfb_pci_stub_probe, + .remove = hvfb_pci_stub_remove, +};static int __init hvfb_drv_init (void ) { -return vmbus_driver_register (&hvfb_drv); +int ret; + + ret =vmbus_driver_register (&hvfb_drv); +if (ret !=0 ) +return ret; + + ret =pci_register_driver (&hvfb_pci_stub_driver); +if (ret !=0 ) { +vmbus_driver_unregister (&hvfb_drv); +return ret; + } + +return 0 ; } static void __exit hvfb_drv_exit(void) { +pci_unregister_driver (&hvfb_pci_stub_driver);vmbus_driver_unregister (&hvfb_drv); }
include/net/ip6_fib.h +1 -0
@@ -165,6 +165,7 @@ static inline struct inet6_dev *ip6_dst_idev(struct dst_entry *dst)static inline void rt6_clean_expires (struct rt6_info *rt) { rt->rt6i_flags &= ~RTF_EXPIRES ; + rt->dst.expires =0 ; }static inline void rt6_set_expires (struct rt6_info *rt,unsigned long expires)
include/uapi/linux/perf_event.h +7 -5
@@ -428,13 +428,15 @@ struct perf_event_mmap_page {/* * Control data for the mmap() data buffer. * -* User-space reading the @data_head value should issue an rmb(), on -* SMP capable platforms, after reading this value -- see -* perf_event_wakeup(). +* User-space reading the @data_head value should issue an smp_rmb(), +* after reading this value. * * When the mapping is PROT_WRITE the @data_tail value should be -* written by userspace to reflect the last read data. In this case -* the kernel will not over-write unread data. +* written by userspace to reflect the last read data, after issueing +* an smp_mb() to separate the data read from the ->data_tail store. +* In this case the kernel will not over-write unread data. +* +* See perf_output_put_handle() for the data ordering. */ __u64 data_head;/* head in the data section */ __u64 data_tail;/* user-space written tail */
kernel/events/ring_buffer.c +27 -4
@@ -87,10 +87,31 @@ again: goto out;/* -* Publish the known good head. Rely on the full barrier implied -* by atomic_dec_and_test() order the rb->head read and this -* write. +* Since the mmap() consumer (userspace) can run on a different CPU: +* +* kernel user +* +* READ ->data_tail READ ->data_head +* smp_mb() (A) smp_rmb() (C) +* WRITE $data READ $data +* smp_wmb() (B) smp_mb() (D) +* STORE ->data_head WRITE ->data_tail +* +* Where A pairs with D, and B pairs with C. +* +* I don't think A needs to be a full barrier because we won't in fact +* write data until we see the store from userspace. So we simply don't +* issue the data WRITE until we observe it. Be conservative for now. +* +* OTOH, D needs to be a full barrier since it separates the data READ +* from the tail WRITE. +* +* For B a WMB is sufficient since it separates two WRITEs, and for C +* an RMB is sufficient since it separates two READs. +* +* See perf_output_begin(). */ +smp_wmb (); rb->user_page->data_head = head;/*
@@ -154,9 +175,11 @@ int perf_output_begin(struct perf_output_handle *handle,* Userspace could choose to issue a mb() before updating the * tail pointer. So that all reads will be completed before the * write is issued. +* +* See perf_output_put_handle(). */ tail =ACCESS_ONCE (rb->user_page->data_tail); -smp_rmb (); +smp_mb (); offset = head =local_read (&rb->head); head += size;if (unlikely (!perf_output_space (rb, tail, offset, head)))
kernel/trace/trace.c +4 -1
@@ -843,9 +843,12 @@ int trace_get_user(struct trace_parser *parser, const char __user *ubuf,if (isspace (ch)) { parser->buffer[parser->idx] =0 ; parser->cont = false; - }else { + }else if (parser->idx < parser->size -1 ) { parser->cont = true; parser->buffer[parser->idx++] = ch; + }else { + ret = -EINVAL ; + goto out; } *ppos += read;
net/core/flow_dissector.c +1 -1
@@ -40,7 +40,7 @@ again:struct iphdr _iph; ip: iph =skb_header_pointer (skb, nhoff,sizeof (_iph), &_iph); -if (!iph) +if (!iph || iph->ihl <5 )return false;if (ip_is_fragment (iph))
net/ipv4/tcp_offload.c +5 -8
@@ -18,6 +18,7 @@ struct sk_buff *tcp_tso_segment(struct sk_buff *skb, netdev_features_t features) {struct sk_buff *segs =ERR_PTR (-EINVAL ); +unsigned int sum_truesize =0 ;struct tcphdr *th;unsigned int thlen;unsigned int seq;
@@ -102,13 +103,7 @@ struct sk_buff *tcp_tso_segment(struct sk_buff *skb,if (copy_destructor) { skb->destructor = gso_skb->destructor; skb->sk = gso_skb->sk; -/* {tcp|sock}_wfree() use exact truesize accounting : -* sum(skb->truesize) MUST be exactly be gso_skb->truesize -* So we account mss bytes of 'true size' for each segment. -* The last segment will contain the remaining. -*/ - skb->truesize = mss; - gso_skb->truesize -= mss; + sum_truesize += skb->truesize; } skb = skb->next; th =tcp_hdr (skb);
@@ -125,7 +120,9 @@ struct sk_buff *tcp_tso_segment(struct sk_buff *skb,if (copy_destructor) {swap (gso_skb->sk, skb->sk);swap (gso_skb->destructor, skb->destructor); -swap (gso_skb->truesize, skb->truesize); + sum_truesize += skb->truesize; +atomic_add (sum_truesize - gso_skb->truesize, + &skb->sk->sk_wmem_alloc); } delta = htonl(oldlen + (skb_tail_pointer(skb) -
net/ipv6/route.c +6 -3
@@ -1088,10 +1088,13 @@ static struct dst_entry *ip6_dst_check(struct dst_entry *dst, u32 cookie)if (rt->rt6i_genid !=rt_genid (dev_net (rt->dst.dev)))return NULL ; -if (rt->rt6i_node && (rt->rt6i_node->fn_sernum == cookie)) -return dst; +if (!rt->rt6i_node || (rt->rt6i_node->fn_sernum != cookie)) +return NULL ; -return NULL ; +if (rt6_check_expired (rt)) +return NULL ; + +return dst; }static struct dst_entry *ip6_negative_advice (struct dst_entry *dst)
net/sctp/sm_sideeffect.c +0 -1
@@ -866,7 +866,6 @@ static void sctp_cmd_delete_tcb(sctp_cmd_seq_t *cmds, (!asoc->temp) && (sk->sk_shutdown != SHUTDOWN_MASK)) return; -BUG_ON (asoc->peer.primary_path ==NULL );sctp_unhash_established (asoc);sctp_association_free (asoc); }
sound/pci/hda/patch_hdmi.c +3 -2
@@ -738,9 +738,10 @@ static int hdmi_manual_setup_channel_mapping(struct hda_codec *codec,static void hdmi_setup_fake_chmap (unsigned char *map,int ca) {int i; +int ordered_ca =get_channel_allocation_order (ca);for (i =0 ; i <8 ; i++) { -if (i < channel_allocations[ca].channels) - map[i] =from_cea_slot ((hdmi_channel_mapping[ca][i] >>4 ) &0x0f ); +if (i < channel_allocations[ordered_ca].channels) + map[i] =from_cea_slot (hdmi_channel_mapping[ca][i] &0x0f );else map[i] =0 ; }