1. 02 9月, 2020 2 次提交
  2. 01 9月, 2020 5 次提交
    • G
      net: ethernet: ti: am65-cpsw: fix rmii 100Mbit link mode · c2f89219
      Grygorii Strashko 提交于
      In RMII link mode it's required to set bit 15 IFCTL_A in MAC_SL MAC_CONTROL
      register to enable support for 100Mbit link speed.
      
      Fixes: 93a76530 ("net: ethernet: ti: introduce am65x/j721e gigabit eth subsystem driver")
      Signed-off-by: NGrygorii Strashko <grygorii.strashko@ti.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c2f89219
    • P
      cxgb4: fix thermal zone device registration · 6b6382a8
      Potnuri Bharat Teja 提交于
      When multiple adapters are present in the system, pci hot-removing second
      adapter leads to the following warning as both the adapters registered
      thermal zone device with same thermal zone name/type.
      Therefore, use unique thermal zone name during thermal zone device
      initialization. Also mark thermal zone dev NULL once unregistered.
      
      [  414.370143] ------------[ cut here ]------------
      [  414.370944] sysfs group 'power' not found for kobject 'hwmon0'
      [  414.371747] WARNING: CPU: 9 PID: 2661 at fs/sysfs/group.c:281
       sysfs_remove_group+0x76/0x80
      [  414.382550] CPU: 9 PID: 2661 Comm: bash Not tainted 5.8.0-rc6+ #33
      [  414.383593] Hardware name: Supermicro X10SRA-F/X10SRA-F, BIOS 2.0a 06/23/2016
      [  414.384669] RIP: 0010:sysfs_remove_group+0x76/0x80
      [  414.385738] Code: 48 89 df 5b 5d 41 5c e9 d8 b5 ff ff 48 89 df e8 60 b0 ff ff
       eb cb 49 8b 14 24 48 8b 75 00 48 c7 c7 90 ae 13 bb e8 6a 27 d0 ff <0f> 0b 5b 5d
       41 5c c3 0f 1f 00 0f 1f 44 00 00 48 85 f6 74 31 41 54
      [  414.388404] RSP: 0018:ffffa22bc080fcb0 EFLAGS: 00010286
      [  414.389638] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
      [  414.390829] RDX: 0000000000000001 RSI: ffff8ee2de3e9510 RDI: ffff8ee2de3e9510
      [  414.392064] RBP: ffffffffbaef2ee0 R08: 0000000000000000 R09: 0000000000000000
      [  414.393224] R10: 0000000000000000 R11: 000000002b30006c R12: ffff8ee260720008
      [  414.394388] R13: ffff8ee25e0a40e8 R14: ffffa22bc080ff08 R15: ffff8ee2c3be5020
      [  414.395661] FS:  00007fd2a7171740(0000) GS:ffff8ee2de200000(0000)
       knlGS:0000000000000000
      [  414.396825] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      [  414.398011] CR2: 00007f178ffe5020 CR3: 000000084c5cc003 CR4: 00000000003606e0
      [  414.399172] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      [  414.400352] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
      [  414.401473] Call Trace:
      [  414.402685]  device_del+0x89/0x400
      [  414.403819]  device_unregister+0x16/0x60
      [  414.405024]  hwmon_device_unregister+0x44/0xa0
      [  414.406112]  thermal_remove_hwmon_sysfs+0x196/0x200
      [  414.407256]  thermal_zone_device_unregister+0x1b5/0x1f0
      [  414.408415]  cxgb4_thermal_remove+0x3c/0x4f [cxgb4]
      [  414.409668]  remove_one+0x212/0x290 [cxgb4]
      [  414.410875]  pci_device_remove+0x36/0xb0
      [  414.412004]  device_release_driver_internal+0xe2/0x1c0
      [  414.413276]  pci_stop_bus_device+0x64/0x90
      [  414.414433]  pci_stop_and_remove_bus_device_locked+0x16/0x30
      [  414.415609]  remove_store+0x75/0x90
      [  414.416790]  kernfs_fop_write+0x114/0x1b0
      [  414.417930]  vfs_write+0xcf/0x210
      [  414.419059]  ksys_write+0xa7/0xe0
      [  414.420120]  do_syscall_64+0x4c/0xa0
      [  414.421278]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
      [  414.422335] RIP: 0033:0x7fd2a686afd0
      [  414.423396] Code: Bad RIP value.
      [  414.424549] RSP: 002b:00007fffc1446148 EFLAGS: 00000246 ORIG_RAX:
       0000000000000001
      [  414.425638] RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fd2a686afd0
      [  414.426830] RDX: 0000000000000002 RSI: 00007fd2a7196000 RDI: 0000000000000001
      [  414.427927] RBP: 00007fd2a7196000 R08: 000000000000000a R09: 00007fd2a7171740
      [  414.428923] R10: 00007fd2a7171740 R11: 0000000000000246 R12: 00007fd2a6b43400
      [  414.430082] R13: 0000000000000002 R14: 0000000000000001 R15: 0000000000000000
      [  414.431027] irq event stamp: 76300
      [  414.435678] ---[ end trace 13865acb4d5ab00f ]---
      
      Fixes: b1871915 ("cxgb4: Add thermal zone support")
      Signed-off-by: NPotnuri Bharat Teja <bharat@chelsio.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6b6382a8
    • X
      drivers/net/wan/hdlc_cisco: Add hard_header_len · 1a545ebe
      Xie He 提交于
      This driver didn't set hard_header_len. This patch sets hard_header_len
      for it according to its header_ops->create function.
      
      This driver's header_ops->create function (cisco_hard_header) creates
      a header of (struct hdlc_header), so hard_header_len should be set to
      sizeof(struct hdlc_header).
      
      Cc: Martin Schiller <ms@dev.tdt.de>
      Signed-off-by: NXie He <xie.he.0141@gmail.com>
      Acked-by: NKrzysztof Halasa <khc@pm.waw.pl>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1a545ebe
    • S
      ionic: fix txrx work accounting · 9dda5110
      Shannon Nelson 提交于
      Take the tx accounting out of the work_done calculation to
      prevent a possible duplicate napi_schedule call when under
      high Tx stress but low Rx traffic.
      
      Fixes: b14e4e95 ("ionic: tx separate servicing")
      Signed-off-by: NShannon Nelson <snelson@pensando.io>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9dda5110
    • D
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf · e9d572d9
      David S. Miller 提交于
      Pablo Neira Ayuso says:
      
      ====================
      Netfilter fixes for net
      
      The following patchset contains Netfilter fixes for net:
      
      1) Do not delete clash entries on reply, let them expire instead,
         from Florian Westphal.
      
      2) Do not report EAGAIN to nfnetlink, otherwise this enters a busy loop.
         Update nfnetlink_unicast() to translate EAGAIN to ENOBUFS.
      
      3) Remove repeated words in code comments, from Randy Dunlap.
      
      4) Several patches for the flowtable selftests, from Fabian Frederick.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e9d572d9
  3. 31 8月, 2020 1 次提交
  4. 29 8月, 2020 9 次提交
  5. 28 8月, 2020 8 次提交
    • 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
    • J
      selftests/bpf: Fix massive output from test_maps · fa450567
      Jesper Dangaard Brouer 提交于
      When stdout output from the selftests tool 'test_maps' gets redirected
      into e.g file or pipe, then the output lines increase a lot (from 21
      to 33949 lines).  This is caused by the printf that happens before the
      fork() call, and there are user-space buffered printf data that seems
      to be duplicated into the forked process.
      
      To fix this fflush() stdout before the fork loop in __run_parallel().
      
      Fixes: 1a97cf1f ("selftests/bpf: speedup test_maps")
      Signed-off-by: NJesper Dangaard Brouer <brouer@redhat.com>
      Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
      Link: https://lore.kernel.org/bpf/159842985651.1050885.2154399297503372406.stgit@firesoul
      fa450567
    • 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
  6. 27 8月, 2020 15 次提交