[ONE Original Android Development] laura almeida:
In the latest stable branch of LineageOS 14.1 kernel, I am getting random kernel panics due to wlan module on official LOS rom.

Log attached.

I believe this is due to this commit. not sure though.

To reproduce crash make sure you use a strong encryption and a very long key then try to do something which uses high bandwidth (maybe a HD youtube video)

[ 458.412016] Freezing user space processes ... (elapsed 0.001 seconds) done.
[ 458.414223] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 458.416264] Suspending console(s) (use no_console_suspend to debug)
[ 458.455201] PM: suspend of devices complete after 38.338 msecs
[ 458.455942] PM: late suspend of devices complete after 0.733 msecs
[ 458.457835] PM: noirq suspend of devices complete after 1.887 msecs
[ 458.457839] Disabling non-boot CPUs ...
[ 458.466755] CPU0: msm_cpu_pm_enter_sleep mode:3
[ 458.467066] Enabling non-boot CPUs ...
[ 458.468266] CPU1 is up
[ 458.470184] CPU2 is up
[ 458.472311] CPU3 is up
[ 458.472813] PM: noirq resume of devices complete after 0.491 msecs
[ 458.473248] qup_i2c f9924000.i2c: Runtime PM-callback was not invoked.
[ 458.473864] PM: early resume of devices complete after 0.362 msecs
[ 458.476503] [syna]gesture: 3 0 0 0 0
[ 458.482212] PM: resume of devices complete after 8.341 msecs
[ 458.485626] Restarting tasks ... done.
[ 458.489845] PM: suspend exit 2017-06-16 17:14:32.446610245 UTC
[ 458.595159] PM: suspend entry 2017-06-16 17:14:32.551929264 UTC
[ 458.595209] PM: Syncing filesystems ... [ 458.595494] mmc0: Starting deferred resume
[ 458.653936] [19:14:32.610707] [000000053DE23CE0] [wpa_s] wlan: [E :HDD] wlan_hdd_get_frame_logs: Frame Logging not init!
[ 458.736582] mmc0: Deferred resume completed
done.
[ 458.764539] Freezing user space processes ... [ 458.765078] [19:14:32.721847] [000000053E02CC6B] [wpa_s] wlan: [E :HDD] wlan_hdd_enter_bmps: SME interrupt while requesting fullpower

[ 458.765250] active wakeup source: PowerManagerService.Broadcasts
[ 458.765367] active wakeup source: PowerManagerService.WakeLocks
[ 458.765404] active wakeup source: wlan
[ 458.765444] active wakeup source: PowerManagerService.Display
[ 458.765534]
[ 458.765570] Freezing of tasks aborted after 0.000 seconds
[ 458.765639] Restarting tasks ... done.
[ 458.767140] Abort: Pending Wakeup Sources: PowerManagerService.Broadcasts PowerManagerService.WakeLocks wlan PowerManagerService.Display
[ 458.767216] PM: suspend exit 2017-06-16 17:14:32.723987512 UTC
[ 458.821348] qup_i2c f9928000.i2c: QUP: I2C status flags :0xc1343c8, irq:132
[ 458.821415] qup_i2c f9928000.i2c: I2C slave addr:0x28 not connected
[ 458.821427] pn544_dev_write : i2c_master_send returned -107
[ 458.970712] mdss_livedisplay_worker cabc=1 sre=0 aco=0 cmd=1
[ 459.029665] mdss_livedisplay_update_pcc: r=32768 g=32768 b=32768
[ 459.052463] lm3630_bank_a_update_status set brightness : 85
[ 459.853371] Unable to handle kernel NULL pointer dereference at virtual address 0000000a
[ 459.853416] pgd = c0004000
[ 459.853489] [0000000a] *pgd=00000000
[ 459.853571] Internal error: Oops: 17 [#1] PREEMPT SMP ARM
[ 459.853612] Modules linked in:[ 459.853660] Unable to handle kernel NULL pointer dereference at virtual address 00000047
[ 459.853661] pgd = e450c000
[ 459.853663] [00000047] *pgd=00000000

[ 459.853841]
[ 459.853910] CPU: 0 Tainted: G W (3.4.112-lineageos #1)
[ 459.853982] PC is at find_subdir+0x24/0x44
[ 459.854020] LR is at find_subdir+0x1c/0x44
[ 459.854058] pc : [<c0306d5c>] lr : [<c0306d54>] psr: 60000113
[ 459.854058] sp : c43b5ce0 ip : 68986899 fp : fffffffe
[ 459.854122] r10: e9e69019 r9 : c1658c90 r8 : ec25d780
[ 459.854186] r7 : ec25d300 r6 : ec25d300 r5 : 00000007 r4 : e9e69021
[ 459.854222] r3 : 00000007 r2 : e9e69019 r1 : ec25d300 r0 : fffffffe
[ 459.854287] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 459.854351] Control: 10c5787d Table: 2d31806a DAC: 00000015
[ 459.854387]
[ 459.854387] PC: 0xc0306cdc:
[ 459.854422] 6cdc e1590005 e1a00006 b1a02009 a1a02005 eb04bc36 e3500000 e0459009 0affffe5
[ 459.854792] 6cfc aaffffe7 e5944008 e3540000
No errors detected