aboutsummaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2009-02-06 17:34:07 -0800
committerRoland McGrath <roland@redhat.com>2009-02-06 17:34:07 -0800
commit92dc07b1f988e8c237a38e23be660b9b8533e6fd (patch)
tree4a689fbb465d7302b105678152170d8665f56ae7 /usr
parent6cec50838ed04a9833fb5549f698d3756bbe7e72 (diff)
downloadkernel_samsung_smdk4412-92dc07b1f988e8c237a38e23be660b9b8533e6fd.zip
kernel_samsung_smdk4412-92dc07b1f988e8c237a38e23be660b9b8533e6fd.tar.gz
kernel_samsung_smdk4412-92dc07b1f988e8c237a38e23be660b9b8533e6fd.tar.bz2
elf core dump: fix get_user use
The elf_core_dump() code does its work with set_fs(KERNEL_DS) in force, so vma_dump_size() needs to switch back with set_fs(USER_DS) to safely use get_user() for a normal user-space address. Checking for VM_READ optimizes out the case where get_user() would fail anyway. The vm_file check here was already superfluous given the control flow earlier in the function, so that is a cleanup/optimization unrelated to other changes but an obvious and trivial one. Reported-by: Gerald Schaefer <gerald.schaefer@de.ibm.com> Signed-off-by: Roland McGrath <roland@redhat.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions