summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2020-08-08 21:37:13 +0300
committerGreg Ungerer <gerg@linux-m68k.org>2020-08-24 01:49:13 +0300
commit2217b982624680d19a80ebb4600d05c8586c4f96 (patch)
tree2ce7590d312953c9e0190f5d38bd070f78f9ef3c /net/unix/af_unix.c
parentd012a7190fc1fd72ed48911e77ca97ba4521bccd (diff)
downloadlinux-2217b982624680d19a80ebb4600d05c8586c4f96.tar.xz
binfmt_flat: revert "binfmt_flat: don't offset the data start"
binfmt_flat loader uses the gap between text and data to store data segment pointers for the libraries. Even in the absence of shared libraries it stores at least one pointer to the executable's own data segment. Text and data can go back to back in the flat binary image and without offsetting data segment last few instructions in the text segment may get corrupted by the data segment pointer. Fix it by reverting commit a2357223c50a ("binfmt_flat: don't offset the data start"). Cc: stable@vger.kernel.org Fixes: a2357223c50a ("binfmt_flat: don't offset the data start") Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions