21 Oct, 2010

2 commits


20 Oct, 2010

4 commits

  • [Ralf: Michel's original patch only fixed N32; I replicated the same fix
    for O32.]

    Signed-off-by: Michel Thebeau
    Cc: paul.gortmaker@windriver.com
    Cc: bruce.ashfield@windriver.com
    Signed-off-by: Ralf Baechle

    Michel Thebeau
     
  • The platform specific files should be included via the platform-y
    variable.

    Signed-off-by: David Daney
    Cc: Lars-Peter Clausen
    Patchwork: https://patchwork.linux-mips.org/patch/1719/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • When running make clean, Kbuild doesn't process the .config file, so nothing
    generates a platform-y variable. We can get it to descend into the platform
    directories by setting $(obj-).

    The dec Platform file was unconditionally setting platform-, obliterating
    its previous contents and preventing some directories from being cleaned.
    This is change to an append operation '+=' to allow cavium-octeon to be
    cleaned.

    Signed-off-by: David Daney
    Cc: Sam Ravnborg
    Patchwork: https://patchwork.linux-mips.org/patch/1718/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • kvm reloads the host's fs and gs blindly, however the underlying segment
    descriptors may be invalid due to the user modifying the ldt after loading
    them.

    Fix by using the safe accessors (loadsegment() and load_gs_index()) instead
    of home grown unsafe versions.

    This is CVE-2010-3698.

    KVM-Stable-Tag.
    Signed-off-by: Avi Kivity
    Signed-off-by: Marcelo Tosatti

    Avi Kivity
     

19 Oct, 2010

1 commit

  • * 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus:
    MIPS: Enable ISA_DMA_API config to fix build failure
    MIPS: 32-bit: Fix build failure in asm/fcntl.h
    MIPS: Remove all generated vmlinuz* files on "make clean"
    MIPS: do_sigaltstack() expects userland pointers
    MIPS: Fix error values in case of bad_stack
    MIPS: Sanitize restart logics
    MIPS: secure_computing, syscall audit: syscall number should in r2, not r0.
    MIPS: Don't block signals if we'd failed to setup a sigframe

    Linus Torvalds
     

18 Oct, 2010

8 commits

  • Add ISA_DMA_API config item and select it when GENERIC_ISA_DMA enabled.
    This fixes build failure on allmodconfig like following:

    CC sound/isa/es18xx.o
    sound/isa/es18xx.c: In function 'snd_es18xx_playback1_prepare':
    sound/isa/es18xx.c:501:9: error: implicit declaration of function 'snd_dma_program'
    sound/isa/es18xx.c: In function 'snd_es18xx_playback_pointer':
    sound/isa/es18xx.c:818:3: error: implicit declaration of function 'snd_dma_pointer'
    make[3]: *** [sound/isa/es18xx.o] Error 1
    make[2]: *** [sound/isa/es18xx.o] Error 2
    make[1]: *** [sub-make] Error 2
    make: *** [all] Error 2

    Signed-off-by: Namhyung Kim
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/1717/
    Signed-off-by: Ralf Baechle

    Namhyung Kim
     
  • CC security/integrity/ima/ima_fs.o
    In file included from linux/include/linux/fcntl.h:4:0,
    from linux/security/integrity/ima/ima_fs.c:18:
    linux/arch/mips/include/asm/fcntl.h:63:2: error: expected specifier-qualifier-list before 'off_t'
    make[3]: *** [security/integrity/ima/ima_fs.o] Error 1
    make[2]: *** [security/integrity/ima/ima_fs.o] Error 2
    make[1]: *** [sub-make] Error 2
    make: *** [all] Error 2

    Signed-off-by: Namhyung Kim
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/1715/
    Signed-off-by: Ralf Baechle

    Namhyung Kim
     
  • [Ralf: I changed the patch to explicitly list all files to be deleted out
    of paranoia.]

    Signed-off-by: Wu Zhangjin
    Patchwork: http://patchwork.linux-mips.org/patch/1590/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • o32 compat does the right thing, native and n32 compat do not...

    Signed-off-by: Al Viro
    Cc: linux-kernel@vger.kernel.org
    Cc: linux-arch@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/1700/
    Signed-off-by: Ralf Baechle

    Al Viro
     
  • We want EFAULT, not -

    Signed-off-by: Al Viro
    Cc: linux-kernel@vger.kernel.org
    Cc: linux-arch@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1699/
    Signed-off-by: Ralf Baechle

    Al Viro
     
  • Put the original syscall number into ->regs[0] when we leave syscall
    with error. Use it in restart logics. Everything else will have
    it 0 since we pass through SAVE_SOME on all the ways in. Note that
    in places like bad_stack and inllegal_syscall we leave it 0 - it's not
    restartable.

    Signed-off-by: Al Viro
    Cc: linux-kernel@vger.kernel.org
    Cc: linux-arch@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1698/
    Signed-off-by: Ralf Baechle

    Al Viro
     
  • As it is, audit_syscall_entry() and secure_computing() get the
    bogus value (0, in fact)

    Signed-off-by: Al Viro
    Cc: linux-kernel@vger.kernel.org
    Cc: linux-arch@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1697/
    Signed-off-by: Ralf Baechle

    Al Viro
     
  • Signed-off-by: Al Viro
    Cc: linux-kernel@vger.kernel.org
    Cc: linux-arch@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1696/
    Signed-off-by: Ralf Baechle

    Al Viro
     

16 Oct, 2010

6 commits

  • Fixes build for me... these are what's tested in byteorder.h...

    Signed-off-by: Kyle McMartin
    Signed-off-by: Linus Torvalds

    Kyle McMartin
     
  • Signed-off-by: Kyle McMartin
    Signed-off-by: Linus Torvalds

    Kyle McMartin
     
  • Signed-off-by: Kyle McMartin
    Acked-by: Al "my fuckup" Viro
    Signed-off-by: Linus Torvalds

    Kyle McMartin
     
  • Commit a7f8388e accidentally removed it... Al explains:

    "Sorry, reordering breakage. In the signals tree here I have

    static inline void sig_set_blocked(struct sigset_t *set)
    ...

    and it's used all over the place (including quite a few places where
    we currently have sigprocmask(SIG_SETMASK, set, NULL), which is what
    it's equivalent to). With that done, m32r doesn't use _BLOCKABLE
    anywhere, so it got removed. And that chunk got picked when I'd been
    reordering the queue to pull the arch-specific fixes in front.
    Sorry."

    Signed-off-by: Kyle McMartin
    Cc: Al Viro
    Signed-off-by: Linus Torvalds

    Kyle McMartin
     
  • Fix a build error introduced by d6d1b650ae6acce73d55dd024 ("param: simple
    locking for sysfs-writable charp parameters").

    CC arch/um/kernel/trap.o
    arch/um/drivers/hostaudio_kern.c: In function 'hostaudio_open':
    arch/um/drivers/hostaudio_kern.c:204: error: '__param_dsp' undeclared (first use in this function)
    arch/um/drivers/hostaudio_kern.c:204: error: (Each undeclared identifier is reported only once
    arch/um/drivers/hostaudio_kern.c:204: error: for each function it appears in.)
    arch/um/drivers/hostaudio_kern.c: In function 'hostmixer_open_mixdev':
    arch/um/drivers/hostaudio_kern.c:265: error: '__param_mixer' undeclared (first use in this function)
    arch/um/drivers/hostaudio_kern.c:272: error: '__param_dsp' undeclared (first use in this function)

    Reported-by: Toralf Förster
    Tested-by: Toralf Förster
    Cc: Rusty Russell
    Cc: Takashi Iwai
    Cc: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    FUJITA Tomonori
     
  • * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
    ubd: fix incorrect sector handling during request restart
    ps3disk: passing wrong variable to bvec_kunmap_irq()

    Linus Torvalds
     

15 Oct, 2010

2 commits

  • Commit f81f2f7c (ubd: drop unnecessary rq->sector manipulation)
    dropped request->sector manipulation in preparation for global request
    handling cleanup; unfortunately, it incorrectly assumed that the
    updated sector wasn't being used.

    ubd tries to issue as many requests as possible to io_thread. When
    issuing fails due to memory pressure or other reasons, the device is
    put on the restart list and issuing stops. On IO completion, devices
    on the restart list are scanned and IO issuing is restarted.

    ubd issues IOs sg-by-sg and issuing can be stopped in the middle of a
    request, so each device on the restart queue needs to remember where
    to restart in its current request. ubd needs to keep track of the
    issue position itself because,

    * blk_rq_pos(req) is now updated by the block layer to keep track of
    _completion_ position.

    * Multiple io_req's for the current request may be in flight, so it's
    difficult to tell where blk_rq_pos(req) currently is.

    Add ubd->rq_pos to keep track of the issue position and use it to
    correctly restart io_req issue.

    Signed-off-by: Tejun Heo
    Reported-by: Richard Weinberger
    Tested-by: Richard Weinberger
    Tested-by: Chris Frey
    Cc: stable@kernel.org
    Signed-off-by: Jens Axboe

    Tejun Heo
     
  • akiphie points out that a.out core-dumps have that odd task struct
    dumping that was never used and was never really a good idea (it goes
    back into the mists of history, probably the original core-dumping
    code). Just remove it.

    Also do the access_ok() check on dump_write(). It probably doesn't
    matter (since normal filesystems all seem to do it anyway), but he
    points out that it's normally done by the VFS layer, so ...

    [ I suspect that we should possibly do "vfs_write()" instead of
    calling ->write directly. That also does the whole fsnotify and write
    statistics thing, which may or may not be a good idea. ]

    And just to be anal, do this all for the x86-64 32-bit a.out emulation
    code too, even though it's not enabled (and won't currently even
    compile)

    Reported-by: akiphie
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     

14 Oct, 2010

3 commits

  • * master.kernel.org:/home/rmk/linux-2.6-arm:
    ARM: relax ioremap prohibition (309caa9) for -final and -stable
    ARM: 6440/1: ep93xx: DMA: fix channel_disable
    cpuimx27: fix i2c bus selection
    cpuimx27: fix compile when ULPI is selected
    ARM: 6435/1: Fix HWCAP_TLS flag for ARM11MPCore/Cortex-A9
    ARM: 6436/1: AT91: Fix power-saving in idle-mode on 926T processors
    ARM: fix section mismatch warnings in Versatile Express
    ARM: 6412/1: kprobes-decode: add support for MOVW instruction
    ARM: 6419/1: mmu: Fix MT_MEMORY and MT_MEMORY_NONCACHED pte flags
    ARM: 6416/1: errata: faulty hazard checking in the Store Buffer may lead to data corruption

    Linus Torvalds
     
  • …/git/tmlind/linux-omap-2.6

    * 'omap-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6:
    omap: iommu-load cam register before flushing the entry

    Linus Torvalds
     
  • …git/tip/linux-2.6-tip

    * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86, numa: For each node, register the memory blocks actually used
    x86, AMD, MCE thresholding: Fix the MCi_MISCj iteration order
    x86, mce, therm_throt.c: Fix missing curly braces in error handling logic

    Linus Torvalds
     

13 Oct, 2010

3 commits


12 Oct, 2010

1 commit

  • Russ reported SGI UV is broken recently. He said:

    | The SRAT table shows that memory range is spread over two nodes.
    |
    | SRAT: Node 0 PXM 0 100000000-800000000
    | SRAT: Node 1 PXM 1 800000000-1000000000
    | SRAT: Node 0 PXM 0 1000000000-1080000000
    |
    |Previously, the kernel early_node_map[] would show three entries
    |with the proper node.
    |
    |[ 0.000000] 0: 0x00100000 -> 0x00800000
    |[ 0.000000] 1: 0x00800000 -> 0x01000000
    |[ 0.000000] 0: 0x01000000 -> 0x01080000
    |
    |The problem is recent community kernel early_node_map[] shows
    |only two entries with the node 0 entry overlapping the node 1
    |entry.
    |
    | 0: 0x00100000 -> 0x01080000
    | 1: 0x00800000 -> 0x01000000

    After looking at the changelog, Found out that it has been broken for a while by
    following commit

    |commit 8716273caef7f55f39fe4fc6c69c5f9f197f41f1
    |Author: David Rientjes
    |Date: Fri Sep 25 15:20:04 2009 -0700
    |
    | x86: Export srat physical topology

    Before that commit, register_active_regions() is called for every SRAT memory
    entry right away.

    Use nodememblk_range[] instead of nodes[] in order to make sure we
    capture the actual memory blocks registered with each node. nodes[]
    contains an extended range which spans all memory regions associated
    with a node, but that does not mean that all the memory in between are
    included.

    Reported-by: Russ Anderson
    Tested-by: Russ Anderson
    Signed-off-by: Yinghai Lu
    LKML-Reference:
    Acked-by: David Rientjes
    Cc: 2.6.33 .34 .35 .36
    Signed-off-by: H. Peter Anvin

    Yinghai Lu
     

11 Oct, 2010

