commit | cdf38888ed30523b1a6ee199449a86dbd1d864ce | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <nicolas.pitre@linaro.org> | Wed Aug 16 18:56:14 2017 -0400 |
committer | Nicolas Pitre <nicolas.pitre@linaro.org> | Sun Sep 10 19:31:47 2017 -0400 |
tree | eea19beef8369b6730a3927e4ea70787b93bf2ed | |
parent | 4755200b6b116dbf6d5545427e8a2cf58194ba6b [diff] |
binfmt_elf_fdpic: fix crash on MMU system with dynamic binaries In elf_fdpic_map_file() there is a test to ensure the dynamic section in user space is properly terminated. However it does so by dereferencing a user address directly. Add proper user space accessor. Signed-off-by: Nicolas Pitre <nico@linaro.org> Acked-by: Mickael GUENE <mickael.guene@st.com> Tested-by: Vincent Abriou <vincent.abriou@st.com> Tested-by: Andras Szemzo <szemzo.andras@gmail.com>