1. Apr 08, 2017
  2. Apr 07, 2017
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-scan-fixes' · dc752d54
      Rafael J. Wysocki authored
      * acpi-scan-fixes:
        ACPI / scan: Prefer devices without _HID for _ADR matching
      dc752d54
    • Will Deacon's avatar
      Revert "Revert "arm64: hugetlb: partial revert of 66b3923a"" · 6ae979ab
      Will Deacon authored
      The use of the contiguous bit by our hugetlb implementation violates
      the break-before-make requirements of the architecture and can lead to
      silent data corruption or TLB conflict aborts. Once again, disable these
      hugetlb sizes whilst it gets worked out.
      
      This reverts commit ab2e1b89
      
      .
      
      Conflicts:
      	arch/arm64/mm/hugetlbpage.c
      
      Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
      6ae979ab
    • Linus Torvalds's avatar
      Merge tag 'xfs-4.11-fixes-3' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · 269c930e
      Linus Torvalds authored
      Pull XFS fixes from Darrick Wong:
       "Here are three more fixes for 4.11.
      
        The first one reworks the inline directory verifier to check the
        working copy of the directory metadata and to avoid triggering a
        periodic crash in xfs/348. The second patch fixes a regression in hole
        punching at EOF that corrupts files; and the third patch closes a
        kernel memory disclosure bug.
      
        Summary:
      
         - rework the inline directory verifier to avoid crashes on disk
           corruption
      
         - don't change file size when punching holes w/ KEEP_SIZE
      
         - close a kernel memory exposure bug"
      
      * tag 'xfs-4.11-fixes-3' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        xfs: fix kernel memory exposure problems
        xfs: Honor FALLOC_FL_KEEP_SIZE when punching ends of files
        xfs: rework the inline directory verifiers
      269c930e
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus · 977674c0
      Linus Torvalds authored
      Pull MIPS fixes from Ralf Baechle:
       "Lantiq:
          - Fix adding xbar resoures causing a panic
      
        Loongson3:
          - Some Loongson 3A don't identify themselves as having an FTLB so
            hardwire that knowledge into CPU probing.
          - Handle Loongson 3 TLB peculiarities in the fast path of the RDHWR
            emulation.
          - Fix invalid FTLB entries with huge page on VTLB+FTLB platforms
          - Add missing calculation of S-cache and V-cache cache-way size
      
        Ralink:
          - Fix typos in rt3883 pinctrl data
      
        Generic:
          - Force o32 fp64 support on 32bit MIPS64r6 kernels
          - Yet another build fix after the linux/sched.h changes
          - Wire up statx system call
          - Fix stack unwinding after introduction of IRQ stack
          - Fix spinlock code to build even for microMIPS with recent binutils
      
        SMP-CPS:
          - Fix retrieval of VPE mask on big endian CPUs"
      
      * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus:
        MIPS: IRQ Stack: Unwind IRQ stack onto task stack
        MIPS: c-r4k: Fix Loongson-3's vcache/scache waysize calculation
        MIPS: Flush wrong invalid FTLB entry for huge page
        MIPS: Check TLB before handle_ri_rdhwr() for Loongson-3
        MIPS: Add MIPS_CPU_FTLB for Loongson-3A R2
        MIPS: Lantiq: fix missing xbar kernel panic
        MIPS: smp-cps: Fix retrieval of VPE mask on big endian CPUs
        MIPS: Wire up statx system call
        MIPS: Include asm/ptrace.h now linux/sched.h doesn't
        MIPS: ralink: Fix typos in rt3883 pinctrl
        MIPS: End spinlocks with .insn
        MIPS: Force o32 fp64 support on 32bit MIPS64r6 kernels
      977674c0
    • Linus Torvalds's avatar
      Merge tag 'trace-v4.11-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · 4691f4a6
      Linus Torvalds authored
      Pull tracing fix from Steven Rostedt:
       "Wei Yongjun fixed a long standing bug in the ring buffer startup test.
      
        If for some unknown reason, the kthread that is created fails to be
        created, the return from kthread_create() is an PTR_ERR and not a
        NULL. The test incorrectly checks for NULL instead of an error"
      
      * tag 'trace-v4.11-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        ring-buffer: Fix return value check in test_ringbuffer()
      4691f4a6
  3. Apr 06, 2017
  4. Apr 05, 2017
  5. Apr 04, 2017
    • Jan Beulich's avatar
      xenbus: remove transaction holder from list before freeing · ac4cde39
      Jan Beulich authored
      After allocation the item is being placed on the list right away.
      Consequently it needs to be taken off the list before freeing in the
      case xenbus_dev_request_and_reply() failed, as in that case the
      callback (xenbus_dev_queue_reply()) is not being called (and if it
      was called, it should do both).
      
      Fixes: 5584ea25
      
      
      Signed-off-by: default avatarJan Beulich <jbeulich@suse.com>
      Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
      Signed-off-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
      ac4cde39
    • Niklas Cassel's avatar
      PCI: dwc: Fix dw_pcie_ops NULL pointer dereference · 794a8604
      Niklas Cassel authored
      Fix a crash from dereferencing a NULL dw_pcie_ops pointer.  For example,
      on ARTPEC-6:
      
        Unable to handle kernel NULL pointer dereference at virtual address 00000004
        pgd = c0204000
        [00000004] *pgd=00000000
        Internal error: Oops: 5 [#1] SMP ARM
        Modules linked in:
        CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.11.0-rc3-next-20170321 #1
        Hardware name: Axis ARTPEC-6 Platform
        task: db098000 task.stack: db096000
        PC is at dw_pcie_writel_dbi+0x2c/0xd0
      
      Prior to 442ec4c0 ("PCI: dwc: all: Split struct pcie_port into
      host-only and core structures"), every driver had a struct pcie_host_ops
      with function pointers, typically used as:
      
        if (pp->ops->readl_rc)
          return pp->ops->readl_rc(...);
      
      442ec4c0 split struct pcie_host_ops into two pieces: struct
      dw_pcie_host_ops and struct dw_pcie_ops, so the above became:
      
        if (pci->ops->readl_dbi)
          return pci->ops->readl_dbi(...);
      
      But pcie-artpec6.c and pcie-designware-plat.c don't need the dw_pcie_ops
      pointers and didn't supply a pci->ops struct, which leads to NULL pointer
      dereferences.
      
      Supply an empty struct dw_pcie_ops to avoid the NULL pointer dereferences.
      
      [bhelgaas: changelog]
      Fixes: 442ec4c0
      
       ("PCI: dwc: all: Split struct pcie_port into host-only and core structures")
      Signed-off-by: default avatarNiklas Cassel <niklas.cassel@axis.com>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      Acked-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
      Acked-by: default avatarJoao Pinto <jpinto@synopsys.com>
      794a8604
    • Victor Kamensky's avatar
      arm64: mm: unaligned access by user-land should be received as SIGBUS · 09a6adf5
      Victor Kamensky authored
      After 52d7523d (arm64: mm: allow the kernel to handle alignment faults on
      user accesses) commit user-land accesses that produce unaligned exceptions
      like in case of aarch32 ldm/stm/ldrd/strd instructions operating on
      unaligned memory received by user-land as SIGSEGV. It is wrong, it should
      be reported as SIGBUS as it was before 52d7523d commit.
      
      Changed do_bad_area function to take signal and code parameters out of esr
      value using fault_info table, so in case of do_alignment_fault fault
      user-land will receive SIGBUS. Wrapped access to fault_info table into
      esr_to_fault_info function.
      
      Cc: <stable@vger.kernel.org>
      Fixes: 52d7523d
      
       (arm64: mm: allow the kernel to handle alignment faults on user accesses)
      Signed-off-by: default avatarVictor Kamensky <kamensky@cisco.com>
      Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
      09a6adf5