3 commits

  • The VMCB is reset whenever we receive a startup IPI, so Linux is setting
    TSC back to zero happens very late in the boot process and destabilizing
    the TSC. Instead, just set TSC to zero once at VCPU creation time.

    Why the separate patch? So git-bisect is your friend.

    Signed-off-by: Zachary Amsden
    Signed-off-by: Marcelo Tosatti

    Zachary Amsden
     
  • On reset, VMCB TSC should be set to zero. Instead, code was setting
    tsc_offset to zero, which passes through the underlying TSC.

    Signed-off-by: Zachary Amsden
    Signed-off-by: Marcelo Tosatti

    Zachary Amsden
     
  • This fixes possible cases of not collecting valid error info in
    the MCE error thresholding groups on F10h hardware.

    The current code contains a subtle problem of checking only the
    Valid bit of MSR0000_0413 (which is MC4_MISC0 - DRAM
    thresholding group) in its first iteration and breaking out if
    the bit is cleared.

    But (!), this MSR contains an offset value, BlkPtr[31:24], which
    points to the remaining MSRs in this thresholding group which
    might contain valid information too. But if we bail out only
    after we checked the valid bit in the first MSR and not the
    block pointer too, we miss that other information.

    The thing is, MC4_MISC0[BlkPtr] is not predicated on
    MCi_STATUS[MiscV] or MC4_MISC0[Valid] and should be checked
    prior to iterating over the MCI_MISCj thresholding group,
    irrespective of the MC4_MISC0[Valid] setting.

    Signed-off-by: Borislav Petkov
    Cc:
    Signed-off-by: Ingo Molnar

    Borislav Petkov
     

10 Oct, 2010

2 commits


08 Oct, 2010

5 commits

  • Recent clean of i.MX devices registration changed the i2C bus number
    selected for our platform (Freescale start peripheral ID at 1, kernel
    now start it at 0 so i.MX27's i2c 1 is kernel's i2c 0).
    Without this fix, i2c is unusable on this platform.

    Signed-off-by: Eric Bénard
    Acked-by: Uwe Kleine-König
    Signed-off-by: Sascha Hauer

    Eric Bénard
     
  • without this patch we get :
    arch/arm/mach-imx/built-in.o: In function `eukrea_cpuimx27_init':
    eukrea_mbimx27-baseboard.c:(.init.text+0x44c): undefined reference to `mxc_ulpi_access_ops'

    Signed-off-by: Eric Bénard
    Signed-off-by: Sascha Hauer

    Eric Bénard
     
  • Commit 14eff1812679c76564b775aa95cdd378965f6cfb added proper
    detection for ARM11MPCore/Cortex-A9 instead of detecting them
    as ARMv7. However, it was missing the HWCAP_TLS flags.

    HWCAP_TLS is needed if support for earlier ARMv6 is compiled
    into the same kernel. Without HWCAP_TLS flags the userspace
    won't work unless nosmp is specified:

    Kernel panic - not syncing: Attempted to kill init!
    CPU0: stopping
    ] (unwind_backtrace+0x0/0xec) from [] (do_IPI+0xfc/0x184)
    ] (do_IPI+0xfc/0x184) from [] (__irq_svc+0x9c/0x160)
    Exception stack(0xc0565f80 to 0xc0565fc8)
    5f80: 00000001 c05772a0 00000000 00003a61 c0564000 c05cf500 c003603c c0578600
    5fa0: 80033ef0 410fc091 0000001f 00000000 00000000 c0565fc8 c00b91f8 c0057cb4
    5fc0: 20000013 ffffffff
    [] (__irq_svc+0x9c/0x160) from [] (default_idle+0x30/0x38)
    [] (default_idle+0x30/0x38) from [] (cpu_idle+0x9c/0xf8)
    [] (cpu_idle+0x9c/0xf8) from [] (start_kernel+0x2a4/0x300)
    [] (start_kernel+0x2a4/0x300) from [] (0x80008084)

    Signed-off-by: Tony Lindgren
    Signed-off-by: Russell King

    Tony Lindgren
     
  • According to Atmel, their 926T processors (AT91 post RM9200) requires
    'Wait for Interrupt' mode be entered right after disabling the processor clock
    in order to minimise current consumption when idle, so do both provided we're
    not running on a 920T (an RM9200).

    Furthermore, get rid of the #ifndef CONFIG_DEBUG_KERNEL, since arch_idle()
    can be turned off completely with the kernel parameter 'nohlt'.

    Cc: Andrew Victor
    Signed-off-by: Anders Larsen
    Signed-off-by: Russell King

    Anders Larsen
     
  • When the feature PTS is not supported by CPU, the sysfile
    package_power_limit_count for package should not be
    generated.

    This patch is used for fixing missing { and }.

    The patch is not complete as there are other error handling
    problems in this function - but that can wait until the
    merge window.

    Signed-off-by: Jin Dongming
    Reviewed-by: Fenghua Yu
    Acked-by: Jean Delvare
    Cc: Brown Len
    Cc: Guenter Roeck
    Cc: Hidetoshi Seto
    Cc: lm-sensors@lm-sensors.org
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Jin Dongming