sys_wait4(): put_user() with current->state!=TASK_RUNNING

From: Manfred Spraul (manfreds@colorfullife.com)
Date: Wed Jan 12 2000 - 12:55:43 EST


Andrea,
you fixed the last race in sys_wait4() and you often tweak the
scheduler, perhaps you can help me:

sys_wait4() calls put_user() with current->state == TASK_INTERRUPTIBLE.
other functions call get_user() with this current->state.
If put_user() must page-in the target page, then it would return with
current->state == TASK_RUNNING, correct?

But: is it guaranteed that the function will return? In the worst case,
there is no wait-queue that would force a wake-up.

Thanks,
        Manfred

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



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:20 EST