Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4854138pxj; Wed, 9 Jun 2021 03:37:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUPuRahYWpC89jJd54FJ5g2baFBQ0fxCbaNGYwoL1ZF0hR9r0GaGrWsd/5Y0B5WsS0ErQd X-Received: by 2002:a17:907:6288:: with SMTP id nd8mr28398984ejc.223.1623235036817; Wed, 09 Jun 2021 03:37:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623235036; cv=none; d=google.com; s=arc-20160816; b=AAJLUkB7FGlRWtU25t0dsuq0eq5Q5eFZpWpT64dVAOczbSZ35b6mf5mwas6wLltxa6 jUtzwv/RJTnLQn5AqOX2/4oGwrkYMC9E1TYnNFamD0PAsKINWNG/adBMPrF8Au64uX6l SU+OEOEdlTQQFSmzaEPe2ZI0EQk8MMy58l/AcDOKmZkh61eBWjF+YtQdA/3hgQKodjam P11xIsbpU2wADHII9ubEyllzXeSJl5NJhsZXTMG69x1waHCUzo+GNjxvRR3GGLSjkUM5 dqGHS6XTvT8cjFqLgHL7P7GbWyEqPPJyBc3upP/2mR4uJovoKTPQ+LxLx/J6Z5GZgR3b r10w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eRYLH3vL9g5YLNiYjhP+BznFRLAr0/onLnzwqkT2TN8=; b=RlwRIDSQmPiLzBser6H5j56ujTO84A8nMFCaGWlczeiJLpKuZRQzeS9baPRgGIXh2x p4sGdhij1ldPi47xZC2s89DYoe7q8QPx1vPWpSS6t5bflJ7+qviauaTKCTws4g9FH+/G ooG/B5KgOnO2VUeT8P90vJ/Xm5b34f8+bCMFXe6lNgAcvvHyefkkZAVEGoC5hn/+duLx sGHPD3SerYmgx1f1RHQdO0/bNfNPmVvJQKyv4Src0OvuTnFuEleAn/qkQKX4ro2utMBL FAnY+0vLnAM9QLpocbJFwyeuzMiYKE393OMmu3ndXzjY6MgHmtxQz2zXQKVamKq8WQmu smLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GXR66OP4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bj22si2171810ejb.53.2021.06.09.03.36.53; Wed, 09 Jun 2021 03:37:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GXR66OP4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237705AbhFHTKS (ORCPT + 99 others); Tue, 8 Jun 2021 15:10:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:34178 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237411AbhFHTAe (ORCPT ); Tue, 8 Jun 2021 15:00:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B5E246144D; Tue, 8 Jun 2021 18:43:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623177838; bh=1mgWPPmzluYStBBTbqzbxfqddWKznr5Zz86gLYSijOI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GXR66OP4ryXeSGRAHEZFUmtbVUMGjiZIY+HzY18zbsjyC2Nx7fOxOgDw6tk6UEft1 TGRO1MkIy1s30EPGg+fXd85tK6n0+kBSJxtidea4q+JcAIae2nX07jXZt5WmDbX04U AB/HVPjk50H9NqK71FNUXRnHxY+gw+jdD1JIBxQI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hangbin Liu , "Jason A. Donenfeld" , "David S. Miller" Subject: [PATCH 5.10 084/137] wireguard: selftests: make sure rp_filter is disabled on vethc Date: Tue, 8 Jun 2021 20:27:04 +0200 Message-Id: <20210608175945.210418021@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175942.377073879@linuxfoundation.org> References: <20210608175942.377073879@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jason A. Donenfeld commit f8873d11d4121aad35024f9379e431e0c83abead upstream. Some distros may enable strict rp_filter by default, which will prevent vethc from receiving the packets with an unrouteable reverse path address. Reported-by: Hangbin Liu Fixes: e7096c131e51 ("net: WireGuard secure network tunnel") Cc: stable@vger.kernel.org Signed-off-by: Jason A. Donenfeld Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/wireguard/netns.sh | 1 + 1 file changed, 1 insertion(+) --- a/tools/testing/selftests/wireguard/netns.sh +++ b/tools/testing/selftests/wireguard/netns.sh @@ -363,6 +363,7 @@ ip1 -6 rule add table main suppress_pref ip1 -4 route add default dev wg0 table 51820 ip1 -4 rule add not fwmark 51820 table 51820 ip1 -4 rule add table main suppress_prefixlength 0 +n1 bash -c 'printf 0 > /proc/sys/net/ipv4/conf/vethc/rp_filter' # Flood the pings instead of sending just one, to trigger routing table reference counting bugs. n1 ping -W 1 -c 100 -f 192.168.99.7 n1 ping -W 1 -c 100 -f abab::1111