Linux 3.2.74
I'm announcing the release of the 3.2.74 kernel.
All users of the 3.2 kernel series should upgrade.
The updated 3.2.y git tree can be found at:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.2.y and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git
The diff from 3.2.73 is attached to this message.
Ben.
------------
Documentation/sysctl/fs.txt | 18 ++-
Makefile | 2 +- arch/arm/mach-pxa/include/mach/pxa27x.h | 2 +- arch/arm/mach-pxa/pxa27x.c | 2 +- arch/mips/include/asm/atomic.h | 2 +- arch/x86/kernel/head_64.S | 8 ++ arch/x86/kernel/verify_cpu.S | 12 +- arch/x86/kvm/svm.c | 14 +-- crypto/algif_hash.c | 12 +- drivers/acpi/osl.c | 9 +- drivers/bluetooth/ath3k.c | 4 + drivers/bluetooth/btusb.c | 2 + drivers/firewire/ohci.c | 5 + drivers/hid/hid-core.c | 2 +- drivers/iommu/intel-iommu.c | 7 +- drivers/mtd/mtd_blkdevs.c | 10 +- drivers/mtd/mtdpart.c | 4 +- drivers/net/can/dev.c | 2 +- drivers/net/wireless/mwifiex/debugfs.c | 14 +-- drivers/pci/access.c | 27 +---- drivers/pci/quirks.c | 20 +++- drivers/power/wm831x_power.c | 6 +- drivers/scsi/megaraid/megaraid_sas.h | 2 + drivers/scsi/megaraid/megaraid_sas_base.c | 15 ++- drivers/scsi/scsi_sysfs.c | 18 +-- drivers/staging/rtl8712/usb_intf.c | 1 +
fs/binfmt_elf.c | 10 +- fs/btrfs/ctree.h | 39 +++++-- fs/btrfs/file.c | 18 ++- fs/btrfs/inode.c | 91 ++++++++++++--- fs/btrfs/ioctl.c | 188 ++++++++++++++++++++++++------ fs/btrfs/print-tree.c | 2 +- fs/btrfs/tree-log.c | 2 +- fs/btrfs/xattr.c | 4 +- fs/cachefiles/rdwr.c | 78 +++++++------ fs/exec.c | 49 +++++++- fs/ext4/super.c | 12 +- fs/fscache/netfs.c | 34 +++--- fs/fscache/page.c | 2 +- fs/jbd2/journal.c | 6 +-
fs/splice.c | 12 +- include/linux/acpi.h | 6 + include/linux/jbd2.h | 1 + include/net/inet_common.h | 3 +- kernel/events/core.c | 4 +
lib/devres.c | 2 +-
net/core/dst.c | 2 +- net/ipv4/ipmr.c | 4 +- net/ipv6/tunnel6.c | 12 +- net/irda/irlmp.c | 2 +- net/mac80211/mlme.c | 2 +- net/packet/af_packet.c | 6 +- net/rds/tcp_recv.c | 11 +- scripts/recordmcount.h | 2 +- sound/pci/hda/hda_intel.c | 2 + sound/pci/hda/patch_sigmatel.c | 1 +
56 files changed, 586 insertions(+), 241 deletions(-)
Alex Williamson (2):
PCI: Fix devfn for VPD access through function 0
PCI: Use function 0 VPD for identical functions, regular VPD for others
Ani Sinha (1):
ipmr: fix possible race resulting from improper usage of IP_INC_STATS_BH() in preemptible context.
Arnd Bergmann (1):
ARM: pxa: remove incorrect __init annotation on pxa27x_set_pwrmode
Ben Hutchings (1):
Linux 3.2.74
Boris BREZILLON (1):
mtd: mtdpart: fix add_mtd_partitions error path
Borislav Petkov (1):
x86/cpu: Call verify_cpu() after having entered long mode too
Brian Norris (1):
mtd: blkdevs: fix potential deadlock + lockdep warnings
Chen Yu (1):
ACPI: Use correct IRQ when uninstalling ACPI interrupt handler
Chris Mason (1):
Btrfs: don't use ram_bytes for uncompressed inline items
Christoph Hellwig (1):
scsi: restart list search after unlock in scsi_remove_target
Christophe Leroy (1):
splice: sendfile() at once fails for big files
Daeho Jeong (1):
ext4, jbd2: ensure entering into panic after recording an error in superblock
Dan Carpenter (3):
mwifiex: fix mwifiex_rdeeprom_read()
devres: fix a for loop bounds check
irda: precedence bug in irlmp_seq_hb_idx()
David Howells (1):
FS-Cache: Handle a write to the page immediately beyond the EOF marker
David Woodhouse (1):
iommu/vt-d: Fix ATSR handling for Root-Complex integrated endpoints
Dmitry Tunin (2):
Bluetooth: ath3k: Add new AR3012 0930:021c id
Bluetooth: ath3k: Add support of AR3012 0cf3:817b device
Eric Dumazet (3):
packet: fix match_fanout_group()
net: fix a race in dst_release()
net: avoid NULL deref in inet_ctl_sock_destroy()
Filipe Manana (5):
Btrfs: fix file corruption and data loss after cloning inline extents
Btrfs: fix truncation of compressed and inlined extents
Btrfs: fix race leading to incorrect item deletion when dropping extents
Btrfs: fix race leading to BUG_ON when running delalloc for nodatacow
Btrfs: fix race when listing an inode's xattrs
Herbert Xu (1):
crypto: algif_hash - Only export and import on sockets with data
Jan Schmidt (1):
Btrfs: added helper btrfs_next_item()
Jann Horn (1):
fs: if a coredump already exists, unlink and recreate with O_EXCL
Johannes Berg (1):
mac80211: fix driver RSSI event calculations
Kees Cook (1):
fs: make dumpable=2 require fully qualified path
Kinglong Mee (2):
FS-Cache: Increase reference of parent after registering, netfs success
FS-Cache: Don't override netfs's primary_index if registering failed
Larry Finger (1):
staging: rtl8712: Add device ID for Sitecom WLA2100
Maciej W. Rozycki (1):
binfmt_elf: Don't clobber passed executable's file header
Marek Vasut (1):
can: Use correct type in sizeof() in nla_put()
Michal Kubeček (1):
ipv6: fix tunnel error handling
Paolo Bonzini (1):
KVM: svm: unconditionally intercept #DB
Peter Oberparleiter (1):
scsi_sysfs: Fix queue_ramp_up_period return code
Peter Zijlstra (1):
perf: Fix inherited events vs. tracepoint filters
Ralf Baechle (1):
MIPS: atomic: Fix comment describing atomic64_add_unless's return value.
Richard Purdie (1):
HID: core: Avoid uninitialized buffer access
Sowmini Varadhan (1):
RDS-TCP: Recover correctly from pskb_pull()/pksb_trim() failure in rds_tcp_data_recv
Stefan Richter (1):
firewire: ohci: fix JMicron JMB38x IT context discovery
Takashi Iwai (2):
ALSA: hda - Disable 64bit address for Creative HDA controllers
ALSA: hda - Apply pin fixup for HP ProBook 6550b
Valentin Rothberg (1):
wm831x_power: Use IRQF_ONESHOT to request threaded IRQs
libin (1):
recordmcount: Fix endianness handling bug for nop_mcount
[email protected] (2):
megaraid_sas: Do not use PAGE_SIZE for max_sectors megaraid_sas : SMAP restriction--do not access user memory from IOCTL code
Signature · 3 lines
Ben Hutchings
Power corrupts. Absolute power is kind of neat.
- John Lehman, Secretary of the US Navy 1981-1987Documentation/sysctl/fs.txt +12 -6
@@ -163,16 +163,22 @@ This value can be used to query and set the core dump mode for setuid or otherwise protected/tainted binaries. The modes are 0 - (default) - traditional behaviour. Any process which has changed - privilege levels or is execute only will not be dumped + privilege levels or is execute only will not be dumped. 1 - (debug) - all processes dump core when possible. The core dump is owned by the current user and no security is applied. This is intended for system debugging situations only. Ptrace is unchecked. + This is insecure as it allows regular users to examine the memory + contents of privileged processes. 2 - (suidsafe) - any binary which normally would not be dumped is dumped - readable by root only. This allows the end user to remove - such a dump but not access it directly. For security reasons - core dumps in this mode will not overwrite one another or - other files. This mode is appropriate when administrators are - attempting to debug problems in a normal environment. + anyway, but only if the "core_pattern" kernel sysctl is set to + either a pipe handler or a fully qualified path. (For more details + on this limitation, see CVE-2006-2451.) This mode is appropriate + when administrators are attempting to debug problems in a normal + environment, and either have a core dump pipe handler that knows + to treat privileged core dumps with care, or specific directory + defined for catching core dumps. If a core dump happens without + a pipe handler or fully qualifid path, a message will be emitted + to syslog warning about the lack of a correct setting. ==============================================================
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 2 -SUBLEVEL = 73 +SUBLEVEL = 74 EXTRAVERSION = NAME = Saber-toothed Squirrel
arch/arm/mach-pxa/include/mach/pxa27x.h +1 -1
@@ -21,7 +21,7 @@extern void __init pxa27x_map_io (void );extern void __init pxa27x_init_irq (void ); -extern int __init pxa27x_set_pwrmode (unsigned int mode); +extern int pxa27x_set_pwrmode (unsigned int mode);extern void pxa27x_cpu_pm_enter (suspend_state_t state);#define pxa27x_handle_irq ichp_handle_irq
arch/arm/mach-pxa/pxa27x.c +1 -1
@@ -241,7 +241,7 @@ static struct clk_lookup pxa27x_clkregs[] = {*/ static unsigned int pwrmode =PWRMODE_SLEEP ; -int __init pxa27x_set_pwrmode (unsigned int mode) +int pxa27x_set_pwrmode (unsigned int mode) {switch (mode) {case PWRMODE_SLEEP :
arch/mips/include/asm/atomic.h +1 -1
@@ -679,7 +679,7 @@ static __inline__ long atomic64_sub_if_positive(long i, atomic64_t * v)* @u: ...unless v is equal to u. * * Atomically adds @a to @v, so long as it was not @u. -* Returns the old value of @v. +* Returns true iff @v was not @u. */ static __inline__int atomic64_add_unless (atomic64_t *v,long a,long u) {
arch/x86/kernel/head_64.S +8 -0
@@ -63,6 +63,9 @@ startup_64: * tables and then reload them. */ + /* Sanitize CPU configuration */ + call verify_cpu + /* Compute the delta between the address I am compiled to run at and the * address I am actually running at. */
@@ -160,6 +163,9 @@ ENTRY(secondary_startup_64) * after the boot processor executes this code. */ + /* Sanitize CPU configuration */ + call verify_cpu + /* Enable PAE mode and PGE */ movl $(X86_CR4_PAE | X86_CR4_PGE), %eax movq %rax, %cr4
@@ -253,6 +259,8 @@ ENTRY(secondary_startup_64) pushq %rax # target address in negative space lretq +#include "verify_cpu.S" + /* SMP bootup changes these two */ __REFDATA .align 8
arch/x86/kernel/verify_cpu.S +7 -5
@@ -34,10 +34,11 @@ #include <asm/msr-index.h> verify_cpu: - pushfl # Save caller passed flags - pushl $0 # Kill any dangerous flags - popfl + pushf # Save caller passed flags + push $0 # Kill any dangerous flags + popf +#ifndef __x86_64__ pushfl # standard way to check for cpuid popl %eax movl %eax,%ebx
@@ -48,6 +49,7 @@ verify_cpu: popl %eax cmpl %eax,%ebx jz verify_cpu_no_longmode # cpu has no cpuid +#endif movl $0x0,%eax # See if cpuid 1 is implemented cpuid
@@ -130,10 +132,10 @@ verify_cpu_sse_test: jmp verify_cpu_sse_test # try again verify_cpu_no_longmode: - popfl # Restore caller passed flags + popf # Restore caller passed flags movl $1,%eax ret verify_cpu_sse_ok: - popfl # Restore caller passed flags + popf # Restore caller passed flags xorl %eax, %eax ret
arch/x86/kvm/svm.c +3 -11
@@ -1015,6 +1015,7 @@ static void init_vmcb(struct vcpu_svm *svm)set_exception_intercept (svm,UD_VECTOR );set_exception_intercept (svm,MC_VECTOR );set_exception_intercept (svm,AC_VECTOR ); +set_exception_intercept (svm,DB_VECTOR );set_intercept (svm,INTERCEPT_INTR );set_intercept (svm,INTERCEPT_NMI );
@@ -1550,20 +1551,13 @@ static void svm_set_segment(struct kvm_vcpu *vcpu,mark_dirty (svm->vmcb,VMCB_SEG ); } -static void update_db_intercept (struct kvm_vcpu *vcpu) +static void update_bp_intercept (struct kvm_vcpu *vcpu) {struct vcpu_svm *svm =to_svm (vcpu); -clr_exception_intercept (svm,DB_VECTOR );clr_exception_intercept (svm,BP_VECTOR ); -if (svm->nmi_singlestep) -set_exception_intercept (svm,DB_VECTOR ); -if (vcpu->guest_debug &KVM_GUESTDBG_ENABLE ) { -if (vcpu->guest_debug & - (KVM_GUESTDBG_SINGLESTEP |KVM_GUESTDBG_USE_HW_BP )) -set_exception_intercept (svm,DB_VECTOR );if (vcpu->guest_debug &KVM_GUESTDBG_USE_SW_BP )set_exception_intercept (svm,BP_VECTOR ); }else
@@ -1581,7 +1575,7 @@ static void svm_guest_debug(struct kvm_vcpu *vcpu, struct kvm_guest_debug *dbg)mark_dirty (svm->vmcb,VMCB_DR ); -update_db_intercept (vcpu); +update_bp_intercept (vcpu); }static void new_asid (struct vcpu_svm *svm,struct svm_cpu_data *sd)
@@ -1655,7 +1649,6 @@ static int db_interception(struct vcpu_svm *svm)if (!(svm->vcpu.guest_debug &KVM_GUESTDBG_SINGLESTEP )) svm->vmcb->save.rflags &= ~(X86_EFLAGS_TF |X86_EFLAGS_RF ); -update_db_intercept (&svm->vcpu); } if (svm->vcpu.guest_debug &
@@ -3557,7 +3550,6 @@ static void enable_nmi_window(struct kvm_vcpu *vcpu)*/ svm->nmi_singlestep = true; svm->vmcb->save.rflags |= (X86_EFLAGS_TF |X86_EFLAGS_RF ); -update_db_intercept (vcpu); }static int svm_set_tss_addr (struct kvm *kvm,unsigned int addr)
crypto/algif_hash.c +10 -2
@@ -192,9 +192,14 @@ static int hash_accept(struct socket *sock, struct socket *newsock, int flags)struct sock *sk2;struct alg_sock *ask2;struct hash_ctx *ctx2; +bool more;int err; - err =crypto_ahash_export (req, state); +lock_sock (sk); + more = ctx->more; + err = more ?crypto_ahash_export (req, state) :0 ; +release_sock (sk); +if (err)return err;
@@ -205,7 +210,10 @@ static int hash_accept(struct socket *sock, struct socket *newsock, int flags) sk2 = newsock->sk; ask2 =alg_sk (sk2); ctx2 = ask2->private; - ctx2->more =1 ; + ctx2->more = more; + +if (!more) +return err; err =crypto_ahash_import (&ctx2->req, state);if (err) {
drivers/acpi/osl.c +6 -3
@@ -82,6 +82,7 @@ static struct workqueue_struct *kacpid_wq;static struct workqueue_struct *kacpi_notify_wq;struct workqueue_struct *kacpi_hotplug_wq;EXPORT_SYMBOL (kacpi_hotplug_wq); +unsigned int acpi_sci_irq =INVALID_ACPI_IRQ ;struct acpi_res_list {resource_size_t start;
@@ -566,17 +567,19 @@ acpi_os_install_interrupt_handler(u32 gsi, acpi_osd_handler handler, acpi_irq_handler =NULL ;return AE_NOT_ACQUIRED ; } + acpi_sci_irq = irq;return AE_OK ; } -acpi_status acpi_os_remove_interrupt_handler (u32 irq,acpi_osd_handler handler) +acpi_status acpi_os_remove_interrupt_handler (u32 gsi,acpi_osd_handler handler) { -if (irq != acpi_gbl_FADT.sci_interrupt) +if (gsi != acpi_gbl_FADT.sci_interrupt || !acpi_sci_irq_valid ())return AE_BAD_PARAMETER ; -free_irq (irq, acpi_irq); +free_irq (acpi_sci_irq, acpi_irq); acpi_irq_handler =NULL ; + acpi_sci_irq =INVALID_ACPI_IRQ ;return AE_OK ; }
drivers/bluetooth/ath3k.c +4 -0
@@ -90,6 +90,7 @@ static struct usb_device_id ath3k_table[] = { { USB_DEVICE(0x04CA, 0x300f) }, { USB_DEVICE(0x04CA, 0x3010) }, { USB_DEVICE(0x0930, 0x0219) }, + { USB_DEVICE(0x0930, 0x021c) }, { USB_DEVICE(0x0930, 0x0220) }, { USB_DEVICE(0x0930, 0x0227) }, { USB_DEVICE(0x0b05, 0x17d0) },
@@ -101,6 +102,7 @@ static struct usb_device_id ath3k_table[] = { { USB_DEVICE(0x0CF3, 0x311F) }, { USB_DEVICE(0x0cf3, 0x3121) }, { USB_DEVICE(0x0CF3, 0x817a) }, + { USB_DEVICE(0x0CF3, 0x817b) }, { USB_DEVICE(0x0cf3, 0xe003) }, { USB_DEVICE(0x0CF3, 0xE004) }, { USB_DEVICE(0x0CF3, 0xE005) },
@@ -148,6 +150,7 @@ static struct usb_device_id ath3k_blist_tbl[] = { { USB_DEVICE(0x04ca, 0x300f), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x04ca, 0x3010), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0930, 0x0219), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0930, 0x021c), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0930, 0x0220), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0930, 0x0227), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0b05, 0x17d0), .driver_info = BTUSB_ATH3012 },
@@ -159,6 +162,7 @@ static struct usb_device_id ath3k_blist_tbl[] = { { USB_DEVICE(0x0cf3, 0x311F), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0x3121), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0CF3, 0x817a), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0CF3, 0x817b), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0xe004), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0xe005), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0xe003), .driver_info = BTUSB_ATH3012 },
drivers/bluetooth/btusb.c +2 -0
@@ -175,6 +175,7 @@ static struct usb_device_id blacklist_table[] = { { USB_DEVICE(0x04ca, 0x300f), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x04ca, 0x3010), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0930, 0x0219), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0930, 0x021c), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0930, 0x0220), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0930, 0x0227), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0b05, 0x17d0), .driver_info = BTUSB_ATH3012 },
@@ -186,6 +187,7 @@ static struct usb_device_id blacklist_table[] = { { USB_DEVICE(0x0cf3, 0x311f), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0x3121), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0x817a), .driver_info = BTUSB_ATH3012 }, + { USB_DEVICE(0x0cf3, 0x817b), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0xe003), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0xe004), .driver_info = BTUSB_ATH3012 }, { USB_DEVICE(0x0cf3, 0xe005), .driver_info = BTUSB_ATH3012 },
drivers/firewire/ohci.c +5 -0
@@ -3547,6 +3547,11 @@ static int __devinit pci_probe(struct pci_dev *dev,reg_write (ohci, OHCI1394_IsoXmitIntMaskSet, ~0 ); ohci->it_context_support =reg_read (ohci, OHCI1394_IsoXmitIntMaskSet); +/* JMicron JMB38x often shows 0 at first read, just ignore it */ +if (!ohci->it_context_support) { +fw_notify ("overriding IsoXmitIntMask\n" ); + ohci->it_context_support =0xf ; + }reg_write (ohci, OHCI1394_IsoXmitIntMaskClear, ~0 ); ohci->it_context_mask = ohci->it_context_support; ohci->n_it =hweight32 (ohci->it_context_mask);
drivers/hid/hid-core.c +1 -1
@@ -1295,7 +1295,7 @@ int hid_connect(struct hid_device *hdev, unsigned int connect_mask) "Multi-Axis Controller" };const char *type, *bus; -char buf[64 ]; +char buf[64 ] ="" ;unsigned int i;int len;int ret;
drivers/iommu/intel-iommu.c +6 -1
@@ -3572,10 +3572,15 @@ found:for (bus = dev->bus; bus; bus = bus->parent) {struct pci_dev *bridge = bus->self; -if (!bridge || !pci_is_pcie (bridge) || +/* If it's an integrated device, allow ATS */ +if (!bridge) +return 1 ; +/* Connected via non-PCIe: no ATS */ +if (!pci_is_pcie (bridge) || bridge->pcie_type ==PCI_EXP_TYPE_PCI_BRIDGE )return 0 ; +/* If we found the root port, look it up in the ATSR */ if (bridge->pcie_type ==PCI_EXP_TYPE_ROOT_PORT ) {for (i =0 ; i < atsru->devices_cnt; i++)if (atsru->devices[i] == bridge)
drivers/mtd/mtd_blkdevs.c +5 -5
@@ -213,8 +213,8 @@ static int blktrans_open(struct block_device *bdev, fmode_t mode)if (!dev)return -ERESTARTSYS ;/* FIXME: busy loop! -arnd*/ -mutex_lock (&dev->lock);mutex_lock (&mtd_table_mutex); +mutex_lock (&dev->lock);if (dev->open) goto unlock;
@@ -237,8 +237,8 @@ static int blktrans_open(struct block_device *bdev, fmode_t mode) unlock: dev->open++; -mutex_unlock (&mtd_table_mutex);mutex_unlock (&dev->lock); +mutex_unlock (&mtd_table_mutex);blktrans_dev_put (dev);return ret;
@@ -248,8 +248,8 @@ error_release: error_put:module_put (dev->tr->owner);kref_put (&dev->ref, blktrans_dev_release); -mutex_unlock (&mtd_table_mutex);mutex_unlock (&dev->lock); +mutex_unlock (&mtd_table_mutex);blktrans_dev_put (dev);return ret; }
@@ -262,8 +262,8 @@ static int blktrans_release(struct gendisk *disk, fmode_t mode)if (!dev)return ret; -mutex_lock (&dev->lock);mutex_lock (&mtd_table_mutex); +mutex_lock (&dev->lock);if (--dev->open) goto unlock;
@@ -276,8 +276,8 @@ static int blktrans_release(struct gendisk *disk, fmode_t mode)__put_mtd_device (dev->mtd); } unlock: -mutex_unlock (&mtd_table_mutex);mutex_unlock (&dev->lock); +mutex_unlock (&mtd_table_mutex);blktrans_dev_put (dev);return ret; }
drivers/mtd/mtdpart.c +3 -1
@@ -671,8 +671,10 @@ int add_mtd_partitions(struct mtd_info *master,for (i =0 ; i < nbparts; i++) { slave =allocate_partition (master, parts + i, i, cur_offset); -if (IS_ERR (slave)) +if (IS_ERR (slave)) { +del_mtd_partitions (master);return PTR_ERR (slave); + }mutex_lock (&mtd_partitions_mutex);list_add (&slave->list, &mtd_partitions);
drivers/net/can/dev.c +1 -1
@@ -693,7 +693,7 @@ static int can_fill_info(struct sk_buff *skb, const struct net_device *dev)NLA_PUT_U32 (skb,IFLA_CAN_RESTART_MS , priv->restart_ms);NLA_PUT (skb,IFLA_CAN_BITTIMING ,sizeof (priv->bittiming), &priv->bittiming); -NLA_PUT (skb,IFLA_CAN_CLOCK ,sizeof (cm), &priv->clock); +NLA_PUT (skb,IFLA_CAN_CLOCK ,sizeof (priv->clock), &priv->clock);if (priv->do_get_berr_counter && !priv->do_get_berr_counter (dev, &bec))NLA_PUT (skb,IFLA_CAN_BERR_COUNTER ,sizeof (bec), &bec);if (priv->bittiming_const)
drivers/net/wireless/mwifiex/debugfs.c +7 -7
@@ -633,7 +633,7 @@ mwifiex_rdeeprom_read(struct file *file, char __user *ubuf, (struct mwifiex_private *) file->private_data;unsigned long addr =get_zeroed_page (GFP_KERNEL );char *buf = (char *) addr; -int pos =0 , ret =0 , i; +int pos, ret, i;u8 value[MAX_EEPROM_DATA ];if (!buf)
@@ -641,7 +641,7 @@ mwifiex_rdeeprom_read(struct file *file, char __user *ubuf,if (saved_offset ==-1 ) {/* No command has been given */ - pos +=snprintf (buf,PAGE_SIZE ,"0" ); + pos =snprintf (buf,PAGE_SIZE ,"0" ); goto done; }
@@ -650,17 +650,17 @@ mwifiex_rdeeprom_read(struct file *file, char __user *ubuf, (u16) saved_bytes, value);if (ret) { ret = -EINVAL ; - goto done; + goto out_free; } - pos +=snprintf (buf,PAGE_SIZE ,"%d %d " , saved_offset, saved_bytes); + pos =snprintf (buf,PAGE_SIZE ,"%d %d " , saved_offset, saved_bytes);for (i =0 ; i < saved_bytes; i++) - pos +=snprintf (buf +strlen (buf),PAGE_SIZE ,"%d " , value[i]); - - ret =simple_read_from_buffer (ubuf, count, ppos, buf, pos); + pos +=scnprintf (buf + pos,PAGE_SIZE - pos,"%d " , value[i]); done: + ret =simple_read_from_buffer (ubuf, count, ppos, buf, pos); +out_free:free_page (addr);return ret; }
drivers/pci/access.c +4 -23
@@ -358,7 +358,8 @@ static const struct pci_vpd_ops pci_vpd_pci22_ops = {static ssize_t pci_vpd_f0_read (struct pci_dev *dev,loff_t pos,size_t count,void *arg) { -struct pci_dev *tdev =pci_get_slot (dev->bus,PCI_SLOT (dev->devfn)); +struct pci_dev *tdev =pci_get_slot (dev->bus, +PCI_DEVFN (PCI_SLOT (dev->devfn),0 ));ssize_t ret;if (!tdev)
@@ -372,7 +373,8 @@ static ssize_t pci_vpd_f0_read(struct pci_dev *dev, loff_t pos, size_t count,static ssize_t pci_vpd_f0_write (struct pci_dev *dev,loff_t pos,size_t count,const void *arg) { -struct pci_dev *tdev =pci_get_slot (dev->bus,PCI_SLOT (dev->devfn)); +struct pci_dev *tdev =pci_get_slot (dev->bus, +PCI_DEVFN (PCI_SLOT (dev->devfn),0 ));ssize_t ret;if (!tdev)
@@ -389,22 +391,6 @@ static const struct pci_vpd_ops pci_vpd_f0_ops = { .release = pci_vpd_pci22_release, }; -static int pci_vpd_f0_dev_check (struct pci_dev *dev) -{ -struct pci_dev *tdev =pci_get_slot (dev->bus,PCI_SLOT (dev->devfn)); -int ret =0 ; - -if (!tdev) -return -ENODEV ; -if (!tdev->vpd || !tdev->multifunction || - dev->class != tdev->class || dev->vendor != tdev->vendor || - dev->device != tdev->device) - ret = -ENODEV ; - -pci_dev_put (tdev); -return ret; -} -int pci_vpd_pci22_init (struct pci_dev *dev) {struct pci_vpd_pci22 *vpd;
@@ -413,12 +399,7 @@ int pci_vpd_pci22_init(struct pci_dev *dev) cap =pci_find_capability (dev,PCI_CAP_ID_VPD );if (!cap)return -ENODEV ; -if (dev->dev_flags &PCI_DEV_FLAGS_VPD_REF_F0 ) { -int ret =pci_vpd_f0_dev_check (dev); -if (ret) -return ret; - } vpd =kzalloc (sizeof (*vpd),GFP_ATOMIC );if (!vpd)return -ENOMEM ;
drivers/pci/quirks.c +18 -2
@@ -1941,12 +1941,28 @@ static void __devinit quirk_netmos(struct pci_dev *dev) }DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_NETMOS ,PCI_ANY_ID , quirk_netmos); +/* +* Quirk non-zero PCI functions to route VPD access through function 0 for +* devices that share VPD resources between functions. The functions are +* expected to be identical devices. +*/ static void quirk_f0_vpd_link (struct pci_dev *dev) { +struct pci_dev *f0; +if ((dev->class >>8 ) !=PCI_CLASS_NETWORK_ETHERNET || - !dev->multifunction || !PCI_FUNC (dev->devfn)) + !PCI_FUNC (dev->devfn))return ; - dev->dev_flags |=PCI_DEV_FLAGS_VPD_REF_F0 ; + + f0 =pci_get_slot (dev->bus,PCI_DEVFN (PCI_SLOT (dev->devfn),0 )); +if (!f0) +return ; + +if (f0->vpd && dev->class == f0->class && + dev->vendor == f0->vendor && dev->device == f0->device) + dev->dev_flags |=PCI_DEV_FLAGS_VPD_REF_F0 ; + +pci_dev_put (f0); }DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_INTEL ,PCI_ANY_ID , quirk_f0_vpd_link);
drivers/power/wm831x_power.c +3 -3
@@ -557,7 +557,7 @@ static __devinit int wm831x_power_probe(struct platform_device *pdev) irq =platform_get_irq_byname (pdev,"SYSLO" ); ret =request_threaded_irq (irq,NULL , wm831x_syslo_irq, -IRQF_TRIGGER_RISING ,"System power low" , +IRQF_TRIGGER_RISING |IRQF_ONESHOT ,"System power low" , power);if (ret !=0 ) { dev_err(&pdev->dev, "Failed to request SYSLO IRQ %d: %d\n",
@@ -567,7 +567,7 @@ static __devinit int wm831x_power_probe(struct platform_device *pdev) irq =platform_get_irq_byname (pdev,"PWR SRC" ); ret =request_threaded_irq (irq,NULL , wm831x_pwr_src_irq, -IRQF_TRIGGER_RISING ,"Power source" , +IRQF_TRIGGER_RISING |IRQF_ONESHOT ,"Power source" , power);if (ret !=0 ) { dev_err(&pdev->dev, "Failed to request PWR SRC IRQ %d: %d\n",
@@ -578,7 +578,7 @@ static __devinit int wm831x_power_probe(struct platform_device *pdev)for (i =0 ; i <ARRAY_SIZE (wm831x_bat_irqs); i++) { irq =platform_get_irq_byname (pdev, wm831x_bat_irqs[i]); ret =request_threaded_irq (irq,NULL , wm831x_bat_irq, -IRQF_TRIGGER_RISING , +IRQF_TRIGGER_RISING |IRQF_ONESHOT , wm831x_bat_irqs[i], power);if (ret !=0 ) {
drivers/scsi/megaraid/megaraid_sas.h +2 -0
@@ -300,6 +300,8 @@ enum MR_EVT_ARGS { MR_EVT_ARGS_GENERIC, }; + +#define SGE_BUFFER_SIZE 4096/* * define constants for device list query options */
drivers/scsi/megaraid/megaraid_sas_base.c +12 -3
@@ -3636,7 +3636,7 @@ static int megasas_init_fw(struct megasas_instance *instance) } instance->max_sectors_per_req = instance->max_num_sge * -PAGE_SIZE /512 ; +SGE_BUFFER_SIZE /512 ;if (tmp_sectors && (instance->max_sectors_per_req > tmp_sectors)) instance->max_sectors_per_req = tmp_sectors;
@@ -5083,6 +5083,9 @@ static int megasas_mgmt_compat_ioctl_fw(struct file *file, unsigned long arg)int i;int error =0 ;compat_uptr_t ptr; +unsigned long local_raw_ptr; +u32 local_sense_off; +u32 local_sense_len;if (clear_user (ioc,sizeof (*ioc)))return -EFAULT ;
@@ -5100,9 +5103,15 @@ static int megasas_mgmt_compat_ioctl_fw(struct file *file, unsigned long arg)* sense_len is not null, so prepare the 64bit value under * the same condition. */ -if (ioc->sense_len) { +if (get_user (local_raw_ptr, ioc->frame.raw) || +get_user (local_sense_off, &ioc->sense_off) || +get_user (local_sense_len, &ioc->sense_len)) +return -EFAULT ; + + +if (local_sense_len) {void __user **sense_ioc_ptr = - (void __user **)(ioc->frame.raw + ioc->sense_off); + (void __user **)((u8 *)local_raw_ptr + local_sense_off);compat_uptr_t *sense_cioc_ptr = (compat_uptr_t *)(cioc->frame.raw + cioc->sense_off); if (get_user(ptr, sense_cioc_ptr) ||
drivers/scsi/scsi_sysfs.c +5 -13
@@ -788,7 +788,7 @@ sdev_store_queue_ramp_up_period(struct device *dev,return -EINVAL ; sdev->queue_ramp_up_period =msecs_to_jiffies (period); -return period; +return count; } static struct device_attribute sdev_attr_queue_ramp_up_period =
@@ -1029,31 +1029,23 @@ static void __scsi_remove_target(struct scsi_target *starget)void scsi_remove_target (struct device *dev) {struct Scsi_Host *shost =dev_to_shost (dev->parent); -struct scsi_target *starget, *last =NULL ; +struct scsi_target *starget;unsigned long flags; -/* remove targets being careful to lookup next entry before -* deleting the last -*/ +restart:spin_lock_irqsave (shost->host_lock, flags);list_for_each_entry (starget, &shost->__targets, siblings) {if (starget->state ==STARGET_DEL )continue ;if (starget->dev.parent == dev || &starget->dev == dev) { -/* assuming new targets arrive at the end */ kref_get (&starget->reap_ref);spin_unlock_irqrestore (shost->host_lock, flags); -if (last) -scsi_target_reap (last); - last = starget;__scsi_remove_target (starget); -spin_lock_irqsave (shost->host_lock, flags); +scsi_target_reap (starget); + goto restart; } }spin_unlock_irqrestore (shost->host_lock, flags); - -if (last) -scsi_target_reap (last); }EXPORT_SYMBOL (scsi_remove_target);
drivers/staging/rtl8712/usb_intf.c +1 -0
@@ -147,6 +147,7 @@ static struct usb_device_id rtl871x_usb_id_tbl[] = { {USB_DEVICE(0x0DF6, 0x0058)}, {USB_DEVICE(0x0DF6, 0x0049)}, {USB_DEVICE(0x0DF6, 0x004C)}, + {USB_DEVICE(0x0DF6, 0x006C)}, {USB_DEVICE(0x0DF6, 0x0064)},/* Skyworth */ {USB_DEVICE(0x14b2, 0x3300)},
fs/binfmt_elf.c +5 -5
@@ -671,16 +671,16 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)*/ would_dump (bprm, interpreter); - retval =kernel_read (interpreter,0 , bprm->buf, -BINPRM_BUF_SIZE ); -if (retval !=BINPRM_BUF_SIZE ) { +/* Get the exec headers */ + retval =kernel_read (interpreter,0 , + (void *)&loc->interp_elf_ex, +sizeof (loc->interp_elf_ex)); +if (retval !=sizeof (loc->interp_elf_ex)) {if (retval >=0 ) retval = -EIO ; goto out_free_dentry; } -/* Get the exec headers */ - loc->interp_elf_ex = *((struct elfhdr *)bprm->buf);break ; } elf_ppnt++;
fs/btrfs/ctree.h +30 -9
@@ -2174,15 +2174,6 @@ BTRFS_SETGET_FUNCS(file_extent_encryption, struct btrfs_file_extent_item, BTRFS_SETGET_FUNCS(file_extent_other_encoding, struct btrfs_file_extent_item, other_encoding,16 ); -/* this returns the number of file bytes represented by the inline item. -* If an item is compressed, this is the uncompressed size -*/ -static inline u32 btrfs_file_extent_inline_len (struct extent_buffer *eb, -struct btrfs_file_extent_item *e) -{ -return btrfs_file_extent_ram_bytes (eb, e); -} -/* * this returns the number of bytes used by the item on disk, minus the * size of any extent headers. If a file is compressed on disk, this is
@@ -2196,6 +2187,29 @@ static inline u32 btrfs_file_extent_inline_item_len(struct extent_buffer *eb,return btrfs_item_size (eb, e) - offset; } +/* this returns the number of file bytes represented by the inline item. +* If an item is compressed, this is the uncompressed size +*/ +static inline u32 btrfs_file_extent_inline_len (struct extent_buffer *eb, +int slot, +struct btrfs_file_extent_item *fi) +{ +/* +* return the space used on disk if this item isn't +* compressed or encoded +*/ +if (btrfs_file_extent_compression (eb, fi) ==0 && +btrfs_file_extent_encryption (eb, fi) ==0 && +btrfs_file_extent_other_encoding (eb, fi) ==0 ) { +return btrfs_file_extent_inline_item_len (eb, +btrfs_item_nr (eb, slot)); + } + +/* otherwise use the ram bytes field */ +return btrfs_file_extent_ram_bytes (eb, fi); +} + +static inline struct btrfs_root *btrfs_sb (struct super_block *sb) {return sb->s_fs_info;
@@ -2482,6 +2496,13 @@ static inline int btrfs_insert_empty_item(struct btrfs_trans_handle *trans, }int btrfs_next_leaf (struct btrfs_root *root,struct btrfs_path *path); +static inline int btrfs_next_item (struct btrfs_root *root,struct btrfs_path *p) +{ + ++p->slots[0 ]; +if (p->slots[0 ] >=btrfs_header_nritems (p->nodes[0 ])) +return btrfs_next_leaf (root, p); +return 0 ; +}int btrfs_prev_leaf (struct btrfs_root *root,struct btrfs_path *path);int btrfs_leaf_free_space (struct btrfs_root *root,struct extent_buffer *leaf); void btrfs_drop_snapshot(struct btrfs_root *root,
fs/btrfs/file.c +13 -5
@@ -605,8 +605,15 @@ next_slot: }btrfs_item_key_to_cpu (leaf, &key, path->slots[0 ]); -if (key.objectid > ino || - key.type >BTRFS_EXTENT_DATA_KEY || key.offset >= end) + +if (key.objectid > ino) +break ; +if (WARN_ON_ONCE (key.objectid < ino) || + key.type <BTRFS_EXTENT_DATA_KEY ) { + path->slots[0 ]++; + goto next_slot; + } +if (key.type >BTRFS_EXTENT_DATA_KEY || key.offset >= end)break ; fi = btrfs_item_ptr(leaf, path->slots[0],
@@ -622,10 +629,11 @@ next_slot:btrfs_file_extent_num_bytes (leaf, fi); }else if (extent_type ==BTRFS_FILE_EXTENT_INLINE ) { extent_end = key.offset + -btrfs_file_extent_inline_len (leaf, fi); +btrfs_file_extent_inline_len (leaf, + path->slots[0 ], fi); }else { -WARN_ON (1 ); - extent_end = search_start; +/* can't happen */ +BUG (); }if (extent_end <= search_start) {
fs/btrfs/inode.c +74 -17
144 lines not on this page · raw message
fs/btrfs/ioctl.c +155 -33
210 lines not on this page · raw message
fs/btrfs/print-tree.c +1 -1
@@ -240,7 +240,7 @@ void btrfs_print_leaf(struct btrfs_root *root, struct extent_buffer *l) BTRFS_FILE_EXTENT_INLINE) {printk (KERN_INFO "\t\tinline extent data " "size %u\n" , -btrfs_file_extent_inline_len (l, fi)); +btrfs_file_extent_inline_len (l, i, fi));break ; } printk(KERN_INFO "\t\textent data disk bytenr %llu "
fs/btrfs/tree-log.c +1 -1
@@ -537,7 +537,7 @@ static noinline int replay_one_extent(struct btrfs_trans_handle *trans,if (btrfs_file_extent_disk_bytenr (eb, item) ==0 ) nbytes =0 ; }else if (found_type ==BTRFS_FILE_EXTENT_INLINE ) { - size =btrfs_file_extent_inline_len (eb, item); + size =btrfs_file_extent_inline_len (eb, slot, item); nbytes =btrfs_file_extent_ram_bytes (eb, item); extent_end = (start + size + mask) & ~mask; }else {
fs/btrfs/xattr.c +3 -1
@@ -259,8 +259,10 @@ ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size)/* check to make sure this item is what we want */ if (found_key.objectid != key.objectid)break ; -if (btrfs_key_type (&found_key) !=BTRFS_XATTR_ITEM_KEY ) +if (found_key.type >BTRFS_XATTR_ITEM_KEY )break ; +if (found_key.type <BTRFS_XATTR_ITEM_KEY ) + goto next; di = btrfs_item_ptr(leaf, slot, struct btrfs_dir_item);if (verify_dir_item (root, leaf, di))
fs/cachefiles/rdwr.c +43 -35
96 lines not on this page · raw message
fs/exec.c +43 -6
73 lines not on this page · raw message
fs/ext4/super.c +10 -2
@@ -463,9 +463,13 @@ static void ext4_handle_error(struct super_block *sb)ext4_msg (sb,KERN_CRIT ,"Remounting filesystem read-only" ); sb->s_flags |=MS_RDONLY ; } -if (test_opt (sb,ERRORS_PANIC )) +if (test_opt (sb,ERRORS_PANIC )) { +if (EXT4_SB (sb)->s_journal && + !(EXT4_SB (sb)->s_journal->j_flags &JBD2_REC_ERR )) +return ;panic ("EXT4-fs (device %s): panic forced after error\n" , sb->s_id); + } } void __ext4_error(struct super_block *sb, const char *function,
@@ -628,8 +632,12 @@ void __ext4_abort(struct super_block *sb, const char *function,jbd2_journal_abort (EXT4_SB (sb)->s_journal, -EIO );save_error_info (sb, function, line); } -if (test_opt (sb,ERRORS_PANIC )) +if (test_opt (sb,ERRORS_PANIC )) { +if (EXT4_SB (sb)->s_journal && + !(EXT4_SB (sb)->s_journal->j_flags &JBD2_REC_ERR )) +return ;panic ("EXT4-fs panic from previous error\n" ); + } }void ext4_msg (struct super_block *sb,const char *prefix,const char *fmt, ...)
fs/fscache/netfs.c +16 -18
@@ -22,6 +22,7 @@ static LIST_HEAD(fscache_netfs_list);int __fscache_register_netfs (struct fscache_netfs *netfs) {struct fscache_netfs *ptr; +struct fscache_cookie *cookie;int ret;_enter ("{%s}" , netfs->name);
@@ -29,27 +30,23 @@ int __fscache_register_netfs(struct fscache_netfs *netfs)INIT_LIST_HEAD (&netfs->link);/* allocate a cookie for the primary index */ - netfs->primary_index = -kmem_cache_zalloc (fscache_cookie_jar,GFP_KERNEL ); + cookie =kmem_cache_zalloc (fscache_cookie_jar,GFP_KERNEL ); -if (!netfs->primary_index) { +if (!cookie) {_leave (" = -ENOMEM" );return -ENOMEM ; }/* initialise the primary index cookie */ -atomic_set (&netfs->primary_index->usage,1 ); -atomic_set (&netfs->primary_index->n_children,0 ); +atomic_set (&cookie->usage,1 ); +atomic_set (&cookie->n_children,0 ); - netfs->primary_index->def = &fscache_fsdef_netfs_def; - netfs->primary_index->parent = &fscache_fsdef_index; - netfs->primary_index->netfs_data = netfs; + cookie->def = &fscache_fsdef_netfs_def; + cookie->parent = &fscache_fsdef_index; + cookie->netfs_data = netfs; -atomic_inc (&netfs->primary_index->parent->usage); -atomic_inc (&netfs->primary_index->parent->n_children); - -spin_lock_init (&netfs->primary_index->lock); -INIT_HLIST_HEAD (&netfs->primary_index->backing_objects); +spin_lock_init (&cookie->lock); +INIT_HLIST_HEAD (&cookie->backing_objects);/* check the netfs type is not already present */ down_write (&fscache_addremove_sem);
@@ -60,6 +57,10 @@ int __fscache_register_netfs(struct fscache_netfs *netfs) goto already_registered; } +atomic_inc (&cookie->parent->usage); +atomic_inc (&cookie->parent->n_children); + + netfs->primary_index = cookie;list_add (&netfs->link, &fscache_netfs_list); ret =0 ;
@@ -69,11 +70,8 @@ int __fscache_register_netfs(struct fscache_netfs *netfs) already_registered:up_write (&fscache_addremove_sem); -if (ret <0 ) { - netfs->primary_index->parent =NULL ; -__fscache_cookie_put (netfs->primary_index); - netfs->primary_index =NULL ; - } +if (ret <0 ) +kmem_cache_free (fscache_cookie_jar, cookie);_leave (" = %d" , ret);return ret;
fs/fscache/page.c +1 -1
@@ -676,7 +676,7 @@ static void fscache_write_op(struct fscache_operation *_op) goto superseded; page = results[0 ];_debug ("gang %d [%lx]" , n, page->index); -if (page->index > op->store_limit) { +if (page->index >= op->store_limit) {fscache_stat (&fscache_n_store_pages_over_limit); goto superseded; }
fs/jbd2/journal.c +5 -1
@@ -1956,8 +1956,12 @@ static void __journal_abort_soft (journal_t *journal, int errno)__jbd2_journal_abort_hard (journal); -if (errno) +if (errno) {jbd2_journal_update_sb_errno (journal); +write_lock (&journal->j_state_lock); + journal->j_flags |=JBD2_REC_ERR ; +write_unlock (&journal->j_state_lock); + } }/**
fs/splice.c +11 -1
@@ -1187,7 +1187,7 @@ ssize_t splice_direct_to_actor(struct file *in, struct splice_desc *sd,long ret, bytes;umode_t i_mode;size_t len; -int i, flags; +int i, flags, more;/* * We require the input being a regular file, as we don't want to
@@ -1230,6 +1230,7 @@ ssize_t splice_direct_to_actor(struct file *in, struct splice_desc *sd,* Don't block on output, we have to drain the direct pipe. */ sd->flags &= ~SPLICE_F_NONBLOCK ; + more = sd->flags &SPLICE_F_MORE ;while (len) {size_t read_len;
@@ -1243,6 +1244,15 @@ ssize_t splice_direct_to_actor(struct file *in, struct splice_desc *sd, sd->total_len = read_len;/* +* If more data is pending, set SPLICE_F_MORE +* If this is the last data and SPLICE_F_MORE was not set +* initially, clears it. +*/ +if (read_len < len) + sd->flags |=SPLICE_F_MORE ; +else if (!more) + sd->flags &= ~SPLICE_F_MORE ; +/* * NOTE: nonblocking mode only applies to the input. We * must not do the output in nonblocking mode as then we * could get stuck data in the internal pipe:
include/linux/acpi.h +6 -0
@@ -110,6 +110,12 @@ int acpi_unregister_ioapic(acpi_handle handle, u32 gsi_base);void acpi_irq_stats_init (void );extern u32 acpi_irq_handled;extern u32 acpi_irq_not_handled; +extern unsigned int acpi_sci_irq; +#define INVALID_ACPI_IRQ ((unsigned)-1) +static inline bool acpi_sci_irq_valid (void ) +{ +return acpi_sci_irq !=INVALID_ACPI_IRQ ; +}extern int sbf_port;extern unsigned long acpi_realmode_flags;
include/linux/jbd2.h +1 -0
@@ -954,6 +954,7 @@ struct journal_s#define JBD2_ABORT_ON_SYNCDATA_ERR 0x040/* Abort the journal on file * data write error in ordered * mode */ +#define JBD2_REC_ERR 0x080/* The errno in the sb has been recorded */ /* * Function declarations for the journaling transaction and buffer
include/net/inet_common.h +2 -1
@@ -38,7 +38,8 @@ extern int inet_ctl_sock_create(struct sock **sk, unsigned short family,static inline void inet_ctl_sock_destroy (struct sock *sk) { -sk_release_kernel (sk); +if (sk) +sk_release_kernel (sk); }#endif
kernel/events/core.c +4 -0
@@ -5393,6 +5393,10 @@ static int perf_tp_filter_match(struct perf_event *event, {void *record = data->raw->data; +/* only top level events have filters set */ +if (event->parent) + event = event->parent; +if (likely (!event->filter) ||filter_match_preds (event->filter, record))return 1 ;return 0 ;
lib/devres.c +1 -1
@@ -339,7 +339,7 @@ void pcim_iounmap_regions(struct pci_dev *pdev, u16 mask)if (!iomap)return ; -for (i =0 ; i <DEVICE_COUNT_RESOURCE ; i++) { +for (i =0 ; i <PCIM_IOMAP_MAX ; i++) {if (!(mask & (1 << i)))continue ;
net/core/dst.c +1 -1
@@ -272,7 +272,7 @@ void dst_release(struct dst_entry *dst) newrefcnt =atomic_dec_return (&dst->__refcnt);WARN_ON (newrefcnt <0 ); -if (unlikely (dst->flags &DST_NOCACHE ) && !newrefcnt) { +if (!newrefcnt &&unlikely (dst->flags &DST_NOCACHE )) { dst =dst_destroy (dst);if (dst)__dst_free (dst);
net/ipv4/ipmr.c +2 -2
@@ -1590,7 +1590,7 @@ static inline int ipmr_forward_finish(struct sk_buff *skb) {struct ip_options *opt = &(IPCB (skb)->opt); -IP_INC_STATS_BH (dev_net (skb_dst (skb)->dev),IPSTATS_MIB_OUTFORWDATAGRAMS ); +IP_INC_STATS (dev_net (skb_dst (skb)->dev),IPSTATS_MIB_OUTFORWDATAGRAMS );if (unlikely (opt->optlen))ip_forward_options (skb);
@@ -1652,7 +1652,7 @@ static void ipmr_queue_xmit(struct net *net, struct mr_table *mrt,* to blackhole. */ -IP_INC_STATS_BH (dev_net (dev),IPSTATS_MIB_FRAGFAILS ); +IP_INC_STATS (dev_net (dev),IPSTATS_MIB_FRAGFAILS );ip_rt_put (rt); goto out_free; }
net/ipv6/tunnel6.c +11 -1
@@ -145,6 +145,16 @@ static void tunnel6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,break ; } +static void tunnel46_err (struct sk_buff *skb,struct inet6_skb_parm *opt, +u8 type,u8 code,int offset,__be32 info) +{ +struct xfrm6_tunnel *handler; + +for_each_tunnel_rcu (tunnel46_handlers, handler) +if (!handler->err_handler (skb, opt, type, code, offset, info)) +break ; +} +static const struct inet6_protocol tunnel6_protocol = { .handler = tunnel6_rcv, .err_handler = tunnel6_err,
@@ -153,7 +163,7 @@ static const struct inet6_protocol tunnel6_protocol = {static const struct inet6_protocol tunnel46_protocol = { .handler = tunnel46_rcv, - .err_handler = tunnel6_err, + .err_handler = tunnel46_err, .flags =INET6_PROTO_NOPOLICY |INET6_PROTO_FINAL , };
net/irda/irlmp.c +1 -1
@@ -1868,7 +1868,7 @@ static void *irlmp_seq_hb_idx(struct irlmp_iter_state *iter, loff_t *off)for (element =hashbin_get_first (iter->hashbin); element !=NULL ; element =hashbin_get_next (iter->hashbin)) { -if (!off || *off-- ==0 ) { +if (!off || (*off)-- ==0 ) {/* NB: hashbin left locked */ return element; }
net/mac80211/mlme.c +1 -1
@@ -1840,7 +1840,7 @@ static void ieee80211_rx_mgmt_beacon(struct ieee80211_sub_if_data *sdata,if (ifmgd->rssi_min_thold != ifmgd->rssi_max_thold && ifmgd->count_beacon_signal >=IEEE80211_SIGNAL_AVE_MIN_COUNT ) { -int sig = ifmgd->ave_beacon_signal; +int sig = ifmgd->ave_beacon_signal /16 ;int last_sig = ifmgd->last_ave_beacon_signal;/*
net/packet/af_packet.c +3 -3
@@ -1263,10 +1263,10 @@ static void __fanout_unlink(struct sock *sk, struct packet_sock *po)bool match_fanout_group (struct packet_type *ptype,struct sock * sk) { -if (ptype->af_packet_priv == (void *)((struct packet_sock *)sk)->fanout) -return true; +if (sk->sk_family !=PF_PACKET ) +return false; -return false; +return ptype->af_packet_priv ==pkt_sk (sk)->fanout; }static int fanout_add (struct sock *sk,u16 id,u16 type_flags)
net/rds/tcp_recv.c +9 -2
@@ -235,8 +235,15 @@ static int rds_tcp_data_recv(read_descriptor_t *desc, struct sk_buff *skb, } to_copy =min (tc->t_tinc_data_rem, left); -pskb_pull (clone, offset); -pskb_trim (clone, to_copy); +if (!pskb_pull (clone, offset) || +pskb_trim (clone, to_copy)) { +pr_warn ("rds_tcp_data_recv: pull/trim failed " +"left %zu data_rem %zu skb_len %d\n" , + left, tc->t_tinc_data_rem, skb->len); +kfree_skb (clone); + desc->error = -ENOMEM ; + goto out; + }skb_queue_tail (&tinc->ti_skb_list, clone); rdsdebug("skb %p data %p len %d off %u to_copy %zu -> "
scripts/recordmcount.h +1 -1
@@ -375,7 +375,7 @@ static void nop_mcount(Elf_Shdr const *const relhdr,if (mcountsym ==Elf_r_sym (relp) && !is_fake_mcount (relp)) {if (make_nop) - ret =make_nop ((void *)ehdr, shdr->sh_offset + relp->r_offset); + ret =make_nop ((void *)ehdr,_w (shdr->sh_offset) +_w (relp->r_offset));if (warn_on_notrace_sect && !once) {printf ("Section %s has mcount callers being ignored\n" , txtname);
sound/pci/hda/hda_intel.c +2 -0
@@ -3099,11 +3099,13 @@ static DEFINE_PCI_DEVICE_TABLE(azx_ids) = { .class = PCI_CLASS_MULTIMEDIA_HD_AUDIO << 8, .class_mask = 0xffffff, .driver_data = AZX_DRIVER_CTX | AZX_DCAPS_CTX_WORKAROUND | + AZX_DCAPS_NO_64BIT | AZX_DCAPS_RIRB_PRE_DELAY | AZX_DCAPS_POSFIX_LPIB }, #else /* this entry seems still valid -- i.e. without emu20kx chip */ { PCI_DEVICE(0x1102, 0x0009), .driver_data = AZX_DRIVER_CTX | AZX_DCAPS_CTX_WORKAROUND | + AZX_DCAPS_NO_64BIT | AZX_DCAPS_RIRB_PRE_DELAY | AZX_DCAPS_POSFIX_LPIB }, #endif /* Vortex86MX */
sound/pci/hda/patch_sigmatel.c +1 -0
@@ -4980,6 +4980,7 @@ static int find_mute_led_gpio(struct hda_codec *codec, int default_polarity)static int hp_blike_system (u32 subsystem_id) {switch (subsystem_id) { +case 0x103c1473 :/* HP ProBook 6550b */ case 0x103c1520 :case 0x103c1521 :case 0x103c1523 :