]> git.baikalelectronics.ru Git - kernel.git/commit
x86/vdso: Hack to keep 64-bit Go programs working
authorAndy Lutomirski <luto@amacapital.net>
Fri, 13 Jun 2014 00:53:12 +0000 (17:53 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 13 Jun 2014 02:02:30 +0000 (19:02 -0700)
commit92d656af6ca33fab09c609f29e4b8c6a6a473734
tree25ca13ba0e165ab1d16faf266d4b8d8046b7a5f7
parent73776b9bfda5621c3a15f2a699297c2a68809a17
x86/vdso: Hack to keep 64-bit Go programs working

The Go runtime has a buggy vDSO parser that currently segfaults.
This writes an empty SHT_DYNSYM entry that causes Go's runtime to
malfunction by thinking that the vDSO is empty rather than
malfunctioning by running off the end and segfaulting.

This affects x86-64 only as far as we know, so we do not need this for
the i386 and x32 vdsos.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Link: http://lkml.kernel.org/r/d10618176c4bd39b457a5e85c497295c90cab1bc.1402620737.git.luto@amacapital.net
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/vdso/Makefile
arch/x86/vdso/vdso-fakesections.c [new file with mode: 0644]
arch/x86/vdso/vdso2c.h