1. Aug 06, 2020
    • Bjorn Helgaas's avatar
      Merge branch 'pci/peer-to-peer' · 4f7adb6e
      Bjorn Helgaas authored
      - Allow P2PDMA on AMD Zen and newer CPUs (Logan Gunthorpe)
      
      * pci/peer-to-peer:
        PCI/P2PDMA: Allow P2PDMA on AMD Zen and newer CPUs
      4f7adb6e
    • Bjorn Helgaas's avatar
      Merge branch 'pci/msi' · d697552f
      Bjorn Helgaas authored
      - Forward MSI-X error code in pci_alloc_irq_vectors_affinity() (Piotr
        Stankiewicz)
      
      * pci/msi:
        PCI/MSI: Forward MSI-X error code in pci_alloc_irq_vectors_affinity()
      d697552f
    • Bjorn Helgaas's avatar
      Merge branch 'pci/misc' · 0caa17f5
      Bjorn Helgaas authored
      - Convert PCIe capability PCIBIOS errors to errno (Bolarinwa Olayemi
        Saheed)
      
      - Align PCIe capability and PCI accessor return values (Bolarinwa Olayemi
        Saheed)
      
      - Replace http:// links with https:// (Alexander A. Klimov)
      
      - Replace lkml.org, spinics, gmane with lore.kernel.org (Bjorn Helgaas)
      
      - Update panic message to mention kzalloc(), not kmalloc() (Liao Pingfang)
      
      - Move PCI_VENDOR_ID_REDHAT definition to pci_ids.h (Huacai Chen)
      
      - Remove unused pci_lost_interrupt() (Heiner Kallweit)
      
      * pci/misc:
        PCI: Remove unused pci_lost_interrupt()
        PCI: Move PCI_VENDOR_ID_REDHAT definition to pci_ids.h
        PCI: Fix error in panic message
        PCI: Replace lkml.org, spinics, gmane with lore.kernel.org
        PCI: Replace http:// links with https://
        PCI: Align PCIe capability and PCI accessor return values
        PCI: Convert PCIe capability PCIBIOS errors to errno
      0caa17f5
    • Bjorn Helgaas's avatar
      Merge branch 'pci/hotplug' · e8c4a765
      Bjorn Helgaas authored
      - Fix pci_create_slot() reference count leak in failure path (Qiushi Wu)
      
      - Make rpadlpar functions static (Wei Yongjun)
      
      * pci/hotplug:
        PCI: rpadlpar: Make functions static
        PCI: Fix pci_create_slot() reference count leak
      e8c4a765
    • Bjorn Helgaas's avatar
      Merge branch 'pci/error' · b0735e8d
      Bjorn Helgaas authored
      - Use pci_channel_state_t instead of enum pci_channel_state (Luc Van
        Oostenryck)
      
      - Simplify __aer_print_error() (Bjorn Helgaas)
      
      - Log AER correctable errors as warning, not error (Matt Jolly)
      
      - Rename pci_aer_clear_device_status() to pcie_clear_device_status() (Bjorn
        Helgaas)
      
      - Clear PCIe Device Status errors only if OS owns AER (Jonathan Cameron)
      
      * pci/error:
        PCI/ERR: Clear PCIe Device Status errors only if OS owns AER
        PCI/ERR: Rename pci_aer_clear_device_status() to pcie_clear_device_status()
        PCI/AER: Log correctable errors as warning, not error
        PCI/AER: Simplify __aer_print_error()
        PCI: Use 'pci_channel_state_t' instead of 'enum pci_channel_state'
      b0735e8d
    • Bjorn Helgaas's avatar
      Merge branch 'pci/enumeration' · 3f906da7
      Bjorn Helgaas authored
      - Fix pci_cfg_wait queue locking problem (Xiang Zheng, Bjorn Helgaas)
      
      - Keep device in system even if driver attach fails (Rajat Jain)
      
      - Cache ACS capability offset in device (Rajat Jain)
      
      - Treat "external-facing" devices themselves as internal, not external
        (Rajat Jain)
      
      - Announce device after early fixups (Tiezhu Yang)
      
      * pci/enumeration:
        PCI: Announce device after early fixups
        PCI: Treat "external-facing" devices themselves as internal
        PCI: Cache ACS capability offset in device
        PCI: Reorder pci_enable_acs() and dependencies
        PCI: Add device even if driver attach failed
        PCI: Fix pci_cfg_wait queue locking problem
      3f906da7
    • Bjorn Helgaas's avatar
      Merge branch 'pci/aspm' · 0dfcabe9
      Bjorn Helgaas authored
      - Add newline to ASPM sysfs "policy" file (Xiongfeng Wang)
      
      * pci/aspm:
        PCI/ASPM: Add missing newline in sysfs 'policy'
      0dfcabe9
  2. Jul 31, 2020
  3. Jul 30, 2020
  4. Jul 23, 2020
    • Jonathan Cameron's avatar
      PCI/ERR: Clear PCIe Device Status errors only if OS owns AER · 068c29a2
      Jonathan Cameron authored
      pcie_clear_device_status() resets the error bits in the PCIe Device Status
      Register (PCI_EXP_DEVSTA).
      
      Previously we did this unconditionally, but on ACPI systems, the _OSC AER
      bit negotiates control of the AER capability.  Per sec 4.5.1 of the System
      Firmware Intermediary _OSC and DPC Updates ECN [1], this bit also covers
      other error enable/status bits including the following:
      
        Correctable Error Reporting Enable
        Non-Fatal Error Reporting Enable
        Fatal Error Reporting Enable
        Unsupported Request Reporting Enable
      
      These bits are all in the PCIe Device Control register (the ECN omitted
      "Reporting", but I think that's a typo), so by implication the _OSC AER bit
      also applies to the error status bits in the PCIe Device Status register:
      
        Correctable Error Detected
        Non-Fatal Error Detected
        Fatal Error Detected
        Unsupported Request Detected
      
      Clear the PCIe Device Status error bits only when the OS controls the AER
      capability and related error enable/status bits.  If platform firmware
      controls the AER capability, firmware is responsible for clearing these
      bits.
      
      One call path leading here is:
      
        ghes_do_proc
          ghes_handle_aer
            aer_recover_queue
              schedule_work(&aer_recover_work)
        ...
        aer_recover_work_func
          pcie_do_recovery
            pcie_clear_device_status
      
      [1] System Firmware Intermediary (SFI) _OSC and DPC Updates ECN, Feb 24,
          2020, affecting PCI Firmware Specification, Rev. 3.2
          https://members.pcisig.com/wg/PCI-SIG/document/14076
      [bhelgaas: commit log, move test from pcie_clear_device_status() to callers]
      Link: https://lore.kernel.org/r/20200622113523.891666-1-Jonathan.Cameron@huawei.com
      
      
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      068c29a2
    • Bjorn Helgaas's avatar
      PCI/ERR: Rename pci_aer_clear_device_status() to pcie_clear_device_status() · 600a5b4f
      Bjorn Helgaas authored
      pci_aer_clear_device_status() clears the error bits in the PCIe Device
      Status Register (PCI_EXP_DEVSTA).  Every PCIe device has this register,
      regardless of whether it supports AER.
      
      Rename pci_aer_clear_device_status() to pcie_clear_device_status() to make
      clear that it is PCIe-specific but not AER-specific.  Move it to
      drivers/pci/pci.c, again since it's not AER-specific.  No functional change
      intended.
      
      Link: https://lore.kernel.org/r/20200717195619.766662-1-helgaas@kernel.org
      
      
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      600a5b4f
  5. Jul 18, 2020
  6. Jul 11, 2020
  7. Jul 10, 2020
  8. Jul 08, 2020
  9. Jul 01, 2020
  10. Jun 27, 2020
  11. Jun 15, 2020
    • Linus Torvalds's avatar
      Linux 5.8-rc1 · b3a9e3b9
      Linus Torvalds authored
      b3a9e3b9
    • Linus Torvalds's avatar
      Merge tag 'LSM-add-setgid-hook-5.8-author-fix' of git://github.com/micah-morton/linux · 4a87b197
      Linus Torvalds authored
      Pull SafeSetID update from Micah Morton:
       "Add additional LSM hooks for SafeSetID
      
        SafeSetID is capable of making allow/deny decisions for set*uid calls
        on a system, and we want to add similar functionality for set*gid
        calls.
      
        The work to do that is not yet complete, so probably won't make it in
        for v5.8, but we are looking to get this simple patch in for v5.8
        since we have it ready.
      
        We are planning on the rest of the work for extending the SafeSetID
        LSM being merged during the v5.9 merge window"
      
      * tag 'LSM-add-setgid-hook-5.8-author-fix' of git://github.com/micah-morton/linux:
        security: Add LSM hooks to set*gid syscalls
      4a87b197
    • Thomas Cedeno's avatar
      security: Add LSM hooks to set*gid syscalls · 39030e13
      Thomas Cedeno authored
      
      
      The SafeSetID LSM uses the security_task_fix_setuid hook to filter
      set*uid() syscalls according to its configured security policy. In
      preparation for adding analagous support in the LSM for set*gid()
      syscalls, we add the requisite hook here. Tested by putting print
      statements in the security_task_fix_setgid hook and seeing them get hit
      during kernel boot.
      
      Signed-off-by: default avatarThomas Cedeno <thomascedeno@google.com>
      Signed-off-by: default avatarMicah Morton <mortonm@chromium.org>
      39030e13
    • Linus Torvalds's avatar
      Merge tag 'for-5.8-part2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 9d645db8
      Linus Torvalds authored
      Pull btrfs updates from David Sterba:
       "This reverts the direct io port to iomap infrastructure of btrfs
        merged in the first pull request. We found problems in invalidate page
        that don't seem to be fixable as regressions or without changing iomap
        code that would not affect other filesystems.
      
        There are four reverts in total, but three of them are followup
        cleanups needed to revert a43a67a2 cleanly. The result is the
        buffer head based implementation of direct io.
      
        Reverts are not great, but under current circumstances I don't see
        better options"
      
      * tag 'for-5.8-part2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        Revert "btrfs: switch to iomap_dio_rw() for dio"
        Revert "fs: remove dio_end_io()"
        Revert "btrfs: remove BTRFS_INODE_READDIO_NEED_LOCK"
        Revert "btrfs: split btrfs_direct_IO to read and write part"
      9d645db8
  12. Jun 14, 2020
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 96144c58
      Linus Torvalds authored
      Pull networking fixes from David Miller:
      
       1) Fix cfg80211 deadlock, from Johannes Berg.
      
       2) RXRPC fails to send norigications, from David Howells.
      
       3) MPTCP RM_ADDR parsing has an off by one pointer error, fix from
          Geliang Tang.
      
       4) Fix crash when using MSG_PEEK with sockmap, from Anny Hu.
      
       5) The ucc_geth driver needs __netdev_watchdog_up exported, from
          Valentin Longchamp.
      
       6) Fix hashtable memory leak in dccp, from Wang Hai.
      
       7) Fix how nexthops are marked as FDB nexthops, from David Ahern.
      
       8) Fix mptcp races between shutdown and recvmsg, from Paolo Abeni.
      
       9) Fix crashes in tipc_disc_rcv(), from Tuong Lien.
      
      10) Fix link speed reporting in iavf driver, from Brett Creeley.
      
      11) When a channel is used for XSK and then reused again later for XSK,
          we forget to clear out the relevant data structures in mlx5 which
          causes all kinds of problems. Fix from Maxim Mikityanskiy.
      
      12) Fix memory leak in genetlink, from Cong Wang.
      
      13) Disallow sockmap attachments to UDP sockets, it simply won't work.
          From Lorenz Bauer.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (83 commits)
        net: ethernet: ti: ale: fix allmulti for nu type ale
        net: ethernet: ti: am65-cpsw-nuss: fix ale parameters init
        net: atm: Remove the error message according to the atomic context
        bpf: Undo internal BPF_PROBE_MEM in BPF insns dump
        libbpf: Support pre-initializing .bss global variables
        tools/bpftool: Fix skeleton codegen
        bpf: Fix memlock accounting for sock_hash
        bpf: sockmap: Don't attach programs to UDP sockets
        bpf: tcp: Recv() should return 0 when the peer socket is closed
        ibmvnic: Flush existing work items before device removal
        genetlink: clean up family attributes allocations
        net: ipa: header pad field only valid for AP->modem endpoint
        net: ipa: program upper nibbles of sequencer type
        net: ipa: fix modem LAN RX endpoint id
        net: ipa: program metadata mask differently
        ionic: add pcie_print_link_status
        rxrpc: Fix race between incoming ACK parser and retransmitter
        net/mlx5: E-Switch, Fix some error pointer dereferences
        net/mlx5: Don't fail driver on failure to create debugfs
        net/mlx5e: CT: Fix ipv6 nat header rewrite actions
        ...
      96144c58
    • David Sterba's avatar
      Revert "btrfs: switch to iomap_dio_rw() for dio" · 55e20bd1
      David Sterba authored
      This reverts commit a43a67a2.
      
      This patch reverts the main part of switching direct io implementation
      to iomap infrastructure. There's a problem in invalidate page that
      couldn't be solved as regression in this development cycle.
      
      The problem occurs when buffered and direct io are mixed, and the ranges
      overlap. Although this is not recommended, filesystems implement
      measures or fallbacks to make it somehow work. In this case, fallback to
      buffered IO would be an option for btrfs (this already happens when
      direct io is done on compressed data), but the change would be needed in
      the iomap code, bringing new semantics to other filesystems.
      
      Another problem arises when again the buffered and direct ios are mixed,
      invalidation fails, then -EIO is set on the mapping and fsync will fail,
      though there's no real error.
      
      There have been discussions how to fix that, but revert seems to be the
      least intrusive option.
      
      Link: https://lore.kernel.org/linux-btrfs/20200528192103.xm45qoxqmkw7i5yl@fiona/
      
      
      Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
      55e20bd1
    • Grygorii Strashko's avatar
      net: ethernet: ti: ale: fix allmulti for nu type ale · bc139119
      Grygorii Strashko authored
      On AM65xx MCU CPSW2G NUSS and 66AK2E/L NUSS allmulti setting does not allow
      unregistered mcast packets to pass.
      
      This happens, because ALE VLAN entries on these SoCs do not contain port
      masks for reg/unreg mcast packets, but instead store indexes of
      ALE_VLAN_MASK_MUXx_REG registers which intended for store port masks for
      reg/unreg mcast packets.
      This path was missed by commit 9d1f6447 ("net: ethernet: ti: ale: fix
      seeing unreg mcast packets with promisc and allmulti disabled").
      
      Hence, fix it by taking into account ALE type in cpsw_ale_set_allmulti().
      
      Fixes: 9d1f6447
      
       ("net: ethernet: ti: ale: fix seeing unreg mcast packets with promisc and allmulti disabled")
      Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bc139119
    • Grygorii Strashko's avatar
      net: ethernet: ti: am65-cpsw-nuss: fix ale parameters init · 2074f9ea
      Grygorii Strashko authored
      The ALE parameters structure is created on stack, so it has to be reset
      before passing to cpsw_ale_create() to avoid garbage values.
      
      Fixes: 93a76530
      
       ("net: ethernet: ti: introduce am65x/j721e gigabit eth subsystem driver")
      Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      2074f9ea
    • David S. Miller's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf · fa7566a0
      David S. Miller authored
      
      
      Alexei Starovoitov says:
      
      ====================
      pull-request: bpf 2020-06-12
      
      The following pull-request contains BPF updates for your *net* tree.
      
      We've added 26 non-merge commits during the last 10 day(s) which contain
      a total of 27 files changed, 348 insertions(+), 93 deletions(-).
      
      The main changes are:
      
      1) sock_hash accounting fix, from Andrey.
      
      2) libbpf fix and probe_mem sanitizing, from Andrii.
      
      3) sock_hash fixes, from Jakub.
      
      4) devmap_val fix, from Jesper.
      
      5) load_bytes_relative fix, from YiFei.
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      fa7566a0
    • Liao Pingfang's avatar
      net: atm: Remove the error message according to the atomic context · bf97bac9
      Liao Pingfang authored
      
      
      Looking into the context (atomic!) and the error message should be dropped.
      
      Signed-off-by: default avatarLiao Pingfang <liao.pingfang@zte.com.cn>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bf97bac9