]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kernel: VirtBox workaround for dynamically allocated text
authorMike Kravetz <mike.kravetz@oracle.com>
Wed, 16 Dec 2015 18:26:40 +0000 (10:26 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 26 Feb 2016 03:04:47 +0000 (19:04 -0800)
commit1278dcba80793bf17876bb83481a222949964321
treec38337d4b96e931ecbf7c21dd0fe847b16b314aa
parent78bee68ce5212bfb08e0ae2af4f49010004e9e7b
kernel: VirtBox workaround for dynamically allocated text

Orabug: 22377612

VirtualBox dynamically allocates space for executable text within the
kernel.  When these text addresses are encountered by stack trace back
code, they are dropped or the stack trace is terminated.

Ideally, an interface would be created so that routines could registered
to validate kernel text addresses.  Drivers like VirtualBox, would register
routines which know about dynamically allocated text.  However, this will
need more use cases from code in the mainline linux tree.

As a workaround, assume executable pages in vmalloc or module areas are
valid text addresses.  The #ifdef CONFIG_X86 is acceptable as VirtualBox
only supports x86 architecture.

Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com>
kernel/extable.c