mwifiex causes kernel oops when AP mode is enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HWE Next |
Fix Released
|
Undecided
|
Jesse Sung | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Jesse Sung | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When it's in AP mode, there's quite a chance to find kernel oops during reboot.
This is caused by the wiphy may be NULL for some reason. It's likely a bug in mwifiex. We've already pinged Marvell and Murata. Before there's a real fix available, we should check wiphy before accessing it.
I've tried a 4.13-rc6 kernel. Though it has oops for NULL pointer deference too, it happens in a different function in mwifiex. Thus the workaround for Xenial may or may not help for other series. Will need to reproduce this issue with Zesty and then we can decide whether this workaround should be applied to Zesty.
[ 30.701441] BUG: unable to handle kernel NULL pointer dereference at 00000000000000f0
[ 30.709511] IP: [<ffffffffc0578
[ 30.716494] PGD 0
[ 30.718575] Oops: 0000 [#1] SMP
[ 30.721918] Modules linked in: ipt_MASQUERADE nf_nat_
[ 30.836915] CPU: 1 PID: 679 Comm: kworker/u5:0 Not tainted 4.4.0-57-generic #78-Ubuntu
[ 30.845018] Hardware name: Dell Inc. Edge Gateway 5000/ , BIOS 01.05.00 10/18/2016
[ 30.853218] Workqueue: MWIFIEX_WORK_QUEUE mwifiex_
[ 30.860362] task: ffff880077c11980 ti: ffff880075e48000 task.ti: ffff880075e48000
[ 30.868018] RIP: 0010:[<
[ 30.877484] RSP: 0018:ffff880075
[ 30.882920] RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000000004
[ 30.890221] RDX: 0010000000110010 RSI: 0000000000000004 RDI: 0000000000000004
[ 30.897520] RBP: ffff880075e4bc28 R08: 0000000000000003 R09: 0000000000000001
[ 30.904821] R10: 0000000000000001 R11: 00000000000002ff R12: 0000000000000095
[ 30.912123] R13: 0000000000000000 R14: ffff880075e40000 R15: 0000000000000095
[ 30.919425] FS: 000000000000000
[ 30.927701] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 30.933581] CR2: 00000000000000f0 CR3: 0000000001e0a000 CR4: 00000000001006e0
[ 30.940882] Stack:
[ 30.942944] 0000000000000118 ffff880075e40000 ffff8800750c4000 ffff880075e3ed59
[ 30.950592] 0000000000000095 ffff880075e3ee01 ffff880075e4bcd0 ffffffffc05846fc
[ 30.958232] 0000000000000000 ffff880075e4bc50 ffffffff8140bcb5 ffff880075e4bc70
[ 30.965873] Call Trace:
[ 30.968397] [<ffffffffc0584
[ 30.976772] [<ffffffff8140b
[ 30.982490] [<ffffffffc0584
[ 30.991139] [<ffffffffc058f
[ 30.998806] [<ffffffffc0578
[ 31.006120] [<ffffffffc0576
[ 31.013346] [<ffffffffc0576
[ 31.020650] [<ffffffff8109a
[ 31.026624] [<ffffffff8109a
[ 31.032240] [<ffffffff8109a
[ 31.038387] [<ffffffff810a0
[ 31.043384] [<ffffffff810a0
[ 31.050071] [<ffffffff81837
[ 31.055596] [<ffffffff810a0
[ 31.062276] Code: 85 c9 0f 84 ef 00 00 00 40 0f b6 de 49 89 fe 41 89 cd 89 df 41 89 d4 e8 46 f1 00 00 84 c0 49 8b 86 e0 13 00 00 0f 84 98 00
[ 31.082756] RIP [<ffffffffc0578
[ 31.089820] RSP <ffff880075e4bbf8>
[ 31.093392] CR2: 00000000000000f0
[ 31.096787] ---[ end trace f3a762be5787f138 ]---
CVE References
tags: | added: originate-from-1654549 plano |
Changed in hwe-next: | |
assignee: | nobody → Jesse Sung (wenchien) |
status: | New → In Progress |
description: | updated |
Changed in linux (Ubuntu Xenial): | |
status: | New → Fix Committed |
tags: |
added: verification-done-xenial removed: verification-needed-xenial |
Changed in linux (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in hwe-next: | |
status: | In Progress → Fix Released |
This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification- needed- xenial' to 'verification- done-xenial' . If the problem still exists, change the tag 'verification- needed- xenial' to 'verification- failed- xenial' .
If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.
See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation how to enable and use -proposed. Thank you!