Reputation: 852
When verbose user fault messages are enabled in linux kernel and segmentation fault occurs because of any illegal memory access, program crashes with message like
unhandled page fault (11) at 0x0839800, code 0x017
code which has value 0x017, printed with this message might have different value with other crashes. But what does the code 0x017 signifies here. Can anyone please explain or provide link for resources explaining about it?
Upvotes: 0
Views: 2532
Reputation: 8657
This is not the si_code
, but the value of ARM's FSR (Fault Status Register) (source):
0x17 = 0b1 0111
According to ARM manual:
[Bits 7:4] Specifies which of the 16 domains (D15-D0) was being accessed when a data fault occurred.
[Bits 3:0] Type of fault generated
So domain is 1, which is DOMAIN_USER
in the kernel (all user memory only). Type of fault is page translation fault, page
.
Upvotes: 4