lkml.org 
[lkml]   [2015]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectQUestion on x86_64 and i386 for settings of SS segment register
From
I am updating the mdb kernel debugger on 4.2.4 and I noticed that
user_mode_vm has been removed from the kernel sources for detecting
user space memory addresses for purposes of loading the SS pointer. I
am using __KERNEL_DS presently.

old code:

if (user_mode_vm(regs))
{
sf->tSS = regs->ss;
sf->tSP = regs->sp;
} else {
sf->tSS = __KERNEL_DS;
sf->tSP = kernel_stack_pointer(regs);
}

is SS always assumed to be __KERNEL_DS in 4.2.4 for userspace stack
addresses passed by pt_regs?


Thanks

Jeff


\
 
 \ /
  Last update: 2015-10-24 23:41    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog