1. 01 Mar, 2018 11 commits
    • Linus Torvalds's avatar
      Merge tag 'arc-4.15-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc · 2120447b
      Linus Torvalds authored
      Pull ARC fixes from Vineet Gupta:
      
       - MCIP aka ARconnect fixes for SMP builds [Euginey]
      
       - preventive fix for SLC (L2 cache) flushing [Euginey]
      
       - Kconfig default fix [Ulf Magnusson]
      
       - trailing semicolon fixes [Luis de Bethencourt]
      
       - other assorted minor fixes
      
      * tag 'arc-4.15-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc:
        ARC: setup cpu possible mask according to possible-cpus dts property
        ARC: mcip: update MCIP debug mask when the new cpu came online
        ARC: mcip: halt GFRC counter when ARC cores halt
        ARCv2: boot log: fix HS48 release number
        arc: dts: use 'atmel' as manufacturer for at24 in axs10x_mb
        ARC: Fix malformed ARC_EMUL_UNALIGNED default
        ARC: boot log: Fix trailing semicolon
        ARC: dw2 unwind: Fix trailing semicolon
        ARC: Enable fatal signals on boot for dev platforms
        ARCv2: Don't pretend we may set L-bit in STATUS32 with kflag instruction
        ARCv2: cache: fix slc_entire_op: flush only instead of flush-n-inv
      2120447b
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v4.16-5' of git://git.infradead.org/linux-platform-drivers-x86 · 8da5db7d
      Linus Torvalds authored
      Pull x86 platform drivers fixes from Andy Shevchenko:
      
       - fix a regression on laptops like Dell XPS 9360 where keyboard stopped
         working.
      
       - correct sysfs wakeup attribute after removal of some drivers to
         reflect that they are not able to wake system up anymore.
      
      * tag 'platform-drivers-x86-v4.16-5' of git://git.infradead.org/linux-platform-drivers-x86:
        platform/x86: wmi: Fix misuse of vsprintf extension %pULL
        platform/x86: intel-hid: Reset wakeup capable flag on removal
        platform/x86: intel-vbtn: Reset wakeup capable flag on removal
        platform/x86: intel-vbtn: Only activate tablet mode switch on 2-in-1's
      8da5db7d
    • Linus Torvalds's avatar
      Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md · 7e303099
      Linus Torvalds authored
      Pull MD bugfixes from Shaohua Li:
      
       - fix raid5-ppl flush request handling hang from Artur
      
       - fix a potential deadlock in raid5/10 reshape from BingJing
      
       - fix a deadlock for dm-raid from Heinz
      
       - fix two md-cluster of raid10 from Lidong and Guoqing
      
       - fix a NULL deference problem in device removal from Neil
      
       - fix a NULL deference problem in raid1/raid10 in specific condition
         from Yufen
      
       - other cleanup and fixes
      
      * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md:
        md/raid1: fix NULL pointer dereference
        md: fix a potential deadlock of raid5/raid10 reshape
        md-cluster: choose correct label when clustered layout is not supported
        md: raid5: avoid string overflow warning
        raid5-ppl: fix handling flush requests
        md raid10: fix NULL deference in handle_write_completed()
        md: only allow remove_and_add_spares when no sync_thread running.
        md: document lifetime of internal rdev pointer.
        md: fix md_write_start() deadlock w/o metadata devices
        MD: Free bioset when md_run fails
        raid10: change the size of resync window for clustered raid
        md-multipath: Use seq_putc() in multipath_status()
        md/raid1: Fix trailing semicolon
        md/raid5: simplify uninitialization of shrinker
      7e303099
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/pmladek/printk · 7bec4a96
      Linus Torvalds authored
      Pull printk fix from Petr Mladek:
       "Make sure that we wake up userspace loggers. This fixes a race
        introduced by the console waiter logic during this merge window"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/pmladek/printk:
        printk: Wake klogd when passing console_lock owner
      7bec4a96
    • Joe Perches's avatar
      platform/x86: wmi: Fix misuse of vsprintf extension %pULL · 1cedc638
      Joe Perches authored
      %pULL doesn't officially exist but %pUL does.
      
      Miscellanea:
      
      o Add missing newlines to a couple logging messages
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarDarren Hart (VMware) <dvhart@infradead.org>
      1cedc638
    • Linus Torvalds's avatar
      Merge tag 'sound-4.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 16453c9c
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "The only core change is the fix for possible memory corruption by ALSA
        ctl API since 4.14 kernel due to a thinko.
      
        The rest are all device-specific: in addition to the usual suspects
        (HD-audio and USB-audio fixups), a few LPE HDMI audio fixes came in at
        this time"
      
      * tag 'sound-4.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: x86: Fix potential crash at error path
        ALSA: x86: Fix missing spinlock and mutex initializations
        ALSA: control: Fix memory corruption risk in snd_ctl_elem_read
        ALSA: hda - Fix pincfg at resume on Lenovo T470 dock
        ALSA: usb-audio: Add a quirck for B&W PX headphones
        ALSA: hda: Add a power_save blacklist
        ALSA: x86: hdmi: Add single_port option for compatible behavior
      16453c9c
    • Linus Torvalds's avatar
      Merge tag 'pinctrl-v4.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl · 44896cd1
      Linus Torvalds authored
      Pull pin control fixes from Linus Walleij:
       "Two smallish pin control fixes: one actual code fix for the Meson and
        a MAINTAINERS update.
      
        Summary:
      
         - fix a pin group on the Meson
      
         - assign maintainers for Freescale/NXP pin controllers"
      
      * tag 'pinctrl-v4.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
        MAINTAINERS: add Freescale pin controllers
        pinctrl: meson-axg: adjust uart_ao_b pin group naming
      44896cd1
    • Linus Torvalds's avatar
      Merge tag 'gpio-v4.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio · f902a778
      Linus Torvalds authored
      Pull GPIO fixes from Linus Walleij:
       "Fix up device tree properties readout caused by my own refactorings"
      
      * tag 'gpio-v4.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio:
        gpio: Handle deferred probing in of_find_gpio() properly
        gpiolib: Keep returning EPROBE_DEFER when we should
      f902a778
    • Rafael J. Wysocki's avatar
      platform/x86: intel-hid: Reset wakeup capable flag on removal · 38c08aa5
      Rafael J. Wysocki authored
      The intel-hid device will not be able to wake up the system any more
      after removing the notify handler provided by its driver, so make
      its sysfs attributes reflect that.
      
      Fixes: ef884112 (platform: x86: intel-hid: Wake up the system from suspend-to-idle)
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      38c08aa5
    • Rafael J. Wysocki's avatar
      platform/x86: intel-vbtn: Reset wakeup capable flag on removal · b758dbd5
      Rafael J. Wysocki authored
      The intel-vbtn device will not be able to wake up the system any more
      after removing the notify handler provided by its driver, so make
      its sysfs attributes reflect that.
      
      Fixes: 91f9e850 (platform: x86: intel-vbtn: Wake up the system from suspend-to-idle)
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      b758dbd5
    • Linus Torvalds's avatar
      Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · 97ace515
      Linus Torvalds authored
      Pull ARM SoC fixes from Arnd Bergmann:
       "This is the first set of bugfixes for ARM SoCs, fixing a couple of
        stability problems, mostly on TI OMAP and Rockchips platforms:
      
         - OMAP2 hwmod clocks must be enabled in the correct order
      
         - OMAP3 Wakeup from resume through PRM IRQ was unreliable
      
         - one regression on OMAP5 caused by a kexec fix
      
         - Rockchip ethernet needs some settings for stable operation on
           Rock64
      
         - Rockchip based Chrombook Plus needs another clock setting for
           stable display suspend/resume
      
         - Rockchip based phyCORE-RK3288 was able to run at an invalid CPU
           clock frequency
      
         - Rockchip MMC link was sometimes unreliable
      
         - multiple fixes to avoid crashes in the Broadcom STB DPFE driver
      
        Other minor changes include:
      
         - Devicetree fixes for incorrect hardware description (rockchip,
           omap, Gemini, amlogic)
      
         - some MAINTAINER file updates to correct email and git addresses
      
         - some fixes addressing 'make W=1' dtc warnings (broadcom, amlogic,
           cavium, qualcomm, hisilicon, zx)
      
         - fixes for LTO-compilation (orion, davinci, clps711x)
      
         - one fix for an incorrect Kconfig errata selection
      
         - a memory leak in the OMAP timer driver
      
         - a kernel data leak in OMAP1 debugfs files"
      
      * tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (38 commits)
        MAINTAINERS: update entries for ARM/STM32
        ARM: dts: bcm283x: Move arm-pmu out of soc node
        ARM: dts: bcm283x: Fix unit address of local_intc
        ARM: dts: NSP: Fix amount of RAM on BCM958625HR
        ARM: dts: Set D-Link DNS-313 SATA to muxmode 0
        ARM: omap2: set CONFIG_LIRC=y in defconfig
        ARM: dts: imx6dl: Include correct dtsi file for Engicam i.CoreM6 DualLite/Solo RQS
        memory: brcmstb: dpfe: support new way of passing data from the DCPU
        memory: brcmstb: dpfe: fix type declaration of variable "ret"
        memory: brcmstb: dpfe: properly mask vendor error bits
        ARM: BCM: dts: Remove leading 0x and 0s from bindings notation
        ARM: orion: fix orion_ge00_switch_board_info initialization
        ARM: davinci: mark spi_board_info arrays as const
        ARM: clps711x: mark clps711x_compat as const
        arm: zx: dts: Remove leading 0x and 0s from bindings notation
        arm64: dts: Remove leading 0x and 0s from bindings notation
        arm64: dts: cavium: fix PCI bus dtc warnings
        MAINTAINERS: ARM: at91: update my email address
        soc: imx: gpc: de-register power domains only if initialized
        ARM: dts: rockchip: Fix DWMMC clocks
        ...
      97ace515
  2. 28 Feb, 2018 19 commits
  3. 27 Feb, 2018 6 commits
    • Linus Torvalds's avatar
      Merge branch 'fixes-v4.16-rc4' of... · f3afe530
      Linus Torvalds authored
      Merge branch 'fixes-v4.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
      
      Pull seccomp fix from James Morris:
       "This disables the seccomp samples when cross compiling.
      
        We've seen too many build issues here, so it's best to just disable
        it, especially since they're just the samples"
      
      * 'fixes-v4.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
        samples/seccomp: do not compile when cross compiled
      f3afe530
    • James Morris's avatar
      Merge tag 'seccomp-v4.16-rc4' of... · 757744eb
      James Morris authored
      Merge tag 'seccomp-v4.16-rc4' of https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux into fixes-v4.16-rc4
      
      - do not build samples when cross compiling (Michal Hocko)
      
      From Kees: "This disables the seccomp samples when cross compiling. We're seen too many build issues here, so
      it's best to just disable it, especially since they're just the samples."
      757744eb
    • Linus Torvalds's avatar
      Merge branch 'fixes-v4.16-rc4' of... · b3d96260
      Linus Torvalds authored
      Merge branch 'fixes-v4.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
      
      Pull tpm fixes from James Morris:
       "Bugfixes for TPM, from Jeremy Boone, via Jarkko Sakkinen"
      
      * 'fixes-v4.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
        tpm: fix potential buffer overruns caused by bit glitches on the bus
        tpm: st33zp24: fix potential buffer overruns caused by bit glitches on the bus
        tpm_i2c_infineon: fix potential buffer overruns caused by bit glitches on the bus
        tpm_i2c_nuvoton: fix potential buffer overruns caused by bit glitches on the bus
        tpm_tis: fix potential buffer overruns caused by bit glitches on the bus
      b3d96260
    • Petr Mladek's avatar
      printk: Wake klogd when passing console_lock owner · c14376de
      Petr Mladek authored
      wake_klogd is a local variable in console_unlock(). The information
      is lost when the console_lock owner using the busy wait added by
      the commit dbdda842 ("printk: Add console owner and waiter
      logic to load balance console writes"). The following race is
      possible:
      
      CPU0				CPU1
      console_unlock()
      
        for (;;)
           /* calling console for last message */
      
      				printk()
      				  log_store()
      				    log_next_seq++;
      
           /* see new message */
           if (seen_seq != log_next_seq) {
      	wake_klogd = true;
      	seen_seq = log_next_seq;
           }
      
           console_lock_spinning_enable();
      
      				  if (console_trylock_spinning())
      				     /* spinning */
      
           if (console_lock_spinning_disable_and_check()) {
      	printk_safe_exit_irqrestore(flags);
      	return;
      
      				  console_unlock()
      				    if (seen_seq != log_next_seq) {
      				    /* already seen */
      				    /* nothing to do */
      
      Result: Nobody would wakeup klogd.
      
      One solution would be to make a global variable from wake_klogd.
      But then we would need to manipulate it under a lock or so.
      
      This patch wakes klogd also when console_lock is passed to the
      spinning waiter. It looks like the right way to go. Also userspace
      should have a chance to see and store any "flood" of messages.
      
      Note that the very late klogd wake up was a historic solution.
      It made sense on single CPU systems or when sys_syslog() operations
      were synchronized using the big kernel lock like in v2.1.113.
      But it is questionable these days.
      
      Fixes: dbdda842 ("printk: Add console owner and waiter logic to load balance console writes")
      Link: http://lkml.kernel.org/r/20180226155734.dzwg3aovqnwtvkoy@pathway.suse.cz
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: linux-kernel@vger.kernel.org
      Cc: Tejun Heo <tj@kernel.org>
      Suggested-by: default avatarSergey Senozhatsky <sergey.senozhatsky@gmail.com>
      Reviewed-by: default avatarSergey Senozhatsky <sergey.senozhatsky@gmail.com>
      Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
      c14376de
    • Chen-Yu Tsai's avatar
      gpio: Handle deferred probing in of_find_gpio() properly · ce27fb2c
      Chen-Yu Tsai authored
      of_get_named_gpiod_flags() used directly in of_find_gpio() or indirectly
      through of_find_spi_gpio() or of_find_regulator_gpio() can return
      -EPROBE_DEFER. This gets overwritten by the subsequent of_find_*_gpio()
      calls.
      
      This patch fixes this by trying of_find_spi_gpio() or
      of_find_regulator_gpio() only if deferred probing was not requested by
      the previous of_get_named_gpiod_flags() call.
      
      Fixes: 6a537d48 ("gpio: of: Support regulator nonstandard GPIO properties")
      Fixes: c8582339 ("gpio: of: Support SPI nonstandard GPIO properties")
      Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
      [Augmented to fit with Maxime's patch]
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      ce27fb2c
    • Maxime Ripard's avatar
      gpiolib: Keep returning EPROBE_DEFER when we should · 6662ae6a
      Maxime Ripard authored
      Commits c8582339 ("gpio: of: Support SPI nonstandard GPIO properties")
      and 6a537d48 ("gpio: of: Support regulator nonstandard GPIO
      properties") have introduced a regression in the way error codes from
      of_get_named_gpiod_flags are handled.
      
      Previously, those errors codes were returned immediately, but the two
      commits mentioned above are now overwriting the error pointer, meaning that
      whatever value has been returned will be dropped in favor of whatever the
      two new functions will return.
      
      This might not be a big deal except for EPROBE_DEFER, on which GPIOlib
      customers will depend on, and that will now be returned as an hard error
      which means that they will not probe anymore, instead of gently deferring
      their probe.
      
      Since EPROBE_DEFER basically means that we have found a valid property but
      there was no GPIO controller registered to handle it, fix this issues by
      returning it as soon as we encounter it.
      
      Fixes: c8582339 ("gpio: of: Support SPI nonstandard GPIO properties")
      Fixes: 6a537d48 ("gpio: of: Support regulator nonstandard GPIO properties")
      Signed-off-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
      [Fold in fix to the fix]
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      6662ae6a
  4. 26 Feb, 2018 4 commits