Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
c4aad69c
Commit
c4aad69c
authored
Nov 24, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ELF] Enter KERNEL_DS after fill_psinfo, which does user acceses.
parent
228f1539
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
fs/binfmt_elf.c
fs/binfmt_elf.c
+7
-7
No files found.
fs/binfmt_elf.c
View file @
c4aad69c
...
@@ -1218,16 +1218,9 @@ static int elf_core_dump(long signr, struct pt_regs * regs, struct file * file)
...
@@ -1218,16 +1218,9 @@ static int elf_core_dump(long signr, struct pt_regs * regs, struct file * file)
/* Set up header */
/* Set up header */
fill_elf_header
(
&
elf
,
segs
+
1
);
/* including notes section*/
fill_elf_header
(
&
elf
,
segs
+
1
);
/* including notes section*/
fs
=
get_fs
();
set_fs
(
KERNEL_DS
);
has_dumped
=
1
;
has_dumped
=
1
;
current
->
flags
|=
PF_DUMPCORE
;
current
->
flags
|=
PF_DUMPCORE
;
DUMP_WRITE
(
&
elf
,
sizeof
(
elf
));
offset
+=
sizeof
(
elf
);
/* Elf header */
offset
+=
(
segs
+
1
)
*
sizeof
(
struct
elf_phdr
);
/* Program headers */
/*
/*
* Set up the notes in similar form to SVR4 core dumps made
* Set up the notes in similar form to SVR4 core dumps made
* with info from their /proc.
* with info from their /proc.
...
@@ -1254,6 +1247,13 @@ static int elf_core_dump(long signr, struct pt_regs * regs, struct file * file)
...
@@ -1254,6 +1247,13 @@ static int elf_core_dump(long signr, struct pt_regs * regs, struct file * file)
numnote
--
;
numnote
--
;
#endif
#endif
fs
=
get_fs
();
set_fs
(
KERNEL_DS
);
DUMP_WRITE
(
&
elf
,
sizeof
(
elf
));
offset
+=
sizeof
(
elf
);
/* Elf header */
offset
+=
(
segs
+
1
)
*
sizeof
(
struct
elf_phdr
);
/* Program headers */
/* Write notes phdr entry */
/* Write notes phdr entry */
{
{
struct
elf_phdr
phdr
;
struct
elf_phdr
phdr
;
...
...
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