Unexpected reboots after waking up on incomming sms/call; kernel bug: list_del corruption
Describe your issue
Sometimes, PP reboots after waking up from suspend on receiving a sms or a phone call. Logs shows a kernel bug:
[ 756.939240] list_del corruption. next->prev should be ffffff800eafb950, but was ffffff800f411200 [ 756.948109] ------------[ cut here ]------------ [ 756.952718] kernel BUG at lib/list_debug.c:54! [ 756.957158] Internal error: Oops - BUG: 0 [#1] SMP
When it reboots, the bug doesn't happen instantaneous on wakeup. Usually I can see the display come up and see the incoming event. Sometimes I could even answer the call and talk for a few seconds or had time to unlock the screen and navigate to chatty for the SMS. But interaction is not necessary. I've seen it rebooted even when the phone was left alone and I've called it from another phone.
How reproducible is the bug?
Like 1 in 5 or 10 times. It's not a new issue for me. I've seen it for a while now (few months at least). It seems to me that it's easier to reproduce it on emmc as opposed to booting from a microSD card.
Steps to reproduce the bug
- Let the phone suspend.
- Call it or send it a SMS
(It might happened also only by waking it up using the Power Button - not sure; might have been other bugs involved there).
What device are you using?
PinePhone Mobian Edition 2GB/16GB version.
Which mobian repository are you using?
How did you get your Mobian Image?
I used the installer image above and chose:
- full disk encryption
- wifi configured and on
- SIM card inserted
- tested both on emmc and a microSD card
- also I'm using biktorgj modem os, version beta 0.6.1 (bug happened also when I had older version)
Solutions you have tried
I've also reproduce it with kernel 5.16 (linux-image-5.16-sunxi64_5.16.15+sunxi64-1_arm64.deb) that I've installed with
And could not reproduce it on postmaketOS + phosh. Details below.
I've used the serial console to capture the kernel bug. Here are the logs:
- Standard mobian with 5.15 on emmc: mobian-emmc-5.15.log
- Above but with 5.16 kernel: mobian-emmc-5.16.log
- And this one is standard mobian with 5.15 but on a microSD: mobian-sdcard-5.15.log
postmarketOS + phosh
I've also did tests on pmOS and could not reproduce the bug. I've installed it on emmc (FDE, ext4) using the stable v21.12 installer image: https://images.postmarketos.org/bpo/v21.12/pine64-pinephone/phosh/20220323-0457/
I've discovered that their kernel doesn't set the flag
CONFIG_BUG_ON_DATA_CORRUPTION and because of that I should only see a warning in the logs (https://gitlab.com/mobian1/devices/sunxi64-linux/-/blob/mobian-5.15/include/linux/bug.h). But I found no such warning in the log: