1. 10 Oct, 2020 2 commits
    • Karsten Graul's avatar
      net/smc: consolidate unlocking in same function · c60a2cef
      Karsten Graul authored
      Static code checkers warn of inconsistent returns because the lgr mutex
      is locked in one function and unlocked in a function called by the
      locking function:
      net/smc/af_smc.c:823 smc_connect_rdma() warn: inconsistent returns 'smc_client_lgr_pending'.
      net/smc/af_smc.c:897 smc_connect_ism() warn: inconsistent returns 'smc_server_lgr_pending'.
      
      Make the code consistent by doing the unlock in the same function that
      fetches the lock. No functional changes.
      Signed-off-by: default avatarKarsten Graul <kgraul@linux.ibm.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      c60a2cef
    • Jakub Kicinski's avatar
      Merge tag 'linux-can-next-for-5.10-20201007' of... · 8f5e71b9
      Jakub Kicinski authored
      Merge tag 'linux-can-next-for-5.10-20201007' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next
      
      Marc Kleine-Budde says:
      
      ====================
      linux-can-next-for-5.10-20201007
      
      The first 3 patches are by me and fix several warnings found
      when compiling the  kernel with W=1.
      
      Lukas Bulwahn's patch adjusts the MAINTAINERS file, to accommodate
      the renaming of the mcp251xfd driver.
      
      Vincent Mailhol contributes 3 patches for the CAN networking layer.
      First error queue support is added the the CAN RAW protocol.
      The second patch converts the get_can_dlc() and get_canfd_dlc()
      in-Kernel-only macros from using __u8 to u8.
      The third patch adds a helper function to calculate the length of
      one bit in in multiple of time quanta.
      
      Oliver Hartkopp's patch add support for the ISO 15765-2:2016
      transport protocol to the CAN stack.
      
      Three patches by Lad Prabhakar add documentation for various
      new rcar controllers to the device tree bindings of the rcar_can
      and rcan_canfd driver.
      
      Michael Walle's patch adds various processors to the flexcan
      driver binding documentation.
      
      The next two patches are by me and target the flexcan driver aswell.
      The remove the ack_grp and ack_bit from the fsl,stop-mode DT property
      and the driver, as they are not used anymore. As these are the last
      two arguments this change will not break existing device trees.
      
      The last three patches are by Srinivas Neeli and target
      the xilinx_can driver.
      The first one increases the lower limit for the bit rate
      prescaler to 2, the other two fix sparse and coverity findings.
      ====================
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      8f5e71b9
  2. 09 Oct, 2020 32 commits
  3. 08 Oct, 2020 6 commits
    • Allen Pais's avatar
      cxgb4: convert tasklets to use new tasklet_setup() API · 0eb484ee
      Allen Pais authored
      In preparation for unconditionally passing the
      struct tasklet_struct pointer to all tasklet
      callbacks, switch to using the new tasklet_setup()
      and from_tasklet() to pass the tasklet pointer explicitly.
      Signed-off-by: default avatarRomain Perier <romain.perier@gmail.com>
      Signed-off-by: default avatarAllen Pais <apais@linux.microsoft.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      0eb484ee
    • Johannes Berg's avatar
      ethtool: correct policy for ETHTOOL_MSG_CHANNELS_SET · fd15dd05
      Johannes Berg authored
      This accidentally got wired up to the *get* policy instead
      of the *set* policy, causing operations to be rejected. Fix
      it by wiring up the correct policy instead.
      
      Fixes: 5028588b ("ethtool: wire up set policies to ops")
      Reported-by: default avatarLeon Romanovsky <leon@kernel.org>
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      Tested-by: default avatarLeon Romanovsky <leonro@nvidia.com>
      Reviewed-by: default avatarJakub Kicinski <kuba@kernel.org>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      fd15dd05
    • Johannes Berg's avatar
      ethtool: strset: allow ETHTOOL_A_STRSET_COUNTS_ONLY attr · db972e53
      Johannes Berg authored
      The ETHTOOL_A_STRSET_COUNTS_ONLY flag attribute was previously
      not allowed to be used, but now due to the policy size reduction
      we would access the tb[] array out of bounds since we tried to
      check for the attribute despite it not being accepted.
      
      Fix both issues by adding it correctly to the appropriate policy.
      
      Fixes: ff419afa ("ethtool: trim policy tables")
      Fixes: 71921690 ("ethtool: provide string sets with STRSET_GET request")
      Reported-by: default avatarLeon Romanovsky <leon@kernel.org>
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      Tested-by: default avatarLeon Romanovsky <leonro@nvidia.com>
      Reviewed-by: default avatarJakub Kicinski <kuba@kernel.org>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      db972e53
    • Jakub Kicinski's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 9d49aea1
      Jakub Kicinski authored
      Small conflict around locking in rxrpc_process_event() -
      channel_lock moved to bundle in next, while state lock
      needs _bh() from net.
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      9d49aea1
    • Linus Torvalds's avatar
      Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost · 3fdd47c3
      Linus Torvalds authored
      Pull vhost fixes from Michael Tsirkin:
       "Some last minute vhost,vdpa fixes.
      
        The last two of them haven't been in next but they do seem kind of
        obvious, very small and safe, fix bugs reported in the field, and they
        are both in a new mlx5 vdpa driver, so it's not like we can introduce
        regressions"
      
      * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
        vdpa/mlx5: Fix dependency on MLX5_CORE
        vdpa/mlx5: should keep avail_index despite device status
        vhost-vdpa: fix page pinning leakage in error path
        vhost-vdpa: fix vhost_vdpa_map() on error condition
        vhost: Don't call log_access_ok() when using IOTLB
        vhost: Use vhost_get_used_size() in vhost_vring_set_addr()
        vhost: Don't call access_ok() when using IOTLB
        vhost vdpa: fix vhost_vdpa_open error handling
      3fdd47c3
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 6288c1d8
      Linus Torvalds authored
      Pull networking fixes from Jakub Kicinski:
       "One more set of fixes from the networking tree:
      
         - add missing input validation in nl80211_del_key(), preventing
           out-of-bounds access
      
         - last minute fix / improvement of a MRP netlink (uAPI) interface
           introduced in 5.9 (current) release
      
         - fix "unresolved symbol" build error under CONFIG_NET w/o
           CONFIG_INET due to missing tcp_timewait_sock and inet_timewait_sock
           BTF.
      
         - fix 32 bit sub-register bounds tracking in the bpf verifier for OR
           case
      
         - tcp: fix receive window update in tcp_add_backlog()
      
         - openvswitch: handle DNAT tuple collision in conntrack-related code
      
         - r8169: wait for potential PHY reset to finish after applying a FW
           file, avoiding unexpected PHY behaviour and failures later on
      
         - mscc: fix tail dropping watermarks for Ocelot switches
      
         - avoid use-after-free in macsec code after a call to the GRO layer
      
         - avoid use-after-free in sctp error paths
      
         - add a device id for Cellient MPL200 WWAN card
      
         - rxrpc fixes:
            - fix the xdr encoding of the contents read from an rxrpc key
            - fix a BUG() for a unsupported encoding type.
            - fix missing _bh lock annotations.
            - fix acceptance handling for an incoming call where the incoming
              call is encrypted.
            - the server token keyring isn't network namespaced - it belongs
              to the server, so there's no need. Namespacing it means that
              request_key() fails to find it.
            - fix a leak of the server keyring"
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (21 commits)
        net: usb: qmi_wwan: add Cellient MPL200 card
        macsec: avoid use-after-free in macsec_handle_frame()
        r8169: consider that PHY reset may still be in progress after applying firmware
        openvswitch: handle DNAT tuple collision
        sctp: fix sctp_auth_init_hmacs() error path
        bridge: Netlink interface fix.
        net: wireless: nl80211: fix out-of-bounds access in nl80211_del_key()
        bpf: Fix scalar32_min_max_or bounds tracking
        tcp: fix receive window update in tcp_add_backlog()
        net: usb: rtl8150: set random MAC address when set_ethernet_addr() fails
        mptcp: more DATA FIN fixes
        net: mscc: ocelot: warn when encoding an out-of-bounds watermark value
        net: mscc: ocelot: divide watermark value by 60 when writing to SYS_ATOP
        net: qrtr: ns: Fix the incorrect usage of rcu_read_lock()
        rxrpc: Fix server keyring leak
        rxrpc: The server keyring isn't network-namespaced
        rxrpc: Fix accept on a connection that need securing
        rxrpc: Fix some missing _bh annotations on locking conn->state_lock
        rxrpc: Downgrade the BUG() for unsupported token type in rxrpc_read()
        rxrpc: Fix rxkad token xdr encoding
        ...
      6288c1d8