Re: [PATCH net] ip6_tunnel: do not allow loading ip6_tunnel if ipv6 is disabled in cmdline

2017-09-18 Thread David Miller
From: Xin Long Date: Fri, 15 Sep 2017 15:58:33 +0800 > If ipv6 has been disabled from cmdline since kernel started, it makes > no sense to allow users to create any ip6 tunnel. Otherwise, it could > some potential problem. > > Jianlin found a kernel crash caused by this in

[PATCH net] ip6_tunnel: do not allow loading ip6_tunnel if ipv6 is disabled in cmdline

2017-09-15 Thread Xin Long
If ipv6 has been disabled from cmdline since kernel started, it makes no sense to allow users to create any ip6 tunnel. Otherwise, it could some potential problem. Jianlin found a kernel crash caused by this in ip6_gre when he set ipv6.disable=1 in grub: [ 209.588865] Unable to handle kernel