Skip to contentSkip to conversation

New: unable to create vrf interface when ipv6.disable=1

Bug 204903 Stephen Hemminger 3 participants 4 messages Sep 19, 2019 – Sep 25, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Begin forwarded message:

Date: Wed, 18 Sep 2019 15:15:42 +0000
From: [email protected]
To: [email protected]
Subject: [Bug 204903] New: unable to create vrf interface when ipv6.disable=1

https://bugzilla.kernel.org/show_bug.cgi?id=204903

            Bug ID: 204903
           Summary: unable to create vrf interface when ipv6.disable=1
           Product: Networking
           Version: 2.5
    Kernel Version: 5.2.14
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Other
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

ip link add vrf0 type vrf table 100 fails with EAFNOSUPPORT when boot with ipv6.disable=1. There must be somewhere inside vrf_newlink trying to use IPv6 without checking availablity. Maybe vrf_add_fib_rules I guess.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw
Quoted 28 lines · Stephen Hemminger

Begin forwarded message:

Date: Wed, 18 Sep 2019 15:15:42 +0000
From: [email protected]
To: [email protected]
Subject: [Bug 204903] New: unable to create vrf interface when ipv6.disable=1

https://bugzilla.kernel.org/show_bug.cgi?id=204903

            Bug ID: 204903
           Summary: unable to create vrf interface when ipv6.disable=1
           Product: Networking
           Version: 2.5
    Kernel Version: 5.2.14
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Other
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No
Quoted 4 lines

ip link add vrf0 type vrf table 100 fails with EAFNOSUPPORT when boot with ipv6.disable=1. There must be somewhere inside vrf_newlink trying to use IPv6 without checking availablity. Maybe vrf_add_fib_rules I guess.

ack. I'll take a look when I get a chance. Should be a simple fix.

#2 lore raw
Quoted 29 lines · David Ahern
Quoted 28 lines · Stephen Hemminger

Begin forwarded message:

Date: Wed, 18 Sep 2019 15:15:42 +0000
From: [email protected]
To: [email protected]
Subject: [Bug 204903] New: unable to create vrf interface when ipv6.disable=1

https://bugzilla.kernel.org/show_bug.cgi?id=204903

            Bug ID: 204903
           Summary: unable to create vrf interface when ipv6.disable=1
           Product: Networking
           Version: 2.5
    Kernel Version: 5.2.14
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Other
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No
Quoted 6 lines
Quoted 4 lines

ip link add vrf0 type vrf table 100 fails with EAFNOSUPPORT when boot with ipv6.disable=1. There must be somewhere inside vrf_newlink trying to use IPv6 without checking availablity. Maybe vrf_add_fib_rules I guess.

ack. I'll take a look when I get a chance. Should be a simple fix.

Not sure if it's the only problem but vrf_fib_rule() checks ipv6_mod_enabled() for AF_INET6 but not for RTNL_FAMILY_IP6MR.

Michal

#3 lore raw
Quoted 2 lines · Michal Kubecek

Not sure if it's the only problem but vrf_fib_rule() checks ipv6_mod_enabled() for AF_INET6 but not for RTNL_FAMILY_IP6MR.

yes, that's the problem. sending a patch soon.