lkml.org 
[lkml]   [2003]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: force_successful_syscall_return() buggy?
>>>>> On Tue, 17 Jun 2003 12:24:23 +0530, "Aneesh Kumar K.V" <aneesh.kumar@digital.com> said:

Aneesh> I was facing a simillar problem with ptrace on Alpha (ptrace
Aneesh> on alpha expect the pt_regs at current + 2*PAGE_SIZE for
Aneesh> 2.4. kernel ) w.r.t www.openssi.org project. What i found
Aneesh> was that even after we return to user space subsequent
Aneesh> syscalls are not putting pt_regs at that offset. I guess
Aneesh> while entering the kernel kernel stack pointer always point
Aneesh> to value stored in thread_struct.ksp ?

If a platform doesn't start with an empty kernel stack on entry from
user-space, that platform will be wasting (precious) stack space and
ptrace() most likely won't work reliably. Personally, I'd consider
such behavior a bug, but I suppose it is to some degree a
platform-choice.

--david
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.041 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site