Skip to content
  1. Nov 23, 2016
  2. Nov 21, 2016
    • Borislav Petkov's avatar
      x86/MCE/AMD: Fix thinko about thresholding_en · 254fe9c7
      Borislav Petkov authored
      
      
      So adding thresholding_en et al was a good thing for removing the
      per-CPU thresholding callback, i.e., threshold_cpu_callback.
      
      But, in order for it to work and especially that test in
      mce_threshold_create_device() so that all thresholding banks get
      properly created and not the whole thing to fail with a NULL ptr
      dereference at mce_cpu_pre_down() when we offline the CPUs, we need to
      set the thresholding_en flag *before* we start creating the devices.
      
      Yap, it failed because thresholding_en wasn't set at the time
      we were creating the banks so we didn't create any and then at
      mce_cpu_pre_down() -> mce_threshold_remove_device() time, we would blow
      up.
      
      And the fix is actually easy: we have thresholding on the system when we
      have managed to set the thresholding vector to amd_threshold_interrupt()
      earlier in mce_amd_feature_init() while we were picking apart the
      thresholding banks and what is set and what not.
      
      So let's do that.
      
      Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Yazen Ghannam <Yazen.Ghannam@amd.com>
      Fixes: 4d7b02d5
      
       ("x86/mcheck: Split threshold_cpu_callback into two callbacks")
      Link: http://lkml.kernel.org/r/20161119103402.5227-1-bp@alien8.de
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      254fe9c7
  3. Nov 18, 2016
    • Thomas Gleixner's avatar
      kernel/printk: Block cpuhotplug callback when tasks are frozen · f97960fb
      Thomas Gleixner authored
      The recent conversion of the console hotplug notifier to the state machine
      missed the fact, that the notifier only operated on the non frozen
      transitions. As a consequence the console_lock/unlock() pair is also
      invoked during suspend, which results in a lockdep warning.
      
      Restore the previous state by making the lock/unlock conditional on
      !tasks_frozen.
      
      Fixes: 90b14889
      
       ("kernel/printk: Convert to hotplug state machine")
      Reported-and-tested-by: default avatarBorislav Petkov <bp@alien8.de>
      Link: http://lkml.kernel.org/r/alpine.DEB.2.20.1611171729320.3645@nanos
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
      f97960fb
  4. Nov 16, 2016
  5. Nov 10, 2016
  6. Nov 06, 2016
    • Linus Torvalds's avatar
      Linux 4.9-rc4 · bc33b0ca
      Linus Torvalds authored
      bc33b0ca
    • Linus Torvalds's avatar
      Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · bd060ac0
      Linus Torvalds authored
      Pull i2c fix from Wolfram Sang:
       "A bugfix for the I2C core fixing a (rare) race condition"
      
      * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: core: fix NULL pointer dereference under race condition
      bd060ac0
    • Linus Torvalds's avatar
      Merge branches 'sched-urgent-for-linus' and 'core-urgent-for-linus' of... · ffbcbfca
      Linus Torvalds authored
      Merge branches 'sched-urgent-for-linus' and 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
      
      Pull stack vmap fixups from Thomas Gleixner:
       "Two small patches related to sched_show_task():
      
         - make sure to hold a reference on the task stack while accessing it
      
         - remove the thread_saved_pc printout
      
        .. and add a sanity check into release_task_stack() to catch problems
        with task stack references"
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/core: Remove pointless printout in sched_show_task()
        sched/core: Fix oops in sched_show_task()
      
      * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        fork: Add task stack refcounting sanity check and prevent premature task stack freeing
      ffbcbfca
    • Linus Torvalds's avatar
      Merge tag 'md/4.9-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md · 6c286e81
      Linus Torvalds authored
      Pull MD fixes from Shaohua Li:
       "There are several bug fixes queued:
      
         - fix raid5-cache recovery bugs
      
         - fix discard IO error handling for raid1/10
      
         - fix array sync writes bogus position to superblock
      
         - fix IO error handling for raid array with external metadata"
      
      * tag 'md/4.9-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md:
        md: be careful not lot leak internal curr_resync value into metadata. -- (all)
        raid1: handle read error also in readonly mode
        raid5-cache: correct condition for empty metadata write
        md: report 'write_pending' state when array in sync
        md/raid5: write an empty meta-block when creating log super-block
        md/raid5: initialize next_checkpoint field before use
        RAID10: ignore discard error
        RAID1: ignore discard error
      6c286e81
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · e12d8d51
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Two more important data integrity fixes related to RAID device drivers
        which wrongly throw away the SYNCHRONIZE CACHE command in the non-RAID
        path and a memory leak in the scsi_debug driver"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: arcmsr: Send SYNCHRONIZE_CACHE command to firmware
        scsi: scsi_debug: Fix memory leak if LBP enabled and module is unloaded
        scsi: megaraid_sas: Fix data integrity failure for JBOD (passthrough) devices
      e12d8d51
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · f29b909d
      Linus Torvalds authored
      Pull input subsystem updates from Dmitry Torokhov.
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: psmouse - cleanup Focaltech code
        Input: i8042 - add XMG C504 to keyboard reset table
      f29b909d
    • Linus Torvalds's avatar
      Merge tag 'firewire-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394 · 03daa36f
      Linus Torvalds authored
      Pull FireWire (IEEE 1394) fixes from Stefan Richter:
      
       - add missing input validation to the firewire-net driver. Invalid
         IP-over-1394 encapsulation headers could trigger buffer overflows
         (CVE 2016-8633).
      
       - IP-over-1394 link fragmentation headers were read and written
         incorrectly, breaking fragmented RX/TX with other OS's stacks.
      
      * tag 'firewire-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394:
        firewire: net: fix fragmented datagram_size off-by-one
        firewire: net: guard against rx buffer overflows
      03daa36f
    • Linus Torvalds's avatar
      Merge tag 'media/v4.9-3' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · d8d1721c
      Linus Torvalds authored
      Pull media fixes from Mauro Carvalho Chehab:
       "A series of fixup patches meant to fix the usage of DMA on stack, plus
        one warning fixup"
      
      * tag 'media/v4.9-3' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (32 commits)
        [media] radio-bcm2048: don't ignore errors
        [media] pctv452e: fix semicolon.cocci warnings
        [media] flexcop-usb: don't use stack for DMA
        [media] stk-webcam: don't use stack for DMA
        [media] s2255drv: don't use stack for DMA
        [media] cpia2_usb: don't use stack for DMA
        [media] digitv: handle error code on RC query
        [media] dw2102: return error if su3000_power_ctrl() fails
        [media] nova-t-usb2: handle error code on RC query
        [media] technisat-usb2: use DMA buffers for I2C transfers
        [media] pctv452e: don't call BUG_ON() on non-fatal error
        [media] pctv452e: don't do DMA on stack
        [media] nova-t-usb2: don't do DMA on stack
        [media] gp8psk: don't go past the buffer size
        [media] gp8psk: don't do DMA on stack
        [media] dtv5100: don't do DMA on stack
        [media] dtt200u: handle USB control message errors
        [media] dtt200u: don't do DMA on stack
        [media] dtt200u-fe: handle errors on USB control messages
        [media] dtt200u-fe: don't do DMA on stack
        ...
      d8d1721c
    • Linus Torvalds's avatar
      Merge tag 'pci-v4.9-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci · 41e6410e
      Linus Torvalds authored
      Pull PCI fixes from Bjorn Helgaas:
      
       - fix for a Qualcomm driver issue that causes a use-before-set crash
      
       - fix for DesignWare iATU unroll support that causes external aborts
         when enabling the host bridge
      
      * tag 'pci-v4.9-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
        PCI: designware: Check for iATU unroll support after initializing host
        PCI: qcom: Fix pp->dev usage before assignment
      41e6410e