Closed TheFrozenDuck closed 3 years ago
I forgot to add the crash. Following the end of the trace the kernel panic is shown:
[ 186.216172] Kernel panic - not syncing: Fatal exception
[ 186.216184] CPU3: stopping
[ 186.216192]
[ 186.216198] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G D W O 4.4.225-Caesium #4
[ 186.216201] Hardware name: Qualcomm Technologies, Inc. MSM8998 v2.1 (DT)
[ 186.216205] task: 0000000000000000 task.stack: 0000000000000000
[ 186.216214] PC is at lpm_cpuidle_enter+0x20c/0x350
[ 186.216218] LR is at lpm_cpuidle_enter+0x188/0x350
[ 186.216221] pc : [<ffffff976dda642c>] lr : [<ffffff976dda63a8>] pstate: 80000145
[ 186.216224] sp : ffffffe57950be90
[ 186.216227] x29: ffffffe57950be90 x28: ffffff976f006a68
[ 186.216233] x27: 0000002b5b594263 x26: ffffffe57776fc18
[ 186.216239] x25: ffffffe573c29018 x24: 0000002b5b5253e4
[ 186.216244] x23: 0000000000000000 x22: ffffff976f006d80
[ 186.216249] x21: ffffffe57e3de1d0 x20: ffffff976ec503b0
[ 186.216254] x19: 0000000000000000 x18: 0000007f08276000
[ 186.216259] x17: 0000000000000000 x16: 0000000000000000
[ 186.216265] x15: 0000000000000000 x14: 0000000000000000
[ 186.216270] x13: 0000000000000000 x12: 000000000000ec95
[ 186.216276] x11: 0000000000000003 x10: 0000000000000000
[ 186.216281] x9 : 0000000000000000 x8 : 00000000000003b3
[ 186.216287] x7 : 000000000003ffff x6 : 00000000e3b871d2
[ 186.216292] x5 : 0000000000000002 x4 : ffffff976f0b2000
[ 186.216297] x3 : 0000000000000003 x2 : ffffffe57e3de3b0
[ 186.216302] x1 : 00000000000001c6 x0 : 0000000000000005
[ 186.216308]
[ 186.216308] PC: 0xffffff976dda63ec:
[ 186.216312] 63ec b9402c45 35000640 2a0503e0 110004a3 b8207841 8b000840 b9001413 b9402840
[ 186.216329] 640c 7100101f 5400006c 11000400 b9002840 7100107f 1a9f9063 b9002c43 d50342ff
[ 186.216344] 642c 3968a080 350005a0 f9402bfb 2a1303e0 a94153f3 a9425bf5 a94363f7 a9446bf9
[ 186.216359] 644c a8c67bfd d65f03c0 97de7b07 17ffffa0 52800020 97ddf104 17ffff92 aa1b03e4
[ 186.216375]
[ 186.216375] LR: 0xffffff976dda6368:
[ 186.216379] 6368 8b000f40 39403000 34000060 52800000 97ddf13e 8b1706e2 d37ef442 cb170042
[ 186.216394] 6388 8b020f42 b9400840 51000800 7100041f 540008c9 39413040 35000880 97ddcb7f
[ 186.216410] 63a8 cb180001 d29ef9e3 f2bc6a63 d343fc21 f2d374a3 f2e41883 90009864 3968a080
[ 186.216425] 63c8 aa1403e2 9bc37c21 d344fc21 b9000aa1 34000280 b94006a0 f8607ac0 8b000042
[ 186.216440]
[ 186.216440] SP: 0xffffffe57950be50:
[ 186.216444] be50 6dda63a8 ffffff97 7950be90 ffffffe5 6dda642c ffffff97 80000145 00000000
[ 186.216459] be70 00000000 00000000 6ec503b0 ffffff97 ffffffff ffffffff 8b495e72 e54124f8
[ 186.216474] be90 7950bef0 ffffffe5 6dda17b8 ffffff97 00000000 00000000 6f379000 ffffff97
[ 186.216490] beb0 77734418 ffffffe5 7e3de1d0 ffffffe5 77734400 ffffffe5 5b52537c 0000002b
...
...
...
can you compile with make debug
and post dmesg log
I have to close this issue, due to lacking the setup used in the creation of this issue.
General
I'm currently playing around with the module to do some memory forensics on a Google Pixel 2. To do so I modified a kernel for the Pixel 2 to support the load, and unload of LKMs. When inserting the kernel module it runs fine for the first few seconds but eventually crashes with an oops, that I was able to get via the
pstore
. No matter if I dump to storage or tcp (surprisingly I can dump more via TCP), it always results in a kernel oops as follows:Setup
Google Pixel 2: Android 10 + modified "Caesium Kernel" (available here) Compiler: gcc10 with no LTO regarding the kernel and the module compilation