1. 03 Nov, 2019 2 commits
    • Linus Torvalds's avatar
      Linux 5.4-rc6 · a99d8080
      Linus Torvalds authored
      a99d8080
    • Linus Torvalds's avatar
      Merge tag 'usb-5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 3a69c9e5
      Linus Torvalds authored
      Pull USB fixes from Greg KH:
       "The USB sub-maintainers woke up this past week and sent a bunch of
        tiny fixes. Here are a lot of small patches that that resolve a bunch
        of reported issues in the USB core, drivers, serial drivers, gadget
        drivers, and of course, xhci :)
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'usb-5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (31 commits)
        usb: dwc3: gadget: fix race when disabling ep with cancelled xfers
        usb: cdns3: gadget: Fix g_audio use case when connected to Super-Speed host
        usb: cdns3: gadget: reset EP_CLAIMED flag while unloading
        USB: serial: whiteheat: fix line-speed endianness
        USB: serial: whiteheat: fix potential slab corruption
        USB: gadget: Reject endpoints with 0 maxpacket value
        UAS: Revert commit 3ae62a42 ("UAS: fix alignment of scatter/gather segments")
        usb-storage: Revert commit 747668db ("usb-storage: Set virt_boundary_mask to avoid SG overflows")
        usbip: Fix free of unallocated memory in vhci tx
        usbip: tools: Fix read_usb_vudc_device() error path handling
        usb: xhci: fix __le32/__le64 accessors in debugfs code
        usb: xhci: fix Immediate Data Transfer endianness
        xhci: Fix use-after-free regression in xhci clear hub TT implementation
        USB: ldusb: fix control-message timeout
        USB: ldusb: use unsigned size format specifiers
        USB: ldusb: fix ring-buffer locking
        USB: Skip endpoints with 0 maxpacket length
        usb: cdns3: gadget: Don't manage pullups
        usb: dwc3: remove the call trace of USBx_GFLADJ
        usb: gadget: configfs: fix concurrent issue between composite APIs
        ...
      3a69c9e5
  2. 02 Nov, 2019 10 commits
    • Linus Torvalds's avatar
      Merge tag '5.4-rc6-smb3-fix' of git://git.samba.org/sfrench/cifs-2.6 · 56cfd250
      Linus Torvalds authored
      Pull cifs fix from Steve French:
       "A small smb3 memleak fix"
      
      * tag '5.4-rc6-smb3-fix' of git://git.samba.org/sfrench/cifs-2.6:
        fix memory leak in large read decrypt offload
      56cfd250
    • Linus Torvalds's avatar
      Merge tag 'hwmon-for-v5.4-rc6' of... · 9d234505
      Linus Torvalds authored
      Merge tag 'hwmon-for-v5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
      
      Pull hwmon fixes from Guenter Roeck:
      
       - Fix read timeout problem in ina3221 driver
      
       - Fix wrong bitmask in nct7904 driver
      
      * tag 'hwmon-for-v5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
        hwmon: (ina3221) Fix read timeout issue
        hwmon: (nct7904) Fix the incorrect value of vsen_mask & tcpu_mask & temp_mode in nct7904_data struct.
      9d234505
    • Linus Torvalds's avatar
      Merge tag 'pwm/for-5.4-rc6' of... · e935842a
      Linus Torvalds authored
      Merge tag 'pwm/for-5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm
      
      Pull pwm fixes from Thierry Reding:
       "It turned out that relying solely on drivers storing all the PWM state
        in hardware was a little premature and causes a number of subtle (and
        some not so subtle) regressions. Revert the offending patch for now"
      
      * tag 'pwm/for-5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm:
        Revert "pwm: Let pwm_get_state() return the last implemented state"
      e935842a
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · f83e148a
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Nine changes, eight in drivers [ufs, target, lpfc x 2, qla2xxx x 4]
        and one core change in sd that fixes an I/O failure on DIF type 3
        devices"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: qla2xxx: stop timer in shutdown path
        scsi: sd: define variable dif as unsigned int instead of bool
        scsi: target: cxgbit: Fix cxgbit_fw4_ack()
        scsi: qla2xxx: Fix partial flash write of MBI
        scsi: qla2xxx: Initialized mailbox to prevent driver load failure
        scsi: lpfc: Honor module parameter lpfc_use_adisc
        scsi: ufs-bsg: Wake the device before sending raw upiu commands
        scsi: lpfc: Check queue pointer before use
        scsi: qla2xxx: fixup incorrect usage of host_byte
      f83e148a
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.4-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 8194c28e
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
       "Our recent cleanup of EEH led to an oops on bare metal machines when
        the cxl (CAPI) driver creates virtual devices for an attached FPGA
        accelerator.
      
        The "secure virtual machine" support we added in v5.4 had a bug if the
        kernel was relocated (moved during boot), in those cases the signature
        of the kernel text wouldn't verify and the Ultravisor would refuse to
        run the VM.
      
        A recent change to disable interrupts before calling
        arch_cpu_idle_dead() caused a WARN_ON() in our bare metal CPU offline
        code to always trigger.
      
        The KUAP (SMAP) support we added for 32-bit Book3S had a bug if the
        address range crossed a segment (256MB) boundary which could lead to
        spurious faults.
      
        Thanks to: Christophe Leroy, Frederic Barrat, Michael Anderson,
        Nicholas Piggin, Sam Bobroff, Thiago Jung Bauermann"
      
      * tag 'powerpc-5.4-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/powernv: Fix CPU idle to be called with IRQs disabled
        powerpc/prom_init: Undo relocation before entering secure mode
        powerpc/powernv/eeh: Fix oops when probing cxl devices
        powerpc/32s: fix allow/prevent_user_access() when crossing segment boundaries.
      8194c28e
    • Linus Torvalds's avatar
      Merge tag 's390-5.4-6' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 969a5197
      Linus Torvalds authored
      Pull s390 fixes from Vasily Gorbik:
      
       - Fix cpu idle time accounting
      
       - Fix stack unwinder case when both pt_regs and sp are specified
      
       - Fix information leak via cmm timeout proc handler
      
      * tag 's390-5.4-6' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/idle: fix cpu idle time calculation
        s390/unwind: fix mixing regs and sp
        s390/cmm: fix information leak in cmm_timeout_handler()
      969a5197
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 1204c70d
      Linus Torvalds authored
      Pull networking fixes from David Miller:
      
       1) Fix free/alloc races in batmanadv, from Sven Eckelmann.
      
       2) Several leaks and other fixes in kTLS support of mlx5 driver, from
          Tariq Toukan.
      
       3) BPF devmap_hash cost calculation can overflow on 32-bit, from Toke
          Høiland-Jørgensen.
      
       4) Add an r8152 device ID, from Kazutoshi Noguchi.
      
       5) Missing include in ipv6's addrconf.c, from Ben Dooks.
      
       6) Use siphash in flow dissector, from Eric Dumazet. Attackers can
          easily infer the 32-bit secret otherwise etc.
      
       7) Several netdevice nesting depth fixes from Taehee Yoo.
      
       8) Fix several KCSAN reported errors, from Eric Dumazet. For example,
          when doing lockless skb_queue_empty() checks, and accessing
          sk_napi_id/sk_incoming_cpu lockless as well.
      
       9) Fix jumbo packet handling in RXRPC, from David Howells.
      
      10) Bump SOMAXCONN and tcp_max_syn_backlog values, from Eric Dumazet.
      
      11) Fix DMA synchronization in gve driver, from Yangchun Fu.
      
      12) Several bpf offload fixes, from Jakub Kicinski.
      
      13) Fix sk_page_frag() recursion during memory reclaim, from Tejun Heo.
      
      14) Fix ping latency during high traffic rates in hisilicon driver, from
          Jiangfent Xiao.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (146 commits)
        net: fix installing orphaned programs
        net: cls_bpf: fix NULL deref on offload filter removal
        selftests: bpf: Skip write only files in debugfs
        selftests: net: reuseport_dualstack: fix uninitalized parameter
        r8169: fix wrong PHY ID issue with RTL8168dp
        net: dsa: bcm_sf2: Fix IMP setup for port different than 8
        net: phylink: Fix phylink_dbg() macro
        gve: Fixes DMA synchronization.
        inet: stop leaking jiffies on the wire
        ixgbe: Remove duplicate clear_bit() call
        Documentation: networking: device drivers: Remove stray asterisks
        e1000: fix memory leaks
        i40e: Fix receive buffer starvation for AF_XDP
        igb: Fix constant media auto sense switching when no cable is connected
        net: ethernet: arc: add the missed clk_disable_unprepare
        igb: Enable media autosense for the i350.
        igb/igc: Don't warn on fatal read failures when the device is removed
        tcp: increase tcp_max_syn_backlog max value
        net: increase SOMAXCONN to 4096
        netdevsim: Fix use-after-free during device dismantle
        ...
      1204c70d
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-5.4-3' of git://git.linux-nfs.org/projects/anna/linux-nfs · 372bf6c1
      Linus Torvalds authored
      Pull NFS client bugfixes from Anna Schumaker:
       "This contains two delegation fixes (with the RCU lock leak fix marked
        for stable), and three patches to fix destroying the the sunrpc back
        channel.
      
        Stable bugfixes:
      
         - Fix an RCU lock leak in nfs4_refresh_delegation_stateid()
      
        Other fixes:
      
         - The TCP back channel mustn't disappear while requests are
           outstanding
      
         - The RDMA back channel mustn't disappear while requests are
           outstanding
      
         - Destroy the back channel when we destroy the host transport
      
         - Don't allow a cached open with a revoked delegation"
      
      * tag 'nfs-for-5.4-3' of git://git.linux-nfs.org/projects/anna/linux-nfs:
        NFS: Fix an RCU lock leak in nfs4_refresh_delegation_stateid()
        NFSv4: Don't allow a cached open with a revoked delegation
        SUNRPC: Destroy the back channel when we destroy the host transport
        SUNRPC: The RDMA back channel mustn't disappear while requests are outstanding
        SUNRPC: The TCP back channel mustn't disappear while requests are outstanding
      372bf6c1
    • Linus Torvalds's avatar
      Merge tag 'for-linus-20191101' of git://git.kernel.dk/linux-block · 0821de28
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - Two small nvme fixes, one is a fabrics connection fix, the other one
         a cleanup made possible by that fix (Anton, via Keith)
      
       - Fix requeue handling in umb ubd (Anton)
      
       - Fix spin_lock_irq() nesting in blk-iocost (Dan)
      
       - Three small io_uring fixes:
           - Install io_uring fd after done with ctx (me)
           - Clear ->result before every poll issue (me)
           - Fix leak of shadow request on error (Pavel)
      
      * tag 'for-linus-20191101' of git://git.kernel.dk/linux-block:
        iocost: don't nest spin_lock_irq in ioc_weight_write()
        io_uring: ensure we clear io_kiocb->result before each issue
        um-ubd: Entrust re-queue to the upper layers
        nvme-multipath: remove unused groups_only mode in ana log
        nvme-multipath: fix possible io hang after ctrl reconnect
        io_uring: don't touch ctx in setup after ring fd install
        io_uring: Fix leaked shadow_req
      0821de28
    • Linus Torvalds's avatar
      Merge tag 'riscv/for-v5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · e5897c7d
      Linus Torvalds authored
      Pull RISC-V fixes from Paul Walmsley:
       "One fix for PCIe users:
      
         - Fix legacy PCI I/O port access emulation
      
        One set of cleanups:
      
         - Resolve most of the warnings generated by sparse across arch/riscv.
           No functional changes
      
        And one MAINTAINERS update:
      
         - Update Palmer's E-mail address"
      
      * tag 'riscv/for-v5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        MAINTAINERS: Change to my personal email address
        RISC-V: Add PCIe I/O BAR memory mapping
        riscv: for C functions called only from assembly, mark with __visible
        riscv: fp: add missing __user pointer annotations
        riscv: add missing header file includes
        riscv: mark some code and data as file-static
        riscv: init: merge split string literals in preprocessor directive
        riscv: add prototypes for assembly language functions from head.S
      e5897c7d
  3. 01 Nov, 2019 28 commits
    • Linus Torvalds's avatar
      Merge branch 'parisc-5.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · 31408fbe
      Linus Torvalds authored
      Pull parisc fix from Helge Deller:
       "Fix a parisc kernel crash with ftrace functions when compiled without
        frame pointers"
      
      * 'parisc-5.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc: fix frame pointer in ftrace_regs_caller()
      31408fbe
    • David S. Miller's avatar
      Merge branch 'fix-BPF-offload-related-bugs' · aeb1b85c
      David S. Miller authored
      Jakub Kicinski says:
      
      ====================
      fix BPF offload related bugs
      
      test_offload.py catches some recently added bugs.
      
      First of a bug in test_offload.py itself after recent changes
      to netdevsim is fixed.
      
      Second patch fixes a bug in cls_bpf, and last one addresses
      a problem with the recently added XDP installation optimization.
      ====================
      Signed-off-by: default avatarDavid S. Miller <[email protected]>
      aeb1b85c
    • Jakub Kicinski's avatar
      net: fix installing orphaned programs · aefc3e72
      Jakub Kicinski authored
      When netdevice with offloaded BPF programs is destroyed
      the programs are orphaned and removed from the program
      IDA - their IDs get released (the programs may remain
      accessible via existing open file descriptors and pinned
      files). After IDs are released they are set to 0.
      
      This confuses dev_change_xdp_fd() because it compares
      the __dev_xdp_query() result where 0 means no program
      with prog->aux->id where 0 means orphaned.
      
      dev_change_xdp_fd() would have incorrectly returned success
      even though it had not installed the program.
      
      Since drivers already catch this case via bpf_offload_dev_match()
      let them handle this case. The error message drivers produce in
      this case ("program loaded for a different device") is in fact
      correct as the orphaned program must had to be loaded for a
      different device.
      
      Fixes: c14a9f63 ("net: Don't call XDP_SETUP_PROG when nothing is changed")
      Signed-off-by: default avatarJakub Kicinski <[email protected]>
      Signed-off-by: default avatarDavid S. Miller <[email protected]>
      aefc3e72
    • Jakub Kicinski's avatar
      net: cls_bpf: fix NULL deref on offload filter removal · 41aa29a5
      Jakub Kicinski authored
      Commit 40119211 ("net: sched: refactor block offloads counter
      usage") missed the fact that either new prog or old prog may be
      NULL.
      
      Fixes: 40119211 ("net: sched: refactor block offloads counter usage")
      Signed-off-by: default avatarJakub Kicinski <[email protected]>
      Signed-off-by: default avatarDavid S. Miller <[email protected]>
      41aa29a5
    • Jakub Kicinski's avatar
      selftests: bpf: Skip write only files in debugfs · 8101e069
      Jakub Kicinski authored
      DebugFS for netdevsim now contains some "action trigger" files
      which are write only. Don't try to capture the contents of those.
      
      Note that we can't use os.access() because the script requires
      root.
      
      Fixes: 4418f862 ("netdevsim: implement support for devlink region and snapshots")
      Signed-off-by: default avatarJakub Kicinski <[email protected]>
      Signed-off-by: default avatarDavid S. Miller <[email protected]>
      8101e069
    • Wei Wang's avatar
      selftests: net: reuseport_dualstack: fix uninitalized parameter · d64479a3
      Wei Wang authored
      This test reports EINVAL for getsockopt(SOL_SOCKET, SO_DOMAIN)
      occasionally due to the uninitialized length parameter.
      Initialize it to fix this, and also use int for "test_family" to comply
      with the API standard.
      
      Fixes: d6a61f80 ("soreuseport: test mixed v4/v6 sockets")
      Reported-by: Maciej Żenczykowski's avatarMaciej Żenczykowski <[email protected]>
      Signed-off-by: default avatarEric Dumazet <[email protected]>
      Signed-off-by: default avatarWei Wang <[email protected]>
      Cc: Craig Gallek <[email protected]>
      Signed-off-by: default avatarDavid S. Miller <[email protected]>
      d64479a3
    • Heiner Kallweit's avatar
      r8169: fix wrong PHY ID issue with RTL8168dp · 62bdc8fd
      Heiner Kallweit authored
      As reported in [0] at least one RTL8168dp version has problems
      establishing a link. This chip version has an integrated RTL8211b PHY,
      however the chip seems to report a wrong PHY ID, resulting in a wrong
      PHY driver (for Generic Realtek PHY) being loaded.
      Work around this issue by adding a hook to r8168dp_2_mdio_read()
      for returning the correct PHY ID.
      
      [0] https://bbs.archlinux.org/viewtopic.php?id=246508
      
      Fixes: 242cd9b5 ("r8169: use phy_resume/phy_suspend")
      Signed-off-by: default avatarHeiner Kallweit <[email protected]>
      Signed-off-by: default avatarDavid S. Miller <[email protected]>
      62bdc8fd
    • Florian Fainelli's avatar
      net: dsa: bcm_sf2: Fix IMP setup for port different than 8 · 5fc0f212
      Florian Fainelli authored
      Since it became possible for the DSA core to use a CPU port different
      than 8, our bcm_sf2_imp_setup() function was broken because it assumes
      that registers are applicable to port 8. In particular, the port's MAC
      is going to stay disabled, so make sure we clear the RX_DIS and TX_DIS
      bits if we are not configured for port 8.
      
      Fixes: 9f91484f ("net: dsa: make "label" property optional for dsa2")
      Signed-off-by: default avatarFlorian Fainelli <[email protected]>
      Signed-off-by: default avatarDavid S. Miller <[email protected]>
      5fc0f212
    • Florian Fainelli's avatar
      net: phylink: Fix phylink_dbg() macro · 9d68db50
      Florian Fainelli authored
      The phylink_dbg() macro does not follow dynamic debug or defined(DEBUG)
      and as a result, it spams the kernel log since a PR_DEBUG level is
      currently used. Fix it to be defined appropriately whether
      CONFIG_DYNAMIC_DEBUG or defined(DEBUG) are set.
      
      Fixes: 17091180 ("net: phylink: Add phylink_{printk, err, warn, info, dbg} macros")
      Signed-off-by: default avatarFlorian Fainelli <[email protected]>
      Signed-off-by: default avatarDavid S. Miller <[email protected]>
      9d68db50
    • Yangchun Fu's avatar
      gve: Fixes DMA synchronization. · 9cfeeb57
      Yangchun Fu authored
      Synces the DMA buffer properly in order for CPU and device to see
      the most up-to-data data.
      Signed-off-by: default avatarYangchun Fu <[email protected]>
      Reviewed-by: default avatarCatherine Sullivan <[email protected]>
      Signed-off-by: default avatarDavid S. Miller <[email protected]>
      9cfeeb57
    • Eric Dumazet's avatar
      inet: stop leaking jiffies on the wire · a904a069
      Eric Dumazet authored
      Historically linux tried to stick to RFC 791, 1122, 2003
      for IPv4 ID field generation.
      
      RFC 6864 made clear that no matter how hard we try,
      we can not ensure unicity of IP ID within maximum
      lifetime for all datagrams with a given source
      address/destination address/protocol tuple.
      
      Linux uses a per socket inet generator (inet_id), initialized
      at connection startup with a XOR of 'jiffies' and other
      fields that appear clear on the wire.
      
      Thiemo Nagel pointed that this strategy is a privacy
      concern as this provides 16 bits of entropy to fingerprint
      devices.
      
      Let's switch to a random starting point, this is just as
      good as far as RFC 6864 is concerned and does not leak
      anything critical.
      
      Fixes: 1da177e4 ("Linux-2.6.12-rc2")
      Signed-off-by: default avatarEric Dumazet <[email protected]>
      Reported-by: default avatarThiemo Nagel <[email protected]>
      Signed-off-by: default avatarDavid S. Miller <[email protected]>
      a904a069
    • David S. Miller's avatar
      Merge branch '1GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/net-queue · c8c2cd81
      David S. Miller authored
      Jeff Kirsher says:
      
      ====================
      Intel Wired LAN Driver Updates 2019-11-01
      
      This series contains updates to e1000, igb, igc, ixgbe, i40e and driver
      documentation.
      
      Lyude Paul fixes an issue where a fatal read error occurs when the
      device is unplugged from the machine.  So change the read error into a
      warn while the device is still present.
      
      Manfred Rudigier found that the i350 device was not apart of the "Media
      Auto Sense" feature, yet the device supports it.  So add the missing
      i350 device to the check and fix an issue where the media auto sense
      would flip/flop when no cable was connected to the port causing spurious
      kernel log messages.
      
      I fixed an issue where the fix to resolve receive buffer starvation was
      applied in more than one place in the driver, one being the incorrect
      location in the i40e driver.
      
      Wenwen Wang fixes a potential memory leak in e1000 where allocated
      memory is not properly cleaned up in one of the error paths.
      
      Jonathan Neuschäfer cleans up the driver documentation to be consistent
      and remove the footnote reference, since the footnote no longer exists in
      the documentation.
      
      Igor Pylypiv cleans up a duplicate clearing of a bit, no need to clear
      it twice.
      
      v2: Fixed alignment issue in patch 3 of the series based on community
          feedback.
      ====================
      Signed-off-by: default avatarDavid S. Miller <[email protected]>
      c8c2cd81
    • Igor Pylypiv's avatar
      ixgbe: Remove duplicate clear_bit() call · 451fe015
      Igor Pylypiv authored
      __IXGBE_RX_BUILD_SKB_ENABLED bit is already cleared.
      Signed-off-by: default avatarIgor Pylypiv <[email protected]>
      Tested-by: default avatarAndrew Bowers <[email protected]>
      Signed-off-by: default avatarJeff Kirsher <[email protected]>
      451fe015
    • Jonathan Neuschäfer's avatar
      Documentation: networking: device drivers: Remove stray asterisks · 17df5ae1
      Jonathan Neuschäfer authored
      These asterisks were once references to a line that said:
        "* Other names and brands may be claimed as the property of others."
      But now, they serve no purpose; they can only irritate the reader.
      
      Fixes: de3edab4 ("e1000: update README for e1000")
      Fixes: a3fb6568 ("e100.txt: Cleanup license info in kernel doc")
      Fixes: da8c01c4 ("e1000e.txt: Add e1000e documentation")
      Fixes: f12a84a9 ("Documentation: fm10k: Add kernel documentation")
      Fixes: b55c52b1 ("igb.txt: Add igb documentation")
      Fixes: c4e9b56e ("igbvf.txt: Add igbvf Documentation")
      Fixes: d7064f4c ("Documentation/networking/: Update Intel wired LAN driver documentation")
      Fixes: c4b8c011 ("ixgbevf.txt: Update ixgbevf documentation")
      Fixes: 1e06edcc ("Documentation: i40e: Prepare documentation for RST conversion")
      Fixes: 105bf2fe ("i40evf: add driver to kernel build system")
      Fixes: 1fae869b ("Documentation: ice: Prepare documentation for RST conversion")
      Fixes: df69ba43 ("ionic: Add basic framework for IONIC Network device driver")
      Signed-off-by: default avatarJonathan Neuschäfer <[email protected]>
      Tested-by: default avatarAaron Brown <[email protected]>
      Signed-off-by: default avatarJeff Kirsher <[email protected]>
      17df5ae1
    • Wenwen Wang's avatar
      e1000: fix memory leaks · 8472ba62
      Wenwen Wang authored
      In e1000_set_ringparam(), 'tx_old' and 'rx_old' are not deallocated if
      e1000_up() fails, leading to memory leaks. Refactor the code to fix this
      issue.
      Signed-off-by: Wenwen Wang's avatarWenwen Wang <[email protected]>
      Tested-by: default avatarAaron Brown <[email protected]>
      Signed-off-by: default avatarJeff Kirsher <[email protected]>
      8472ba62
    • Jeff Kirsher's avatar
      i40e: Fix receive buffer starvation for AF_XDP · 2c19e395
      Jeff Kirsher authored
      Magnus's fix to resolve a potential receive buffer starvation for AF_XDP
      got applied to both the i40e_xsk_umem_enable/disable() functions, when it
      should have only been applied to the "enable".  So clean up the undesired
      code in the disable function.
      
      CC: Magnus Karlsson <[email protected]>
      Fixes: 1f459bdc ("i40e: fix potential RX buffer starvation for AF_XDP")
      Signed-off-by: default avatarJeff Kirsher <[email protected]>
      Tested-by: default avatarAndrew Bowers <[email protected]>
      2c19e395
    • Manfred Rudigier's avatar
      igb: Fix constant media auto sense switching when no cable is connected · 8d5cfd7f
      Manfred Rudigier authored
      At least on the i350 there is an annoying behavior that is maybe also
      present on 82580 devices, but was probably not noticed yet as MAS is not
      widely used.
      
      If no cable is connected on both fiber/copper ports the media auto sense
      code will constantly swap between them as part of the watchdog task and
      produce many unnecessary kernel log messages.
      
      The swap code responsible for this behavior (switching to fiber) should
      not be executed if the current media type is copper and there is no signal
      detected on the fiber port. In this case we can safely wait until the
      AUTOSENSE_EN bit is cleared.
      Signed-off-by: default avatarManfred Rudigier <[email protected]>
      Tested-by: default avatarAaron Brown <[email protected]>
      Signed-off-by: default avatarJeff Kirsher <[email protected]>
      8d5cfd7f
    • Linus Torvalds's avatar
      Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 0dbe6cb8
      Linus Torvalds authored
      Pull scheduler fixes from Ingo Molnar:
       "Fix two scheduler topology bugs/oversights on Juno r0 2+4 big.LITTLE
        systems"
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/topology: Allow sched_asym_cpucapacity to be disabled
        sched/topology: Don't try to build empty sched domains
      0dbe6cb8
    • Linus Torvalds's avatar
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 355f83c1
      Linus Torvalds authored
      Pull perf fixes from Ingo Molnar:
       "Misc fixes: an ABI fix for a reserved field, AMD IBS fixes, an Intel
        uncore PMU driver fix and a header typo fix"
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/headers: Fix spelling s/EACCESS/EACCES/, s/privilidge/privilege/
        perf/x86/uncore: Fix event group support
        perf/x86/amd/ibs: Handle erratum #420 only on the affected CPU family (10h)
        perf/x86/amd/ibs: Fix reading of the IBS OpData register and thus precise RIP validity
        perf/core: Start rejecting the syscall with attr.__reserved_2 set
      355f83c1
    • Linus Torvalds's avatar
      Merge branch 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · b2a18c25
      Linus Torvalds authored
      Pull EFI fixes from Ingo Molnar:
       "Various fixes all over the map: prevent boot crashes on HyperV,
        classify UEFI randomness as bootloader randomness, fix EFI boot for
        the Raspberry Pi2, fix efi_test permissions, etc"
      
      * 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        efi/efi_test: Lock down /dev/efi_test and require CAP_SYS_ADMIN
        x86, efi: Never relocate kernel below lowest acceptable address
        efi: libstub/arm: Account for firmware reserved memory at the base of RAM
        efi/random: Treat EFI_RNG_PROTOCOL output as bootloader randomness
        efi/tpm: Return -EINVAL when determining tpm final events log size fails
        efi: Make CONFIG_EFI_RCI2_TABLE selectable on x86 only
      b2a18c25
    • David S. Miller's avatar
      Merge tag 'wireless-drivers-2019-11-01' of... · 33e49805
      David S. Miller authored
      Merge tag 'wireless-drivers-2019-11-01' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers
      
      Kalle Valo says:
      
      ====================
      wireless-drivers fixes for 5.4
      
      Third set of fixes for 5.4. Most of them are for iwlwifi but important
      fixes also for rtlwifi and mt76, the overflow fix for rtlwifi being
      most important.
      
      iwlwifi
      
      * fix merge damage on earlier patch
      
      * various fixes to device id handling
      
      * fix scan config command handling which caused firmware asserts
      
      rtlwifi
      
      * fix overflow on P2P IE handling
      
      * don't deliver too small frames to mac80211
      
      mt76
      
      * disable PCIE_ASPM
      
      * fix buffer DMA unmap on certain cases
      ====================
      Signed-off-by: default avatarDavid S. Miller <[email protected]>
      33e49805
    • Will Lester's avatar
      net: ethernet: arc: add the missed clk_disable_unprepare · 4202e219
      Will Lester authored
      The remove misses to disable and unprepare priv->macclk like what is done
      when probe fails.
      Add the missed call in remove.
      Signed-off-by: Will Lester's avatarChuhong Yuan <[email protected]>
      Signed-off-by: default avatarDavid S. Miller <[email protected]>
      4202e219
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · d540c398
      Linus Torvalds authored
      Pull arm64 fixes from Will Deacon:
       "These are almost exclusively related to CPU errata in CPUs from
        Broadcom and Qualcomm where the workarounds were either not being
        enabled when they should have been or enabled when they shouldn't have
        been.
      
        The only "interesting" fix is ensuring that writeable, shared mappings
        are initially mapped as clean since we inadvertently broke the logic
        back in v4.14 and then noticed the problem via code inspection the
        other day.
      
        The only critical issue we have outstanding is a sporadic NULL
        dereference in the scheduler, which doesn't appear to be
        arm64-specific and PeterZ is tearing his hair out over it at the
        moment.
      
        Summary:
      
         - Enable CPU errata workarounds for Broadcom Brahma-B53
      
         - Enable CPU errata workarounds for Qualcomm Hydra/Kryo CPUs
      
         - Fix initial dirty status of writeable, shared mappings"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: apply ARM64_ERRATUM_843419 workaround for Brahma-B53 core
        arm64: Brahma-B53 is SSB and spectre v2 safe
        arm64: apply ARM64_ERRATUM_845719 workaround for Brahma-B53 core
        arm64: cpufeature: Enable Qualcomm Falkor errata 1009 for Kryo
        arm64: cpufeature: Enable Qualcomm Falkor/Kryo errata 1003
        arm64: Ensure VM_WRITE|VM_SHARED ptes are clean by default
      d540c398
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · b88866b6
      Linus Torvalds authored
      Pull kvm fixes from Paolo Bonzini:
       "generic:
         - fix memory leak on failure to create VM
      
        x86:
         - fix MMU corner case with AMD nested paging disabled"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM: vmx, svm: always run with EFER.NXE=1 when shadow paging is active
        kvm: call kvm_arch_destroy_vm if vm creation fails
        kvm: Allocate memslots and buses before calling kvm_arch_init_vm
      b88866b6
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2019-11-01' of git://anongit.freedesktop.org/drm/drm · 14616244
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "This is the regular drm fixes pull request for 5.4-rc6. It's a bit
        larger than I'd like but then last week was quieter than usual.
      
        The main fixes are amdgpu, and the two bigger area are navi fixes
        which are the newest GPU range so still getting actively fixed up, but
        also a bunch of clang stack alignment fixes (as amdgpu uses double in
        some places).
      
        Otherwise it's all fairly run of the mill fixes, i915, panfrost,
        etnaviv, v3d and radeon, along with a core scheduler fix.
      
        Summary:
      
        amdgpu:
         - clang alignment fixes
         - Updated golden settings
         - navi: gpuvm, sdma and display fixes
         - Freesync fix
         - Gamma fix for DCN
         - DP dongle detection fix
         - vega10: Fix for undervolting
      
        radeon:
         - reenable kexec fix for ppc
      
        scheduler:
         - set an error if hw job failed
      
        i915:
         - fix PCH reference clock for HSW/BDW
         - TGL display PLL doc fix
      
        panfrost:
         - warning fix
         - runtime pm fix
         - bad pointer dereference fix
      
        v3d:
         - memleak fix
      
        etnaviv:
         - memory corruption fix
         - deadlock fix
         - reintroduce lost debug message"
      
      * tag 'drm-fixes-2019-11-01' of git://anongit.freedesktop.org/drm/drm: (29 commits)
        drm/amdgpu: enable -msse2 for GCC 7.1+ users
        drm/amdgpu: fix stack alignment ABI mismatch for GCC 7.1+
        drm/amdgpu: fix stack alignment ABI mismatch for Clang
        drm/radeon: Fix EEH during kexec
        drm/amdgpu/gmc10: properly set BANK_SELECT and FRAGMENT_SIZE
        drm/amdgpu/powerplay/vega10: allow undervolting in p7
        dc.c:use kzalloc without test
        drm/amd/display: setting the DIG_MODE to the correct value.
        drm/amd/display: Passive DP->HDMI dongle detection fix
        drm/amd/display: add 50us buffer as WA for pstate switch in active
        drm/amd/display: Allow inverted gamma
        drm/amd/display: do not synchronize "drr" displays
        drm/amdgpu: If amdgpu_ib_schedule fails return back the error.
        drm/sched: Set error to s_fence if HW job submission failed.
        drm/amdgpu/gfx10: update gfx golden settings for navi12
        drm/amdgpu/gfx10: update gfx golden settings for navi14
        drm/amdgpu/gfx10: update gfx golden settings
        drm/amd/display: Change Navi14's DWB flag to 1
        drm/amdgpu/sdma5: do not execute 0-sized IBs (v2)
        drm/amdgpu: Fix SDMA hang when performing VKexample test
        ...
      14616244
    • Linus Torvalds's avatar
      Merge tag 'pm-5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 65a5bf1c
      Linus Torvalds authored
      Pull power management fix from Rafael Wysocki:
       "Fix a recently introduced (mostly theoretical) issue that the requests
        to confine the maximum CPU frequency coming from the platform firmware
        may not be taken into account if multiple CPUs are covered by one
        cpufreq policy on a system with ACPI"
      
      * tag 'pm-5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: processor: Add QoS requests for all CPUs
      65a5bf1c
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · 4252a1a9
      Linus Torvalds authored
      Pull rdma fixes from Jason Gunthorpe:
       "A number of bug fixes and a regression fix:
      
         - Various issues from static analysis in hfi1, uverbs, hns, and cxgb4
      
         - Fix for deadlock in a case when the new auto RDMA module loading is
           used
      
         - Missing _irq notation in a prior -rc patch found by lockdep
      
         - Fix a locking and lifetime issue in siw
      
         - Minor functional bug fixes in cxgb4, mlx5, qedr
      
         - Fix a regression where vlan interfaces no longer worked with RDMA
           CM in some cases"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
        RDMA/hns: Prevent memory leaks of eq->buf_list
        RDMA/iw_cxgb4: Avoid freeing skb twice in arp failure case
        RDMA/mlx5: Use irq xarray locking for mkey_table
        IB/core: Avoid deadlock during netlink message handling
        RDMA/nldev: Skip counter if port doesn't match
        RDMA/uverbs: Prevent potential underflow
        IB/core: Use rdma_read_gid_l2_fields to compare GID L2 fields
        RDMA/qedr: Fix reported firmware version
        RDMA/siw: free siw_base_qp in kref release routine
        RDMA/iwcm: move iw_rem_ref() calls out of spinlock
        iw_cxgb4: fix ECN check on the passive accept
        IB/hfi1: Use a common pad buffer for 9B and 16B packets
        IB/hfi1: Avoid excessive retry for TID RDMA READ request
        RDMA/mlx5: Clear old rate limit when closing QP
      4252a1a9
    • Linus Torvalds's avatar
      Merge tag 'sound-5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 28585980
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "A couple of regression fixes and a fix for mutex deadlock at
        hog-unplug, as well as other device-specific fixes:
      
         - A commit to avoid the spurious unsolicited interrupt on HD-audio
           bus caused a stall at shutdown, so it's reverted now.
      
         - The recent support of AMD/Nvidia audio component binding caused a
           mutex deadlock; fixed by splitting to another mutex
      
         - The device hot-unplug and the ALSA timer close combo may lead to
           another mutex deadlock; fixed by moving put_device() calls
      
         - Usual device-specific small quirks for HD- and USB-audio drivers
      
         - An old error check fix in FireWire driver"
      
      * tag 'sound-5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: timer: Fix mutex deadlock at releasing card
        ALSA: hda - Fix mutex deadlock in HDMI codec driver
        Revert "ALSA: hda: Flush interrupts on disabling"
        ALSA: bebob: Fix prototype of helper function to return negative value
        ALSA: hda/realtek - Fix 2 front mics of codec 0x623
        ALSA: hda/realtek - Add support for ALC623
        ALSA: usb-audio: Add DSD support for Gustard U16/X26 USB Interface
      28585980