Skip to content

Commit 4bbf342

Browse files
committed
Merge tag 'net-6.1-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Pull networking fixes from Jakub Kicinski: "Including fixes from netfilter, wifi, can and bpf. Current release - new code bugs: - can: af_can: can_exit(): add missing dev_remove_pack() of canxl_packet Previous releases - regressions: - bpf, sockmap: fix the sk->sk_forward_alloc warning - wifi: mac80211: fix general-protection-fault in ieee80211_subif_start_xmit() - can: af_can: fix NULL pointer dereference in can_rx_register() - can: dev: fix skb drop check, avoid o-o-b access - nfnetlink: fix potential dead lock in nfnetlink_rcv_msg() Previous releases - always broken: - bpf: fix wrong reg type conversion in release_reference() - gso: fix panic on frag_list with mixed head alloc types - wifi: brcmfmac: fix buffer overflow in brcmf_fweh_event_worker() - wifi: mac80211: set TWT Information Frame Disabled bit as 1 - eth: macsec offload related fixes, make sure to clear the keys from memory - tun: fix memory leaks in the use of napi_get_frags - tun: call napi_schedule_prep() to ensure we own a napi - tcp: prohibit TCP_REPAIR_OPTIONS if data was already sent - ipv6: addrlabel: fix infoleak when sending struct ifaddrlblmsg to network - tipc: fix a msg->req tlv length check - sctp: clear out_curr if all frag chunks of current msg are pruned, avoid list corruption - mctp: fix an error handling path in mctp_init(), avoid leaks" * tag 'net-6.1-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (101 commits) eth: sp7021: drop free_netdev() from spl2sw_init_netdev() MAINTAINERS: Move Vivien to CREDITS net: macvlan: fix memory leaks of macvlan_common_newlink ethernet: tundra: free irq when alloc ring failed in tsi108_open() net: mv643xx_eth: disable napi when init rxq or txq failed in mv643xx_eth_open() ethernet: s2io: disable napi when start nic failed in s2io_card_up() net: atlantic: macsec: clear encryption keys from the stack net: phy: mscc: macsec: clear encryption keys when freeing a flow stmmac: dwmac-loongson: fix missing of_node_put() while module exiting stmmac: dwmac-loongson: fix missing pci_disable_device() in loongson_dwmac_probe() stmmac: dwmac-loongson: fix missing pci_disable_msi() while module exiting cxgb4vf: shut down the adapter when t4vf_update_port_info() failed in cxgb4vf_open() mctp: Fix an error handling path in mctp_init() stmmac: intel: Update PCH PTP clock rate from 200MHz to 204.8MHz net: cxgb3_main: disable napi when bind qsets failed in cxgb_up() net: cpsw: disable napi in cpsw_ndo_open() iavf: Fix VF driver counting VLAN 0 filters ice: Fix spurious interrupt during removal of trusted VF net/mlx5e: TC, Fix slab-out-of-bounds in parse_tc_actions net/mlx5e: E-Switch, Fix comparing termination table instance ...
2 parents 1767a72 + abd5ac1 commit 4bbf342

File tree

154 files changed

+984
-513
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+984
-513
lines changed

CREDITS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,11 @@ S: Ottawa, Ontario
918918
S: K1N 6Z9
919919
S: CANADA
920920

921+
N: Vivien Didelot
922+
923+
D: DSA framework and MV88E6XXX driver
924+
S: Montreal, Quebec, Canada
925+
921926
N: Jeff Dike
922927
923928
W: http://user-mode-linux.sourceforge.net

Documentation/devicetree/bindings/net/engleder,tsnep.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ properties:
4747

4848
nvmem-cells: true
4949

50-
nvmem-cells-names: true
50+
nvmem-cell-names: true
5151

5252
phy-connection-type:
5353
enum:

MAINTAINERS

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12226,7 +12226,6 @@ F: arch/mips/boot/dts/img/pistachio*
1222612226

1222712227
MARVELL 88E6XXX ETHERNET SWITCH FABRIC DRIVER
1222812228
M: Andrew Lunn <[email protected]>
12229-
M: Vivien Didelot <[email protected]>
1223012229
1223112230
S: Maintained
1223212231
F: Documentation/devicetree/bindings/net/dsa/marvell.txt
@@ -14324,7 +14323,6 @@ F: drivers/net/wireless/
1432414323

1432514324
NETWORKING [DSA]
1432614325
M: Andrew Lunn <[email protected]>
14327-
M: Vivien Didelot <[email protected]>
1432814326
M: Florian Fainelli <[email protected]>
1432914327
M: Vladimir Oltean <[email protected]>
1433014328
S: Maintained

drivers/net/can/at91_can.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ static netdev_tx_t at91_start_xmit(struct sk_buff *skb, struct net_device *dev)
452452
unsigned int mb, prio;
453453
u32 reg_mid, reg_mcr;
454454

455-
if (can_dropped_invalid_skb(dev, skb))
455+
if (can_dev_dropped_skb(dev, skb))
456456
return NETDEV_TX_OK;
457457

458458
mb = get_tx_next_mb(priv);

drivers/net/can/c_can/c_can_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ static netdev_tx_t c_can_start_xmit(struct sk_buff *skb,
457457
struct c_can_tx_ring *tx_ring = &priv->tx;
458458
u32 idx, obj, cmd = IF_COMM_TX;
459459

460-
if (can_dropped_invalid_skb(dev, skb))
460+
if (can_dev_dropped_skb(dev, skb))
461461
return NETDEV_TX_OK;
462462

463463
if (c_can_tx_busy(priv, tx_ring))

drivers/net/can/can327.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ static netdev_tx_t can327_netdev_start_xmit(struct sk_buff *skb,
813813
struct can327 *elm = netdev_priv(dev);
814814
struct can_frame *frame = (struct can_frame *)skb->data;
815815

816-
if (can_dropped_invalid_skb(dev, skb))
816+
if (can_dev_dropped_skb(dev, skb))
817817
return NETDEV_TX_OK;
818818

819819
/* We shouldn't get here after a hardware fault:

drivers/net/can/cc770/cc770.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ static netdev_tx_t cc770_start_xmit(struct sk_buff *skb, struct net_device *dev)
429429
struct cc770_priv *priv = netdev_priv(dev);
430430
unsigned int mo = obj2msgobj(CC770_OBJ_TX);
431431

432-
if (can_dropped_invalid_skb(dev, skb))
432+
if (can_dev_dropped_skb(dev, skb))
433433
return NETDEV_TX_OK;
434434

435435
netif_stop_queue(dev);

drivers/net/can/ctucanfd/ctucanfd_base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ static netdev_tx_t ctucan_start_xmit(struct sk_buff *skb, struct net_device *nde
600600
bool ok;
601601
unsigned long flags;
602602

603-
if (can_dropped_invalid_skb(ndev, skb))
603+
if (can_dev_dropped_skb(ndev, skb))
604604
return NETDEV_TX_OK;
605605

606606
if (unlikely(!CTU_CAN_FD_TXTNF(priv))) {

drivers/net/can/dev/skb.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66

77
#include <linux/can/dev.h>
8-
#include <linux/can/netlink.h>
98
#include <linux/module.h>
109

1110
#define MOD_DESC "CAN device driver interface"
@@ -337,8 +336,6 @@ static bool can_skb_headroom_valid(struct net_device *dev, struct sk_buff *skb)
337336
/* Drop a given socketbuffer if it does not contain a valid CAN frame. */
338337
bool can_dropped_invalid_skb(struct net_device *dev, struct sk_buff *skb)
339338
{
340-
struct can_priv *priv = netdev_priv(dev);
341-
342339
switch (ntohs(skb->protocol)) {
343340
case ETH_P_CAN:
344341
if (!can_is_can_skb(skb))
@@ -359,13 +356,8 @@ bool can_dropped_invalid_skb(struct net_device *dev, struct sk_buff *skb)
359356
goto inval_skb;
360357
}
361358

362-
if (!can_skb_headroom_valid(dev, skb)) {
359+
if (!can_skb_headroom_valid(dev, skb))
363360
goto inval_skb;
364-
} else if (priv->ctrlmode & CAN_CTRLMODE_LISTENONLY) {
365-
netdev_info_once(dev,
366-
"interface in listen only mode, dropping skb\n");
367-
goto inval_skb;
368-
}
369361

370362
return false;
371363

drivers/net/can/flexcan/flexcan-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ static netdev_tx_t flexcan_start_xmit(struct sk_buff *skb, struct net_device *de
742742
u32 ctrl = FLEXCAN_MB_CODE_TX_DATA | ((can_fd_len2dlc(cfd->len)) << 16);
743743
int i;
744744

745-
if (can_dropped_invalid_skb(dev, skb))
745+
if (can_dev_dropped_skb(dev, skb))
746746
return NETDEV_TX_OK;
747747

748748
netif_stop_queue(dev);

0 commit comments

Comments
 (0)