1. 01 Mar, 2018 5 commits
    • 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
    • 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
    • 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 15 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 14 commits