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  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 9 Mar 2014 08:57:19 -0700
From:	Linus Torvalds <>
To:	Oleg Nesterov <>
Cc:	Davidlohr Bueso <>,
	Andrew Morton <>,
	Ingo Molnar <>,
	Peter Zijlstra <>,
	Michel Lespinasse <>,
	Mel Gorman <>, Rik van Riel <>,
	KOSAKI Motohiro <>,
	Davidlohr Bueso <>,
	Linux Kernel Mailing List <>
Subject: Re: [PATCH v4] mm: per-thread vma caching

On Sun, Mar 9, 2014 at 5:57 AM, Oleg Nesterov <> wrote:
> No, dup_task_struct() is obviously lockless. And the new child is not yet
> visible to for_each_process_thread().

Ok, then the siimple approach is to just do

    /* Did we miss an invalidate event? *
    if (mm->seqcount < tsk->seqcount)

after making the new thread visible.

Then the "race" becomes one of "we cannot have 4 billion mmap/munmap
events in other threads while we're setting up a new thread", which I
think is fine.

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

Powered by blists - more mailing lists