From: "Zhou, Jie2X" <jie2x.zhou@intel.com>
To: "davem@davemloft.net" <davem@davemloft.net>,
"kuba@kernel.org" <kuba@kernel.org>,
"shuah@kernel.org" <shuah@kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-kselftest@vger.kernel.org"
<linux-kselftest@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: "Li, Philip" <philip.li@intel.com>, lkp <lkp@intel.com>,
"Ma, XinjianX" <xinjianx.ma@intel.com>,
"Li, ZhijianX" <zhijianx.li@intel.com>
Subject: selftests/net/fcnal-test.sh: ipv6_bind failed
Date: Tue, 7 Dec 2021 07:29:48 +0000 [thread overview]
Message-ID: <PH0PR11MB4792DC680F7E383D72C2E8C5C56E9@PH0PR11MB4792.namprd11.prod.outlook.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 695 bytes --]
hi,
I test ipv6_bind by "fcnal-test.sh -v -t ipv6_bind" in kernel v5.16-rc3.
There are two tests failed.
TEST: TCP socket bind to out of scope local address - ns-A loopback IPv6 [FAIL]
TEST: TCP socket bind to VRF address with device bind - VRF IPv6 [FAIL]
In fcnal-test.sh expected command error not occurred.
ipv6_addr_bind_novrf()
{
......
log_test_addr ${a} $? 1 "TCP socket bind to out of scope local address"
ipv6_addr_bind_vrf()
{
......
log_test_addr ${a} $? 1 "TCP socket bind to VRF address with device bind"
Did I set something wrong that result in these failed?
The test output is attached.
best regards,
[-- Attachment #2: ipv6_bind.txt --]
[-- Type: text/plain, Size: 4895 bytes --]
./fcnal-test.sh -v -t ipv6_bind
###########################################################################
IPv6 address binds
###########################################################################
#################################################################
No VRF
Configuring network namespaces
#######################################################
COMMAND: ip netns exec ns-A nettest -6 -s -R -P ipv6-icmp -l 2001:db8:1::1 -b
TEST: Raw socket bind to local address - ns-A IPv6 [ OK ]
#######################################################
COMMAND: ip netns exec ns-A nettest -6 -s -R -P ipv6-icmp -l 2001:db8:1::1 -I eth1 -b
TEST: Raw socket bind to local address after device bind - ns-A IPv6 [ OK ]
#######################################################
COMMAND: ip netns exec ns-A nettest -6 -s -R -P ipv6-icmp -l 2001:db8:2::1 -b
TEST: Raw socket bind to local address - ns-A loopback IPv6 [ OK ]
#######################################################
COMMAND: ip netns exec ns-A nettest -6 -s -R -P ipv6-icmp -l 2001:db8:2::1 -I eth1 -b
TEST: Raw socket bind to local address after device bind - ns-A loopback IPv6 [ OK ]
#######################################################
COMMAND: ip netns exec ns-A nettest -6 -s -l 2001:db8:1::1 -t1 -b
TEST: TCP socket bind to local address - ns-A IPv6 [ OK ]
#######################################################
COMMAND: ip netns exec ns-A nettest -6 -s -l 2001:db8:1::1 -I eth1 -t1 -b
TEST: TCP socket bind to local address after device bind - ns-A IPv6 [ OK ]
#######################################################
HINT: Should fail with 'Cannot assign requested address'
COMMAND: ip netns exec ns-A nettest -6 -s -l 2001:db8:2::1 -I eth1 -t1 -b
TEST: TCP socket bind to out of scope local address - ns-A loopback IPv6 [FAIL]
#################################################################
With VRF
Configuring network namespaces
#######################################################
COMMAND: ip netns exec ns-A nettest -6 -s -R -P ipv6-icmp -l 2001:db8:1::1 -I red -b
TEST: Raw socket bind to local address after vrf bind - ns-A IPv6 [ OK ]
#######################################################
COMMAND: ip netns exec ns-A nettest -6 -s -R -P ipv6-icmp -l 2001:db8:1::1 -I eth1 -b
TEST: Raw socket bind to local address after device bind - ns-A IPv6 [ OK ]
#######################################################
COMMAND: ip netns exec ns-A nettest -6 -s -R -P ipv6-icmp -l 2001:db8:3::1 -I red -b
TEST: Raw socket bind to local address after vrf bind - VRF IPv6 [ OK ]
#######################################################
COMMAND: ip netns exec ns-A nettest -6 -s -R -P ipv6-icmp -l 2001:db8:3::1 -I eth1 -b
TEST: Raw socket bind to local address after device bind - VRF IPv6 [ OK ]
#######################################################
HINT: Address on loopback is out of VRF scope
COMMAND: ip netns exec ns-A nettest -6 -s -R -P ipv6-icmp -l 2001:db8:2::1 -I red -b
05:14:09 server: error binding socket: 99: Cannot assign requested address
TEST: Raw socket bind to invalid local address after vrf bind - ns-A loopback IPv6 [ OK ]
#######################################################
COMMAND: ip netns exec ns-A nettest -6 -s -l 2001:db8:1::1 -I red -t1 -b
TEST: TCP socket bind to local address with VRF bind - ns-A IPv6 [ OK ]
#######################################################
COMMAND: ip netns exec ns-A nettest -6 -s -l 2001:db8:3::1 -I red -t1 -b
TEST: TCP socket bind to local address with VRF bind - VRF IPv6 [ OK ]
#######################################################
COMMAND: ip netns exec ns-A nettest -6 -s -l 2001:db8:1::1 -I eth1 -t1 -b
TEST: TCP socket bind to local address with device bind - ns-A IPv6 [ OK ]
#######################################################
COMMAND: ip netns exec ns-A nettest -6 -s -l 2001:db8:3::1 -I eth1 -t1 -b
TEST: TCP socket bind to VRF address with device bind - VRF IPv6 [FAIL]
#######################################################
HINT: Address on loopback out of scope for VRF
COMMAND: ip netns exec ns-A nettest -6 -s -l 2001:db8:2::1 -I red -t1 -b
05:14:20 server: error binding socket: 99: Cannot assign requested address
TEST: TCP socket bind to invalid local address for VRF - ns-A loopback IPv6 [ OK ]
#######################################################
HINT: Address on loopback out of scope for device in VRF
COMMAND: ip netns exec ns-A nettest -6 -s -l 2001:db8:2::1 -I eth1 -t1 -b
05:14:22 server: error binding socket: 99: Cannot assign requested address
TEST: TCP socket bind to invalid local address for device bind - ns-A loopback IPv6 [ OK ]
Tests passed: 16
Tests failed: 2
reply other threads:[~2021-12-07 7:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=PH0PR11MB4792DC680F7E383D72C2E8C5C56E9@PH0PR11MB4792.namprd11.prod.outlook.com \
--to=jie2x.zhou@intel.com \
--cc=davem@davemloft.net \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=lkp@intel.com \
--cc=netdev@vger.kernel.org \
--cc=philip.li@intel.com \
--cc=shuah@kernel.org \
--cc=xinjianx.ma@intel.com \
--cc=zhijianx.li@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).