Re: Re: [PATCH] futex: bugfix for robust futex deadlock when waking onlyone thread in handle_futex_death

From: zhang . yi20
Date: Fri Apr 19 2013 - 03:04:32 EST


Darren Hart <dvhart@xxxxxxxxxxxxxxx> wrote on 2013/04/18 22:54:30:

>
> "or it will exit later" .... I don't follow you there, it sounds like
> you are saying if we try to wake the exiting process, that process will
> be delayed and take longer to exit.... I don't think that is what you
> meant. Can you elaborate please?
>

I want to describe this scene:
1, We wake one waiter of other process that is not exiting.
2, Before it returns from do_futex, another thread of the process
encounters an exception and leads to process exiting.
3, The waiter returns from do_futex, and handle exit signal first,
that it will not return to userspace any more.

So, to my way of thinking, to choose a suitable waiter is difficult.

--
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/