Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel OOPS with brctl under hardened sources
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cmrd
n00b
n00b


Joined: 13 Jul 2014
Posts: 1

PostPosted: Sun Jul 13, 2014 8:11 pm    Post subject: Kernel OOPS with brctl under hardened sources Reply with quote

Hi

I have ran into an issue I am unable to resolve on my fresh install. I am attempting to set up a bridge using:
Code:
brctl addbr br0


This results in a Oops. The rest of the time the command hangs:
Code:
[  197.737129] BUG: unable to handle kernel NULL pointer dereference at            (nil)
[  197.737159] IP: [<ffffffff8131c9f2>] memcpy+0x12/0x110
[  197.737178] PGD 0
[  197.737185] Oops: 0002 [#1] SMP
[  197.737196] Modules linked in: bridge stp llc xhci_hcd
[  197.737216] CPU: 6 PID: 4837 Comm: brctl Not tainted 3.14.5-hardened-r2 #1
[  197.737236] Hardware name: Gigabyte Technology Co., Ltd. GA-970A-D3/GA-970A-D3, BIOS F7 10/13/2011
[  197.737260] task: ffff8801a3355aa0 ti: ffff8801a33560b8 task.ti: ffff8801a33560b8
[  197.737279] RIP: 0010:[<ffffffff8131c9f2>]  [<ffffffff8131c9f2>] memcpy+0x12/0x110
[  197.737301] RSP: 0018:ffff8800cb1afc60  EFLAGS: 00010206
[  197.737316] RAX: 0000000000000000 RBX: 0000000000000006 RCX: 0000000000000006
[  197.737334] RDX: 0000000000000006 RSI: ffff8800cb1afc8e RDI: 0000000000000000
[  197.737353] RBP: ffff8800cb1afcc8 R08: 0000000086f16740 R09: ffff8800cb1afb90
[  197.737372] R10: 00000000e1527701 R11: 0000000003c2a4ee R12: 0000000000000006
[  197.737390] R13: 0000000000000006 R14: ffff8800cb1afc8e R15: 0000000000000006
[  197.737409] FS:  00007f14f4d14700(0000) GS:ffff8801aed80000(0000) knlGS:0000000000000000
[  197.737431] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[  197.737446] CR2: 0000000000000000 CR3: 00000000c2035000 CR4: 00000000000407f0
[  197.737465] Stack:
[  197.737471]  ffffffff813c6c00 0000000000000001 ffff8801a381a260 0000000000000000
[  197.737493]  ffffffff81cc9980 50ed0017000174e0 e8650d83389b3327 0000000000000018
[  197.737516]  ffff8801a381a000 0000000000000006 ffffffffa0031735 0000000000000000
[  197.737538] Call Trace:
[  197.737549]  [<ffffffff813c6c00>] ? extract_entropy+0xa0/0x120
[  197.737568]  [<ffffffffa0031735>] ? br_dev_setup+0x25/0x180 [bridge]
[  197.737588]  [<ffffffffa0031710>] ? br_netpoll_setup+0x90/0x90 [bridge]
[  197.737607]  [<ffffffff813c7013>] get_random_bytes+0x43/0x90
[  197.737624]  [<ffffffffa0031735>] br_dev_setup+0x25/0x180 [bridge]
[  197.737644]  [<ffffffff81678a7d>] alloc_netdev_mqs+0x18d/0x390
[  197.737661]  [<ffffffffa003367a>] br_add_bridge+0x2a/0x90 [bridge]
[  197.737690]  [<ffffffff8106a06f>] ? ns_capable+0x4f/0x80
[  197.737706]  [<ffffffffa0034eda>] br_ioctl_deviceless_stub+0x39a/0x440 [bridge]
[  197.737727]  [<ffffffff8107af91>] ? __request_module+0x41/0x50
[  197.737745]  [<ffffffff81659573>] sock_ioctl+0xb3/0x260
[  197.737761]  [<ffffffff81181498>] do_vfs_ioctl+0x88/0x770
[  197.737777]  [<ffffffff812b9be2>] ? inode_has_perm.isra.34+0x22/0x30
[  197.737795]  [<ffffffff812b9c7f>] ? file_has_perm+0x8f/0xa0
[  197.737811]  [<ffffffff81181c11>] SyS_ioctl+0x91/0xb0
[  197.737826]  [<ffffffff818472de>] system_call_fastpath+0x16/0x1b
[  197.737842] Code: 5b 5d c3 66 0f 1f 44 00 00 e8 eb fb ff ff eb e1 90 90 90 90 90 90 90 90 90 48 89 f8 48 89 d1 48 c1 e9 03 83 e2 07 f3 48 a5 89 d1 <f3> a4 c3 20 4c 8b 06 4c 8b 4e 08 4c 8b 56 10 4c 8b 5e 18 48 8d
[  197.737943] RIP  [<ffffffff8131c9f2>] memcpy+0x12/0x110
[  197.737959]  RSP <ffff8800cb1afc60>
[  197.737969] CR2: 0000000000000000
[  197.745297] ---[ end trace d6d1c2f98d443c29 ]---


This also happens when following the wiki method through init.d/net.

Kernel config: http://dpaste.com/0VHV556

bridge-utils have no USE flags, and I have established emerging them does not resolve the issue.

I can't think of anything else to try.
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9357

PostPosted: Sun Jul 13, 2014 10:05 pm    Post subject: Reply with quote

Does this also happen when using vanilla sources? If no, please try building hardened-sources with fewer hardening options. When you find the option which controls the oops, that may provide a hint about how to fix the problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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