1. 16 Nov, 2018 2 commits
    • Linus Torvalds's avatar
      Merge tag 'for-linus-20181115' of git://git.kernel.dk/linux-block · 59749c2d
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - Discard loop fix, caused by integer overflow (Dave)
      
       - Blacklist of Samsung drive that hangs with power management (Diego)
      
       - Copy bio priority when cloning it (Hannes)
      
       - Fix race condition exposed in floppy (me)
      
       - Fix SCSI queue cleanup regression. While elusive, it caused oopses in
         queue running (Ming)
      
       - Fix bad string copy in kyber tracing (Omar)
      
      * tag 'for-linus-20181115' of git://git.kernel.dk/linux-block:
        SCSI: fix queue cleanup race before queue initialization is done
        block: fix 32 bit overflow in __blkdev_issue_discard()
        libata: blacklist SAMSUNG MZ7TD256HAFV-000L9 SSD
        block: copy ioprio in __bio_clone_fast() and bounce
        kyber: fix wrong strlcpy() size in trace_kyber_latency()
        floppy: fix race condition in __floppy_read_block_0()
      59749c2d
    • Linus Torvalds's avatar
      Merge tag 'fuse-fixes-4.20-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse · 9b5f361a
      Linus Torvalds authored
      Pull fuse fixes from Miklos Szeredi:
       "A couple of fixes, all bound for -stable (i.e. not regressions in this
        cycle)"
      
      * tag 'fuse-fixes-4.20-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse:
        fuse: fix use-after-free in fuse_direct_IO()
        fuse: fix possibly missed wake-up after abort
        fuse: fix leaked notify reply
      9b5f361a
  2. 15 Nov, 2018 3 commits
  3. 14 Nov, 2018 15 commits
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-4.20-rc2' of... · 5929a1f0
      Linus Torvalds authored
      Merge tag 'riscv-for-linus-4.20-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/palmer/riscv-linux
      
      Pull RISC-V fixes from Palmer Dabbelt:
       "This contains a few patches that fix various issues in the RISC-V
        port:
      
         - enable printk timestamps in the RISC-V defconfig.
      
         - a whitespace fix to "struct pt_regs".
      
         - add a "vdso_install" target for RISC-V.
      
         - a pair of build fixes: one to fix a typo in our makefile, and one
           to clean up some warnings.
      
        There will probably be more patches from us for 4.20, but I don't have
        anything that's ready to go right now so I'm going to hold off a bit.
      
        Right now the only concrete thing I know I want to make sure gets
        sorted out is our 32-bit stat interface, which I don't want sitting in
        limbo for another cycle as we have to get RV32I glibc sone"
      
      * tag 'riscv-for-linus-4.20-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/palmer/riscv-linux:
        RISC-V: Silence some module warnings on 32-bit
        RISC-V: lib: Fix build error for 64-bit
        riscv: add missing vdso_install target
        riscv: fix spacing in struct pt_regs
        RISC-V: defconfig: Enable printk timestamps
      5929a1f0
    • Linus Torvalds's avatar
      Merge tag 'kgdb-fixes-4.20-rc3' of https://git.linaro.org/people/daniel.thompson/linux · 9746e467
      Linus Torvalds authored
      Pull kgdb fixes from Daniel Thompson:
       "The most important changes here are two fixes for kdb regressions
        causes by the hashing of %p pointers together with a fix for a
        potential overflow in kdb tab completion handling (and warning fix).
      
        Also included are a set of changes in preparation to (eventually)
        enable -Wimplicit-fallthrough"
      
      * tag 'kgdb-fixes-4.20-rc3' of https://git.linaro.org/people/daniel.thompson/linux:
        kdb: kdb_support: mark expected switch fall-throughs
        kdb: kdb_keyboard: mark expected switch fall-throughs
        kdb: kdb_main: refactor code in kdb_md_line
        kdb: Use strscpy with destination buffer size
        kdb: print real address of pointers instead of hashed addresses
        kdb: use correct pointer when 'btc' calls 'btt'
      9746e467
    • Linus Torvalds's avatar
      Merge branch 'fixes-v4.20-rc3' of... · e4c4b0e4
      Linus Torvalds authored
      Merge branch 'fixes-v4.20-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
      
      Pull integrity fix from James Morris:
       "Fix a bug introduced with in this merge window in 82f94f24 ("KEYS:
        Provide software public key query function [ver #2]")"
      
      * 'fixes-v4.20-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
        integrity: support new struct public_key_signature encoding field
      e4c4b0e4
    • Linus Torvalds's avatar
      Merge tag 'acpi-4.20-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 3472f660
      Linus Torvalds authored
      Pull ACPI fix from Rafael Wysocki:
       "Fix a recently introduced build issue in the xpower PMIC driver (Arnd
        Bergmann)"
      
      * tag 'acpi-4.20-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI / PMIC: xpower: fix IOSF_MBI dependency
      3472f660
    • Linus Torvalds's avatar
      Merge tag 'pm-4.20-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · dbb3c260
      Linus Torvalds authored
      Pull power management fixes from Rafael Wysocki:
       "These remove a stale DT entry left behind after recent removal of a
        cpufreq driver without users, fix up error handling in the imx6q
        cpufreq driver, fix two issues in the cpufreq documentation, and
        update the ARM cpufreq driver.
      
        Specifics:
      
         - Drop stale DT binding for the arm_big_little_dt driver removed
           recently (Sudeep Holla).
      
         - Fix up error handling in the imx6q cpufreq driver to make it report
           voltage scaling failures (Anson Huang).
      
         - Fix two issues in the cpufreq documentation (Viresh Kumar, Zhao Wei
           Liew).
      
         - Fix ARM cpuidle driver initialization regression from the 4.19 time
           frame and rework the driver registration part of it to simplify
           code (Ulf Hansson)"
      
      * tag 'pm-4.20-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ARM: cpuidle: Convert to use cpuidle_register|unregister()
        ARM: cpuidle: Don't register the driver when back-end init returns -ENXIO
        dt-bindings: cpufreq: remove stale arm_big_little_dt entry
        Documentation: cpufreq: Correct a typo
        cpufreq: imx6q: add return value check for voltage scale
        Documentation: cpu-freq: Frequencies aren't always sorted
      dbb3c260
    • Linus Torvalds's avatar
      Merge tag 'nfsd-4.20-1' of git://linux-nfs.org/~bfields/linux · 4e4490d4
      Linus Torvalds authored
      Pull nfsd fixes from Bruce Fields:
       "Three nfsd bugfixes.
      
        None are new bugs, but they all take a little effort to hit, which
        might explain why they weren't found sooner"
      
      * tag 'nfsd-4.20-1' of git://linux-nfs.org/~bfields/linux:
        SUNRPC: drop pointless static qualifier in xdr_get_next_encode_buffer()
        nfsd: COPY and CLONE operations require the saved filehandle to be set
        sunrpc: correct the computation for page_ptr when truncating
      4e4490d4
    • Linus Torvalds's avatar
      Merge tag 'pci-v4.20-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci · d41217aa
      Linus Torvalds authored
      Pull PCI fix from Bjorn Helgaas:
       "Revert a _PXM change that causes silent early boot failure on some AMD
        ThreadRipper systems"
      
      * tag 'pci-v4.20-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
        Revert "ACPI/PCI: Pay attention to device-specific _PXM node values"
      d41217aa
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · dbcec2e6
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "This is mostly a set of minor and obvious fixes (three in one of the
        new drivers).
      
        The only substantial change is to move the ufs to the blk-mq now that
        the merge window fixed the suspend/resume issues with blk-mq"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: qla2xxx: Initialize port speed to avoid setting lower speed
        Revert "scsi: ufs: Disable blk-mq for now"
        scsi: NCR5380: Return false instead of NULL
        scsi: qla2xxx: Fix a typo in MODULE_PARM_DESC
        scsi: hisi_sas: Remove set but not used variable 'dq_list'
        scsi: myrs: only build on little-endian platforms
        scsi: myrs: avoid stack overflow warning
        scsi: lpfc: fix remoteport access
        scsi: myrb: fix sprintf buffer overflow warning
        scsi: target/core: Avoid that a kernel oops is triggered when COMPARE AND WRITE fails
      dbcec2e6
    • Linus Torvalds's avatar
      Merge tag 'rtc-4.20-2' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux · b7bbf993
      Linus Torvalds authored
      Pull RTC driver fixes from Alexandre Belloni:
      
       - cmos: stop exporting alarms when not supported
      
       - hctosys: correctly report range error
      
       - pcf2127: fix a memory leak
      
      * tag 'rtc-4.20-2' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux:
        rtc: pcf2127: fix a kmemleak caused in pcf2127_i2c_gather_write
        rtc: hctosys: Add missing range error reporting
        rtc: cmos: Do not export alarm rtc_ops when we do not support alarms
      b7bbf993
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace · 47e624c0
      Linus Torvalds authored
      Pull namespace fix from Eric Biederman:
       "Benjamin Coddington noticed an unkillable busy loop in the kernel that
        anyone who is sufficiently motivated can trigger. This bug did not
        exist in earlier kernels making this bug a regression.
      
        I have tested the change personally and confirmed that the bug exists
        and that the fix works. This fix has been picked up by linux-next and
        hopefully the automated testing bots and no problems have been
        reported from those sources.
      
        Ordinarily I would let something like this sit a little longer but I
        am going to be away at Linux Plumbers the rest of this week and I am
        afraid if I don't send the pull request now this fix will get lost"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
        mnt: fix __detach_mounts infinite loop
      47e624c0
    • Linus Torvalds's avatar
      Merge branch 'parisc-4.20-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · 857c34cd
      Linus Torvalds authored
      Pull parisc fix from Helge Deller:
       "Revert one patch which changed how spinlocks get released. It breaks
        the rwlock implementation in glibc"
      
      * 'parisc-4.20-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc: Revert "Release spinlocks using ordered store"
      857c34cd
    • Linus Torvalds's avatar
      Merge branch 'spectre' of git://git.armlinux.org.uk/~rmk/linux-arm · e2f8b472
      Linus Torvalds authored
      Pull ARM fix from Russell King:
       "It was noticed that one of Julien's patches contained an error, this
        fixes that up"
      
      * 'spectre' of git://git.armlinux.org.uk/~rmk/linux-arm:
        ARM: 8810/1: vfp: Fix wrong assignement to ufp_exc
      e2f8b472
    • Ming Lei's avatar
      SCSI: fix queue cleanup race before queue initialization is done · 8dc765d4
      Ming Lei authored
      c2856ae2 ("blk-mq: quiesce queue before freeing queue") has
      already fixed this race, however the implied synchronize_rcu()
      in blk_mq_quiesce_queue() can slow down LUN probe a lot, so caused
      performance regression.
      
      Then 1311326c ("blk-mq: avoid to synchronize rcu inside blk_cleanup_queue()")
      tried to quiesce queue for avoiding unnecessary synchronize_rcu()
      only when queue initialization is done, because it is usual to see
      lots of inexistent LUNs which need to be probed.
      
      However, turns out it isn't safe to quiesce queue only when queue
      initialization is done. Because when one SCSI command is completed,
      the user of sending command can be waken up immediately, then the
      scsi device may be removed, meantime the run queue in scsi_end_request()
      is still in-progress, so kernel panic can be caused.
      
      In Red Hat QE lab, there are several reports about this kind of kernel
      panic triggered during kernel booting.
      
      This patch tries to address the issue by grabing one queue usage
      counter during freeing one request and the following run queue.
      
      Fixes: 1311326c ("blk-mq: avoid to synchronize rcu inside blk_cleanup_queue()")
      Cc: Andrew Jones <drjones@redhat.com>
      Cc: Bart Van Assche <bart.vanassche@wdc.com>
      Cc: linux-scsi@vger.kernel.org
      Cc: Martin K. Petersen <martin.petersen@oracle.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: James E.J. Bottomley <jejb@linux.vnet.ibm.com>
      Cc: stable <stable@vger.kernel.org>
      Cc: jianchao.wang <jianchao.w.wang@oracle.com>
      Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      8dc765d4
    • Dave Chinner's avatar
      block: fix 32 bit overflow in __blkdev_issue_discard() · 4800bf7b
      Dave Chinner authored
      A discard cleanup merged into 4.20-rc2 causes fstests xfs/259 to
      fall into an endless loop in the discard code. The test is creating
      a device that is exactly 2^32 sectors in size to test mkfs boundary
      conditions around the 32 bit sector overflow region.
      
      mkfs issues a discard for the entire device size by default, and
      hence this throws a sector count of 2^32 into
      blkdev_issue_discard(). It takes the number of sectors to discard as
      a sector_t - a 64 bit value.
      
      The commit ba5d7385 ("block: cleanup __blkdev_issue_discard")
      takes this sector count and casts it to a 32 bit value before
      comapring it against the maximum allowed discard size the device
      has. This truncates away the upper 32 bits, and so if the lower 32
      bits of the sector count is zero, it starts issuing discards of
      length 0. This causes the code to fall into an endless loop, issuing
      a zero length discards over and over again on the same sector.
      
      Fixes: ba5d7385 ("block: cleanup __blkdev_issue_discard")
      Tested-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
      Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
      Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
      
      Killed pointless WARN_ON().
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      4800bf7b
    • Paul Moore's avatar
      selinux: fix non-MLS handling in mls_context_to_sid() · 877181a8
      Paul Moore authored
      Commit 95ffe194 ("selinux: refactor mls_context_to_sid() and make
      it stricter") inadvertently changed how we handle labels that did not
      contain MLS information.  This patch restores the proper behavior in
      mls_context_to_sid() and adds a comment explaining the proper
      behavior to help ensure this doesn't happen again.
      
      Fixes: 95ffe194 ("selinux: refactor mls_context_to_sid() and make it stricter")
      Reported-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
      Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
      877181a8
  4. 13 Nov, 2018 15 commits
  5. 12 Nov, 2018 5 commits