diff options
author | Peter Feiner <pfeiner@google.com> | 2014-09-25 16:05:29 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-09-26 08:10:35 -0700 |
commit | dbab31aa2ceec2d201966fa0b552f151310ba5f4 (patch) | |
tree | c25bb32ce0501315b98ce6f8838732639cedc14a /kernel/pid_namespace.c | |
parent | 6ff66ac77aeaa9c13db28784e1c50c027a1f487b (diff) | |
download | op-kernel-dev-dbab31aa2ceec2d201966fa0b552f151310ba5f4.zip op-kernel-dev-dbab31aa2ceec2d201966fa0b552f151310ba5f4.tar.gz |
mm: softdirty: keep bit when zapping file pte
This fixes the same bug as b43790eedd31 ("mm: softdirty: don't forget to
save file map softdiry bit on unmap") and 9aed8614af5a ("mm/memory.c:
don't forget to set softdirty on file mapped fault") where the return
value of pte_*mksoft_dirty was being ignored.
To be sure that no other pte/pmd "mk" function return values were being
ignored, I annotated the functions in arch/x86/include/asm/pgtable.h
with __must_check and rebuilt.
The userspace effect of this bug is that the softdirty mark might be
lost if a file mapped pte get zapped.
Signed-off-by: Peter Feiner <pfeiner@google.com>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: Jamie Liu <jamieliu@google.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: <stable@vger.kernel.org> [3.12+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/pid_namespace.c')
0 files changed, 0 insertions, 0 deletions