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

2018-10-23 Thread Sean Tranchetti
om 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 ++-- net/ipv6/ip6_checksum.c |

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

2018-10-11 Thread Sean Tranchetti
op 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 to __skb_checksum_validate_complet

[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
will result in -EINVAL being returned. Fixes: 15e36f5b8e98 ("udp: paged allocation with gso") Signed-off-by: Sean Tranchetti <stran...@codeaurora.org> Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- net/ipv4/ip_output.c | 8 1 file changed,

[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 <stran...@codeaurora.org> Signed-off-by: Subash Abhinov Kasiviswanathan <subas...@codeaurora.org> --- net/ipv4/udp_offload.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv4/ud