Thread (100 messages) 100 messages, 8 authors, 2018-04-13

Re: [mm] b1f0502d04: INFO:trying_to_register_non-static_key

From: David Rientjes <rientjes@google.com>
Date: 2018-03-25 22:10:34
Also in: linux-mm, lkml, oe-lkp

On Wed, 21 Mar 2018, Laurent Dufour wrote:
I found the root cause of this lockdep warning.

In mmap_region(), unmap_region() may be called while vma_link() has not been
called. This happens during the error path if call_mmap() failed.

The only to fix that particular case is to call
seqcount_init(&vma->vm_sequence) when initializing the vma in mmap_region().
Ack, although that would require a fixup to dup_mmap() as well.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help