Linux 3.0.100
Greg KH
maintainer------------------------------
NOTE! The 3.0.x kernel series will be moving to End-Of-Life soon, within a week. Please move anything that is relying on this kernel version to the other longterm kernel releases (3.4.x or 3.10.x) as soon as possible. If anyone has any questions about this, please let me know.
------------------------------
I'm announcing the release of the 3.0.100 kernel.
All users of the 3.0 kernel series must upgrade.
The updated 3.0.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.0.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 arch/powerpc/kernel/iommu.c | 2 arch/powerpc/kernel/vio.c | 12 +++-- arch/powerpc/lib/checksum_64.S | 4 - arch/sparc/kernel/entry.S | 2 arch/sparc/kernel/ktlb.S | 3 - arch/sparc/kernel/syscalls.S | 8 +-- arch/sparc/kernel/trampoline_64.S | 2 arch/sparc/lib/ksyms.c | 9 --- arch/tile/include/asm/percpu.h | 34 +++++++++++++- drivers/acpi/acpi_ipmi.c | 24 ++++++---- drivers/block/cciss.c | 1 drivers/block/cpqarray.c | 1 drivers/net/bonding/bond_main.c | 13 ++++- drivers/net/ll_temac_main.c | 6 ++ drivers/net/pptp.c | 2 drivers/net/tg3.c | 7 ++- drivers/net/usb/dm9601.c | 2 drivers/net/via-rhine.c | 9 +++ drivers/net/wireless/p54/p54usb.c | 1 drivers/net/wireless/rtlwifi/wifi.h | 2 drivers/pci/intel-iommu.c | 72 +++++++++++++++---------------- drivers/scsi/esp_scsi.c | 14 +++--- drivers/scsi/esp_scsi.h | 1 drivers/staging/comedi/drivers/ni_65xx.c | 26 ++++------- drivers/staging/hv/tools/hv_kvp_daemon.c | 10 +++- drivers/usb/serial/option.c | 3 + fs/btrfs/relocation.c | 14 +++--- fs/ext4/namei.c | 3 - include/net/ip.h | 12 +++-- include/net/ipip.h | 2 net/bridge/br_private.h | 1 net/bridge/br_stp.c | 23 ++++++--- net/bridge/br_stp_if.c | 12 ++++- net/caif/cfctrl.c | 3 - net/core/netpoll.c | 9 +-- net/ipv4/igmp.c | 8 +-- net/ipv4/inetpeer.c | 4 - net/ipv4/ip_output.c | 6 +- net/ipv4/ipmr.c | 2 net/ipv4/raw.c | 2 net/ipv4/xfrm4_mode_tunnel.c | 2 net/ipv6/ip6_output.c | 53 +++++++++------------- net/ipv6/mcast.c | 4 - net/netfilter/ipvs/ip_vs_xmit.c | 2 net/sctp/ipv6.c | 42 +++++------------- sound/soc/codecs/88pm860x-codec.c | 3 + sound/soc/codecs/max98095.c | 4 - 48 files changed, 267 insertions(+), 216 deletions(-)
Alex Williamson (1):
intel-iommu: Fix leaks in pagetable freeing
Ansis Atteka (1):
ip: generate unique IP identificator if local fragmentation is allowed
Chris Healy (1):
resubmit bridge: fix message_age_timer calculation
Chris Metcalf (1):
tile: use a more conservative __my_cpu_offset in CONFIG_PREEMPT
Christian Lamparter (1):
p54usb: add USB ID for Corega WLUSB2GTST USB adapter
Dan Carpenter (4):
cpqarray: fix info leak in ida_locked_ioctl()
cciss: fix info leak in cciss_ioctl32_passthru()
ASoC: max98095: a couple array underflows
ASoC: 88pm860x: array overflow in snd_soc_put_volsw_2r_st()
Daniel Borkmann (1):
net: sctp: fix ipv6 ipsec encryption bug in sctp_v6_xmit
Dave Jones (1):
caif: Add missing braces to multiline if in cfctrl_linkup_request
David S. Miller (2):
esp_scsi: Fix tag state corruption when autosensing.
sparc64: Fix off by one in trampoline TLB mapping installation loop.
Greg Kroah-Hartman (1):
Linux 3.0.100
Hannes Frederic Sowa (1):
ipv6: udp packets following an UFO enqueued packet need also be handled by UFO
Herbert Xu (1):
bridge: Clamp forward_delay when enabling STP
Ian Abbott (1):
staging: comedi: ni_65xx: (bug fix) confine insn_bits to one subdevice
Josef Bacik (1):
Btrfs: change how we queue blocks for backref checking
Kees Cook (1):
tg3: fix length overflow in VPD firmware parsing
Kirill Tkhai (4):
sparc64: Fix ITLB handler of null page
sparc64: Remove RWSEM export leftovers
sparc64: Fix not SRA'ed %o5 in 32-bit traced syscall
sparc32: Fix exit flag passed from traced sys_sigreturn
Larry Finger (1):
rtlwifi: Align private space in rtl_priv struct
Lv Zheng (1):
ACPI / IPMI: Fix atomic context requirement of ipmi_msg_handler()
Michal Malý (1):
USB: serial: option: Ignore card reader interface on Huawei E1750
Neil Horman (1):
bonding: Fix broken promiscuity reference counting issue
Nikolay Aleksandrov (1):
netpoll: fix NULL pointer dereference in netpoll_cleanup
Nishanth Aravamudan (1):
powerpc/iommu: Use GFP_KERNEL instead of GFP_ATOMIC in iommu_init_table()
Olaf Hering (1):
Tools: hv: verify origin of netlink connector message
Paul E. McKenney (1):
powerpc: Fix parameter clobber in csum_partial_copy_generic()
Peter Korsgaard (1):
dm9601: fix IFF_ALLMULTI handling
Prarit Bhargava (1):
powerpc/vio: Fix modalias_show return values
Ricardo Ribalda (1):
ll_temac: Reset dma descriptors indexes on ndo_open
Roger Luethi (1):
via-rhine: fix VLAN priority field (PCP, IEEE 802.1p)
Salam Noureddine (2):
ipv6 mcast: use in6_dev_put in timer handlers instead of __in6_dev_put ipv4 igmp: use in_dev_put in timer handlers instead of __in_dev_put
Theodore Ts'o (1):
ext4: avoid hang when mounting non-journal filesystems with orphan list
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 0 -SUBLEVEL = 99 +SUBLEVEL = 100 EXTRAVERSION = NAME = Sneaky Weasel
arch/powerpc/kernel/iommu.c +1 -1
@@ -495,7 +495,7 @@ struct iommu_table *iommu_init_table(struct iommu_table *tbl, int nid)/* number of bytes needed for the bitmap */ sz = (tbl->it_size +7 ) >>3 ; - page =alloc_pages_node (nid,GFP_ATOMIC ,get_order (sz)); + page =alloc_pages_node (nid,GFP_KERNEL ,get_order (sz));if (!page)panic ("iommu_init_table: Can't allocate %ld bytes\n" , sz); tbl->it_map =page_address (page);
arch/powerpc/kernel/vio.c +8 -4
@@ -1345,11 +1345,15 @@ static ssize_t modalias_show(struct device *dev, struct device_attribute *attr,const char *cp; dn = dev->of_node; -if (!dn) -return -ENODEV ; +if (!dn) { +strcat (buf,"\n" ); +return strlen (buf); + } cp =of_get_property (dn,"compatible" ,NULL ); -if (!cp) -return -ENODEV ; +if (!cp) { +strcat (buf,"\n" ); +return strlen (buf); + }return sprintf (buf,"vio:T%sS%s\n" , vio_dev->type, cp); }
arch/powerpc/lib/checksum_64.S +2 -2
@@ -272,8 +272,8 @@ _GLOBAL(csum_partial_copy_generic) rldicl. r6,r3,64-1,64-2 /* r6 = (r3 & 0x3) >> 1 */ beq .Lcopy_aligned - li r7,4 - sub r6,r7,r6 + li r9,4 + sub r6,r9,r6 mtctr r6 1:
arch/sparc/kernel/entry.S +1 -1
@@ -1177,7 +1177,7 @@ sys_sigreturn: nop call syscall_trace - nop + mov 1, %o1 1: /* We don't want to muck with user registers like a
arch/sparc/kernel/ktlb.S +1 -2
@@ -25,11 +25,10 @@ kvmap_itlb: */ kvmap_itlb_4v: -kvmap_itlb_nonlinear: /* Catch kernel NULL pointer calls. */ sethi %hi(PAGE_SIZE), %g5 cmp %g4, %g5 - bleu,pn %xcc, kvmap_dtlb_longpath + blu,pn %xcc, kvmap_itlb_longpath nop KERN_TSB_LOOKUP_TL1(%g4, %g6, %g5, %g1, %g2, %g3, kvmap_itlb_load)
arch/sparc/kernel/syscalls.S +4 -4
@@ -147,7 +147,7 @@ linux_syscall_trace32: srl %i4, 0, %o4 srl %i1, 0, %o1 srl %i2, 0, %o2 - ba,pt %xcc, 2f + ba,pt %xcc, 5f srl %i3, 0, %o3 linux_syscall_trace:
@@ -177,13 +177,13 @@ linux_sparc_syscall32: srl %i1, 0, %o1 ! IEU0 Group ldx [%g6 + TI_FLAGS], %l0 ! Load - srl %i5, 0, %o5 ! IEU1 + srl %i3, 0, %o3 ! IEU0 srl %i2, 0, %o2 ! IEU0 Group andcc %l0, (_TIF_SYSCALL_TRACE|_TIF_SECCOMP|_TIF_SYSCALL_AUDIT|_TIF_SYSCALL_TRACEPOINT), %g0 bne,pn %icc, linux_syscall_trace32 ! CTI mov %i0, %l5 ! IEU1 - call %l7 ! CTI Group brk forced - srl %i3, 0, %o3 ! IEU0 +5: call %l7 ! CTI Group brk forced + srl %i5, 0, %o5 ! IEU1 ba,a,pt %xcc, 3f /* Linux native system calls enter here... */
arch/sparc/kernel/trampoline_64.S +0 -2
@@ -131,7 +131,6 @@ startup_continue: clr %l5 sethi %hi(num_kernel_image_mappings), %l6 lduw [%l6 + %lo(num_kernel_image_mappings)], %l6 - add %l6, 1, %l6 mov 15, %l7 BRANCH_IF_ANY_CHEETAH(g1,g5,2f)
@@ -224,7 +223,6 @@ niagara_lock_tlb: clr %l5 sethi %hi(num_kernel_image_mappings), %l6 lduw [%l6 + %lo(num_kernel_image_mappings)], %l6 - add %l6, 1, %l6 1: mov HV_FAST_MMU_MAP_PERM_ADDR, %o5
arch/sparc/lib/ksyms.c +0 -9
@@ -131,15 +131,6 @@ EXPORT_SYMBOL(___copy_from_user);EXPORT_SYMBOL (___copy_in_user);EXPORT_SYMBOL (__clear_user); -/* RW semaphores */ -EXPORT_SYMBOL (__down_read); -EXPORT_SYMBOL (__down_read_trylock); -EXPORT_SYMBOL (__down_write); -EXPORT_SYMBOL (__down_write_trylock); -EXPORT_SYMBOL (__up_read); -EXPORT_SYMBOL (__up_write); -EXPORT_SYMBOL (__downgrade_write); -/* Atomic counter implementation. */ EXPORT_SYMBOL (atomic_add);EXPORT_SYMBOL (atomic_add_ret);
arch/tile/include/asm/percpu.h +31 -3
@@ -15,9 +15,37 @@#ifndef _ASM_TILE_PERCPU_H#define _ASM_TILE_PERCPU_H -registerunsigned long __my_cpu_offset __asm__("tp" ); -#define __my_cpu_offset __my_cpu_offset -#define set_my_cpu_offset (tp) (__my_cpu_offset = (tp)) +registerunsigned long my_cpu_offset_reg asm("tp" ); + +#ifdef CONFIG_PREEMPT +/* +* For full preemption, we can't just use the register variable +* directly, since we need barrier() to hazard against it, causing the +* compiler to reload anything computed from a previous "tp" value. +* But we also don't want to use volatile asm, since we'd like the +* compiler to be able to cache the value across multiple percpu reads. +* So we use a fake stack read as a hazard against barrier(). +* The 'U' constraint is like 'm' but disallows postincrement. +*/ +static inline unsigned long __my_cpu_offset (void ) +{ +unsigned long tp; + registerunsigned long *sp asm("sp" ); + asm("move %0, tp" :"=r" (tp) :"U" (*sp)); +return tp; +} +#define __my_cpu_offset __my_cpu_offset() +#else +/* +* We don't need to hazard against barrier() since "tp" doesn't ever +* change with PREEMPT_NONE, and with PREEMPT_VOLUNTARY it only +* changes at function call points, at which we are already re-reading +* the value of "tp" due to "my_cpu_offset_reg" being a global variable. +*/ +#define __my_cpu_offset my_cpu_offset_reg +#endif + +#define set_my_cpu_offset (tp) (my_cpu_offset_reg = (tp))#include <asm-generic/percpu.h>
drivers/acpi/acpi_ipmi.c +14 -10
@@ -39,6 +39,7 @@#include <linux/ipmi.h> #include <linux/device.h> #include <linux/pnp.h> +#include <linux/spinlock.h> MODULE_AUTHOR ("Zhao Yakui" );MODULE_DESCRIPTION ("ACPI IPMI Opregion driver" );
@@ -57,7 +58,7 @@ struct acpi_ipmi_device {struct list_head head;/* the IPMI request message list */ struct list_head tx_msg_list; -struct mutex tx_msg_lock; +spinlock_t tx_msg_lock;acpi_handle handle;struct pnp_dev *pnp_dev;ipmi_user_t user_interface;
@@ -147,6 +148,7 @@ static void acpi_format_ipmi_msg(struct acpi_ipmi_msg *tx_msg,struct kernel_ipmi_msg *msg;struct acpi_ipmi_buffer *buffer;struct acpi_ipmi_device *device; +unsigned long flags; msg = &tx_msg->tx_message;/*
@@ -177,10 +179,10 @@ static void acpi_format_ipmi_msg(struct acpi_ipmi_msg *tx_msg,/* Get the msgid */ device = tx_msg->device; -mutex_lock (&device->tx_msg_lock); +spin_lock_irqsave (&device->tx_msg_lock, flags); device->curr_msgid++; tx_msg->tx_msgid = device->curr_msgid; -mutex_unlock (&device->tx_msg_lock); +spin_unlock_irqrestore (&device->tx_msg_lock, flags); } static void acpi_format_ipmi_response(struct acpi_ipmi_msg *msg,
@@ -242,6 +244,7 @@ static void ipmi_msg_handler(struct ipmi_recv_msg *msg, void *user_msg_data)int msg_found =0 ;struct acpi_ipmi_msg *tx_msg;struct pnp_dev *pnp_dev = ipmi_device->pnp_dev; +unsigned long flags;if (msg->user != ipmi_device->user_interface) { dev_warn(&pnp_dev->dev, "Unexpected response is returned. "
@@ -250,7 +253,7 @@ static void ipmi_msg_handler(struct ipmi_recv_msg *msg, void *user_msg_data)ipmi_free_recv_msg (msg);return ; } -mutex_lock (&ipmi_device->tx_msg_lock); +spin_lock_irqsave (&ipmi_device->tx_msg_lock, flags);list_for_each_entry (tx_msg, &ipmi_device->tx_msg_list, head) {if (msg->msgid == tx_msg->tx_msgid) { msg_found =1 ;
@@ -258,7 +261,7 @@ static void ipmi_msg_handler(struct ipmi_recv_msg *msg, void *user_msg_data) } } -mutex_unlock (&ipmi_device->tx_msg_lock); +spin_unlock_irqrestore (&ipmi_device->tx_msg_lock, flags);if (!msg_found) {dev_warn (&pnp_dev->dev,"Unexpected response (msg id %ld) is " "returned.\n" , msg->msgid);
@@ -378,6 +381,7 @@ acpi_ipmi_space_handler(u32 function, acpi_physical_address address,struct acpi_ipmi_device *ipmi_device = handler_context;int err, rem_time;acpi_status status; +unsigned long flags;/* * IPMI opregion message. * IPMI message is firstly written to the BMC and system software
@@ -395,9 +399,9 @@ acpi_ipmi_space_handler(u32 function, acpi_physical_address address,return AE_NO_MEMORY ;acpi_format_ipmi_msg (tx_msg, address, value); -mutex_lock (&ipmi_device->tx_msg_lock); +spin_lock_irqsave (&ipmi_device->tx_msg_lock, flags);list_add_tail (&tx_msg->head, &ipmi_device->tx_msg_list); -mutex_unlock (&ipmi_device->tx_msg_lock); +spin_unlock_irqrestore (&ipmi_device->tx_msg_lock, flags); err = ipmi_request_settime(ipmi_device->user_interface, &tx_msg->addr, tx_msg->tx_msgid,
@@ -413,9 +417,9 @@ acpi_ipmi_space_handler(u32 function, acpi_physical_address address, status =AE_OK ; end_label: -mutex_lock (&ipmi_device->tx_msg_lock); +spin_lock_irqsave (&ipmi_device->tx_msg_lock, flags);list_del (&tx_msg->head); -mutex_unlock (&ipmi_device->tx_msg_lock); +spin_unlock_irqrestore (&ipmi_device->tx_msg_lock, flags);kfree (tx_msg);return status; }
@@ -457,7 +461,7 @@ static void acpi_add_ipmi_device(struct acpi_ipmi_device *ipmi_device)INIT_LIST_HEAD (&ipmi_device->head); -mutex_init (&ipmi_device->tx_msg_lock); +spin_lock_init (&ipmi_device->tx_msg_lock);INIT_LIST_HEAD (&ipmi_device->tx_msg_list);ipmi_install_space_handler (ipmi_device);
drivers/block/cciss.c +1 -0
@@ -1179,6 +1179,7 @@ static int cciss_ioctl32_passthru(struct block_device *bdev, fmode_t mode,int err;u32 cp; +memset (&arg64,0 ,sizeof (arg64)); err =0 ; err |= copy_from_user(&arg64.LUN_info, &arg32->LUN_info,
drivers/block/cpqarray.c +1 -0
@@ -1195,6 +1195,7 @@ out_passthru:ida_pci_info_struct pciinfo;if (!arg)return -EINVAL ; +memset (&pciinfo,0 ,sizeof (pciinfo)); pciinfo.bus = host->pci_dev->bus->number; pciinfo.dev_fn = host->pci_dev->devfn; pciinfo.board_id = host->board_id;
drivers/net/bonding/bond_main.c +10 -3
@@ -1994,6 +1994,7 @@ int bond_release(struct net_device *bond_dev, struct net_device *slave_dev)struct bonding *bond =netdev_priv (bond_dev);struct slave *slave, *oldcurrent;struct sockaddr addr; +int old_flags = bond_dev->flags;u32 old_features = bond_dev->features;/* slave is not a slave or master is not master of this slave */
@@ -2124,12 +2125,18 @@ int bond_release(struct net_device *bond_dev, struct net_device *slave_dev)* already taken care of above when we detached the slave */ if (!USES_PRIMARY (bond->params.mode)) { -/* unset promiscuity level from slave */ -if (bond_dev->flags &IFF_PROMISC ) +/* unset promiscuity level from slave +* NOTE: The NETDEV_CHANGEADDR call above may change the value +* of the IFF_PROMISC flag in the bond_dev, but we need the +* value of that flag before that change, as that was the value +* when this slave was attached, so we cache at the start of the +* function and use it here. Same goes for ALLMULTI below +*/ +if (old_flags &IFF_PROMISC )dev_set_promiscuity (slave_dev,-1 );/* unset allmulti level from slave */ -if (bond_dev->flags &IFF_ALLMULTI ) +if (old_flags &IFF_ALLMULTI )dev_set_allmulti (slave_dev,-1 );/* flush master's mc_list from slave */
drivers/net/ll_temac_main.c +6 -0
@@ -302,6 +302,12 @@ static int temac_dma_bd_init(struct net_device *ndev) lp->rx_bd_p + (sizeof(*lp->rx_bd_v) * (RX_BD_NUM - 1))); lp->dma_out (lp,TX_CURDESC_PTR , lp->tx_bd_p); +/* Init descriptor indexes */ + lp->tx_bd_ci =0 ; + lp->tx_bd_next =0 ; + lp->tx_bd_tail =0 ; + lp->rx_bd_ci =0 ; +return 0 ; out:
drivers/net/pptp.c +1 -1
@@ -282,7 +282,7 @@ static int pptp_xmit(struct ppp_channel *chan, struct sk_buff *skb)nf_reset (skb); skb->ip_summed =CHECKSUM_NONE ; -ip_select_ident (iph, &rt->dst,NULL ); +ip_select_ident (skb, &rt->dst,NULL );ip_send_check (iph);ip_local_out (skb);
drivers/net/tg3.c +5 -2
@@ -13067,8 +13067,11 @@ static void __devinit tg3_read_vpd(struct tg3 *tp)if (j + len > block_end) goto partno; -memcpy (tp->fw_ver, &vpd_data[j], len); -strncat (tp->fw_ver," bc " ,TG3_NVM_VPD_LEN - len -1 ); +if (len >=sizeof (tp->fw_ver)) + len =sizeof (tp->fw_ver) -1 ; +memset (tp->fw_ver,0 ,sizeof (tp->fw_ver)); +snprintf (tp->fw_ver,sizeof (tp->fw_ver),"%.*s bc " , len, + &vpd_data[j]); } partno:
drivers/net/usb/dm9601.c +1 -1
@@ -384,7 +384,7 @@ static void dm9601_set_multicast(struct net_device *net) rx_ctl |=0x02 ; }else if (net->flags &IFF_ALLMULTI ||netdev_mc_count (net) >DM_MAX_MCAST ) { - rx_ctl |=0x04 ; + rx_ctl |=0x08 ; }else if (!netdev_mc_empty (net)) {struct netdev_hw_addr *ha;
drivers/net/via-rhine.c +7 -2
@@ -32,7 +32,7 @@#define pr_fmt (fmt) KBUILD_MODNAME ": " fmt#define DRV_NAME "via-rhine" -#define DRV_VERSION "1.5.0" +#define DRV_VERSION "1.5.1"#define DRV_RELDATE "2010-10-09"
@@ -1518,7 +1518,12 @@ static netdev_tx_t rhine_start_tx(struct sk_buff *skb,cpu_to_le32 (TXDESC | (skb->len >=ETH_ZLEN ? skb->len :ETH_ZLEN ));if (unlikely (vlan_tx_tag_present (skb))) { - rp->tx_ring[entry].tx_status =cpu_to_le32 ((vlan_tx_tag_get (skb)) <<16 ); +u16 vid_pcp =vlan_tx_tag_get (skb); + +/* drop CFI/DEI bit, register needs VID and PCP */ + vid_pcp = (vid_pcp &VLAN_VID_MASK ) | + ((vid_pcp &VLAN_PRIO_MASK ) >>1 ); + rp->tx_ring[entry].tx_status =cpu_to_le32 ((vid_pcp) <<16 );/* request tagging */ rp->tx_ring[entry].desc_length |=cpu_to_le32 (0x020000 ); }
drivers/net/wireless/p54/p54usb.c +1 -0
@@ -82,6 +82,7 @@ static struct usb_device_id p54u_table[] = { {USB_DEVICE(0x06a9, 0x000e)}, /* Westell 802.11g USB (A90-211WG-01) */ {USB_DEVICE(0x06b9, 0x0121)}, /* Thomson SpeedTouch 121g */ {USB_DEVICE(0x0707, 0xee13)}, /* SMC 2862W-G version 2 */ + {USB_DEVICE(0x07aa, 0x0020)}, /* Corega WLUSB2GTST USB */ {USB_DEVICE(0x0803, 0x4310)}, /* Zoom 4410a */ {USB_DEVICE(0x083a, 0x4521)}, /* Siemens Gigaset USB Adapter 54 version 2 */ {USB_DEVICE(0x083a, 0x4531)}, /* T-Com Sinus 154 data II */
drivers/net/wireless/rtlwifi/wifi.h +1 -1
@@ -1587,7 +1587,7 @@ struct rtl_priv {that it points to the data allocated beyond this structure like: rtl_pci_priv or rtl_usb_priv */ -u8 priv[0 ]; +u8 priv[0 ]__aligned(sizeof(void *)) ; };#define rtl_priv (hw) (((struct rtl_priv *)(hw)->priv))
drivers/pci/intel-iommu.c +35 -37
91 lines not on this page · raw message
drivers/scsi/esp_scsi.c +8 -6
@@ -530,7 +530,7 @@ static int esp_need_to_nego_sync(struct esp_target_data *tp)static int esp_alloc_lun_tag (struct esp_cmd_entry *ent,struct esp_lun_data *lp) { -if (!ent->tag[0 ]) { +if (!ent->orig_tag[0 ]) {/* Non-tagged, slot already taken? */ if (lp->non_tagged_cmd)return -EBUSY ;
@@ -564,9 +564,9 @@ static int esp_alloc_lun_tag(struct esp_cmd_entry *ent,return -EBUSY ; } -BUG_ON (lp->tagged_cmds[ent->tag[1 ]]); +BUG_ON (lp->tagged_cmds[ent->orig_tag[1 ]]); - lp->tagged_cmds[ent->tag[1 ]] = ent; + lp->tagged_cmds[ent->orig_tag[1 ]] = ent; lp->num_tagged++;return 0 ;
@@ -575,9 +575,9 @@ static int esp_alloc_lun_tag(struct esp_cmd_entry *ent,static void esp_free_lun_tag (struct esp_cmd_entry *ent,struct esp_lun_data *lp) { -if (ent->tag[0 ]) { -BUG_ON (lp->tagged_cmds[ent->tag[1 ]] != ent); - lp->tagged_cmds[ent->tag[1 ]] =NULL ; +if (ent->orig_tag[0 ]) { +BUG_ON (lp->tagged_cmds[ent->orig_tag[1 ]] != ent); + lp->tagged_cmds[ent->orig_tag[1 ]] =NULL ; lp->num_tagged--; }else {BUG_ON (lp->non_tagged_cmd != ent);
@@ -667,6 +667,8 @@ static struct esp_cmd_entry *find_and_prep_issuable_command(struct esp *esp) ent->tag[0 ] =0 ; ent->tag[1 ] =0 ; } + ent->orig_tag[0 ] = ent->tag[0 ]; + ent->orig_tag[1 ] = ent->tag[1 ];if (esp_alloc_lun_tag (ent, lp) <0 )continue ;
drivers/scsi/esp_scsi.h +1 -0
@@ -271,6 +271,7 @@ struct esp_cmd_entry {#define ESP_CMD_FLAG_AUTOSENSE 0x04/* Doing automatic REQUEST_SENSE */ u8 tag[2 ]; +u8 orig_tag[2 ];u8 status;u8 message;
drivers/staging/comedi/drivers/ni_65xx.c +11 -15
@@ -411,29 +411,25 @@ static int ni_65xx_dio_insn_bits(struct comedi_device *dev,struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data) { - unsigned base_bitfield_channel; -const unsigned max_ports_per_bitfield =5 ; + int base_bitfield_channel;unsigned read_bits =0 ; -unsigned j; +int last_port_offset =ni_65xx_port_by_channel (s->n_chan -1 ); +int port_offset; +if (insn->n !=2 )return -EINVAL ; base_bitfield_channel =CR_CHAN (insn->chanspec); -for (j =0 ; j < max_ports_per_bitfield; ++j) { -const unsigned port_offset = -ni_65xx_port_by_channel (base_bitfield_channel) + j; -const unsigned port = -sprivate (s)->base_port + port_offset; -unsigned base_port_channel; +for (port_offset =ni_65xx_port_by_channel (base_bitfield_channel); + port_offset <= last_port_offset; port_offset++) { +unsigned port =sprivate (s)->base_port + port_offset; +int base_port_channel = port_offset * ni_65xx_channels_per_port;unsigned port_mask, port_data, port_read_bits; -int bitshift; -if (port >=ni_65xx_total_num_ports (board (dev))) +int bitshift = base_port_channel - base_bitfield_channel; + +if (bitshift >=32 )break ; - base_port_channel = port_offset * ni_65xx_channels_per_port; port_mask = data[0 ]; port_data = data[1 ]; - bitshift = base_port_channel - base_bitfield_channel; -if (bitshift >=32 || bitshift <=-32 ) -break ;if (bitshift >0 ) { port_mask >>= bitshift; port_data >>= bitshift;
drivers/staging/hv/tools/hv_kvp_daemon.c +7 -3
@@ -378,14 +378,18 @@ int main(void) pfd.fd = fd;while (1 ) { +struct sockaddr *addr_p = (struct sockaddr *) &addr; +socklen_t addr_l =sizeof (addr); pfd.events =POLLIN ; pfd.revents =0 ;poll (&pfd,1 ,-1 ); - len =recv (fd, kvp_recv_buffer,sizeof (kvp_recv_buffer),0 ); + len =recvfrom (fd, kvp_recv_buffer,sizeof (kvp_recv_buffer),0 , + addr_p, &addr_l); -if (len <0 ) { -syslog (LOG_ERR ,"recv failed; error:%d" , len); +if (len <0 || addr.nl_pid) { +syslog (LOG_ERR ,"recvfrom failed; pid:%u error:%d %s" , + addr.nl_pid, errno,strerror (errno));close (fd);return -1 ; }
drivers/usb/serial/option.c +3 -0
@@ -81,6 +81,7 @@ static void option_instat_callback(struct urb *urb);#define HUAWEI_VENDOR_ID 0x12D1#define HUAWEI_PRODUCT_E173 0x140C +#define HUAWEI_PRODUCT_E1750 0x1406#define HUAWEI_PRODUCT_K4505 0x1464#define HUAWEI_PRODUCT_K3765 0x1465#define HUAWEI_PRODUCT_K4605 0x14C6
@@ -581,6 +582,8 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, 0x1c23, USB_CLASS_COMM, 0x02, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E173, 0xff, 0xff, 0xff), .driver_info = (kernel_ulong_t) &net_intf1_blacklist }, + { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E1750, 0xff, 0xff, 0xff), + .driver_info = (kernel_ulong_t) &net_intf2_blacklist }, { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, 0x1441, USB_CLASS_COMM, 0x02, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, 0x1442, USB_CLASS_COMM, 0x02, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K4505, 0xff, 0xff, 0xff),
fs/btrfs/relocation.c +7 -7
@@ -670,6 +670,7 @@ struct backref_node *build_backref_tree(struct reloc_control *rc,int cowonly;int ret;int err =0 ; +bool need_check = true; path1 =btrfs_alloc_path (); path2 =btrfs_alloc_path ();
@@ -892,6 +893,7 @@ again: cur->bytenr); lower = cur; + need_check = true;for (; level <BTRFS_MAX_LEVEL ; level++) {if (!path2->nodes[level]) { BUG_ON(btrfs_root_bytenr(&root->root_item) !=
@@ -935,14 +937,12 @@ again:/* * add the block to pending list if we -* need check its backrefs. only block -* at 'cur->level + 1' is added to the -* tail of pending list. this guarantees -* we check backrefs from lower level -* blocks to upper level blocks. +* need check its backrefs, we only do this once +* while walking up a tree as we will catch +* anything else later on. */ -if (!upper->checked && - level == cur->level +1 ) { +if (!upper->checked && need_check) { + need_check = false;list_add_tail (&edge->list[UPPER ], &list); }else
fs/ext4/namei.c +2 -1
@@ -2059,7 +2059,8 @@ int ext4_orphan_del(handle_t *handle, struct inode *inode)int err =0 ;/* ext4_handle_valid() assumes a valid handle_t pointer */ -if (handle && !ext4_handle_valid (handle)) +if (handle && !ext4_handle_valid (handle) && + !(EXT4_SB (inode->i_sb)->s_mount_state &EXT4_ORPHAN_FS ))return 0 ;mutex_lock (&EXT4_SB (inode->i_sb)->s_orphan_lock);
include/net/ip.h +8 -4
@@ -262,9 +262,11 @@ int ip_dont_fragment(struct sock *sk, struct dst_entry *dst)extern void __ip_select_ident (struct iphdr *iph,struct dst_entry *dst,int more); -static inline void ip_select_ident (struct iphdr *iph,struct dst_entry *dst,struct sock *sk) +static inline void ip_select_ident (struct sk_buff *skb,struct dst_entry *dst,struct sock *sk) { -if (iph->frag_off &htons (IP_DF )) { +struct iphdr *iph =ip_hdr (skb); + +if ((iph->frag_off &htons (IP_DF )) && !skb->local_df) {/* This is only to work around buggy Windows95/2000 * VJ compression implementations. If the ID field * does not change, they drop every other packet in
@@ -276,9 +278,11 @@ static inline void ip_select_ident(struct iphdr *iph, struct dst_entry *dst, str__ip_select_ident (iph, dst,0 ); } -static inline void ip_select_ident_more (struct iphdr *iph,struct dst_entry *dst,struct sock *sk,int more) +static inline void ip_select_ident_more (struct sk_buff *skb,struct dst_entry *dst,struct sock *sk,int more) { -if (iph->frag_off &htons (IP_DF )) { +struct iphdr *iph =ip_hdr (skb); + +if ((iph->frag_off &htons (IP_DF )) && !skb->local_df) {if (sk &&inet_sk (sk)->inet_daddr) { iph->id =htons (inet_sk (sk)->inet_id);inet_sk (sk)->inet_id +=1 + more;
include/net/ipip.h +1 -1
@@ -50,7 +50,7 @@ struct ip_tunnel_prl_entry {int pkt_len = skb->len -skb_transport_offset (skb); \ \ skb->ip_summed =CHECKSUM_NONE ; \ -ip_select_ident (iph, &rt->dst,NULL ); \ +ip_select_ident (skb, &rt->dst,NULL ); \ \ err =ip_local_out (skb); \if (likely (net_xmit_eval (err) ==0 )) { \
net/bridge/br_private.h +1 -0
@@ -492,6 +492,7 @@ extern struct net_bridge_port *br_get_port(struct net_bridge *br,extern void br_init_port (struct net_bridge_port *p);extern void br_become_designated_port (struct net_bridge_port *p); +extern void __br_set_forward_delay (struct net_bridge *br,unsigned long t);extern int br_set_forward_delay (struct net_bridge *br,unsigned long x);extern int br_set_hello_time (struct net_bridge *br,unsigned long x);extern int br_set_max_age (struct net_bridge *br,unsigned long x);
net/bridge/br_stp.c +16 -7
@@ -191,7 +191,7 @@ static inline void br_record_config_information(struct net_bridge_port *p, p->designated_age = jiffies + bpdu->message_age;mod_timer (&p->message_age_timer, jiffies - + (p->br->max_age - bpdu->message_age)); + + (bpdu->max_age - bpdu->message_age)); }/* called under bridge lock */
@@ -517,18 +517,27 @@ int br_set_max_age(struct net_bridge *br, unsigned long val) } +void __br_set_forward_delay (struct net_bridge *br,unsigned long t) +{ + br->bridge_forward_delay = t; +if (br_is_root_bridge (br)) + br->forward_delay = br->bridge_forward_delay; +} +int br_set_forward_delay (struct net_bridge *br,unsigned long val) {unsigned long t =clock_t_to_jiffies (val); +int err = -ERANGE ; +spin_lock_bh (&br->lock);if (br->stp_enabled !=BR_NO_STP && (t <BR_MIN_FORWARD_DELAY || t >BR_MAX_FORWARD_DELAY )) -return -ERANGE ; + goto unlock; -spin_lock_bh (&br->lock); - br->bridge_forward_delay = t; -if (br_is_root_bridge (br)) - br->forward_delay = br->bridge_forward_delay; +__br_set_forward_delay (br, t); + err =0 ; + +unlock:spin_unlock_bh (&br->lock); -return 0 ; +return err; }
net/bridge/br_stp_if.c +10 -2
@@ -126,6 +126,14 @@ static void br_stp_start(struct net_bridge *br)char *envp[] = {NULL }; r =call_usermodehelper (BR_STP_PROG , argv, envp,UMH_WAIT_PROC ); + +spin_lock_bh (&br->lock); + +if (br->bridge_forward_delay <BR_MIN_FORWARD_DELAY ) +__br_set_forward_delay (br,BR_MIN_FORWARD_DELAY ); +else if (br->bridge_forward_delay <BR_MAX_FORWARD_DELAY ) +__br_set_forward_delay (br,BR_MAX_FORWARD_DELAY ); +if (r ==0 ) { br->stp_enabled =BR_USER_STP ;br_debug (br,"userspace STP started\n" );
@@ -134,10 +142,10 @@ static void br_stp_start(struct net_bridge *br)br_debug (br,"using kernel STP\n" );/* To start timers on any ports left in blocking */ -spin_lock_bh (&br->lock);br_port_state_selection (br); -spin_unlock_bh (&br->lock); } + +spin_unlock_bh (&br->lock); }static void br_stp_stop (struct net_bridge *br)
net/caif/cfctrl.c +2 -1
@@ -297,9 +297,10 @@ int cfctrl_linkup_request(struct cflayer *layer, count =cfctrl_cancel_req (&cfctrl->serv.layer, user_layer); -if (count !=1 ) +if (count !=1 ) {pr_err ("Could not remove request (%d)" , count);return -ENODEV ; + } }return 0 ; }
net/core/netpoll.c +4 -5
@@ -927,15 +927,14 @@ EXPORT_SYMBOL_GPL(__netpoll_cleanup);void netpoll_cleanup (struct netpoll *np) { -if (!np->dev) -return ; -rtnl_lock (); +if (!np->dev) + goto out;__netpoll_cleanup (np); -rtnl_unlock (); -dev_put (np->dev); np->dev =NULL ; +out: +rtnl_unlock (); }EXPORT_SYMBOL (netpoll_cleanup);
net/ipv4/igmp.c +4 -4
@@ -342,7 +342,7 @@ static struct sk_buff *igmpv3_newpack(struct net_device *dev, int size) pip->saddr = fl4.saddr; pip->protocol =IPPROTO_IGMP ; pip->tot_len =0 ;/* filled in later */ -ip_select_ident (pip, &rt->dst,NULL ); +ip_select_ident (skb, &rt->dst,NULL ); ((u8 *)&pip[1 ])[0 ] =IPOPT_RA ; ((u8 *)&pip[1 ])[1 ] =4 ; ((u8 *)&pip[1 ])[2 ] =0 ;
@@ -683,7 +683,7 @@ static int igmp_send_report(struct in_device *in_dev, struct ip_mc_list *pmc, iph->daddr = dst; iph->saddr = fl4.saddr; iph->protocol =IPPROTO_IGMP ; -ip_select_ident (iph, &rt->dst,NULL ); +ip_select_ident (skb, &rt->dst,NULL ); ((u8 *)&iph[1 ])[0 ] =IPOPT_RA ; ((u8 *)&iph[1 ])[1 ] =4 ; ((u8 *)&iph[1 ])[2 ] =0 ;
@@ -705,7 +705,7 @@ static void igmp_gq_timer_expire(unsigned long data) in_dev->mr_gq_running =0 ;igmpv3_send_report (in_dev,NULL ); -__in_dev_put (in_dev); +in_dev_put (in_dev); }static void igmp_ifc_timer_expire (unsigned long data)
@@ -717,7 +717,7 @@ static void igmp_ifc_timer_expire(unsigned long data) in_dev->mr_ifc_count--;igmp_ifc_start_timer (in_dev, IGMP_Unsolicited_Report_Interval); } -__in_dev_put (in_dev); +in_dev_put (in_dev); }static void igmp_ifc_event (struct in_device *in_dev)
net/ipv4/inetpeer.c +2 -2
@@ -31,8 +31,8 @@* At the moment of writing this notes identifier of IP packets is generated * to be unpredictable using this code only for packets subjected * (actually or potentially) to defragmentation. I.e. DF packets less than -* PMTU in size uses a constant ID and do not use this code (see -* ip_select_ident() in include/net/ip.h). +* PMTU in size when local fragmentation is disabled use a constant ID and do +* not use this code (see ip_select_ident() in include/net/ip.h). * * Route cache entries hold references to our nodes. * New cache entries get references via lookup by destination IP address in
net/ipv4/ip_output.c +3 -3
@@ -161,7 +161,7 @@ int ip_build_and_send_pkt(struct sk_buff *skb, struct sock *sk, iph->daddr = (opt && opt->opt.srr ? opt->opt.faddr : daddr); iph->saddr = saddr; iph->protocol = sk->sk_protocol; -ip_select_ident (iph, &rt->dst, sk); +ip_select_ident (skb, &rt->dst, sk);if (opt && opt->opt.optlen) { iph->ihl += opt->opt.optlen>>2 ;
@@ -397,7 +397,7 @@ packet_routed:ip_options_build (skb, &inet_opt->opt, inet->inet_daddr, rt,0 ); } -ip_select_ident_more (iph, &rt->dst, sk, +ip_select_ident_more (skb, &rt->dst, sk, (skb_shinfo (skb)->gso_segs ?:1 ) -1 ); skb->priority = sk->sk_priority;
@@ -1340,7 +1340,7 @@ struct sk_buff *__ip_make_skb(struct sock *sk, iph->ihl =5 ; iph->tos = inet->tos; iph->frag_off = df; -ip_select_ident (iph, &rt->dst, sk); +ip_select_ident (skb, &rt->dst, sk); iph->ttl = ttl; iph->protocol = sk->sk_protocol; iph->saddr = fl4->saddr;
net/ipv4/ipmr.c +1 -1
@@ -1575,7 +1575,7 @@ static void ip_encap(struct sk_buff *skb, __be32 saddr, __be32 daddr) iph->protocol =IPPROTO_IPIP ; iph->ihl =5 ; iph->tot_len =htons (skb->len); -ip_select_ident (iph,skb_dst (skb),NULL ); +ip_select_ident (skb,skb_dst (skb),NULL );ip_send_check (iph);memset (&(IPCB (skb)->opt),0 ,sizeof (IPCB (skb)->opt));
net/ipv4/raw.c +1 -1
@@ -379,7 +379,7 @@ static int raw_send_hdrinc(struct sock *sk, struct flowi4 *fl4, iph->check =0 ; iph->tot_len =htons (length);if (!iph->id) -ip_select_ident (iph, &rt->dst,NULL ); +ip_select_ident (skb, &rt->dst,NULL ); iph->check =ip_fast_csum ((unsigned char *)iph, iph->ihl); }
net/ipv4/xfrm4_mode_tunnel.c +1 -1
@@ -54,7 +54,7 @@ static int xfrm4_mode_tunnel_output(struct xfrm_state *x, struct sk_buff *skb) top_iph->frag_off = (flags &XFRM_STATE_NOPMTUDISC ) ?0 : (XFRM_MODE_SKB_CB (skb)->frag_off &htons (IP_DF )); -ip_select_ident (top_iph, dst->child,NULL ); +ip_select_ident (skb, dst->child,NULL ); top_iph->ttl =ip4_dst_hoplimit (dst->child);
net/ipv6/ip6_output.c +22 -31
82 lines not on this page · raw message
net/ipv6/mcast.c +2 -2
@@ -2159,7 +2159,7 @@ static void mld_gq_timer_expire(unsigned long data) idev->mc_gq_running =0 ;mld_send_report (idev,NULL ); -__in6_dev_put (idev); +in6_dev_put (idev); }static void mld_ifc_timer_expire (unsigned long data)
@@ -2172,7 +2172,7 @@ static void mld_ifc_timer_expire(unsigned long data)if (idev->mc_ifc_count)mld_ifc_start_timer (idev, idev->mc_maxdelay); } -__in6_dev_put (idev); +in6_dev_put (idev); }static void mld_ifc_event (struct inet6_dev *idev)
net/netfilter/ipvs/ip_vs_xmit.c +1 -1
@@ -853,7 +853,7 @@ ip_vs_tunnel_xmit(struct sk_buff *skb, struct ip_vs_conn *cp, iph->daddr = cp->daddr.ip; iph->saddr = saddr; iph->ttl = old_iph->ttl; -ip_select_ident (iph, &rt->dst,NULL ); +ip_select_ident (skb, &rt->dst,NULL );/* Another hack: avoid icmp_send in ip_fragment */ skb->local_df =1 ;
net/sctp/ipv6.c +12 -30
84 lines not on this page · raw message
sound/soc/codecs/88pm860x-codec.c +3 -0
@@ -350,6 +350,9 @@ static int snd_soc_put_volsw_2r_st(struct snd_kcontrol *kcontrol, val = ucontrol->value.integer.value[0 ]; val2 = ucontrol->value.integer.value[1 ]; +if (val >=ARRAY_SIZE (st_table) || val2 >=ARRAY_SIZE (st_table)) +return -EINVAL ; + err =snd_soc_update_bits (codec, reg,0x3f , st_table[val].m);if (err <0 )return err;
sound/soc/codecs/max98095.c +2 -2
@@ -1865,7 +1865,7 @@ static int max98095_put_eq_enum(struct snd_kcontrol *kcontrol,struct max98095_pdata *pdata = max98095->pdata;int channel =max98095_get_eq_channel (kcontrol->id.name);struct max98095_cdata *cdata; -int sel = ucontrol->value.integer.value[0 ]; +unsigned int sel = ucontrol->value.integer.value[0 ];struct max98095_eq_cfg *coef_set;int fs, best, best_val, i;int regmask, regsave;
@@ -2011,7 +2011,7 @@ static int max98095_put_bq_enum(struct snd_kcontrol *kcontrol,struct max98095_pdata *pdata = max98095->pdata;int channel =max98095_get_bq_channel (kcontrol->id.name);struct max98095_cdata *cdata; -int sel = ucontrol->value.integer.value[0 ]; +unsigned int sel = ucontrol->value.integer.value[0 ];struct max98095_biquad_cfg *coef_set;int fs, best, best_val, i;int regmask, regsave;