1. 29 8月, 2020 3 次提交
  2. 28 8月, 2020 7 次提交
    • C
      net_sched: fix error path in red_init() · 5438dd45
      Cong Wang 提交于
      When ->init() fails, ->destroy() is called to clean up.
      So it is unnecessary to clean up in red_init(), and it
      would cause some refcount underflow.
      
      Fixes: aee9caa0 ("net: sched: sch_red: Add qevents "early_drop" and "mark"")
      Reported-and-tested-by: syzbot+b33c1cb0a30ebdc8a5f9@syzkaller.appspotmail.com
      Reported-and-tested-by: syzbot+e5ea5f8a3ecfd4427a1c@syzkaller.appspotmail.com
      Cc: Petr Machata <petrm@mellanox.com>
      Signed-off-by: NCong Wang <xiyou.wangcong@gmail.com>
      Reviewed-by: NPetr Machata <petrm@nvidia.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5438dd45
    • L
      net: dsa: mt7530: fix advertising unsupported 1000baseT_Half · f272285f
      Landen Chao 提交于
      Remove 1000baseT_Half to advertise correct hardware capability in
      phylink_validate() callback function.
      
      Fixes: 38f790a8 ("net: dsa: mt7530: Add support for port 5")
      Signed-off-by: NLanden Chao <landen.chao@mediatek.com>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f272285f
    • Z
      netlink: fix a data race in netlink_rcv_wake() · 174bce38
      zhudi 提交于
      The data races were reported by KCSAN:
      BUG: KCSAN: data-race in netlink_recvmsg / skb_queue_tail
      
      write (marked) to 0xffff8c0986e5a8c8 of 8 bytes by interrupt on cpu 3:
       skb_queue_tail+0xcc/0x120
       __netlink_sendskb+0x55/0x80
       netlink_broadcast_filtered+0x465/0x7e0
       nlmsg_notify+0x8f/0x120
       rtnl_notify+0x8e/0xb0
       __neigh_notify+0xf2/0x120
       neigh_update+0x927/0xde0
       arp_process+0x8a3/0xf50
       arp_rcv+0x27c/0x3b0
       __netif_receive_skb_core+0x181c/0x1840
       __netif_receive_skb+0x38/0xf0
       netif_receive_skb_internal+0x77/0x1c0
       napi_gro_receive+0x1bd/0x1f0
       e1000_clean_rx_irq+0x538/0xb20 [e1000]
       e1000_clean+0x5e4/0x1340 [e1000]
       net_rx_action+0x310/0x9d0
       __do_softirq+0xe8/0x308
       irq_exit+0x109/0x110
       do_IRQ+0x7f/0xe0
       ret_from_intr+0x0/0x1d
       0xffffffffffffffff
      
      read to 0xffff8c0986e5a8c8 of 8 bytes by task 1463 on cpu 0:
       netlink_recvmsg+0x40b/0x820
       sock_recvmsg+0xc9/0xd0
       ___sys_recvmsg+0x1a4/0x3b0
       __sys_recvmsg+0x86/0x120
       __x64_sys_recvmsg+0x52/0x70
       do_syscall_64+0xb5/0x360
       entry_SYSCALL_64_after_hwframe+0x65/0xca
       0xffffffffffffffff
      
      Since the write is under sk_receive_queue->lock but the read
      is done as lockless. so fix it by using skb_queue_empty_lockless()
      instead of skb_queue_empty() for the read in netlink_rcv_wake()
      Signed-off-by: Nzhudi <zhudi21@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      174bce38
    • D
      Merge tag 'mac80211-for-davem-2020-08-28' of... · 51458c97
      David S. Miller 提交于
      Merge tag 'mac80211-for-davem-2020-08-28' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
      
      Johannes Berg says:
      
      ====================
      We have:
       * fixes for AQL (airtime queue limits)
       * reduce packet loss detection false positives
       * a small channel number fix for the 6 GHz band
       * a fix for 80+80/160 MHz negotiation
       * an nl80211 attribute (NL80211_ATTR_HE_6GHZ_CAPABILITY) fix
       * add a missing sanity check for the regulatory code
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      51458c97
    • D
      rxrpc: Fix memory leak in rxkad_verify_response() · b43c75ab
      Dinghao Liu 提交于
      Fix a memory leak in rxkad_verify_response() whereby the response buffer
      doesn't get freed if we fail to allocate a ticket buffer.
      
      Fixes: ef68622d ("rxrpc: Handle temporary errors better in rxkad security")
      Signed-off-by: NDinghao Liu <dinghao.liu@zju.edu.cn>
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b43c75ab
    • D
      Merge tag 'rxrpc-fixes-20200820' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs · 8d73a73a
      David S. Miller 提交于
      David Howells says:
      
      ====================
      rxrpc, afs: Fix probing issues
      
      Here are some fixes for rxrpc and afs to fix issues in the RTT measuring in
      rxrpc and thence the Volume Location server probing in afs:
      
       (1) Move the serial number of a received ACK into a local variable to
           simplify the next patch.
      
       (2) Fix the loss of RTT samples due to extra interposed ACKs causing
           baseline information to be discarded too early.  This is a particular
           problem for afs when it sends a single very short call to probe a
           server it hasn't talked to recently.
      
       (3) Fix rxrpc_kernel_get_srtt() to indicate whether it actually has seen
           any valid samples or not.
      
       (4) Remove a field that's set/woken, but never read/waited on.
      
       (5) Expose the RTT and other probe information through procfs to make
           debugging of this stuff easier.
      
       (6) Fix VL rotation in afs to only use summary information from VL probing
           and not the probe running state (which gets clobbered when next a
           probe is issued).
      
       (7) Fix VL rotation to actually return the error aggregated from the probe
           errors.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8d73a73a
    • M
      net: ethernet: ti: cpsw_new: fix error handling in cpsw_ndo_vlan_rx_kill_vid() · af8ea111
      Murali Karicheri 提交于
      This patch fixes a bunch of issues in cpsw_ndo_vlan_rx_kill_vid()
      
       - pm_runtime_get_sync() returns non zero value. This results in
         non zero value return to caller which will be interpreted as error.
         So overwrite ret with zero.
       - If VID matches with port VLAN VID, then set error code.
       - Currently when VLAN interface is deleted, all of the VLAN mc addresses
         are removed from ALE table, however the return values from ale function
         calls are not checked. These functions can return error code -ENOENT.
         But that shouldn't happen in a normal case. So add error print to
         catch the situations so that these can be investigated and addressed.
         return zero in these cases as these are not real error case, but only
         serve to catch ALE table update related issues and help address the
         same in the driver.
      
      Fixes: ed3525ed ("net: ethernet: ti: introduce cpsw switchdev based driver part 1 - dual-emac")
      Signed-off-by: NMurali Karicheri <m-karicheri2@ti.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      af8ea111
  3. 27 8月, 2020 16 次提交
  4. 26 8月, 2020 13 次提交
  5. 25 8月, 2020 1 次提交