Re: [PATCH] notify_parent and ptrace cleanup

From: OGAWA Hirofumi
Date: Wed Aug 25 2004 - 16:54:24 EST


> > SIGKILL _already_ doesn't actually wake up a ptraced task. It just informs
> > the tracer, last I looked.

I'm thinking the following issue here,

For example,

ptraced task stopping:

in get_signal_to_deliver(),
set_current_state(TASK_STOPPED);
spin_unlock_irq(&current->sighand->siglock);
notify_parent(current, SIGCHLD);
schedule();

in here, root want to kill those tasks,

kill -> ... -> specific_send_sig_info -> signal_wake_up(t, sig == SIGKILL)

in signal_wake_up(),
mask = TASK_INTERRUPTIBLE;
if (resume)
mask |= TASK_STOPPED;
if (!wake_up_state(t, mask))


Hmm.. I may be missing something...?
--
OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/