User stack giving error (EFAULT), when task switch to next CPU
Hi All,
While task switch from CPU 0 to another CPU 1, user stack dump (using __get_user) giving Error while when again return back to CPU 0 it giving correct value.
I have noticed "task->mm->start_stack" never change in both cases.
Below given some result for reference:
================================================================
-------------- CPU 0 -------------------
task stack info : pid(518) stack area (0xbe8b8000 ~ 0xbe8cd000)
pid(518) stack vma (0xbe8b8000 ~ 0xbe8cd000)
User Stack: (0xbe8ccc3c to 0xbe8ccda0)
cc20: be8ccc4c
cc40: be8ccda4 00000001 00000000 4006f4c4 40197000 be8ccda4 00000001 00008474
cc60: 000000e8 00000000 00000000 40197000 00000000 00000000 000000e8 00000000
cc80: be8ccc50 4006f47c 00000000 00000000 00000000 00000000 00000000 00000000
cca0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
-------------- CPU 1 -------------------
pid(518) stack vma (0xbe8b8000 ~ 0xbe8cd000)
User Stack: (0xbe8ccc3c to 0xbe8ccda0)
cc20: 00000000
cc40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
cc60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
cc80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
================================================================
|