shm: Fix one task shmem remaps restore
Since the collect_shmems updates start address for vmas, for two shared mappings in one task we'll try to dup() the 1st restoration attempt, since the si's start will be set to the 2nd one, which is not yet restored. Thus we should map-and-open the first one being restored, not the one with matched address and dup() all the rest. [avagin@: There's no such thing, since the collect stage checks for pid being less _or_ _equal_ and this only the first vma's start will be saved. But anyway, this makes it more obvious.] Acked-by:Andrey Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
Showing
Please
register
or
sign in
to comment