Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#63185 - Hostapd wifi router crashes with iwlwifi on Dell computers due to a bug in Kernel I2C driver.

Attached to Project: Arch Linux
Opened by Call Me Dad (No_Username) - Sunday, 14 July 2019, 01:55 GMT
Task Type Bug Report
Category Packages: Extra
Status Unconfirmed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description:

Less than a month ago, I installed Arch Linux for converting an old Dell Wyse Thin Client 5060 into a WiFi Router in addition to using it as a private cloud at my home. I used the hostapd package with Intel AC7265 card on it, but it kept crashing wit the following error. It also gave additional kernel bug errors here and there randomly at times regarding DMI, which may or may not be related to this bug as well. It crashes the server, and requires reboot. I found the fix already, and decided to share here for Arch Linux to include it in the future versions rather than compiling i2c-i801.ko.xz and others for my own only. Thank you.

Additional info:

* package version(s) :

5.2.0-arch2-1-ARCH, Hostapd, Haveged, Iptables, Networkd-Systemd, Networkd-Resolved

* config and/or log files etc.

Jul 13 18:05:32 No_Hostname kernel: BUG: kernel NULL pointer dereference, address: 0000000000000068
Jul 13 18:05:32 No_Hostname kernel: #PF: supervisor write access in kernel mode
Jul 13 18:05:32 No_Hostname kernel: #PF: error_code(0x0002) - not-present page
Jul 13 18:05:32 No_Hostname kernel: PGD 0 P4D 0
Jul 13 18:05:32 No_Hostname kernel: Oops: 0002 [#1] PREEMPT SMP NOPTI
Jul 13 18:05:32 No_Hostname kernel: CPU: 2 PID: 29 Comm: kworker/2:0 Not tainted 5.2.0-arch2-1-ARCH #1
Jul 13 18:05:32 No_Hostname kernel: Hardware name: WYSE Dell Wyse Thin Client Desktop 5060/0PY33N, BIOS 1.0F 05/04/2017
Jul 13 18:05:32 No_Hostname kernel: Workqueue: events iwl_mvm_add_new_dqa_stream_wk [iwlmvm]
Jul 13 18:05:32 No_Hostname kernel: RIP: 0010:iwl_trans_pcie_txq_enable+0x6c/0x490 [iwlwifi]
Jul 13 18:05:32 No_Hostname kernel: Code: 00 00 4c 8b ac c7 88 7f 00 00 f0 48 0f ab 87 88 8f 00 00 73 0d 80 3d fe f3 03 00 00 0f 84 d5 03 00 00 44 89 c7 e8 54 6f 50 ef <49> 89 45 68 48 85 db 0f 84 ec 02 00 00 0>
Jul 13 18:05:32 No_Hostname kernel: RSP: 0018:ffffa67e80d93d08 EFLAGS: 00010217
Jul 13 18:05:32 No_Hostname kernel: RAX: 0000000000000bb8 RBX: 0000000000000000 RCX: 0000000000000000
Jul 13 18:05:32 No_Hostname kernel: RDX: 0000000000000000 RSI: 000000000000001f RDI: 0000177000000fa0
Jul 13 18:05:32 No_Hostname kernel: RBP: 0000000000000000 R08: 0000000000002710 R09: 0000000000000001
Jul 13 18:05:32 No_Hostname kernel: R10: 0000000000000080 R11: 0000000000000000 R12: 000000000000001f
Jul 13 18:05:32 No_Hostname kernel: R13: 0000000000000000 R14: 0000000000000000 R15: ffff9c1c94360018
Jul 13 18:05:32 No_Hostname kernel: FS: 0000000000000000(0000) GS:ffff9c1c97b00000(0000) knlGS:0000000000000000
Jul 13 18:05:32 No_Hostname kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jul 13 18:05:32 No_Hostname kernel: CR2: 0000000000000068 CR3: 000000020b24c000 CR4: 00000000000406e0
Jul 13 18:05:32 No_Hostname kernel: Call Trace:
Jul 13 18:05:32 No_Hostname kernel: ? iwl_mvm_inactivity_check+0x7f8/0xa80 [iwlmvm]
Jul 13 18:05:32 No_Hostname kernel: iwl_mvm_enable_txq+0x195/0x2d0 [iwlmvm]
Jul 13 18:05:32 No_Hostname kernel: iwl_mvm_add_new_dqa_stream_wk+0x201/0x860 [iwlmvm]
Jul 13 18:05:32 No_Hostname kernel: ? finish_task_switch+0x80/0x2d0
Jul 13 18:05:32 No_Hostname kernel: process_one_work+0x1d1/0x3e0
Jul 13 18:05:32 No_Hostname kernel: worker_thread+0x4a/0x3d0
Jul 13 18:05:32 No_Hostname kernel: kthread+0xfb/0x130
Jul 13 18:05:32 No_Hostname kernel: ? process_one_work+0x3e0/0x3e0
Jul 13 18:05:32 No_Hostname kernel: ? kthread_park+0x90/0x90
Jul 13 18:05:32 No_Hostname kernel: ret_from_fork+0x22/0x40
Jul 13 18:05:32 No_Hostname kernel: Modules linked in: ccm amdgpu amd_iommu_v2 gpu_sched radeon arc4 edac_mce_amd kvm_amd kvm iwlmvm xt_MASQUERADE mac80211 iptable_nat nf_nat xt_multiport xt_conntrack nf_conntr>
Jul 13 18:05:32 No_Hostname kernel: CR2: 0000000000000068
Jul 13 18:05:32 No_Hostname kernel: ---[ end trace 2fa71c073f79cde8 ]---
Jul 13 18:05:32 No_Hostname kernel: RIP: 0010:iwl_trans_pcie_txq_enable+0x6c/0x490 [iwlwifi]
Jul 13 18:05:32 No_Hostname kernel: Code: 00 00 4c 8b ac c7 88 7f 00 00 f0 48 0f ab 87 88 8f 00 00 73 0d 80 3d fe f3 03 00 00 0f 84 d5 03 00 00 44 89 c7 e8 54 6f 50 ef <49> 89 45 68 48 85 db 0f 84 ec 02 00 00 0>
Jul 13 18:05:32 No_Hostname kernel: RSP: 0018:ffffa67e80d93d08 EFLAGS: 00010217
Jul 13 18:05:32 No_Hostname kernel: RAX: 0000000000000bb8 RBX: 0000000000000000 RCX: 0000000000000000
Jul 13 18:05:32 No_Hostname kernel: RDX: 0000000000000000 RSI: 000000000000001f RDI: 0000177000000fa0
Jul 13 18:05:32 No_Hostname kernel: RBP: 0000000000000000 R08: 0000000000002710 R09: 0000000000000001
Jul 13 18:05:32 No_Hostname kernel: R10: 0000000000000080 R11: 0000000000000000 R12: 000000000000001f
Jul 13 18:05:32 No_Hostname kernel: R13: 0000000000000000 R14: 0000000000000000 R15: ffff9c1c94360018
Jul 13 18:05:32 No_Hostname kernel: FS: 0000000000000000(0000) GS:ffff9c1c97b00000(0000) knlGS:0000000000000000
Jul 13 18:05:32 No_Hostname kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jul 13 18:05:32 No_Hostname kernel: CR2: 0000000000000068 CR3: 000000020b24c000 CR4: 00000000000406e0
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: Queue 16 is active on fifo 1 and stuck for 10000 ms. SW [4, 8] HW [4, 8] FH TRB=0x0c0117095
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: Microcode SW error detected. Restarting 0x2000000.
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: Start IWL Error Log Dump:
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: Status: 0x00000080, count: 6
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: Loaded firmware version: 29.1044073957.0
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000084 | NMI_INTERRUPT_UNKNOWN
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x000002F0 | trm_hw_status0
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000000 | trm_hw_status1
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00043D54 | branchlink2
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x0004AFDA | interruptlink1
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x0004AFDA | interruptlink2
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000000 | data1
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000080 | data2
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x07030000 | data3
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000000 | beacon time
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0xF2DACC59 | tsf low
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000001 | tsf hi
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000000 | time gp1
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0xF2DACC59 | time gp2
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000001 | uCode revision type
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x0000001D | uCode version major
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x3E3B4DE5 | uCode version minor
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000210 | hw version
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00489200 | board version
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x0060011C | hcmd
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00022000 | isr0
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000000 | isr1
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000002 | isr2
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x004160C0 | isr3
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000000 | isr4
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00630118 | last cmd Id
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000000 | wait_event
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x0000838D | l2p_control
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000020 | l2p_duration
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000003 | l2p_mhvalid
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x0000F000 | l2p_addr_match
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000005 | lmpm_pmg_sel
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x14031202 | timestamp
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x0034A8B8 | flow_handler
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: Fseq Registers:
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000000 | FSEQ_ERROR_CODE
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000000 | FSEQ_TOP_INIT_VERSION
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000000 | FSEQ_CNVIO_INIT_VERSION
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000000 | FSEQ_OTP_VERSION
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000000 | FSEQ_TOP_CONTENT_VERSION
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000000 | FSEQ_ALIVE_TOKEN
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000000 | FSEQ_CNVI_ID
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000000 | FSEQ_CNVR_ID
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000000 | CNVI_AUX_MISC_CHIP
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000000 | CNVR_AUX_MISC_CHIP
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000000 | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: 0x00000000 | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
Jul 13 18:10:53 No_Hostname kernel: iwlwifi 0000:02:00.0: Collecting data: trigger 2 fired.
Jul 13 18:10:53 No_Hostname kernel: ieee80211 phy0: Hardware restart was requested

* link to upstream bug report, if any

Even this file update does not seem to be implemented in Arch Linux yet.
https://github.com/hackerspace/olpc-xo175-linux/commit/19b07cb4a187fe5d72519491fc2d11a3a7af1219

However, then it will also need to be updated with this change to reflect the bug fix.
https://github.com/hackerspace/olpc-xo175-linux/commit/aa5ae06515a451d543d9ab37e2c14f97a5ba4519

Steps to reproduce:

Use Hostapd package for setting up a WiFi router with Intel AC7265 Card in a Dell Computer. It happens randomly but more often if "/etc/modprobe.d/iwlwifi.conf" doesn't have "options iwlwifi swcrypto=1" set in it.
This task depends upon

Loading...