[net PATCH 2/2] tools: selftests: add test for changing routes with PTMU exceptions

2021-01-05 Thread Sean Tranchetti
From: Sean Tranchetti Adds new 2 new tests to the PTMU script: pmtu_ipv4/6_route_change. These tests explicitly test for a recently discovered problem in the IPv6 routing framework where PMTU exceptions were not properly released when replacing a route via "ip route change ...". Afte

[net PATCH 1/2] net: ipv6: fib: flush exceptions when purging route

2021-01-05 Thread Sean Tranchetti
From: Sean Tranchetti Route removal is handled by two code paths. The main removal path is via fib6_del_route() which will handle purging any PMTU exceptions from the cache, removing all per-cpu copies of the DST entry used by the route, and releasing the fib6_info struct. The second removal

[PATCH net v2] genetlink: remove genl_bind

2020-06-30 Thread Sean Tranchetti
ilies") Suggested-by: Cong Wang Acked-by: Johannes Berg Reported-by: kernel test robot Signed-off-by: Sean Tranchetti --- include/net/genetlink.h | 8 net/netlink/genetlink.c | 49 - 2 files changed, 57 deletions(-) diff --git a/i

[PATCH net] genetlink: take netlink table lock when (un)registering

2020-06-26 Thread Sean Tranchetti
("genl: Allow concurrent genl callbacks") Cc: Pravin B Shelar Cc: Subash Abhinov Kasiviswanathan Signed-off-by: Sean Tranchetti --- net/netlink/genetlink.c | 29 - 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/net/netlink/genetlink.c b/n

[PATCH net-next v2] udp: Avoid post-GRO UDP checksum recalculation

2019-05-28 Thread Sean Tranchetti
: cf329aa42b66 ("udp: cope with UDP GRO packet misdirection") Cc: Paolo Abeni Cc: Subash Abhinov Kasiviswanathan Signed-off-by: Sean Tranchetti --- include/net/udp.h | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/net/udp.h b/include/net/udp.h ind

[PATCH net-next] udp: Avoid post-GRO UDP checksum recalculation

2019-05-23 Thread Sean Tranchetti
to the socket or hand it off to a new protocol handler. In either case, the checksum is not needed. Fixes: cf329aa42b66 ("udp: cope with UDP GRO packet misdirection") Cc: Paolo Abeni Cc: Subash Abhinov Kasiviswanathan Signed-off-by: Sean Tranchetti --- include/net/udp.h | 6

[PATCH net] af_key: unconditionally clone on broadcast

2019-02-07 Thread Sean Tranchetti
pfkey_sendmsg+0x1d8/0x408 sock_sendmsg+0x44/0x60 ___sys_sendmsg+0x1d0/0x2a8 __sys_sendmsg+0x64/0xb4 SyS_sendmsg+0x34/0x4c el0_svc_naked+0x34/0x38 Kernel panic - not syncing: Fatal exception Suggested-by: Eric Dumazet Signed-off-by: Sean Tranchetti --- Realized I

[PATCH net v2] net: udp: fix handling of CHECKSUM_COMPLETE packets

2018-10-23 Thread Sean Tranchetti
ce6dd ("udp: remove headers from UDP packets before queueing") Fixes: c84d949057ca ("udp: copy skb->truesize in the first cache line") Cc: Sam Kumar Cc: Eric Dumazet Signed-off-by: Sean Tranchetti --- net/core/datagram.c | 5 +++-- net/ipv4/udp.c | 20

[PATCH net] net: udp: fix handling of CHECKSUM_COMPLETE packets

2018-10-11 Thread Sean Tranchetti
sum is bad, we can drop the packet immediately instead of waiting until we try and copy it to userspace. Otherwise, we need to mark the SKB as CHECKSUM_NONE, since the skb->csum field no longer contains the full packet checksum after the call

[PATCH net] netlabel: check for IPV4MASK in addrinfo_get

2018-09-20 Thread Sean Tranchetti
(79400108) ---[ end trace f6438a488e737143 ]--- Kernel panic - not syncing: Fatal exception Signed-off-by: Sean Tranchetti --- net/netlabel/netlabel_unlabeled.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/netlabel/netlabel_unlabeled.c b/net/netlabel

[PATCH net] af_key: free SKBs under RCU protection

2018-09-19 Thread Sean Tranchetti
x60 ___sys_sendmsg+0x1d0/0x2a8 __sys_sendmsg+0x64/0xb4 SyS_sendmsg+0x34/0x4c el0_svc_naked+0x34/0x38 Kernel panic - not syncing: Fatal exception Signed-off-by: Sean Tranchetti --- net/key/af_key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/

[PATCH net] xfrm: validate template mode

2018-09-19 Thread Sean Tranchetti
[ 140.559008] el0_svc_naked+0x34/0x38 [ 140.559009] [ 140.592245] page dumped because: kasan: bad access detected [ 140.597981] page_owner info is not active (free page?) [ 140.603267] [ 140.653503] Signed-off-by: Sean Tranchetti

[PATCH net-next] net: gro: Initialize backlog NAPI's gro_list

2018-07-20 Thread Sean Tranchetti
("net: Convert GRO SKB handling to list_head.") Signed-off-by: Sean Tranchetti Signed-off-by: Subash Abhinov Kasiviswanathan --- net/core/dev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/core/dev.c b/net/core/dev.c index 4f8b92d..6b76745 100644 --- a/net/core/dev.c +++

[PATCH net-next] udp: Fix kernel panic in UDP GSO path

2018-05-10 Thread Sean Tranchetti
result in -EINVAL being returned. Fixes: 15e36f5b8e98 ("udp: paged allocation with gso") Signed-off-by: Sean Tranchetti Signed-off-by: Subash Abhinov Kasiviswanathan --- net/ipv4/ip_output.c | 8 1 file changed, 8 insertions(+) diff --git a/net/ipv4/ip_output.c b/net/ipv4/i

[PATCH net-next] udp: Complement partial checksum for GSO packet

2018-04-30 Thread Sean Tranchetti
transmit path. Fixes: ee80d1ebe5ba ("udp: add udp gso") Signed-off-by: Sean Tranchetti Signed-off-by: Subash Abhinov Kasiviswanathan --- net/ipv4/udp_offload.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv4/udp_offload.c b/net/ipv4/udp_offload.c index f78fb36..0062570 10