Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
af4f7d66
Commit
af4f7d66
authored
Sep 23, 2011
by
Cyrill Gorcunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: Don't foget to load %gs index
Signed-off-by:
Cyrill Gorcunov
<
gorcunov@gmail.com
>
parent
ab244844
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
binfmt-elf-for-cr-4
kernel/binfmt-elf-for-cr-4
+6
-5
No files found.
kernel/binfmt-elf-for-cr-4
View file @
af4f7d66
...
...
@@ -13,9 +13,9 @@ Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
---
arch/x86/include/asm/elf.h | 3
arch/x86/vdso/vma.c | 22 ++
fs/binfmt_elf.c | 40
4
++++++++++++++++++++++++++++++++++++++++++++-
fs/binfmt_elf.c | 40
5
++++++++++++++++++++++++++++++++++++++++++++-
include/linux/elf_ckpt.h | 135 +++++++++++++++
4 files changed, 56
2
insertions(+), 2 deletions(-)
4 files changed, 56
3
insertions(+), 2 deletions(-)
Index: linux-2.6.git/arch/x86/include/asm/elf.h
===================================================================
...
...
@@ -80,7 +80,7 @@ Index: linux-2.6.git/fs/binfmt_elf.c
static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs);
static int load_elf_library(struct file *);
static unsigned long elf_map(struct file *, unsigned long, struct elf_phdr *,
@@ -556,6 +561,39
5
@@ static unsigned long randomize_stack_top
@@ -556,6 +561,39
6
@@ static unsigned long randomize_stack_top
#endif
}
...
...
@@ -444,6 +444,7 @@ Index: linux-2.6.git/fs/binfmt_elf.c
+ if (core_entry.gpregs.fs_base)
+ wrmsrl(MSR_FS_BASE, core_entry.gpregs.fs_base);
+
+ load_gs_index(thread->gsindex);
+ if (core_entry.gpregs.gs_base)
+ wrmsrl(MSR_GS_BASE, core_entry.gpregs.gs_base);
+
...
...
@@ -476,7 +477,7 @@ Index: linux-2.6.git/fs/binfmt_elf.c
static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
{
struct file *interpreter = NULL; /* to shut gcc up */
@@ -592,7 +98
6
,9 @@ static int load_elf_binary(struct linux_
@@ -592,7 +98
7
,9 @@ static int load_elf_binary(struct linux_
if (memcmp(loc->elf_ex.e_ident, ELFMAG, SELFMAG) != 0)
goto out;
...
...
@@ -487,7 +488,7 @@ Index: linux-2.6.git/fs/binfmt_elf.c
goto out;
if (!elf_check_arch(&loc->elf_ex))
goto out;
@@ -619,6 +101
5
,12 @@ static int load_elf_binary(struct linux_
@@ -619,6 +101
6
,12 @@ static int load_elf_binary(struct linux_
goto out_free_ph;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment