Skip to contentSkip to conversation

kernel: forcedly load nf_conntrack_ipv6 to work around kernel module loading failure

PATCH In review [email protected] 2 participants 3 messages Sep 26, 2018 – Oct 1, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel: forcedly load nf_conntrack_ipv6 to work around kernel module loading failure

From: He Zhe <[email protected]>

In the v4.18 kernel, there is a problem with the locking and init sequence of the kernel modules. This would cause nf_conntrack_ipv6 failed to be loaded.

In kernel v4.19, nf_conntrack_ipv6 has been merged to nf_conntrack and the problematic code has gone. This patch just works around by forcedly loading nf_conntrack_ipv6.

---
 recipes-kernel/linux/linux-yocto_virtualization.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-kernel/linux/linux-yocto_virtualization.inc +1 -1
index c09b07c..5d3cbc6 100644
@@ -8,7 +8,7 @@ SRC_URI += "file://xt-checksum.scc \
 	    "
 KERNEL_FEATURES_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'kvm', 'features/kvm/qemu-kvm-enable.scc', '', d)}"
 
-KERNEL_MODULE_AUTOLOAD += "openvswitch"
+KERNEL_MODULE_AUTOLOAD += "nf_conntrack_ipv6 openvswitch"
 KERNEL_MODULE_AUTOLOAD += "${@bb.utils.contains('DISTRO_FEATURES', 'kvm', 'kvm', '', d)}"
 
 # aufs kernel support required for xen-image-minimal
Signature · 1 line
2.7.4
author
#1 lore raw

Kindly ping.

Zhe

Quoted 27 lines · On 2018年09月26日 19:26, [email protected] wrote:

From: He Zhe <[email protected]>

In the v4.18 kernel, there is a problem with the locking and init sequence of the kernel modules. This would cause nf_conntrack_ipv6 failed to be loaded.

In kernel v4.19, nf_conntrack_ipv6 has been merged to nf_conntrack and the problematic code has gone. This patch just works around by forcedly loading nf_conntrack_ipv6.

---
 recipes-kernel/linux/linux-yocto_virtualization.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-kernel/linux/linux-yocto_virtualization.inc +1 -1
index c09b07c..5d3cbc6 100644
@@ -8,7 +8,7 @@ SRC_URI += "file://xt-checksum.scc \
 	    "
 KERNEL_FEATURES_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'kvm', 'features/kvm/qemu-kvm-enable.scc', '', d)}"
 
-KERNEL_MODULE_AUTOLOAD += "openvswitch"
+KERNEL_MODULE_AUTOLOAD += "nf_conntrack_ipv6 openvswitch"
 KERNEL_MODULE_AUTOLOAD += "${@bb.utils.contains('DISTRO_FEATURES', 'kvm', 'kvm', '', d)}"
 
 # aufs kernel support required for xen-image-minimal
#2 lore raw

I almost always let patches sit for 3 or more days to allow people time to comment.

this is now merged

Bruce

Quoted 34 lines · He Zhe

Kindly ping.

Zhe

Quoted 27 lines · On 2018年09月26日 19:26, [email protected] wrote:

From: He Zhe <[email protected]>

In the v4.18 kernel, there is a problem with the locking and init sequence of the kernel modules. This would cause nf_conntrack_ipv6 failed to be loaded.

In kernel v4.19, nf_conntrack_ipv6 has been merged to nf_conntrack and the problematic code has gone. This patch just works around by forcedly loading nf_conntrack_ipv6.

---
 recipes-kernel/linux/linux-yocto_virtualization.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-kernel/linux/linux-yocto_virtualization.inc +1 -1
index c09b07c..5d3cbc6 100644
@@ -8,7 +8,7 @@ SRC_URI += "file://xt-checksum.scc \
          "
 KERNEL_FEATURES_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'kvm', 'features/kvm/qemu-kvm-enable.scc', '', d)}"
 
-KERNEL_MODULE_AUTOLOAD += "openvswitch"
+KERNEL_MODULE_AUTOLOAD += "nf_conntrack_ipv6 openvswitch"
 KERNEL_MODULE_AUTOLOAD += "${@bb.utils.contains('DISTRO_FEATURES', 'kvm', 'kvm', '', d)}"
 
 # aufs kernel support required for xen-image-minimal
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"