You are not logged in.

#1 2024-05-11 15:34:52

polq12
Member
Registered: 2024-01-11
Posts: 19

[SOLVED] NF_CONNTRACK causing kernel crash

I am trying to switch from vmware to qemu to get better performance.
I am running a custom tkg kernel with custom config file: http://0x0.st/X8FY.txt
When i try to use a virtual network i get:

internal error: Failed to apply firewall rules /usr/bin/iptables -w --table nat --insert POSTROUTING --jump LIBVIRT_PRT: iptables v1.8.10 (nf_tables):  CHAIN_ADD failed (No such file or directory): chain POSTROUTING

I think it has to do with NF_CONNTRACK module because i see it loaded on the stock arch kernel and everything works there. However when i compile this module or compile it into the kernel i get weird errors like this:

[       6.767496] ? 0xffffffff812fede4 

after the system starts up but before logging in on the top of the screen like this https://drive.google.com/file/d/1-VZy55 … sp=sharing. The system is completly unresponsive at this point and I have to force restart. Everything works fine on the stock kernel. Excluding NF_CONNTRACK fixes everything, but as I said I cant use virtual networks without this option. Is that a kenrel problem or an issue on my side?

Last edited by polq12 (2024-05-14 13:38:07)

Offline

#2 2024-05-11 17:48:46

loqs
Member
Registered: 2014-03-06
Posts: 18,872

Re: [SOLVED] NF_CONNTRACK causing kernel crash

Can you reproduce the issue using the tkg kernel with Arch's config?  Similarly what is the result with Arch's linux sources with your config?

Offline

#3 2024-05-11 19:10:14

polq12
Member
Registered: 2024-01-11
Posts: 19

Re: [SOLVED] NF_CONNTRACK causing kernel crash

Tkg with arch config works fine and vanilla my my config does not work. It throws that error even before the login. So there is an issue with my config. But why? It should not be allowed to enable a config option when it breakes things or when there is an unmet depedency. With stock arch kernel i get this on the login prompt: bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this. Does it have any connection with the issue?

Offline

#4 2024-05-11 19:36:46

loqs
Member
Registered: 2014-03-06
Posts: 18,872

Re: [SOLVED] NF_CONNTRACK causing kernel crash

The config you posted has:

# CONFIG_NF_CONNTRACK is not set

Please post the config you use when it is enabled.  Please build Arch's linux sources with that config if that is not what have done already and post the full system journal from a boot with that kernel that has the issue.

Offline

#5 2024-05-11 20:21:55

polq12
Member
Registered: 2024-01-11
Posts: 19

Re: [SOLVED] NF_CONNTRACK causing kernel crash

Arch sources worked! I think that is because they are mainline not stable. I will wait for 6.9 to become stable, try to compile tkg. If it won't work I will try to combine arch and tkg patches and see if it will work. For now I will stick to vmware. Thanks for helping me

Offline

#6 2024-05-11 20:52:45

loqs
Member
Registered: 2014-03-06
Posts: 18,872

Re: [SOLVED] NF_CONNTRACK causing kernel crash

polq12 wrote:

Arch sources worked! I think that is because they are mainline not stable. I will wait for 6.9 to become stable, try to compile tkg. If it won't work I will try to combine arch and tkg patches and see if it will work. For now I will stick to vmware. Thanks for helping me

The current Arch linux PKGBUILD uses stable 6.8.9 plus the five patches listed on v6.8.9-arch1.

Offline

#7 2024-05-11 20:57:27

polq12
Member
Registered: 2024-01-11
Posts: 19

Re: [SOLVED] NF_CONNTRACK causing kernel crash

loqs wrote:

The current Arch linux PKGBUILD uses stable 6.8.9 plus the five patches listed on v6.8.9-arch1.

I just git cloned the repo and built it manually so it was 6.9.0rc6

Offline

#8 2024-05-14 13:37:54

polq12
Member
Registered: 2024-01-11
Posts: 19

Re: [SOLVED] NF_CONNTRACK causing kernel crash

Solved with kernel 6.9

Offline

Board footer

Powered by FluxBB