Re: BUG: lock held when returning to user space

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Peter Zijlstra <a.p.zijlstra@...>
Cc: Gabriel C <nix.or.die@...>, <a.zummo@...>, Linux Kernel Mailing List <linux-kernel@...>, Andrew Morton <akpm@...>, <rtc-linux@...>, Ingo Molnar <mingo@...>, Linus Torvalds <torvalds@...>
Date: Saturday, October 27, 2007 - 6:47 pm

On Sat, 27 Oct 2007, Peter Zijlstra wrote:


Yes, but the fact is that is really is invalid use of mutex -- because the 
mutex owner could become seriously wrong after fork() or sending the 
filedescriptor through unix socket ... this easily leads to broken 
situation.

This seems to have been introduced in e824290e5d ... Alessandro, could you 
convert this to test_and_set_bit()/clear_bit() semantics instead of a 
mutex please?

Thanks,

-- 
Jiri Kosina
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
BUG: lock held when returning to user space, Gabriel C, (Sat Oct 27, 10:19 am)
Re: BUG: lock held when returning to user space, Jiri Kosina, (Sat Oct 27, 11:12 am)
Re: BUG: lock held when returning to user space, Arjan van de Ven, (Sat Oct 27, 11:47 am)
Re: BUG: lock held when returning to user space, Peter Zijlstra, (Sat Oct 27, 12:09 pm)
Re: BUG: lock held when returning to user space, Arjan van de Ven, (Sat Oct 27, 1:05 pm)
Re: BUG: lock held when returning to user space, Peter Zijlstra, (Sat Oct 27, 11:28 am)
Re: BUG: lock held when returning to user space, Jiri Kosina, (Sat Oct 27, 6:47 pm)
Re: BUG: lock held when returning to user space, Linus Torvalds, (Sat Oct 27, 12:35 pm)
Re: BUG: lock held when returning to user space, Andrew Morton, (Sat Oct 27, 11:46 am)
Re: BUG: lock held when returning to user space, Jiri Kosina, (Sun Oct 28, 7:12 am)
Re: BUG: lock held when returning to user space, Alessandro Zummo, (Mon Oct 29, 8:20 am)