lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 12 Apr 2007 19:43:52 -0700
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	<mchu@...apoint.com>
Cc:	<linux-kernel@...r.kernel.org>
Subject: Re: Cheap lock for user mode processes release when process exits

On Fri, 13 Apr 2007 01:54:28 +0000 (GMT) <mchu@...apoint.com> wrote:

> Hi all,
> 
> Maybe someone here knows better.
> 
> I have several user-mode processes using shared mmap.  There can be several reader processes and only one writer.  Readers access the shared region frequently, writer seldom.
> 
> Naturally, multi-reader/single-writer locks works best.  I tried this with futex on 2.6.9-42.EL.  However, if one of the processes is killed/exits, the lock doesn't get released.
> 
> I can trap the signal to release the lock, but not all signals like kill.
> 
> Anyway I can achieve this without a potential deadlock?
> 

Robust futexes: http://lwn.net/Articles/172149/

But I don't know whether RH backported them into RHEL4.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