]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/binfmt_flat.c
binfmt_flat: use proper user space accessors with relocs processing code
authorNicolas Pitre <nicolas.pitre@linaro.org>
Sun, 24 Jul 2016 15:30:21 +0000 (11:30 -0400)
committerGreg Ungerer <gerg@linux-m68k.org>
Mon, 25 Jul 2016 06:52:06 +0000 (16:52 +1000)
commit6e572ffe3feb8a02ed0044987654e07670aeffc2
tree66198e5622e32f4ed2eba4c932cae58a515c3cc9
parenta97d157d00cd0ccbcfde3da7bbf34ab7c68cf4eb
binfmt_flat: use proper user space accessors with relocs processing code

Relocs are fixed up in place in user space memory.  The appropriate
accessors are required for this code to work with an active MMU.

The architecture specific handlers flat_get_addr_from_rp() and
flat_put_addr_at_rp() for ARM and M68K are adjusted with separate
patches. SuperH and Xtensa are left out as they doesn't implement
__get_user_unaligned() and __put_user_unaligned() yet. The other
architectures that use BFLT don't have any MMU.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Reviewed-by: Greg Ungerer <gerg@linux-m68k.org>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
fs/binfmt_flat.c