aboutsummaryrefslogtreecommitdiffstats
path: root/net/sysctl_net.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2014-08-06 16:07:05 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-06 18:01:20 -0700
commit9aed8614af5a05cdaa32a0b78b0f1a424754a958 (patch)
treee2e790fb6b86e118757b4c9124323b5fcaf6c102 /net/sysctl_net.c
parentf0093ede9b726ccb1876d43574f5b45c79940aca (diff)
downloadkernel_replicant_linux-9aed8614af5a05cdaa32a0b78b0f1a424754a958.tar.gz
kernel_replicant_linux-9aed8614af5a05cdaa32a0b78b0f1a424754a958.tar.bz2
kernel_replicant_linux-9aed8614af5a05cdaa32a0b78b0f1a424754a958.zip
mm/memory.c: don't forget to set softdirty on file mapped fault
Otherwise we may not notice that pte was softdirty because pte_mksoft_dirty helper _returns_ new pte but doesn't modify the argument. In case if page fault happend on dirty filemapping the newly created pte may loose softdirty bit thus if a userspace program is tracking memory changes with help of a memory tracker (CONFIG_MEM_SOFT_DIRTY) it might miss modification of a memory page (which in worts case may lead to data inconsistency). Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Acked-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/sysctl_net.c')
0 files changed, 0 insertions, 0 deletions