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
a1ad3d82
Commit
a1ad3d82
authored
Aug 14, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linux-dj.bkbits.net/agpgart
into home.osdl.org:/home/torvalds/v2.5/linux
parents
d4973c02
dc637576
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
fs/binfmt_elf.c
fs/binfmt_elf.c
+5
-4
No files found.
fs/binfmt_elf.c
View file @
a1ad3d82
...
@@ -1084,18 +1084,19 @@ static void fill_prstatus(struct elf_prstatus *prstatus,
...
@@ -1084,18 +1084,19 @@ static void fill_prstatus(struct elf_prstatus *prstatus,
jiffies_to_timeval
(
p
->
cstime
,
&
prstatus
->
pr_cstime
);
jiffies_to_timeval
(
p
->
cstime
,
&
prstatus
->
pr_cstime
);
}
}
static
void
fill_psinfo
(
struct
elf_prpsinfo
*
psinfo
,
struct
task_struct
*
p
)
static
void
fill_psinfo
(
struct
elf_prpsinfo
*
psinfo
,
struct
task_struct
*
p
,
struct
mm_struct
*
mm
)
{
{
int
i
,
len
;
int
i
,
len
;
/* first copy the parameters from user space */
/* first copy the parameters from user space */
memset
(
psinfo
,
0
,
sizeof
(
struct
elf_prpsinfo
));
memset
(
psinfo
,
0
,
sizeof
(
struct
elf_prpsinfo
));
len
=
p
->
mm
->
arg_end
-
p
->
mm
->
arg_start
;
len
=
mm
->
arg_end
-
mm
->
arg_start
;
if
(
len
>=
ELF_PRARGSZ
)
if
(
len
>=
ELF_PRARGSZ
)
len
=
ELF_PRARGSZ
-
1
;
len
=
ELF_PRARGSZ
-
1
;
copy_from_user
(
&
psinfo
->
pr_psargs
,
copy_from_user
(
&
psinfo
->
pr_psargs
,
(
const
char
*
)
p
->
mm
->
arg_start
,
len
);
(
const
char
*
)
mm
->
arg_start
,
len
);
for
(
i
=
0
;
i
<
len
;
i
++
)
for
(
i
=
0
;
i
<
len
;
i
++
)
if
(
psinfo
->
pr_psargs
[
i
]
==
0
)
if
(
psinfo
->
pr_psargs
[
i
]
==
0
)
psinfo
->
pr_psargs
[
i
]
=
' '
;
psinfo
->
pr_psargs
[
i
]
=
' '
;
...
@@ -1280,7 +1281,7 @@ static int elf_core_dump(long signr, struct pt_regs * regs, struct file * file)
...
@@ -1280,7 +1281,7 @@ static int elf_core_dump(long signr, struct pt_regs * regs, struct file * file)
fill_note
(
notes
+
0
,
"CORE"
,
NT_PRSTATUS
,
sizeof
(
*
prstatus
),
prstatus
);
fill_note
(
notes
+
0
,
"CORE"
,
NT_PRSTATUS
,
sizeof
(
*
prstatus
),
prstatus
);
fill_psinfo
(
psinfo
,
current
->
group_leader
);
fill_psinfo
(
psinfo
,
current
->
group_leader
,
current
->
mm
);
fill_note
(
notes
+
1
,
"CORE"
,
NT_PRPSINFO
,
sizeof
(
*
psinfo
),
psinfo
);
fill_note
(
notes
+
1
,
"CORE"
,
NT_PRPSINFO
,
sizeof
(
*
psinfo
),
psinfo
);
fill_note
(
notes
+
2
,
"CORE"
,
NT_TASKSTRUCT
,
sizeof
(
*
current
),
current
);
fill_note
(
notes
+
2
,
"CORE"
,
NT_TASKSTRUCT
,
sizeof
(
*
current
),
current
);
...
...
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