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
| ||
|
Date: Thu, 21 May 2020 09:35:35 +0200 From: Vlastimil Babka <vbabka@...e.cz> To: Michel Lespinasse <walken@...gle.com>, Andrew Morton <akpm@...ux-foundation.org>, linux-mm <linux-mm@...ck.org> Cc: LKML <linux-kernel@...r.kernel.org>, Peter Zijlstra <peterz@...radead.org>, Laurent Dufour <ldufour@...ux.ibm.com>, Matthew Wilcox <willy@...radead.org>, Liam Howlett <Liam.Howlett@...cle.com>, Jerome Glisse <jglisse@...hat.com>, Davidlohr Bueso <dave@...olabs.net>, David Rientjes <rientjes@...gle.com>, Hugh Dickins <hughd@...gle.com>, Ying Han <yinghan@...gle.com>, Jason Gunthorpe <jgg@...pe.ca>, Daniel Jordan <daniel.m.jordan@...cle.com>, John Hubbard <jhubbard@...dia.com> Subject: Re: [PATCH v6 09/12] mmap locking API: add mmap_assert_locked() and mmap_assert_write_locked() On 5/20/20 7:29 AM, Michel Lespinasse wrote: > Add new APIs to assert that mmap_sem is held. > > Using this instead of rwsem_is_locked and lockdep_assert_held[_write] > makes the assertions more tolerant of future changes to the lock type. > > Signed-off-by: Michel Lespinasse <walken@...gle.com> Reviewed-by: Vlastimil Babka <vbabka@...e.cz>
Powered by blists - more mailing lists