iwlwifiドライバにてハングアップ発生

Bug #1803850 reported by hiro tera on 2018-11-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Japanese Kaizen Project
Undecided
Unassigned

Bug Description

hostapd -B /etc/hostapd/hostapd.conf
pppd file /etc/ppp/peers/dsl-provider enp0XXXXX

にてWifi AP構築中、接続端末から何らかの通信が発生した際、通信がハングアップし、以降
「端末」やブラウザ、その他の通信関連のアプリケーションからの応答が途絶え、何もできなくなります。
またその状態で、「電源オフ」を行っても、「network...」というプロセスがタイムアウトまで残り
最終的には、結局電源も落ちず、手動で電源を切らないと電源が落ちません

以下、syslogをtailで出力させ続け、ハングアップが発生した時のログです。
不備あるかと思いますので、必要な情報あれば取得方法をご教授ください

Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531418] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531444] IP: iwl_trans_pcie_txq_enable+0x62/0x460 [iwlwifi]
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531447] PGD 0 P4D 0
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531454] Oops: 0002 [#1] SMP PTI
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531457] Modules linked in: ccm pppoe pppox hidp rfcomm cmac bnep bridge stp llc nls_iso8859_1 snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic arc4 ipt_REJECT nf_reject_ipv4 xt_comment nf_log_ipv4 nf_log_common xt_LOG xt_limit xt_tcpudp snd_hda_intel xt_addrtype snd_hda_codec ipt_MASQUERADE nf_nat_masquerade_ipv4 snd_hda_core snd_hwdep snd_pcm snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp iptable_nat nf_nat_ipv4 kvm_intel iwlmvm kvm mac80211 irqbypass crct10dif_pclmul snd_seq_device snd_timer crc32_pclmul ghash_clmulni_intel iwlwifi pcbc snd cfg80211 aesni_intel aes_x86_64 crypto_simd glue_helper cryptd intel_cstate intel_rapl_perf input_leds joydev btusb btrtl btbcm btintel soundcore bluetooth mei_me shpchp mei ecdh_generic
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531534] nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack acpi_pad mac_hid ip6table_filter ip6_tables nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack libcrc32c sch_fq_codel parport_pc iptable_filter ppdev lp parport ip_tables x_tables autofs4 hid_generic uas usb_storage usbhid hid i915 drm_kms_helper syscopyarea igb sysfillrect sysimgblt nvme fb_sys_fops dca e1000e i2c_algo_bit nvme_core drm ptp ahci pps_core libahci video
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531587] CPU: 2 PID: 46 Comm: kworker/2:1 Not tainted 4.15.0-39-generic #42-Ubuntu
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531590] Hardware name: Gigabyte Technology Co., Ltd. Z270N-WIFI/Z270N-WIFI-CF, BIOS F1 11/29/2016
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531609] Workqueue: events iwl_mvm_add_new_dqa_stream_wk [iwlmvm]
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531625] RIP: 0010:iwl_trans_pcie_txq_enable+0x62/0x460 [iwlwifi]
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531628] RSP: 0018:ffffa20481a77c10 EFLAGS: 00010246
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531632] RAX: 00000000000009c4 RBX: 000000000000001f RCX: 0000000000000000
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531636] RDX: 0000000000000000 RSI: 000000000000001f RDI: 0000000000002710
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531639] RBP: ffffa20481a77c60 R08: 0000000000002710 R09: 0000000000000001
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531642] R10: 0000000000000000 R11: ffff92ee54a65fd0 R12: 0000000000000000
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531645] R13: ffff92ee56f00018 R14: 0000000000000000 R15: 0000000000000000
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531649] FS: 0000000000000000(0000) GS:ffff92ee6ed00000(0000) knlGS:0000000000000000
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531652] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531656] CR2: 0000000000000068 CR3: 00000001e160a006 CR4: 00000000003606e0
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531658] Call Trace:
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531677] iwl_mvm_enable_txq+0x21a/0x3b0 [iwlmvm]
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531692] iwl_mvm_add_new_dqa_stream_wk+0x809/0x1690 [iwlmvm]
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531704] ? iwl_mvm_add_new_dqa_stream_wk+0x809/0x1690 [iwlmvm]
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531713] ? __switch_to_asm+0x34/0x70
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531718] ? __switch_to_asm+0x40/0x70
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531726] ? __switch_to+0xad/0x500
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531731] ? __switch_to_asm+0x40/0x70
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531736] ? __switch_to_asm+0x40/0x70
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531743] process_one_work+0x1de/0x410
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531748] worker_thread+0x32/0x410
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531754] kthread+0x121/0x140
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531759] ? process_one_work+0x410/0x410
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531764] ? kthread_create_worker_on_cpu+0x70/0x70
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531770] ret_from_fork+0x35/0x40
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531774] Code: 4c 8b b4 c7 e8 7d 00 00 f0 48 0f ab 87 e8 8d 00 00 73 0d 80 3d 16 ad 02 00 00 0f 84 c1 03 00 00 44 89 c7 e8 81 51 fa e4 4d 85 e4 <49> 89 46 68 0f 84 cf 02 00 00 41 0f b6 04 24 89 45 b8 41 0f b6
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531849] RIP: iwl_trans_pcie_txq_enable+0x62/0x460 [iwlwifi] RSP: ffffa20481a77c10
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531852] CR2: 0000000000000068
Nov 18 01:42:26 xierra-Z270N-WIFI kernel: [ 179.531856] ---[ end trace c5f3744710460473 ]---
Nov 18 01:42:29 xierra-Z270N-WIFI named[1996]: success resolving 'ns-282.awsdns-35.com/A' (in 'awsdns-35.com'?) after disabling EDNS
Nov 18 01:42:29 xierra-Z270N-WIFI named[1996]: success resolving 'plex.tv/A' (in 'plex.tv'?) after disabling EDNS
Nov 18 01:42:51 xierra-Z270N-WIFI x11vnc[2085]: 18/11/2018 01:42:51 Got connection from client 196.52.43.93
Nov 18 01:42:51 xierra-Z270N-WIFI x11vnc[2085]: 18/11/2018 01:42:51 other clients:
Nov 18 01:42:51 xierra-Z270N-WIFI x11vnc[2085]: 18/11/2018 01:42:51 Normal socket connection
Nov 18 01:42:51 xierra-Z270N-WIFI x11vnc[2085]: 18/11/2018 01:42:51 incr accepted_client=1 for 196.52.43.93:53783 sock=11
Nov 18 01:42:51 xierra-Z270N-WIFI x11vnc[2085]: 18/11/2018 01:42:51 Client Protocol Version 3.8
Nov 18 01:42:51 xierra-Z270N-WIFI x11vnc[2085]: 18/11/2018 01:42:51 Protocol version sent 3.8, using 3.8
Nov 18 01:42:51 xierra-Z270N-WIFI x11vnc[2085]: 18/11/2018 01:42:51 copy_tiles: allocating first_line at size 61
Nov 18 01:42:52 xierra-Z270N-WIFI x11vnc[2085]: 18/11/2018 01:42:52 rfbProcessClientSecurityType: wrong security type (1) requested
Nov 18 01:42:52 xierra-Z270N-WIFI x11vnc[2085]: 18/11/2018 01:42:52 client_count: 0
Nov 18 01:42:52 xierra-Z270N-WIFI x11vnc[2085]: 18/11/2018 01:42:52 Client 196.52.43.93 gone
Nov 18 01:42:52 xierra-Z270N-WIFI x11vnc[2085]: 18/11/2018 01:42:52 Statistics events Transmit/ RawEquiv ( saved)
Nov 18 01:42:52 xierra-Z270N-WIFI x11vnc[2085]: 18/11/2018 01:42:52 TOTALS : 0 | 0/ 0 ( 0.0%)
Nov 18 01:42:52 xierra-Z270N-WIFI x11vnc[2085]: 18/11/2018 01:42:52 Statistics events Received/ RawEquiv ( saved)
Nov 18 01:42:52 xierra-Z270N-WIFI x11vnc[2085]: 18/11/2018 01:42:52 TOTALS : 0 | 0/ 0 ( 0.0%)
Nov 18 01:42:54 xierra-Z270N-WIFI kernel: [ 206.895202] netlink: 'hostapd': attribute type 213 has an invalid length.
Nov 18 01:42:54 xierra-Z270N-WIFI named[1996]: validating com/SOA: got insecure response; parent indicates it should be secure
Nov 18 01:42:54 xierra-Z270N-WIFI named[1996]: no valid RRSIG resolving 'microsoft.com/DS/IN': 192.42.93.30#53
Nov 18 01:43:45 xierra-Z270N-WIFI update-notifier[1831]: GtkDialog mapped without a transient parent. This is discouraged.

hiro tera (fletdown) on 2018-11-18
summary: - pppdにてネット接続中
+ iwlwifiドライバにてハングアップ発生
Mitsuya Shibata (cosmos-door) wrote :

おそらくこれと関連する問題だと思います。

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1733194

18.04(4.15カーネル)で発生したということなので、とりあえず確認すべきは
18.10(4.18カーネル)で再現するか、さらに新しい4.19や4.20-rcXではどうかを確認するところからでしょうか。
4.18以降でも再現するようなら、上記チケットや上記にあげられるbugzillaに再現手順をコメントすると、
もう少し話が早くなると思います。

hiro tera (fletdown) wrote :

コメントありがとうございます。
いったん 18.10までアップグレードしましたが、症状は治りませんでした。

そこで

kernel/git/iwlwifi/iwlwifi-fixes.git

https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes.git

こちらから一番日付の若いものを選んで何とかコンパイルしていますが
これって、OSのシステムまるっと入ってるのですね。
ちょっと日が暮れてしまいそう・・・

というレベルのものなので、現状、問題のiWlwifiのドライバにすら辿り着けていない状況です。

別建てで
kernel/git/iwlwifi/backport-iwlwifi.git
こんなところも見つけたので
そちらでいけそうか試してみるところです。

とはいえ、コンパイルのコの字すら解らず勉強しながらなので難航中です。

hiro tera (fletdown) wrote :

その後、18.10やドライバの更新等行ってみましたが依然変わらずハングアップは発生します。
いったん刺さっているWifiカードを旧式のものに差し替えてインストールしなおして試してみます。

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers