Help:get_user_pages_remote - succeed on QEMU, Oops on Android 9 board

2019-04-16 Thread Lev Olshvang
Hello all, I need to remap 1 page from user space to kernel and I use get_user_pages_remote for this purpose ret = get_user_pages_remote(tsk, tsk->mm, offset, 1,                                    0,                                    &pinned_page, NULL); Kernel is 4.9.88I compiled module for Arm Vertex board  and run it under  QEMU  with no problemBut on Android 9  with this exactly kernel I got Oops:Unable to handle kernel paging request at virtual address fe002000pgd = d8c14000[fe002000] *pgd=Internal error: Oops: 5 [#1] PREEMPT SMP ARM I checked config files  and did not find any difference( almost except balloon ) in memory related configs.   Does anybody have a clue what is a problem here? Regards,Lev   ___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Solved:: Help:get_user_pages_remote - succeed on QEMU, Oops on Android 9 board

2019-04-16 Thread Lev Olshvang
 The problem was how I convert received page address to kernel address. I need to do it with kmap()Now all works again  16.04.2019, 17:17, "Lev Olshvang" :Hello all, I need to remap 1 page from user space to kernel and I use get_user_pages_remote for this purpose ret = get_user_pages_remote(tsk, tsk->mm, offset, 1,                                    0,                                    &pinned_page, NULL); Kernel is 4.9.88I compiled module for Arm Vertex board  and run it under  QEMU  with no problemBut on Android 9  with this exactly kernel I got Oops:Unable to handle kernel paging request at virtual address fe002000pgd = d8c14000[fe002000] *pgd=Internal error: Oops: 5 [#1] PREEMPT SMP ARM I checked config files  and did not find any difference( almost except balloon ) in memory related configs.   Does anybody have a clue what is a problem here? Regards,Lev   ___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il