Re:Re: can I input a gate service to kernel to get kernel data to user ?
At 2012-12-13 18:52:53,Matthias Brugger matthias@gmail.com wrote: On 12/13/2012 04:17 AM, horse_rivers wrote: is there method for doing this work? take kernel data to user? I think copy_to_user is what you are looking for: http://lxr.free-electrons.com/source/include/asm-generic/uaccess.h#L253 thanks ! can this function run at user level ? when programme is at user level , can I use this function to get kernel text segment data ,and then analysis it ? BestRegards! Cheers, Matthias thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re:Re: can I input a gate service to kernel to get kernel data to user ?
At 2012-12-13 18:11:24,Daniel Baluta daniel.bal...@gmail.com wrote: On Thu, Dec 13, 2012 at 5:17 AM, horse_rivers horse_riv...@126.com wrote: is there method for doing this work? take kernel data to user? Check copy_to_user [1]. how can user application achive to getting data from kernel , I have no idea about procedure for implementing this quest is there some advice ? BestRegards! thanks, Daniel. [1] http://lxr.linux.no/#linux+v3.7/arch/x86/lib/usercopy_32.c#L715 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies