Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Genkernel Oops enabling NAT
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
marcelvs
n00b
n00b


Joined: 10 Sep 2005
Posts: 24

PostPosted: Thu Apr 07, 2016 11:55 pm    Post subject: Genkernel Oops enabling NAT Reply with quote

Hello, I am using genkernel with no problem. Once I tried to enable NAT and I ran into strange problems (Chromium browser did not start anymore, but firefox started, virt-manager could not connect into libvirtd) so I gave up NAT, removed all config I did and everything changed back to normal after recompilling the kernel.
This weekend I was installing docker and had to enable NAT so I gave another try. The same problem happend but this time I looked for more clues about this problem:
I look the minimum number of options I have to check in kernel's config to run into this problem and here you are:

CONFIG_NF_CONNTRACK_IPV4 (I have to enable this to nat appears) and CONFIG_NF_NAT_IPV4.

With this config enabled I get an oops during boot (see bellow) (/var/log/messages)

5 19:53:00 darkstar kernel: input: Microsoft Microsoft® 2.4GHz Transceiver v6.0 as /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.1/0003:045E:0745.0004/input/input7
Apr 5 19:53:00 darkstar kernel: BUG: unable to handle kernel NULL pointer dereference at 0000000000000020
Apr 5 19:53:00 darkstar kernel: IP: [<ffffffffa00368ed>] sunrpc_init_net+0x1c/0xa1 [sunrpc]
Apr 5 19:53:00 darkstar kernel: PGD 5fdaf8067 PUD 5fd597067 PMD 0
Apr 5 19:53:00 darkstar kernel: Oops: 0000 [#1] SMP
Apr 5 19:53:00 darkstar kernel: Modules linked in: sunrpc(+) dm_crypt dm_mod
Apr 5 19:53:00 darkstar kernel: CPU: 6 PID: 3186 Comm: modprobe Not tainted 4.1.15-gentoo-r1 #8
Apr 5 19:53:00 darkstar kernel: Hardware name: ASUS All Series/B85-PLUS, BIOS 0309 04/08/2013
Apr 5 19:53:00 darkstar kernel: task: ffff880601548bc0 ti: ffff8805fd788000 task.ti: ffff8805fd788000
Apr 5 19:53:00 darkstar kernel: RIP: 0010:[<ffffffffa00368ed>] [<ffffffffa00368ed>] sunrpc_init_net+0x1c/0xa1 [sunrpc]
Apr 5 19:53:00 darkstar kernel: RSP: 0018:ffff8805fd78bc38 EFLAGS: 00010202
Apr 5 19:53:00 darkstar kernel: RAX: 0000000000000000 RBX: ffffffff81804280 RCX: 0000000000000000
Apr 5 19:53:00 darkstar kernel: RDX: 0000000000000001 RSI: ffff88061dd9c100 RDI: ffffffff81804280
Apr 5 19:53:00 darkstar kernel: RBP: 0000000000000001 R08: 0000000000000002 R09: ffffffffffffffff
Apr 5 19:53:00 darkstar kernel: R10: 0000000000000006 R11: 0000000000018d88 R12: ffff8805fcf6b700
Apr 5 19:53:00 darkstar kernel: R13: ffffffff81804280 R14: ffffffffa0045370 R15: 0000000000000000
Apr 5 19:53:00 darkstar kernel: FS: 00000000015a4880(0063) GS:ffff88061dd80000(0000) knlGS:0000000000000000
Apr 5 19:53:00 darkstar kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Apr 5 19:53:00 darkstar kernel: CR2: 0000000000000020 CR3: 00000005fd68d000 CR4: 00000000001406e0
Apr 5 19:53:00 darkstar kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Apr 5 19:53:00 darkstar kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Apr 5 19:53:00 darkstar kernel: Stack:
Apr 5 19:53:00 darkstar kernel: 0000000000000000 ffff880601829f40 0000000000000001 ffff8805fcf6b700
Apr 5 19:53:00 darkstar kernel: ffffffff81804280 ffffffff81437081 0000000000000004 ffffffffa0045370
Apr 5 19:53:00 darkstar kernel: ffffffff81804280 0000000000000000 ffffffff81769040 0000000000000001
Apr 5 19:53:00 darkstar kernel: Call Trace:
Apr 5 19:53:00 darkstar kernel: [<ffffffff81437081>] ? ops_init+0xb7/0xe1
Apr 5 19:53:00 darkstar kernel: [<ffffffff81437a5c>] ? register_pernet_operations+0xb8/0x14f
Apr 5 19:53:00 darkstar kernel: [<ffffffff81437b16>] ? register_pernet_subsys+0x23/0x3d
Apr 5 19:53:00 darkstar kernel: [<ffffffffa005cdf8>] ? cache_initialize+0x47/0x5f [sunrpc]
Apr 5 19:53:00 darkstar kernel: [<ffffffffa005cd76>] ? init_sunrpc+0x2a/0x65 [sunrpc]
Apr 5 19:53:00 darkstar kernel: [<ffffffffa005cd4c>] ? rpc_init_generic_auth+0xc/0xc [sunrpc]
Apr 5 19:53:00 darkstar kernel: [<ffffffff810003ec>] ? do_one_initcall+0xe2/0x15f
Apr 5 19:53:00 darkstar kernel: [<ffffffff814bbd87>] ? do_init_module+0x56/0x1b3
Apr 5 19:53:00 darkstar kernel: [<ffffffff810c933b>] ? load_module+0x16da/0x1a34
Apr 5 19:53:00 darkstar kernel: [<ffffffff81130b36>] ? map_vm_area+0x2a/0x36
Apr 5 19:53:00 darkstar kernel: [<ffffffff810c974d>] ? SyS_init_module+0xb8/0xdb
Apr 5 19:53:00 darkstar kernel: [<ffffffff814c081b>] ? system_call_fastpath+0x16/0x6e
Apr 5 19:53:00 darkstar kernel: Code: df e8 52 da ff ff 48 89 df 5b e9 4e 60 00 00 41 55 41 54 55 53 48 89 fb 51 8b 15 f7 fc 00 00 48 8b 87 70 06 00 00 ff ca 48 63 d2 <4c> 8b 64 d0 18 e8 ef 5f 00 00 85 c0 41 89 c5 75 69 48 89 df e8
Apr 5 19:53:00 darkstar kernel: RIP [<ffffffffa00368ed>] sunrpc_init_net+0x1c/0xa1 [sunrpc]
Apr 5 19:53:00 darkstar kernel: RSP <ffff8805fd78bc38>
Apr 5 19:53:00 darkstar kernel: CR2: 0000000000000020
Apr 5 19:53:00 darkstar kernel:

---[ end trace f92e0dfb19b0c090 ]---

I do not know if this behavior is a bug in genkernel or I have a bad configuration that come to this when I enable these options. I am using 4.1.15-gentoo-r1 and I tried this in other oprtunities, with other versions of gentoo-sources with the same result.

I am accepting suggestions to solve this.
I can post my kernel config or my emerge --info if this can help but as this Oops appears in boot I don't think this can help.


Thanks in advance.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum