tests/kernel/mem_protect/protection: fix test_main arguments
test_main() takes no arguments, so this was causing a fault after returning from test_main due to the stack canary checking. Before, the test run ends with: PROJECT EXECUTION SUCCESSFUL ***** CPU Page Fault (error code 0x00000011) Supervisor thread executed address 0x00400000 PDE: 0x027 Present, Writable, User, Execute Enabled PTE: 0x80000000267 Present, Writable, User, Execute Disable Current thread ID = 0x00401080 Faulting segment:address = 0x0008:0x00400000 eax: 0x00000000, ebx: 0x00000000, ecx: 0x0040b19c, edx: 0x000056df esi: 0x00000000, edi: 0x00000000, ebp: 0x000051c0, esp: 0x0040b1d8 eflags: 0x246 Caught system error -- reason 6 After, the test run ends with: PROJECT EXECUTION SUCCESSFUL Reported-by:Joshua Domagalski <jedomag@tycho.ncsc.mil> Signed-off-by:
Stephen Smalley <sds@tycho.nsa.gov>
Loading
Please sign in to comment