1. 03 Oct, 2014 1 commit
    • Geert Uytterhoeven's avatar
      m68k: Disable/restore interrupts in hwreg_present()/hwreg_write() · e4dc601b
      Geert Uytterhoeven authored
      hwreg_present() and hwreg_write() temporarily change the VBR register to
      another vector table. This table contains a valid bus error handler
      only, all other entries point to arbitrary addresses.
      
      If an interrupt comes in while the temporary table is active, the
      processor will start executing at such an arbitrary address, and the
      kernel will crash.
      
      While most callers run early, before interrupts are enabled, or
      explicitly disable interrupts, Finn Thain pointed out that macsonic has
      one callsite that doesn't, causing intermittent boot crashes.
      There's another unsafe callsite in hilkbd.
      
      Fix this for good by disabling and restoring interrupts inside
      hwreg_present() and hwreg_write().
      
      Explicitly disabling interrupts can be removed from the callsites later.
      Reported-by: default avatarFinn Thain <fthain@telegraphics.com.au>
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Cc: stable@vger.kernel.org
      e4dc601b
  2. 28 Sep, 2014 2 commits
    • Geert Uytterhoeven's avatar
      m68k: AMIGA_BUILTIN_SERIAL should depend on TTY · fd4d453b
      Geert Uytterhoeven authored
      If CONFIG_TTY=n:
      
      drivers/built-in.o: In function `rs_flush_buffer':
      amiserial.c:(.text+0x1f626): undefined reference to `tty_wakeup'
      drivers/built-in.o: In function `transmit_chars':
      amiserial.c:(.text+0x1f6c8): undefined reference to `tty_wakeup'
      drivers/built-in.o: In function `change_speed':
      amiserial.c:(.text+0x1f80a): undefined reference to `tty_termios_baud_rate'
      amiserial.c:(.text+0x1f88c): undefined reference to `tty_termios_baud_rate'
      drivers/built-in.o: In function `check_modem_status':
      amiserial.c:(.text+0x1faa6): undefined reference to `tty_hangup'
      amiserial.c:(.text+0x1faec): undefined reference to `tty_wakeup'
      drivers/built-in.o: In function `get_serial_info':
      amiserial.c:(.text+0x1fb88): undefined reference to `tty_lock'
      amiserial.c:(.text+0x1fbc0): undefined reference to `tty_unlock'
      drivers/built-in.o: In function `rs_open':
      amiserial.c:(.text+0x1fdc6): undefined reference to `tty_port_block_til_ready'
      drivers/built-in.o: In function `set_serial_info':
      amiserial.c:(.text+0x1fe0c): undefined reference to `tty_lock'
      amiserial.c:(.text+0x1fea0): undefined reference to `tty_unlock'
      amiserial.c:(.text+0x1fed0): undefined reference to `tty_unlock'
      amiserial.c:(.text+0x1ffaa): undefined reference to `tty_unlock'
      drivers/built-in.o: In function `receive_chars':
      amiserial.c:(.text+0x2005c): undefined reference to `do_SAK'
      amiserial.c:(.text+0x200e0): undefined reference to `tty_insert_flip_string_flags'
      amiserial.c:(.text+0x2013c): undefined reference to `tty_insert_flip_string_flags'
      amiserial.c:(.text+0x20148): undefined reference to `tty_flip_buffer_push'
      drivers/built-in.o: In function `rs_close':
      amiserial.c:(.text+0x20744): undefined reference to `tty_port_close_start'
      amiserial.c:(.text+0x2078a): undefined reference to `tty_ldisc_flush'
      amiserial.c:(.text+0x20798): undefined reference to `tty_port_close_end'
      drivers/built-in.o: In function `amiga_serial_probe':
      amiserial.c:(.init.text+0x96a): undefined reference to `__tty_alloc_driver'
      amiserial.c:(.init.text+0x9c0): undefined reference to `tty_std_termios'
      amiserial.c:(.init.text+0x9e6): undefined reference to `tty_set_operations'
      amiserial.c:(.init.text+0xa3e): undefined reference to `tty_port_init'
      amiserial.c:(.init.text+0xa5c): undefined reference to `tty_port_link_device'
      amiserial.c:(.init.text+0xa6c): undefined reference to `tty_register_driver'
      amiserial.c:(.init.text+0xb4a): undefined reference to `tty_unregister_driver'
      amiserial.c:(.init.text+0xb58): undefined reference to `tty_port_destroy'
      amiserial.c:(.init.text+0xb64): undefined reference to `put_tty_driver'
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      fd4d453b
    • Geert Uytterhoeven's avatar
      m68k: Add missing ioport_unmap() · a000dfc2
      Geert Uytterhoeven authored
      drivers/net/ethernet/cirrus/cs89x0.c: In function ‘cs89x0_ioport_probe’:
      drivers/net/ethernet/cirrus/cs89x0.c:1629: error: implicit declaration of function ‘ioport_unmap’
      
      Add the missing ioport_unmap() implementation, and convert ioport_map()
      from a macro to a static inline function while we're at it (both copied
      from asm-generic).
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      a000dfc2
  3. 14 Sep, 2014 1 commit
    • Geert Uytterhoeven's avatar
      m68k/atari - stram: Add missing #include <linux/ioport.h> · 9aa59cac
      Geert Uytterhoeven authored
      If CONFIG_BLOCK=n:
      
      arch/m68k/atari/stram.c:44: error: variable ‘stram_pool’ has initializer but incomplete type
      arch/m68k/atari/stram.c:45: error: unknown field ‘name’ specified in initializer
      arch/m68k/atari/stram.c:46: warning: excess elements in struct initializer
      arch/m68k/atari/stram.c:46: warning: (near initialization for ‘stram_pool’)
      arch/m68k/atari/stram.c: In function ‘atari_stram_reserve_pages’:
      arch/m68k/atari/stram.c:97: error: invalid use of undefined type ‘struct resource’
      ...
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      9aa59cac
  4. 07 Sep, 2014 11 commits
  5. 06 Sep, 2014 6 commits
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 2b12164b
      Linus Torvalds authored
      Pull kvm fixes from Paolo Bonzini:
       "A smattering of bug fixes across most architectures"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        powerpc/kvm/cma: Fix panic introduces by signed shift operation
        KVM: s390/mm: Fix guest storage key corruption in ptep_set_access_flags
        KVM: s390/mm: Fix storage key corruption during swapping
        arm/arm64: KVM: Complete WFI/WFE instructions
        ARM/ARM64: KVM: Nuke Hyp-mode tlbs before enabling MMU
        KVM: s390/mm: try a cow on read only pages for key ops
        KVM: s390: Fix user triggerable bug in dead code
      2b12164b
    • Linus Torvalds's avatar
      Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · 56c22854
      Linus Torvalds authored
      Pull ARM SoC fixes from Kevin Hilman:
       "Another round of fixes from arm-soc land, which are mostly DT fixes
        for:
      
         - OMAP: handful of DT fixes devices on newly supported hardware
         - davinci: fix 2nd EDMA channel
         - ux500: extend previous pinctrl fix to another board
         - at91: clock registration fixes, compatibility string precision
      
        And one more fix for event cleanup in drivers/bus/arm-ccn"
      
      * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
        bus: arm-ccn: Move event cleanup routine
        ARM: at91/dt: rm9200: fix usb clock definition
        ARM: at91: rm9200: fix clock registration
        ARM: at91/dt: sam9g20: set at91sam9g20 pllb driver
        ARM: dts: dra7-evm: Add vtt regulator support
        ARM: dts: dra7-evm: Fix spi1 mux documentation
        ARM: dts: am43x-epos-evm: Disable QSPI to prevent conflict with GPMC-NAND
        ARM: OMAP2+: gpmc: Don't complain if wait pin is used without r/w monitoring
        ARM: dts: am43xx-epos-evm: Don't use read/write wait monitoring
        ARM: dts: am437x-gp-evm: Don't use read/write wait monitoring
        ARM: dts: am437x-gp-evm: Use BCH16 ECC scheme instead of BCH8
        ARM: dts: am43x-epos-evm: Use BCH16 ECC scheme instead of BCH8
        ARM: dts: am4372: fix USB regs size
        ARM: dts: am437x-gp: switch i2c0 to 100KHz
        ARM: dts: dra7-evm: Fix 8th NAND partition's name
        ARM: dts: dra7-evm: Fix i2c3 pinmux and frequency
        ARM: ux500: disable msp2 node on Snowball
        ARM: edma: Fix configuration parsing for SoCs with multiple eDMA3 CC
        ARM: dts: set 'ti,set-rate-parent' for dpll4_m5x2 clock
      56c22854
    • Linus Torvalds's avatar
      Merge tag 'xfs-for-linus-3.17-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/dgc/linux-xfs · 11e97398
      Linus Torvalds authored
      Pull xfs fixes from Dave Chinner:
       "The fixes all address recently discovered data corruption issues.
      
        The original Direct IO issue was discovered by Chris Mason @ Facebook
        on a production workload which mixed buffered reads with direct reads
        and writes IO to the same file.  The fix for that exposed other issues
        with page invalidation (exposed by millions of fsx operations) failing
        due to dirty buffers beyond EOF.
      
        Finally, the collapse_range code could also cause problems due to
        racing writeback changing the extent map while it was being shifted
        around.  The commits for that problem are simple mitigation fixes that
        prevent the problem from occuring.  A more robust fix for 3.18 that
        addresses the underlying problem is currently being worked on by
        Brian.
      
        Summary of fixes:
         - a direct IO read/buffered read data corruption
         - the associated fallout from the DIO data corruption fix
         - collapse range bugs that are potential data corruption issues"
      
      * tag 'xfs-for-linus-3.17-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/dgc/linux-xfs:
        xfs: trim eofblocks before collapse range
        xfs: xfs_file_collapse_range is delalloc challenged
        xfs: don't log inode unless extent shift makes extent modifications
        xfs: use ranged writeback and invalidation for direct IO
        xfs: don't zero partial page cache pages during O_DIRECT writes
        xfs: don't zero partial page cache pages during O_DIRECT writes
        xfs: don't dirty buffers beyond EOF
      11e97398
    • Linus Torvalds's avatar
      Merge tag 'for-linus-20140905' of git://git.infradead.org/linux-mtd · 925e0ea4
      Linus Torvalds authored
      Pull mtd fixes from Brian Norris:
       "Two trivial MTD updates for 3.17-rc4:
      
         - a tiny comment tweak, to kill a bunch of DocBook warnings added
           during the merge window
      
         - a small fixup to the OTP routines' error handling"
      
      * tag 'for-linus-20140905' of git://git.infradead.org/linux-mtd:
        mtd: nand: fix DocBook warnings on nand_sdr_timings doc
        mtd: cfi_cmdset_0002: check return code for get_chip()
      925e0ea4
    • Thomas Gleixner's avatar
      timekeeping: Update timekeeper before updating vsyscall and pvclock · 9bf2419f
      Thomas Gleixner authored
      The update_walltime() code works on the shadow timekeeper to make the
      seqcount protected region as short as possible. But that update to the
      shadow timekeeper does not update all timekeeper fields because it's
      sufficient to do that once before it becomes life. One of these fields
      is tkr.base_mono. That stays stale in the shadow timekeeper unless an
      operation happens which copies the real timekeeper to the shadow.
      
      The update function is called after the update calls to vsyscall and
      pvclock. While not correct, it did not cause any problems because none
      of the invoked update functions used base_mono.
      
      commit cbcf2dd3 (x86: kvm: Make kvm_get_time_and_clockread()
      nanoseconds based) changed that in the kvm pvclock update function, so
      the stale mono_base value got used and caused kvm-clock to malfunction.
      
      Put the update where it belongs and fix the issue.
      Reported-by: default avatarChris J Arges <chris.j.arges@canonical.com>
      Reported-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Cc: Gleb Natapov <gleb@kernel.org>
      Cc: John Stultz <john.stultz@linaro.org>
      Link: http://lkml.kernel.org/r/alpine.DEB.2.10.1409050000570.3333@nanosSigned-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      9bf2419f
    • Thomas Gleixner's avatar
      compat: nanosleep: Clarify error handling · 849151dd
      Thomas Gleixner authored
      The error handling in compat_sys_nanosleep() is correct, but
      completely non obvious. Document it and restrict it to the
      -ERESTART_RESTARTBLOCK return value for clarity.
      Reported-by: default avatarKees Cook <keescook@chromium.org>
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      849151dd
  6. 05 Sep, 2014 17 commits
  7. 04 Sep, 2014 2 commits