Skip to content
  1. Oct 13, 2019
    • Linus Torvalds's avatar
      Merge tag 'tty-5.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 82c87e7d
      Linus Torvalds authored
      Pull tty/serial driver fixes from Greg KH:
       "Here are some small tty and serial driver fixes for 5.4-rc3 that
        resolve a number of reported issues and regressions.
      
        None of these are huge, full details are in the shortlog. There's also
        a MAINTAINERS update that I think you might have already taken in your
        tree already, but git should handle that merge easily.
      
        All have been in linux-next with no reported issues"
      
      * tag 'tty-5.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        MAINTAINERS: kgdb: Add myself as a reviewer for kgdb/kdb
        tty: serial: imx: Use platform_get_irq_optional() for optional IRQs
        serial: fix kernel-doc warning in comments
        serial: 8250_omap: Fix gpio check for auto RTS/CTS
        serial: mctrl_gpio: Check for NULL pointer
        tty: serial: fsl_lpuart: Fix lpuart_flush_buffer()
        tty: serial: Fix PORT_LINFLEXUART definition
        tty: n_hdlc: fix build on SPARC
        serial: uartps: Fix uartps_major handling
        serial: uartlite: fix exit path null pointer
        tty: serial: linflexuart: Fix magic SysRq handling
        serial: sh-sci: Use platform_get_irq_optional() for optional interrupts
        dt-bindings: serial: sh-sci: Document r8a774b1 bindings
        serial/sifive: select SERIAL_EARLYCON
        tty: serial: rda: Fix the link time qualifier of 'rda_uart_exit()'
        tty: serial: owl: Fix the link time qualifier of 'owl_uart_exit()'
      82c87e7d
    • Linus Torvalds's avatar
      Merge tag 'usb-5.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 6c90bbd0
      Linus Torvalds authored
      Pull USB fixes from Greg KH:
       "Here are a lot of small USB driver fixes for 5.4-rc3.
      
        syzbot has stepped up its testing of the USB driver stack, now able to
        trigger fun race conditions between disconnect and probe functions.
        Because of that we have a lot of fixes in here from Johan and others
        fixing these reported issues that have been around since almost all
        time.
      
        We also are just deleting the rio500 driver, making all of the syzbot
        bugs found in it moot as it turns out no one has been using it for
        years as there is a userspace version that is being used instead.
      
        There are also a number of other small fixes in here, all resolving
        reported issues or regressions.
      
        All have been in linux-next without any reported issues"
      
      * tag 'usb-5.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (65 commits)
        USB: yurex: fix NULL-derefs on disconnect
        USB: iowarrior: use pr_err()
        USB: iowarrior: drop redundant iowarrior mutex
        USB: iowarrior: drop redundant disconnect mutex
        USB: iowarrior: fix use-after-free after driver unbind
        USB: iowarrior: fix use-after-free on release
        USB: iowarrior: fix use-after-free on disconnect
        USB: chaoskey: fix use-after-free on release
        USB: adutux: fix use-after-free on release
        USB: ldusb: fix NULL-derefs on driver unbind
        USB: legousbtower: fix use-after-free on release
        usb: cdns3: Fix for incorrect DMA mask.
        usb: cdns3: fix cdns3_core_init_role()
        usb: cdns3: gadget: Fix full-speed mode
        USB: usb-skeleton: drop redundant in-urb check
        USB: usb-skeleton: fix use-after-free after driver unbind
        USB: usb-skeleton: fix NULL-deref on disconnect
        usb:cdns3: Fix for CV CH9 running with g_zero driver.
        usb: dwc3: Remove dev_err() on platform_get_irq() failure
        usb: dwc3: Switch to platform_get_irq_byname_optional()
        ...
      6c90bbd0
    • Linus Torvalds's avatar
      Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 328fefad
      Linus Torvalds authored
      Pull scheduler fixes from Ingo Molnar:
       "Two fixes: a guest-cputime accounting fix, and a cgroup bandwidth
        quota precision fix"
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/vtime: Fix guest/system mis-accounting on task switch
        sched/fair: Scale bandwidth quota and period without losing quota/period ratio precision
      328fefad
    • Linus Torvalds's avatar
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 465a7e29
      Linus Torvalds authored
      Pull perf fixes from Ingo Molnar:
       "Mostly tooling fixes, but also a couple of updates for new Intel
        models (which are technically hw-enablement, but to users it's a fix
        to perf behavior on those new CPUs - hope this is fine), an AUX
        inheritance fix, event time-sharing fix, and a fix for lost non-perf
        NMI events on AMD systems"
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (36 commits)
        perf/x86/cstate: Add Tiger Lake CPU support
        perf/x86/msr: Add Tiger Lake CPU support
        perf/x86/intel: Add Tiger Lake CPU support
        perf/x86/cstate: Update C-state counters for Ice Lake
        perf/x86/msr: Add new CPU model numbers for Ice Lake
        perf/x86/cstate: Add Comet Lake CPU support
        perf/x86/msr: Add Comet Lake CPU support
        perf/x86/intel: Add Comet Lake CPU support
        perf/x86/amd: Change/fix NMI latency mitigation to use a timestamp
        perf/core: Fix corner case in perf_rotate_context()
        perf/core: Rework memory accounting in perf_mmap()
        perf/core: Fix inheritance of aux_output groups
        perf annotate: Don't return -1 for error when doing BPF disassembly
        perf annotate: Return appropriate error code for allocation failures
        perf annotate: Fix arch specific ->init() failure errors
        perf annotate: Propagate the symbol__annotate() error return
        perf annotate: Fix the signedness of failure returns
        perf annotate: Propagate perf_env__arch() error
        perf evsel: Fall back to global 'perf_env' in perf_evsel__env()
        perf tools: Propagate get_cpuid() error
        ...
      465a7e29
    • Linus Torvalds's avatar
      Merge branch 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 9b4e40c8
      Linus Torvalds authored
      Pull EFI fixes from Ingo Molnar:
       "Misc EFI fixes all across the map: CPER error report fixes, fixes to
        TPM event log parsing, fix for a kexec hang, a Sparse fix and other
        fixes"
      
      * 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        efi/tpm: Fix sanity check of unsigned tbl_size being less than zero
        efi/x86: Do not clean dummy variable in kexec path
        efi: Make unexported efi_rci2_sysfs_init() static
        efi/tpm: Only set 'efi_tpm_final_log_size' after successful event log parsing
        efi/tpm: Don't traverse an event log with no events
        efi/tpm: Don't access event->count when it isn't mapped
        efivar/ssdt: Don't iterate over EFI vars if no SSDT override was specified
        efi/cper: Fix endianness of PCIe class code
      9b4e40c8
    • Linus Torvalds's avatar
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · fcb45a28
      Linus Torvalds authored
      Pull x86 fixes from Ingo Molnar:
       "A handful of fixes: a kexec linking fix, an AMD MWAITX fix, a vmware
        guest support fix when built under Clang, and new CPU model number
        definitions"
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/cpu: Add Comet Lake to the Intel CPU models header
        lib/string: Make memzero_explicit() inline instead of external
        x86/cpu/vmware: Use the full form of INL in VMWARE_PORT
        x86/asm: Fix MWAITX C-state hint value
      fcb45a28
    • Linus Torvalds's avatar
      Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · e9ec3588
      Linus Torvalds authored
      Pull x86 license tag fixlets from Ingo Molnar:
       "Fix a couple of SPDX tags in x86 headers to follow the canonical
        pattern"
      
      * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86: Use the correct SPDX License Identifier in headers
      e9ec3588
    • Linus Torvalds's avatar
      Merge tag 'riscv/for-v5.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 48acba98
      Linus Torvalds authored
      Pull RISC-V fixes from Paul Walmsley:
      
       - Fix several bugs in the breakpoint trap handler
      
       - Drop an unnecessary loop around calls to preempt_schedule_irq()
      
      * tag 'riscv/for-v5.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        RISC-V: entry: Remove unneeded need_resched() loop
        riscv: Correct the handling of unexpected ebreak in do_trap_break()
        riscv: avoid sending a SIGTRAP to a user thread trapped in WARN()
        riscv: avoid kernel hangs when trapped in BUG()
      48acba98
    • Linus Torvalds's avatar
      Merge tag 'mips_fixes_5.4_2' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux · 63f9bff5
      Linus Torvalds authored
      Pull MIPS fixes from Paul Burton:
      
       - Build fixes for CONFIG_OPTIMIZE_INLINING=y builds in which the
         compiler may choose not to inline __xchg() & __cmpxchg().
      
       - A build fix for Loongson configurations with GCC 9.x.
      
       - Expose some extra HWCAP bits to indicate support for various
         instruction set extensions to userland.
      
       - Fix bad stack access in firmware handling code for old SNI
         RM200/300/400 machines.
      
      * tag 'mips_fixes_5.4_2' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux:
        MIPS: Disable Loongson MMI instructions for kernel build
        MIPS: elf_hwcap: Export userspace ASEs
        MIPS: fw: sni: Fix out of bounds init of o32 stack
        MIPS: include: Mark __xchg as __always_inline
        MIPS: include: Mark __cmpxchg as __always_inline
      63f9bff5
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · db60a5a0
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
       "Fix a kernel crash in spufs_create_root() on Cell machines, since the
        new mount API went in.
      
        Fix a regression in our KVM code caused by our recent PCR changes.
      
        Avoid a warning message about a failing hypervisor API on systems that
        don't have that API.
      
        A couple of minor build fixes.
      
        Thanks to: Alexey Kardashevskiy, Alistair Popple, Desnes A. Nunes do
        Rosario, Emmanuel Nicolet, Jordan Niethe, Laurent Dufour, Stephen
        Rothwell"
      
      * tag 'powerpc-5.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        spufs: fix a crash in spufs_create_root()
        powerpc/kvm: Fix kvmppc_vcore->in_guest value in kvmhv_switch_to_host
        selftests/powerpc: Fix compile error on tlbie_test due to newer gcc
        powerpc/pseries: Remove confusing warning message.
        powerpc/64s/radix: Fix build failure with RADIX_MMU=n
      db60a5a0
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.4-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 680b5b3c
      Linus Torvalds authored
      Pull xen fixes from Juergen Gross:
      
       - correct panic handling when running as a Xen guest
      
       - cleanup the Xen grant driver to remove printing a pointer being
         always NULL
      
       - remove a soon to be wrong call of of_dma_configure()
      
      * tag 'for-linus-5.4-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen: Stop abusing DT of_dma_configure API
        xen/grant-table: remove unnecessary printing
        x86/xen: Return from panic notifier
      680b5b3c
    • Linus Torvalds's avatar
      Merge tag 's390-5.4-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · f154988a
      Linus Torvalds authored
      Pull s390 fixes from Vasily Gorbik:
      
       - Fix virtio-ccw DMA regression
      
       - Fix compiler warnings in uaccess
      
      * tag 's390-5.4-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/uaccess: avoid (false positive) compiler warnings
        s390/cio: fix virtio-ccw DMA without PV
      f154988a
  2. Oct 12, 2019
    • Kan Liang's avatar
      perf/x86/cstate: Add Tiger Lake CPU support · 52e92f40
      Kan Liang authored
      
      
      Tiger Lake is the followon to Ice Lake. From the perspective of Intel
      cstate residency counters, there is nothing changed compared with
      Ice Lake.
      
      Share icl_cstates with Ice Lake.
      Update the comments for Tiger Lake.
      
      The External Design Specification (EDS) is not published yet. It comes
      from an authoritative internal source.
      
      The patch has been tested on real hardware.
      
      Signed-off-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: https://lkml.kernel.org/r/1570549810-25049-10-git-send-email-kan.liang@linux.intel.com
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      52e92f40
    • Kan Liang's avatar
      perf/x86/msr: Add Tiger Lake CPU support · 0917b950
      Kan Liang authored
      
      
      Tiger Lake is the followon to Ice Lake. PPERF and SMI_COUNT MSRs are
      also supported.
      
      The External Design Specification (EDS) is not published yet. It comes
      from an authoritative internal source.
      
      The patch has been tested on real hardware.
      
      Signed-off-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: https://lkml.kernel.org/r/1570549810-25049-9-git-send-email-kan.liang@linux.intel.com
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      0917b950
    • Kan Liang's avatar
      perf/x86/intel: Add Tiger Lake CPU support · 23645a76
      Kan Liang authored
      
      
      Tiger Lake is the followon to Ice Lake. From the perspective of Intel
      core PMU, there is little changes compared with Ice Lake, e.g. small
      changes in event list. But it doesn't impact on core PMU functionality.
      Share the perf code with Ice Lake. The event list patch will be submitted
      later separately.
      
      The patch has been tested on real hardware.
      
      Signed-off-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: https://lkml.kernel.org/r/1570549810-25049-8-git-send-email-kan.liang@linux.intel.com
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      23645a76
    • Kan Liang's avatar
      perf/x86/cstate: Update C-state counters for Ice Lake · f1857a24
      Kan Liang authored
      
      
      There is no Core C3 C-State counter for Ice Lake.
      Package C8/C9/C10 C-State counters are added for Ice Lake.
      
      Introduce a new event list, icl_cstates, for Ice Lake.
      Update the comments accordingly.
      
      Signed-off-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Fixes: f08c47d1
      
       ("perf/x86/intel/cstate: Add Icelake support")
      Link: https://lkml.kernel.org/r/1570549810-25049-7-git-send-email-kan.liang@linux.intel.com
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      f1857a24
    • Kan Liang's avatar
      perf/x86/msr: Add new CPU model numbers for Ice Lake · 1a5da78d
      Kan Liang authored
      
      
      PPERF and SMI_COUNT MSRs are also supported by Ice Lake desktop and
      server.
      
      Signed-off-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: https://lkml.kernel.org/r/1570549810-25049-6-git-send-email-kan.liang@linux.intel.com
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      1a5da78d
    • Kan Liang's avatar
      perf/x86/cstate: Add Comet Lake CPU support · 1ffa6c04
      Kan Liang authored
      
      
      Comet Lake is the new 10th Gen Intel processor. From the perspective of
      Intel cstate residency counters, there is nothing changed compared with
      Kaby Lake.
      
      Share hswult_cstates with Kaby Lake.
      Update the comments for Comet Lake.
      Kaby Lake is missed in the comments for some Residency Counters. Update
      the comments for Kaby Lake as well.
      
      The External Design Specification (EDS) is not published yet. It comes
      from an authoritative internal source.
      
      The patch has been tested on real hardware.
      
      Signed-off-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: https://lkml.kernel.org/r/1570549810-25049-5-git-send-email-kan.liang@linux.intel.com
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      1ffa6c04
    • Kan Liang's avatar
      perf/x86/msr: Add Comet Lake CPU support · 9674b1cc
      Kan Liang authored
      
      
      Comet Lake is the new 10th Gen Intel processor. PPERF and SMI_COUNT MSRs
      are also supported.
      
      The External Design Specification (EDS) is not published yet. It comes
      from an authoritative internal source.
      
      The patch has been tested on real hardware.
      
      Signed-off-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: https://lkml.kernel.org/r/1570549810-25049-4-git-send-email-kan.liang@linux.intel.com
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      9674b1cc
    • Kan Liang's avatar
      perf/x86/intel: Add Comet Lake CPU support · 9066288b
      Kan Liang authored
      
      
      Comet Lake is the new 10th Gen Intel processor. From the perspective
      of Intel PMU, there is nothing changed compared with Sky Lake.
      Share the perf code with Sky Lake.
      
      The patch has been tested on real hardware.
      
      Signed-off-by: default avatarKan Liang <kan.liang@linux.intel.com>
      Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: https://lkml.kernel.org/r/1570549810-25049-3-git-send-email-kan.liang@linux.intel.com
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      9066288b
    • Ingo Molnar's avatar
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-5.4-2' of git://git.linux-nfs.org/projects/anna/linux-nfs · 1c0cc5f1
      Linus Torvalds authored
      Pull NFS client bugfixes from Anna Schumaker:
       "Stable bugfixes:
         - Fix O_DIRECT accounting of number of bytes read/written # v4.1+
      
        Other fixes:
         - Fix nfsi->nrequests count error on nfs_inode_remove_request()
         - Remove redundant mirror tracking in O_DIRECT
         - Fix leak of clp->cl_acceptor string
         - Fix race to sk_err after xs_error_report"
      
      * tag 'nfs-for-5.4-2' of git://git.linux-nfs.org/projects/anna/linux-nfs:
        SUNRPC: fix race to sk_err after xs_error_report
        NFSv4: Fix leak of clp->cl_acceptor string
        NFS: Remove redundant mirror tracking in O_DIRECT
        NFS: Fix O_DIRECT accounting of number of bytes read/written
        nfs: Fix nfsi->nrequests count error on nfs_inode_remove_request
      1c0cc5f1
    • Linus Torvalds's avatar
      Merge tag '5.4-rc2-smb3' of git://git.samba.org/sfrench/cifs-2.6 · c6ad7c3c
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "Eight small SMB3 fixes, four for stable, and important fix for the
        recent regression introduced by filesystem timestamp range patches"
      
      * tag '5.4-rc2-smb3' of git://git.samba.org/sfrench/cifs-2.6:
        CIFS: Force reval dentry if LOOKUP_REVAL flag is set
        CIFS: Force revalidate inode when dentry is stale
        smb3: Fix regression in time handling
        smb3: remove noisy debug message and minor cleanup
        CIFS: Gracefully handle QueryInfo errors during open
        cifs: use cifsInodeInfo->open_file_lock while iterating to avoid a panic
        fs: cifs: mute -Wunused-const-variable message
        smb3: cleanup some recent endian errors spotted by updated sparse
      c6ad7c3c
    • Linus Torvalds's avatar
      Merge tag 'modules-for-v5.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux · c6f6ebd7
      Linus Torvalds authored
      Pull module fixes from Jessica Yu:
       "Code cleanups and kbuild/namespace related fixups from Masahiro.
      
        Most importantly, it fixes a namespace-related modpost issue for
        external module builds
      
         - Fix broken external module builds due to a modpost bug in
           read_dump(), where the namespace was not being strdup'd and
           sym->namespace would be set to bogus data.
      
         - Various namespace-related kbuild fixes and cleanups thanks to
           Masahiro Yamada"
      
      * tag 'modules-for-v5.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux:
        doc: move namespaces.rst from kbuild/ to core-api/
        nsdeps: make generated patches independent of locale
        nsdeps: fix hashbang of scripts/nsdeps
        kbuild: fix build error of 'make nsdeps' in clean tree
        module: rename __kstrtab_ns_* to __kstrtabns_* to avoid symbol conflict
        modpost: fix broken sym->namespace for external module builds
        module: swap the order of symbol.namespace
        scripts: add_namespace: Fix coccicheck failed
      c6f6ebd7
    • Linus Torvalds's avatar
      Merge tag 'hyperv-fixes-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux · 56c642e2
      Linus Torvalds authored
      Pull Hyper-V fixes from Sasha Levin:
       "Two fixes from Dexuan Cui:
      
         - Fix a (harmless) warning when building vmbus without
           CONFIG_PM_SLEEP
      
         - Fix for a memory leak (and optimization) in the hyperv mouse code"
      
      * tag 'hyperv-fixes-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux:
        Drivers: hv: vmbus: Fix harmless building warnings without CONFIG_PM_SLEEP
        HID: hyperv: Use in-place iterator API in the channel callback
      56c642e2
    • Joe Perches's avatar
      Documentation/process: Add fallthrough pseudo-keyword · b9918bdc
      Joe Perches authored
      
      
      Describe the fallthrough pseudo-keyword.
      
      Convert the coding-style.rst example to the keyword style.
      Add description and links to deprecated.rst.
      
      Miguel Ojeda comments on the eventual [[fallthrough]] syntax:
       "Note that C17/C18 does not have [[fallthrough]].
      
        C++17 introduced it, as it is mentioned above. I would keep the
        __attribute__((fallthrough)) -> [[fallthrough]] change you did,
        though, since that is indeed the standard syntax (given the paragraph
        references C++17).
      
        I was told by Aaron Ballman (who is proposing them for C) that it is
        more or less likely that it becomes standardized in C2x. However, it
        is still not added to the draft (other attributes are already,
        though). See N2268 and N2269:
      
           http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2268.pdf (fallthrough)
           http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2269.pdf (attributes in general)"
      
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Acked-by: default avatarNick Desaulniers <ndesaulniers@google.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      b9918bdc
    • Joe Perches's avatar
      compiler_attributes.h: Add 'fallthrough' pseudo keyword for switch/case use · 294f69e6
      Joe Perches authored
      
      
      Reserve the pseudo keyword 'fallthrough' for the ability to convert the
      various case block /* fallthrough */ style comments to appear to be an
      actual reserved word with the same gcc case block missing fallthrough
      warning capability.
      
      All switch/case blocks now should end in one of:
      
      	break;
      	fallthrough;
      	goto <label>;
      	return [expression];
      	continue;
      
      In C mode, GCC supports the __fallthrough__ attribute since 7.1,
      the same time the warning and the comment parsing were introduced.
      
      fallthrough devolves to an empty "do {} while (0)" if the compiler
      version (any version less than gcc 7) does not support the attribute.
      
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Acked-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
      Suggested-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Cc: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      294f69e6
    • Joe Perches's avatar
      net: sctp: Rename fallthrough label to unhandled · 48f9bcf9
      Joe Perches authored
      
      
      fallthrough will become a pseudo reserved keyword so this only use of
      fallthrough is better renamed to allow it.
      
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
      Reviewed-by: default avatarKees Cook <keescook@chromium.org>
      Acked-by: default avatarNeil Horman <nhorman@tuxdriver.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      48f9bcf9
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2019-10-11' of git://anongit.freedesktop.org/drm/drm · 9892f9f6
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "The regular fixes pull for rc3. The i915 team found some fixes they
        (or I) missed for rc1, which is why this is a bit bigger than usual,
        otherwise there is a single amdgpu fix, some spi panel aliases, and a
        bridge fix.
      
        i915:
         - execlist access fixes
         - list deletion fix
         - CML display fix
         - HSW workaround extension to GT2
         - chicken bit whitelist
         - GGTT resume issue
         - SKL GPU hangs for Vulkan compute
      
        amdgpu:
         - memory leak fix
      
        panel:
         - spi aliases
      
        tc358767:
         - bridge artifacts fix"
      
      * tag 'drm-fixes-2019-10-11' of git://anongit.freedesktop.org/drm/drm: (22 commits)
        drm/bridge: tc358767: fix max_tu_symbol value
        drm/i915/gt: execlists->active is serialised by the tasklet
        drm/i915/execlists: Protect peeking at execlists->active
        drm/i915: Fixup preempt-to-busy vs reset of a virtual request
        drm/i915: Only enqueue already completed requests
        drm/i915/execlists: Drop redundant list_del_init(&rq->sched.link)
        drm/i915/cml: Add second PCH ID for CMP
        drm/amdgpu: fix memory leak
        drm/panel: tpo-td043mtea1: Fix SPI alias
        drm/panel: tpo-td028ttec1: Fix SPI alias
        drm/panel: sony-acx565akm: Fix SPI alias
        drm/panel: nec-nl8048hl11: Fix SPI alias
        drm/panel: lg-lb035q02: Fix SPI alias
        drm/i915: Mark contents as dirty on a write fault
        drm/i915: Prevent bonded requests from overtaking each other on preemption
        drm/i915: Bump skl+ max plane width to 5k for linear/x-tiled
        drm/i915: Verify the engine after acquiring the active.lock
        drm/i915: Extend Haswell GT1 PSMI workaround to all
        drm/i915: Don't mix srcu tag and negative error codes
        drm/i915: Whitelist COMMON_SLICE_CHICKEN2
        ...
      9892f9f6
  3. Oct 11, 2019
    • Linus Torvalds's avatar
      Merge tag 'for-linus-20191010' of git://git.kernel.dk/linux-block · 297cbccc
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - Fix wbt performance regression introduced with the blk-rq-qos
         refactoring (Harshad)
      
       - Fix io_uring fileset removal inadvertently killing the workqueue (me)
      
       - Fix io_uring typo in linked command nonblock submission (Pavel)
      
       - Remove spurious io_uring wakeups on request free (Pavel)
      
       - Fix null_blk zoned command error return (Keith)
      
       - Don't use freezable workqueues for backing_dev, also means we can
         revert a previous libata hack (Mika)
      
       - Fix nbd sysfs mutex dropped too soon at removal time (Xiubo)
      
      * tag 'for-linus-20191010' of git://git.kernel.dk/linux-block:
        nbd: fix possible sysfs duplicate warning
        null_blk: Fix zoned command return code
        io_uring: only flush workqueues on fileset removal
        io_uring: remove wait loop spurious wakeups
        blk-wbt: fix performance regression in wbt scale_up/scale_down
        Revert "libata, freezer: avoid block device removal while system is frozen"
        bdi: Do not use freezable workqueue
        io_uring: fix reversed nonblock flag for link submission
      297cbccc
    • Christian Borntraeger's avatar
      s390/uaccess: avoid (false positive) compiler warnings · 062795fc
      Christian Borntraeger authored
      
      
      Depending on inlining decisions by the compiler, __get/put_user_fn
      might become out of line. Then the compiler is no longer able to tell
      that size can only be 1,2,4 or 8 due to the check in __get/put_user
      resulting in false positives like
      
      ./arch/s390/include/asm/uaccess.h: In function ‘__put_user_fn’:
      ./arch/s390/include/asm/uaccess.h:113:9: warning: ‘rc’ may be used uninitialized in this function [-Wmaybe-uninitialized]
        113 |  return rc;
            |         ^~
      ./arch/s390/include/asm/uaccess.h: In function ‘__get_user_fn’:
      ./arch/s390/include/asm/uaccess.h:143:9: warning: ‘rc’ may be used uninitialized in this function [-Wmaybe-uninitialized]
        143 |  return rc;
            |         ^~
      
      These functions are supposed to be always inlined. Mark it as such.
      
      Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
      Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
      062795fc
    • Douglas Anderson's avatar
      MAINTAINERS: kgdb: Add myself as a reviewer for kgdb/kdb · 10deeac9
      Douglas Anderson authored
      
      
      I'm interested in kdb / kgdb and have sent various fixes over the
      years.  I'd like to get CCed on patches so I can be aware of them and
      also help review.
      
      Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
      Acked-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
      Link: https://lore.kernel.org/r/20190920104404.1.I237e68e8825e2d6ac26f8e847f521fe2fcc3705a@changeid
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      10deeac9
    • Emmanuel Nicolet's avatar
      spufs: fix a crash in spufs_create_root() · 2272905a
      Emmanuel Nicolet authored
      The spu_fs_context was not set in fc->fs_private, this caused a crash
      when accessing ctx->mode in spufs_create_root().
      
      Fixes: d2e0981c
      
       ("vfs: Convert spufs to use the new mount API")
      Signed-off-by: default avatarEmmanuel Nicolet <emmanuel.nicolet@gmail.com>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
      Link: https://lore.kernel.org/r/20191008141342.GA266797@gmail.com
      2272905a
    • Dave Airlie's avatar
      Merge tag 'drm-intel-fixes-2019-10-10' of... · 4adbcff2
      Dave Airlie authored
      
      Merge tag 'drm-intel-fixes-2019-10-10' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
      
      - Fix CML display by adding a missing ID.
      - Drop redundant list_del_init
      - Only enqueue already completed requests to avoid races
      - Fixup preempt-to-busy vs reset of a virtual request
      - Protect peeking at execlists->active
      - execlists->active is serialised by the tasklet
      
      drm-intel-next-fixes-2019-09-19:
      - Extend old HSW workaround to fix some GPU hangs on Haswell GT2
      - Fix return error code on GEM mmap.
      - White list a chicken bit register for push constants legacy mode on Mesa
      - Fix resume issue related to GGTT restore
      - Remove incorrect BUG_ON on execlist's schedule-out
      - Fix unrecoverable GPU hangs with Vulkan compute workloads on SKL
      
      drm-intel-next-fixes-2019-09-26:
      - Fix concurrence on cases where requests where getting retired at same time as resubmitted to HW
      - Fix gen9 display resolutions by setting the right max plane width
      - Fix GPU hang on preemption
      - Mark contents as dirty on a write fault. This was breaking cursor sprite with dumb buffers.
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191010143039.GA15313@intel.com
      4adbcff2
    • Dave Airlie's avatar
      Merge tag 'drm-fixes-5.4-2019-10-09' of git://people.freedesktop.org/~agd5f/linux into drm-fixes · 46fe219d
      Dave Airlie authored
      
      
      drm-fixes-5.4-2019-10-09:
      
      amdgpu:
      - fix memory leak in bo_list ioctl error path
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Alex Deucher <alexdeucher@gmail.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191010031023.23359-1-alexander.deucher@amd.com
      46fe219d
    • Dave Airlie's avatar
      Merge tag 'drm-misc-fixes-2019-10-10' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes · 437c5a15
      Dave Airlie authored
      
      
      Short summary of fixes pull (less than what git shortlog provides):
      - SPI Aliases fixes for panels
      - One fix for the tc358767 bridge dealing with visual artifacts
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Maxime Ripard <mripard@kernel.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191010105137.j6juxht5dsobgxph@gilmour
      437c5a15
    • Benjamin Coddington's avatar
      SUNRPC: fix race to sk_err after xs_error_report · af84537d
      Benjamin Coddington authored
      Since commit 4f8943f8
      
       ("SUNRPC: Replace direct task wakeups from
      softirq context") there has been a race to the value of the sk_err if both
      XPRT_SOCK_WAKE_ERROR and XPRT_SOCK_WAKE_DISCONNECT are set.  In that case,
      we may end up losing the sk_err value that existed when xs_error_report was
      called.
      
      Fix this by reverting to the previous behavior: instead of using SO_ERROR
      to retrieve the value at a later time (which might also return sk_err_soft),
      copy the sk_err value onto struct sock_xprt, and use that value to wake
      pending tasks.
      
      Signed-off-by: default avatarBenjamin Coddington <bcodding@redhat.com>
      Fixes: 4f8943f8
      
       ("SUNRPC: Replace direct task wakeups from softirq context")
      Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
      af84537d
    • Chuck Lever's avatar
      NFSv4: Fix leak of clp->cl_acceptor string · 1047ec86
      Chuck Lever authored
      Our client can issue multiple SETCLIENTID operations to the same
      server in some circumstances. Ensure that calls to
      nfs4_proc_setclientid() after the first one do not overwrite the
      previously allocated cl_acceptor string.
      
      unreferenced object 0xffff888461031800 (size 32):
        comm "mount.nfs", pid 2227, jiffies 4294822467 (age 1407.749s)
        hex dump (first 32 bytes):
          6e 66 73 40 6b 6c 69 6d 74 2e 69 62 2e 31 30 31  nfs@klimt.ib.101
          35 67 72 61 6e 67 65 72 2e 6e 65 74 00 00 00 00  5granger.net....
        backtrace:
          [<00000000ab820188>] __kmalloc+0x128/0x176
          [<00000000eeaf4ec8>] gss_stringify_acceptor+0xbd/0x1a7 [auth_rpcgss]
          [<00000000e85e3382>] nfs4_proc_setclientid+0x34e/0x46c [nfsv4]
          [<000000003d9cf1fa>] nfs40_discover_server_trunking+0x7a/0xed [nfsv4]
          [<00000000b81c3787>] nfs4_discover_server_trunking+0x81/0x244 [nfsv4]
          [<000000000801b55f>] nfs4_init_client+0x1b0/0x238 [nfsv4]
          [<00000000977daf7f>] nfs4_set_client+0xfe/0x14d [nfsv4]
          [<0000000053a68a2a>] nfs4_create_server+0x107/0x1db [nfsv4]
          [<0000000088262019>] nfs4_remote_mount+0x2c/0x59 [nfsv4]
          [<00000000e84a2fd0>] legacy_get_tree+0x2d/0x4c
          [<00000000797e947c>] vfs_get_tree+0x20/0xc7
          [<00000000ecabaaa8>] fc_mount+0xe/0x36
          [<00000000f15fafc2>] vfs_kern_mount+0x74/0x8d
          [<00000000a3ff4e26>] nfs_do_root_mount+0x8a/0xa3 [nfsv4]
          [<00000000d1c2b337>] nfs4_try_mount+0x58/0xad [nfsv4]
          [<000000004c9bddee>] nfs_fs_mount+0x820/0x869 [nfs]
      
      Fixes: f11b2a1c
      
       ("nfs4: copy acceptor name from context ... ")
      Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
      Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
      1047ec86
    • Paul Burton's avatar
      MIPS: Disable Loongson MMI instructions for kernel build · 2f2b4fd6
      Paul Burton authored
      
      
      GCC 9.x automatically enables support for Loongson MMI instructions when
      using some -march= flags, and then errors out when -msoft-float is
      specified with:
      
        cc1: error: ‘-mloongson-mmi’ must be used with ‘-mhard-float’
      
      The kernel shouldn't be using these MMI instructions anyway, just as it
      doesn't use floating point instructions. Explicitly disable them in
      order to fix the build with GCC 9.x.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
      Fixes: 3702bba5 ("MIPS: Loongson: Add GCC 4.4 support for Loongson2E")
      Fixes: 6f7a251a ("MIPS: Loongson: Add basic Loongson 2F support")
      Fixes: 5188129b ("MIPS: Loongson-3: Improve -march option and move it to Platform")
      Cc: Huacai Chen <chenhc@lemote.com>
      Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
      Cc: stable@vger.kernel.org # v2.6.32+
      Cc: linux-mips@vger.kernel.org
      2f2b4fd6
    • Jiaxun Yang's avatar
      MIPS: elf_hwcap: Export userspace ASEs · 38dffe1e
      Jiaxun Yang authored
      
      
      A Golang developer reported MIPS hwcap isn't reflecting instructions
      that the processor actually supported so programs can't apply optimized
      code at runtime.
      
      Thus we export the ASEs that can be used in userspace programs.
      
      Reported-by: default avatarMeng Zhuo <mengzhuo1203@gmail.com>
      Signed-off-by: default avatarJiaxun Yang <jiaxun.yang@flygoat.com>
      Cc: linux-mips@vger.kernel.org
      Cc: Paul Burton <paul.burton@mips.com>
      Cc: <stable@vger.kernel.org> # 4.14+
      Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
      38dffe1e