Re: [RFC][-rt PATCH] Try to safely error out when mixing pi/non-pi futex operations on the same futex.

From: Ingo Molnar
Date: Thu May 18 2006 - 03:57:37 EST

* john stultz <johnstul@xxxxxxxxxx> wrote:

> Ingo,
> We've been seeing some oopses because there are waiters on pi
> futexes that do not have pi_states. This seems to be because they were
> used w/ futex_wait in one path and futex_lock_pi in another.

indeed, that's a bug.

> I'm told this shouldn't ever happen, but if it did, the kernel should
> safely error out, instead of oopsing or never releasing a lock.
> Not sure if this is a solid fix (it does build and boot), but
> hopefully it will stir up some discussion.

applied. I made some small fixes: i made the printk rate-limited and
dependent on CONFIG_DEBUG_RT_MUTEXES. The right thing is indeed to

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at