1. 13 12月, 2013 2 次提交
    • L
      futex: move user address verification up to common code · 5cdec2d8
      Linus Torvalds 提交于
      When debugging the read-only hugepage case, I was confused by the fact
      that get_futex_key() did an access_ok() only for the non-shared futex
      case, since the user address checking really isn't in any way specific
      to the private key handling.
      
      Now, it turns out that the shared key handling does effectively do the
      equivalent checks inside get_user_pages_fast() (it doesn't actually
      check the address range on x86, but does check the page protections for
      being a user page).  So it wasn't actually a bug, but the fact that we
      treat the address differently for private and shared futexes threw me
      for a loop.
      
      Just move the check up, so that it gets done for both cases.  Also, use
      the 'rw' parameter for the type, even if it doesn't actually matter any
      more (it's a historical artifact of the old racy i386 "page faults from
      kernel space don't check write protections").
      
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      5cdec2d8
    • L
      futex: fix handling of read-only-mapped hugepages · f12d5bfc
      Linus Torvalds 提交于
      The hugepage code had the exact same bug that regular pages had in
      commit 7485d0d3 ("futexes: Remove rw parameter from
      get_futex_key()").
      
      The regular page case was fixed by commit 9ea71503 ("futex: Fix
      regression with read only mappings"), but the transparent hugepage case
      (added in a5b338f2: "thp: update futex compound knowledge") case
      remained broken.
      
      Found by Dave Jones and his trinity tool.
      Reported-and-tested-by: NDave Jones <davej@fedoraproject.org>
      Cc: stable@kernel.org # v2.6.38+
      Acked-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Mel Gorman <mgorman@suse.de>
      Cc: Darren Hart <dvhart@linux.intel.com>
      Cc: Andrea Arcangeli <aarcange@redhat.com>
      Cc: Oleg Nesterov <oleg@redhat.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f12d5bfc
  2. 11 12月, 2013 3 次提交
  3. 10 12月, 2013 23 次提交
  4. 09 12月, 2013 6 次提交
    • T
      crypto: scatterwalk - Use sg_chain_ptr on chain entries · 389a5390
      Tom Lendacky 提交于
      Now that scatterwalk_sg_chain sets the chain pointer bit the sg_page
      call in scatterwalk_sg_next hits a BUG_ON when CONFIG_DEBUG_SG is
      enabled. Use sg_chain_ptr instead of sg_page on a chain entry.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NTom Lendacky <thomas.lendacky@amd.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      389a5390
    • L
      Merge tag 'tty-3.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 3f02ff5c
      Linus Torvalds 提交于
      Pull tty fix from Greg KH:
       "Here is a single n_tty fix for 3.13-rc3 that resolves a regression in
        3.12 that has been reported"
      
      * tag 'tty-3.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        n_tty: Fix missing newline echo
      3f02ff5c
    • L
      Merge tag 'staging-3.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 2d4d4a8d
      Linus Torvalds 提交于
      Pull staging driver fixes from Greg KH:
       "Here are some bugfixes for the staging and IIO drivers for 3.13-rc3.
      
        The resolve the vm memory issue in the tidspbridge driver, fix a
        much-reported build failure in an ARM driver, and some other IIO
        bugfixes that have been reported"
      
      * tag 'staging-3.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        Staging: TIDSPBRIDGE: Use vm_iomap_memory for mmap-ing instead of remap_pfn_range
        Fix build failure for gp2ap020a00f.c
        iio: hid-sensors: Fix power and report state
        HID: hid-sensor-hub: Add logical min and max
      2d4d4a8d
    • L
      Merge tag 'char-misc-3.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · f64001ef
      Linus Torvalds 提交于
      Pull char/misc driver fixes from Greg KH:
       "Nothing huge, just a few small bugfixes for problems reported, and a
        device id update"
      
      * tag 'char-misc-3.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        mei: add 9 series PCH mei device ids
        drivers/char/i8k.c: add Dell XPLS L421X
        MAINTAINERS: add HSI subsystem
        misc: mic: Suppress memory space sparse warnings
        misc: mic: Fix endianness issues.
        misc: mic: Fix user space namespace pollution from mic_common.h.
        misc: mic: Bug fix for sysfs poll usage.
        misc: mic: Minor bug fix in 'retry' loops.
        misc: mic: Change mic_notify(...) to return true.
        extcon: remove freed groups caused the panic or warning in unregister flow
        extcon: arizona: Get pdata from arizona structure not device
      f64001ef
    • L
      Merge tag 'usb-3.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · b19d69c7
      Linus Torvalds 提交于
      Pull USB fixes from Greg KH:
       "Here are a bunch of USB fixes for 3.13-rc3.
      
        Nothing major, but we seem to have an argument about a XHCI fix, so
        I'm not including a revert that Sarah requested, because that breaks a
        USB network driver, and I can't revert the USB network driver fix
        without reintroducing other bugs that it fixed.  So as it is,
        everything should now be working.  Worse case, I can revert the XHCI
        fix before 3.13-final is out, but it seems to work well here with my
        testing, so all should be good.
      
        Other than that, some driver updates based on reports"
      
      * tag 'usb-3.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (40 commits)
        usb: hub: Use correct reset for wedged USB3 devices that are NOTATTACHED
        usb: ohci-pxa27x: include linux/dma-mapping.h
        USB: cdc-acm: Added support for the Lenovo RD02-D400 USB Modem
        usb: tools: fix a regression issue that gcc can't link to pthread
        USB: switch maintainership of chipidea to Peter
        USB: pl2303: fixed handling of CS5 setting
        USB: ftdi_sio: fixed handling of unsupported CSIZE setting
        USB: mos7840: correct handling of CS5 setting
        USB: spcp8x5: correct handling of CS5 setting
        usb: wusbcore: fix deadlock in wusbhc_gtk_rekey
        usb: wusbcore: do device lookup while holding the hc mutex
        usb: wusbcore: send keepalives to unauthenticated devices
        USB: option: support new huawei devices
        USB: serial: option: blacklist interface 1 for Huawei E173s-6
        usb: xhci: Link TRB must not occur within a USB payload burst
        usb: gadget: f_mass_storage: call try_to_freeze only when its safe
        usb: gadget: tcm_usb_gadget: mark bot_cleanup_old_alt static
        usb: gadget: ffs: fix sparse warning
        usb: gadget: zero: module parameters can be static
        usb: gadget: storage: fix sparse warning
        ...
      b19d69c7
    • L
      Merge tag 'arm64-stable' of git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas/linux-aarch64 · 7d49efe2
      Linus Torvalds 提交于
      Pull ARM64 fixes from Catalin Marinas:
       - Page table fixes (PROT_NONE, shareability attribute, TLB
         invalidation)
       - Secondary CPUs entry endianness fix
       - Make NR_CPUS default to 8
      
      * tag 'arm64-stable' of git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas/linux-aarch64:
        arm64: mm: Fix PMD_SECT_PROT_NONE definition
        arm64: Fix memory shareability attribute for ioremap_wc/cache
        arm64: kernel: add code to set cpu boot mode to secondary_entry shim
        arm64: make default NR_CPUS 8
        arm64: ensure completion of TLB invalidatation
      7d49efe2
  5. 08 12月, 2013 2 次提交
  6. 07 12月, 2013 4 次提交
    • G
      powerpc/512x: dts: remove misplaced IRQ spec from 'soc' node · c65ec135
      Gerhard Sittig 提交于
      the 'soc' node in the common .dtsi for MPC5121 has an '#interrupt-cells'
      property although this node is not an interrupt controller
      
      remove this erroneously placed property because starting with v3.13-rc1
      lookup and resolution of 'interrupts' specs for peripherals gets misled,
      emits 'no irq domain found' WARN() messages and breaks the boot process
      
        irq: no irq domain found for /soc@80000000 !
        ------------[ cut here ]------------
        WARNING: at drivers/of/platform.c:171
        Modules linked in:
        CPU: 0 PID: 1 Comm: swapper Tainted: G        W    3.13.0-rc1-00001-g8a66234 #8
        task: df823bb0 ti: df834000 task.ti: df834000
        NIP: c02b5190 LR: c02b5180 CTR: c01cf4e0
        REGS: df835c50 TRAP: 0700   Tainted: G        W     (3.13.0-rc1-00001-g8a66234)
        MSR: 00029032 <EE,ME,IR,DR,RI>  CR: 229a9d42  XER: 20000000
      
        GPR00: c02b5180 df835d00 df823bb0 00000000 00000000 df835b18 ffffffff 00000308
        GPR08: c0479cc0 c0480000 c0479cc0 00000308 00000308 00000000 c00040fc 00000000
        GPR16: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 df850880
        GPR24: df84d670 00000000 00000001 df8561a0 dffffccc df85089c 00000020 00000001
        NIP [c02b5190] of_device_alloc+0xf4/0x1a0
        LR [c02b5180] of_device_alloc+0xe4/0x1a0
        Call Trace:
        [df835d00] [c02b5180] of_device_alloc+0xe4/0x1a0 (unreliable)
        [df835d50] [c02b5278] of_platform_device_create_pdata+0x3c/0xc8
        [df835d70] [c02b53fc] of_platform_bus_create+0xf8/0x170
        [df835dc0] [c02b5448] of_platform_bus_create+0x144/0x170
        [df835e10] [c02b55a8] of_platform_bus_probe+0x98/0xe8
        [df835e30] [c0437508] mpc512x_init+0x28/0x1c4
        [df835e70] [c0435de8] ppc_init+0x4c/0x60
        [df835e80] [c0003b28] do_one_initcall+0x150/0x1a4
        [df835ef0] [c0432048] kernel_init_freeable+0x114/0x1c0
        [df835f30] [c0004114] kernel_init+0x18/0x124
        [df835f40] [c000e910] ret_from_kernel_thread+0x5c/0x64
        Instruction dump:
        409effd4 57c9103a 57de2834 7c89f050 7f83e378 7c972214 7f45d378 48001f55
        7c63d278 7c630034 5463d97e 687a0001 <0f1a0000> 2f990000 387b0010 939b0098
        ---[ end trace 2257f10e5a20cbdd ]---
      
        ...
        irq: no irq domain found for /soc@80000000 !
        fsl-diu-fb 80002100.display: could not get DIU IRQ
        fsl-diu-fb: probe of 80002100.display failed with error -22
        irq: no irq domain found for /soc@80000000 !
        mpc512x_dma 80014000.dma: Error mapping IRQ!
        mpc512x_dma: probe of 80014000.dma failed with error -22
        ...
        irq: no irq domain found for /soc@80000000 !
        fs_enet: probe of 80002800.ethernet failed with error -22
        ...
        irq: no irq domain found for /soc@80000000 !
        mpc5121-rtc 80000a00.rtc: mpc5121_rtc_probe: could not request irq: 0
        mpc5121-rtc: probe of 80000a00.rtc failed with error -22
        ...
      
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: linuxppc-dev@lists.ozlabs.org
      Cc: devicetree@vger.kernel.org
      Signed-off-by: NGerhard Sittig <gsi@denx.de>
      Signed-off-by: NAnatolij Gustschin <agust@denx.de>
      c65ec135
    • L
      Linux 3.13-rc3 · 374b1057
      Linus Torvalds 提交于
      374b1057
    • S
      arm64: mm: Fix PMD_SECT_PROT_NONE definition · db4ed53c
      Steve Capper 提交于
      Modify the value of PMD_SECT_PROT_NONE to match that of PTE_NONE. This
      should have been in commit 3676f9ef (Move PTE_PROT_NONE higher up).
      Signed-off-by: NSteve Capper <steve.capper@linaro.org>
      Cc: <stable@vger.kernel.org> # 3.11+: 3676f9ef: arm64: Move PTE_PROT_NONE higher up
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      db4ed53c
    • C
      arm64: Fix memory shareability attribute for ioremap_wc/cache · 2f7dc602
      Catalin Marinas 提交于
      Write-combine and cacheable mappings use Normal memory on arm64. On SMP
      systems, the pte needs the shareability bit which is set in
      pgprot_default. Use this for defining PROT_DEFAULT used by ioremap_wc
      and ioremap_cache (Device memory is shareable by default, does not need
      additional attributes).
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      2f7dc602