lkml.org 
[lkml]   [2003]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [CHECKER] race in 2.5.62/kernel/ptrace.c?
Dawson Engler <engler@csl.stanford.edu> wrote:
>
> Is the following unlocked use of recalc_sigpending a race?
>
> // 2.5.62/kernel/ptrace.c:339:ptrace_notify:
> void ptrace_notify(int exit_code)
> {
> BUG_ON (!(current->ptrace & PT_PTRACED));
>
> /* Let the debugger run. */
> current->exit_code = exit_code;
> set_current_state(TASK_STOPPED);
> notify_parent(current, SIGCHLD);
> schedule();
>
> /*
> * Signals sent while we were stopped might set TIF_SIGPENDING.
> */
> recalc_sigpending();
> }
>

I think so. To find out I shall send a patch to Linus and see if
I get shouted at.


-
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:34    [W:0.024 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site