ARM的内核糟糕页面错误错误代码 [英] Kernel Oops page fault error codes for ARM
问题描述
在Oops提供有关arm ex恐慌的信息后,错误代码是什么?
Oops: 17 [#1] PREEMPT SMP
在这种情况下,什么17提供信息.
在x86中,它表示-
What does error code after Oops give information about the panic in arm ex.
Oops: 17 [#1] PREEMPT SMP
what 17 give information in this case.
In x86 it represents -
-
bit 0 == 0: no page found 1: protection fault
bit 1 == 0: read access 1: write access
bit 2 == 0: kernel-mode access 1: user-mode access
bit 3 == 1: use of reserved bit detected
但是我无法找到任何信息.
But i am not able to find any information in arm.
谢谢 雄风
推荐答案
您在上面作为位描述打印的是页面错误描述,而不是Oops错误.
What you printed above as description of bits is page fault descriptions, not Oops faults.
See Linux's oops-tracing for more information on looking for Linux crash analysis.
以下是您的Oops: 17 [#1] PREEMPT SMP
arch/arm/kernel/traps.c :
#define S_PREEMPT " PREEMPT"
...
#define S_SMP " SMP"
...
printk(KERN_EMERG "Internal error: %s: %x [#%d]" S_PREEMPT S_SMP S_ISA "\n", str, err, ++die_counter);
页面错误不需要使内核崩溃,也不是所有的内核崩溃都是页面错误.因此,很有可能Oops: 17
与页面错误完全无关. (还有一个好处是,我的疯狂猜测是关于安排时间/对我来说听起来很熟悉.)
Page faults doesn't need to crash the kernel, as well as not all kernel crashes are page faults. So there is a high chance Oops: 17
is not related to page faults at all. (and as a bonus my wild guess is it is about scheduling / just sounds familiar to me.)
这篇关于ARM的内核糟糕页面错误错误代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!