[GIT] Networking
From: David Miller
Date: Thu Apr 16 2020 - 17:19:42 EST
1) Disable RISCV BPF JIT builds when !MMU, from BjÃrn TÃpel.
2) nf_tables leaves dangling pointer after free, fix from Eric
Dumazet.
3) Out of boundary write in __xsk_rcv_memcpy(), fix from Li RongQing.
4) Adjust icmp6 message source address selection when routes have
a preferred source address set, from Tim Stallard.
5) Be sure to validate HSR protocol version when creating new links,
from Taehee Yoo.
6) CAP_NET_ADMIN should be sufficient to manage l2tp tunnels even
in non-initial namespaces, from Michael WeiÃ.
7) Missing release firmware call in mlx5, from Eran Ben Elisha.
8) Fix variable type in macsec_changelink(), caught by KASAN. Fix
from Taehee Yoo.
9) Fix pause frame negotiation in marvell phy driver, from Clemens
Gruber.
10) Record RX queue early enough in tun packet paths such that XDP
programs will see the correct RX queue index, from Gilberto
Bertin.
11) Fix double unlock in mptcp, from Florian Westphal.
12) Fix offset overflow in ARM bpf JIT, from Luke Nelson.
13) marvell10g needs to soft reset PHY when coming out of low power
mode, from Russell King.
14) Fix MTU setting regression in stmmac for some chip types, from
Florian Fainelli.
Please pull, thanks a lot!
The following changes since commit 63bef48fd6c9d3f1ba4f0e23b4da1e007db6a3c0:
Merge branch 'akpm' (patches from Andrew) (2020-04-07 14:11:54 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git
for you to fetch changes up to d518691cbd3be3dae218e05cca3f3fc9b2f1aa77:
amd-xgbe: Use __napi_schedule() in BH context (2020-04-16 13:59:53 -0700)
----------------------------------------------------------------
Amol Grover (1):
netfilter: ipset: Pass lockdep expression to RCU lists
Andrew Lunn (2):
net: dsa: mv88e6xxx: Configure MAC when using fixed link
net: dsa: Down cpu/dsa ports phylink will control
Andrey Ignatov (2):
libbpf: Fix bpf_get_link_xdp_id flags handling
selftests/bpf: Add test for bpf_get_link_xdp_id
Andrii Nakryiko (3):
bpf: Prevent re-mmap()'ing BPF map as writable for initially r/o mapping
selftests/bpf: Validate frozen map contents stays frozen
libbpf: Always specify expected_attach_type on program load if supported
Arnd Bergmann (2):
net/tls: fix const assignment warning
rtw88: avoid unused function warnings
Atsushi Nemoto (2):
net: phy: micrel: use genphy_read_status for KSZ9131
net: stmmac: socfpga: Allow all RGMII modes
BjÃrn TÃpel (1):
riscv, bpf: Remove BPF JIT for nommu builds
Cambda Zhu (1):
Documentation: Fix tcp_challenge_ack_limit default value
Christophe JAILLET (3):
soc: qcom: ipa: Add a missing '\n' in a log message
net: ethernet: ti: Add missing '\n' in log messages
net: mvneta: Fix a typo
Clemens Gruber (1):
net: phy: marvell: Fix pause frame negotiation
Colin Ian King (4):
bpf: Fix spelling mistake "arithmatic" -> "arithmetic" in test_verifier
net-sysfs: remove redundant assignment to variable ret
net: neterion: remove redundant assignment to variable tmp64
ipv6: remove redundant assignment to variable err
DENG Qingfang (1):
net: dsa: mt7530: fix tagged frames pass-through in VLAN-unaware mode
Daniel T. Lee (1):
tools, bpftool: Fix struct_ops command invalid pointer free
David Ahern (1):
xdp: Reset prog in dev_change_xdp_fd when fd is negative
David Howells (1):
rxrpc: Fix DATA Tx to disable nofrag for UDP on AF_INET6 socket
David S. Miller (11):
Merge git://git.kernel.org/.../pablo/nf
Merge branch 'fec-fix-wake-on-lan'
Merge branch 'ionic-fw-upgrade-filter-fixes'
Merge tag 'mlx5-fixes-2020-04-08' of git://git.kernel.org/.../saeed/linux
Merge git://git.kernel.org/.../bpf/bpf
Merge tag 'wireless-drivers-2020-04-14' of git://git.kernel.org/.../kvalo/wireless-drivers
Merge branch 'ionic-address-automated-build-complaints'
Merge branch 'mv88e6xxx-fixed-link-fixes'
Merge branch 'Fix-88x3310-leaving-power-save-mode'
Merge tag 'mac80211-for-net-2020-04-15' of git://git.kernel.org/.../jberg/mac80211
Merge git://git.kernel.org/.../bpf/bpf
Dmytro Linkin (1):
net/mlx5e: Fix nest_level for vlan pop action
Eli Cohen (1):
net/mlx5: Fix condition for termination table cleanup
Eran Ben Elisha (1):
net/mlx5e: Add missing release firmware call
Eric Dumazet (1):
netfilter: nf_tables: do not leave dangling pointer in nf_tables_set_alloc_name
Florian Fainelli (1):
net: stmmac: dwmac-sunxi: Provide TX and RX fifo sizes
Florian Westphal (1):
mptcp: fix double-unlock in mptcp_poll
Gilberto Bertin (1):
net: tun: record RX queue in skb before do_xdp_generic()
Jakub Kicinski (1):
docs: networking: convert DIM to RST
Jakub Sitnicki (1):
net, sk_msg: Don't use RCU_INIT_POINTER on sk_user_data
Jason Gunthorpe (2):
net/cxgb4: Check the return from t4_query_params properly
net/rds: Use ERR_PTR for rds_message_alloc_sgs()
Jason Yan (2):
net: tulip: make early_486_chipsets static
mISDN: make dmril and dmrim static
Jeremy Cline (1):
libbpf: Initialize *nl_pid so gcc 10 is happy
Joe Stringer (1):
bpf: Fix use of sk->sk_reuseport from sk_assign
Johan Jonker (1):
dt-bindings: net: ethernet-phy: add desciption for ethernet-phy-id1234.d400
Johannes Berg (1):
nl80211: fix NL80211_ATTR_FTM_RESPONDER policy
KP Singh (1):
bpf, lsm: Fix the file_mprotect LSM test.
Ka-Cheong Poon (2):
net/rds: Replace struct rds_mr's r_refcount with struct kref
net/rds: Fix MR reference counting problem
Konstantin Khlebnikov (1):
net: revert default NAPI poll timeout to 2 jiffies
Li RongQing (1):
xsk: Fix out of boundary write in __xsk_rcv_memcpy
Lothar Rubusch (4):
net: sock.h: fix skb_steal_sock() kernel-doc
Documentation: mdio_bus.c - fix warnings
Documentation: devlink: fix broken link warning
cfg80211: fix kernel-doc notation
Luke Nelson (3):
riscv, bpf: Fix offset range checking for auipc+jalr on RV64
arm, bpf: Fix bugs with ALU64 {RSH, ARSH} BPF_K shift by 0
arm, bpf: Fix offset overflow for BPF_MEM BPF_DW
Maciej Åenczykowski (1):
netfilter: xt_IDLETIMER: target v1 - match Android layout
Magnus Karlsson (1):
xsk: Add missing check on user supplied headroom size
Martin Fuzzey (4):
net: fec: set GPR bit on suspend by DT configuration.
ARM: dts: imx6: Use gpc for FEC interrupt controller to fix wake on LAN.
dt-bindings: fec: document the new gpr property.
ARM: dts: imx6: add fec gpr property.
Michael Weià (1):
l2tp: Allow management of tunnels and session in user namespace
Moshe Shemesh (1):
net/mlx5: Fix frequent ioread PCI access during recovery
Pablo Neira Ayuso (3):
netfilter: nf_tables: do not update stateful expressions if lookup is inverted
netfilter: nf_tables: report EOPNOTSUPP on unsupported flags/object type
netfilter: nf_tables: reintroduce the NFT_SET_CONCAT flag
Parav Pandit (2):
net/mlx5e: Fix pfnum in devlink port attribute
net/mlx5e: Fix devlink port netdev unregistration sequence
Paul Blakey (2):
net: sched: Fix setting last executed chain on skb extension
net/mlx5e: CT: Use rhashtable's ct entries instead of a separate list
Qiujun Huang (1):
bpf: Fix a typo "inacitve" -> "inactive"
RafaÅ MiÅecki (1):
brcmfmac: add stub for monitor interface xmit
Randy Dunlap (1):
docs: networking: add full DIM API
Renà van Dorst (2):
net: dsa: mt7530: move mt7623 settings out off the mt7530
net: ethernet: mediatek: move mt7623 settings out off the mt7530
Roi Dayan (1):
net/mlx5e: Fix missing pedit action after ct clear action
Roman Mashak (1):
tc-testing: remove duplicate code in tdc.py
Russell King (2):
net: marvell10g: report firmware version
net: marvell10g: soft-reset the PHY when coming out of low power
Sebastian Andrzej Siewior (1):
amd-xgbe: Use __napi_schedule() in BH context
Shannon Nelson (4):
ionic: replay filters after fw upgrade
ionic: set station addr only if needed
ionic: add dynamic_debug header
ionic: fix unused assignment
Slava Bacherikov (1):
kbuild, btf: Fix dependencies for DEBUG_INFO_BTF
Stefano Brivio (1):
netfilter: nft_set_rbtree: Drop spurious condition for overlap detection on insertion
Sumit Garg (1):
mac80211: fix race in ieee80211_register_hw()
Taehee Yoo (2):
hsr: check protocol version in hsr_newlink()
net: macsec: fix using wrong structure in macsec_changelink()
Tamizh chelvam (1):
mac80211: fix channel switch trigger from unknown mesh peer
Taras Chornyi (1):
net: ipv4: devinet: Fix crash when add/del multicast IP with autojoin
Tim Stallard (2):
net: icmp6: do not select saddr from iif when route has prefsrc set
net: ipv6: do not consider routes via gateways for anycast address check
Toke HÃiland-JÃrgensen (2):
libbpf: Fix type of old_fd in bpf_xdp_set_link_opts
selftests/bpf: Check for correct program attach/detach in xdp_attach test
Tuomas Tynkkynen (1):
mac80211_hwsim: Use kstrndup() in place of kasprintf()
Tuong Lien (1):
tipc: fix incorrect increasing of link window
Vladimir Oltean (1):
net: mscc: ocelot: fix untagged packet drops when enslaving to vlan aware bridge
Wang Wenhu (1):
net: qrtr: send msgs from local of same id as broadcast
YueHaibing (1):
ath11k: fix compiler warnings without CONFIG_THERMAL
Zou Wei (1):
bpf: remove unneeded conversion to bool in __mark_reg_unknown
Documentation/devicetree/bindings/net/ethernet-phy.yaml | 3 ++
Documentation/devicetree/bindings/net/fsl-fec.txt | 2 +
Documentation/networking/devlink/devlink-trap.rst | 2 +
Documentation/networking/index.rst | 1 +
Documentation/networking/ip-sysctl.txt | 2 +-
Documentation/networking/{net_dim.txt => net_dim.rst} | 96 ++++++++++++++++++++++++------------------------
MAINTAINERS | 1 +
arch/arm/boot/dts/imx6qdl.dtsi | 6 +--
arch/arm/boot/dts/imx6qp.dtsi | 1 -
arch/arm/net/bpf_jit_32.c | 52 +++++++++++++++++---------
arch/riscv/Kconfig | 2 +-
arch/riscv/net/bpf_jit_comp64.c | 49 ++++++++++++++++---------
drivers/isdn/hardware/mISDN/mISDNisar.c | 4 +-
drivers/net/dsa/mt7530.c | 103 ++++++---------------------------------------------
drivers/net/dsa/mt7530.h | 17 ++++-----
drivers/net/dsa/mv88e6xxx/chip.c | 5 ++-
drivers/net/dsa/ocelot/felix.c | 5 +--
drivers/net/ethernet/amd/xgbe/xgbe-drv.c | 2 +-
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 2 +-
drivers/net/ethernet/dec/tulip/tulip_core.c | 2 +-
drivers/net/ethernet/freescale/fec.h | 7 ++++
drivers/net/ethernet/freescale/fec_main.c | 149 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------
drivers/net/ethernet/marvell/mvneta.c | 2 +-
drivers/net/ethernet/mediatek/mtk_eth_soc.c | 24 +++++++++++-
drivers/net/ethernet/mediatek/mtk_eth_soc.h | 8 ++++
drivers/net/ethernet/mellanox/mlx5/core/devlink.c | 5 ++-
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c | 19 ++++------
drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 2 +-
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 9 +++--
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 8 ++--
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 1 -
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c | 12 ++----
drivers/net/ethernet/mellanox/mlx5/core/health.c | 2 +-
drivers/net/ethernet/mscc/ocelot.c | 84 +++++++++++++++++++++---------------------
drivers/net/ethernet/mscc/ocelot.h | 2 -
drivers/net/ethernet/neterion/s2io.c | 2 +-
drivers/net/ethernet/pensando/ionic/ionic_lif.c | 44 +++++++++++++---------
drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c | 53 +++++++++++++++++++++-----
drivers/net/ethernet/pensando/ionic/ionic_rx_filter.h | 2 +-
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 2 +
drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c | 2 +
drivers/net/ethernet/ti/am65-cpsw-nuss.c | 6 +--
drivers/net/ipa/ipa_modem.c | 5 +--
drivers/net/macsec.c | 2 +-
drivers/net/phy/marvell.c | 46 ++++++++++++-----------
drivers/net/phy/marvell10g.c | 36 ++++++++++++++++--
drivers/net/phy/mdio_bus.c | 2 +-
drivers/net/phy/micrel.c | 2 +-
drivers/net/tun.c | 3 +-
drivers/net/wireless/ath/ath11k/thermal.h | 3 +-
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c | 9 +++++
drivers/net/wireless/mac80211_hwsim.c | 12 +++---
drivers/net/wireless/realtek/rtw88/pci.c | 11 ++----
include/net/cfg80211.h | 10 +++++
include/net/ip6_route.h | 1 +
include/net/netfilter/nf_tables.h | 2 +-
include/net/sock.h | 6 +--
include/soc/mscc/ocelot.h | 4 +-
include/uapi/linux/netfilter/nf_tables.h | 2 +
include/uapi/linux/netfilter/xt_IDLETIMER.h | 1 +
kernel/bpf/bpf_lru_list.h | 2 +-
kernel/bpf/syscall.c | 16 ++++----
kernel/bpf/verifier.c | 3 +-
lib/Kconfig.debug | 2 +
net/core/dev.c | 6 ++-
net/core/filter.c | 2 +-
net/core/net-sysfs.c | 2 +-
net/core/sock.c | 2 +-
net/dsa/port.c | 7 +++-
net/hsr/hsr_netlink.c | 10 ++++-
net/ipv4/devinet.c | 13 +++++--
net/ipv6/icmp.c | 21 ++++++++++-
net/ipv6/seg6.c | 2 +-
net/l2tp/l2tp_netlink.c | 16 ++++----
net/mac80211/main.c | 24 ++++++------
net/mac80211/mesh.c | 11 ++++--
net/mptcp/protocol.c | 25 +++++++------
net/netfilter/ipset/ip_set_core.c | 3 +-
net/netfilter/nf_tables_api.c | 7 ++--
net/netfilter/nft_lookup.c | 12 +++---
net/netfilter/nft_set_bitmap.c | 1 -
net/netfilter/nft_set_rbtree.c | 23 ++++++------
net/netfilter/xt_IDLETIMER.c | 3 ++
net/qrtr/qrtr.c | 7 ++--
net/rds/message.c | 25 +++++--------
net/rds/rdma.c | 65 +++++++++++++++++---------------
net/rds/rds.h | 20 ++--------
net/rds/send.c | 6 ++-
net/rxrpc/local_object.c | 9 -----
net/rxrpc/output.c | 44 ++++++----------------
net/sched/cls_api.c | 1 +
net/tipc/link.c | 2 +-
net/tls/tls_main.c | 4 +-
net/wireless/nl80211.c | 6 +--
net/xdp/xdp_umem.c | 5 +--
net/xdp/xsk.c | 5 ++-
tools/bpf/bpftool/struct_ops.c | 4 +-
tools/lib/bpf/libbpf.c | 126 ++++++++++++++++++++++++++++++++++++++++----------------------
tools/lib/bpf/libbpf.h | 2 +-
tools/lib/bpf/netlink.c | 6 +--
tools/testing/selftests/bpf/prog_tests/mmap.c | 62 ++++++++++++++++++++++++++++++-
tools/testing/selftests/bpf/prog_tests/section_names.c | 42 +++++++++++++--------
tools/testing/selftests/bpf/prog_tests/test_lsm.c | 18 ++++-----
tools/testing/selftests/bpf/prog_tests/xdp_attach.c | 30 ++++++++++++++-
tools/testing/selftests/bpf/prog_tests/xdp_info.c | 68 ++++++++++++++++++++++++++++++++++
tools/testing/selftests/bpf/progs/lsm.c | 8 ++--
tools/testing/selftests/bpf/verifier/bounds.c | 4 +-
tools/testing/selftests/tc-testing/tdc.py | 5 +--
108 files changed, 1067 insertions(+), 679 deletions(-)
rename Documentation/networking/{net_dim.txt => net_dim.rst} (78%)
create mode 100644 tools/testing/selftests/bpf/prog_tests/xdp_info.c