linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* selftests/net/fcnal-test.sh: ipv6_bind failed
@ 2021-12-07  7:29 Zhou, Jie2X
  0 siblings, 0 replies; only message in thread
From: Zhou, Jie2X @ 2021-12-07  7:29 UTC (permalink / raw)
  To: davem, kuba, shuah, netdev, linux-kselftest, linux-kernel
  Cc: Li, Philip, lkp, Ma, XinjianX, Li, ZhijianX

[-- 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-07  7:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-07  7:29 selftests/net/fcnal-test.sh: ipv6_bind failed Zhou, Jie2X

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).