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
Kirill Smelkov
linux
Commits
3c456bfc
Commit
3c456bfc
authored
Oct 20, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get rid of pt_regs argument of search_binary_handler()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
835ab32d
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
9 deletions
+8
-9
arch/alpha/kernel/binfmt_loader.c
arch/alpha/kernel/binfmt_loader.c
+1
-1
fs/binfmt_em86.c
fs/binfmt_em86.c
+1
-1
fs/binfmt_misc.c
fs/binfmt_misc.c
+1
-1
fs/binfmt_script.c
fs/binfmt_script.c
+1
-1
fs/exec.c
fs/exec.c
+3
-4
include/linux/binfmts.h
include/linux/binfmts.h
+1
-1
No files found.
arch/alpha/kernel/binfmt_loader.c
View file @
3c456bfc
...
...
@@ -37,7 +37,7 @@ static int load_binary(struct linux_binprm *bprm, struct pt_regs *regs)
retval
=
prepare_binprm
(
bprm
);
if
(
retval
<
0
)
return
retval
;
return
search_binary_handler
(
bprm
,
regs
);
return
search_binary_handler
(
bprm
);
}
static
struct
linux_binfmt
loader_format
=
{
...
...
fs/binfmt_em86.c
View file @
3c456bfc
...
...
@@ -90,7 +90,7 @@ static int load_em86(struct linux_binprm *bprm,struct pt_regs *regs)
if
(
retval
<
0
)
return
retval
;
return
search_binary_handler
(
bprm
,
regs
);
return
search_binary_handler
(
bprm
);
}
static
struct
linux_binfmt
em86_format
=
{
...
...
fs/binfmt_misc.c
View file @
3c456bfc
...
...
@@ -199,7 +199,7 @@ static int load_misc_binary(struct linux_binprm *bprm, struct pt_regs *regs)
bprm
->
recursion_depth
++
;
retval
=
search_binary_handler
(
bprm
,
regs
);
retval
=
search_binary_handler
(
bprm
);
if
(
retval
<
0
)
goto
_error
;
...
...
fs/binfmt_script.c
View file @
3c456bfc
...
...
@@ -95,7 +95,7 @@ static int load_script(struct linux_binprm *bprm,struct pt_regs *regs)
retval
=
prepare_binprm
(
bprm
);
if
(
retval
<
0
)
return
retval
;
return
search_binary_handler
(
bprm
,
regs
);
return
search_binary_handler
(
bprm
);
}
static
struct
linux_binfmt
script_format
=
{
...
...
fs/exec.c
View file @
3c456bfc
...
...
@@ -1349,7 +1349,7 @@ EXPORT_SYMBOL(remove_arg_zero);
/*
* cycle the list of binary formats handler, until one recognizes the image
*/
int
search_binary_handler
(
struct
linux_binprm
*
bprm
,
struct
pt_regs
*
regs
)
int
search_binary_handler
(
struct
linux_binprm
*
bprm
)
{
unsigned
int
depth
=
bprm
->
recursion_depth
;
int
try
,
retval
;
...
...
@@ -1380,7 +1380,7 @@ int search_binary_handler(struct linux_binprm *bprm,struct pt_regs *regs)
if
(
!
try_module_get
(
fmt
->
module
))
continue
;
read_unlock
(
&
binfmt_lock
);
retval
=
fn
(
bprm
,
regs
);
retval
=
fn
(
bprm
,
current_pt_regs
()
);
/*
* Restore the depth counter to its starting value
* in this call, so we don't have to rely on every
...
...
@@ -1447,7 +1447,6 @@ static int do_execve_common(const char *filename,
bool
clear_in_exec
;
int
retval
;
const
struct
cred
*
cred
=
current_cred
();
struct
pt_regs
*
regs
=
current_pt_regs
();
/*
* We move the actual failure in case of RLIMIT_NPROC excess from
...
...
@@ -1524,7 +1523,7 @@ static int do_execve_common(const char *filename,
if
(
retval
<
0
)
goto
out
;
retval
=
search_binary_handler
(
bprm
,
regs
);
retval
=
search_binary_handler
(
bprm
);
if
(
retval
<
0
)
goto
out
;
...
...
include/linux/binfmts.h
View file @
3c456bfc
...
...
@@ -95,7 +95,7 @@ extern void unregister_binfmt(struct linux_binfmt *);
extern
int
prepare_binprm
(
struct
linux_binprm
*
);
extern
int
__must_check
remove_arg_zero
(
struct
linux_binprm
*
);
extern
int
search_binary_handler
(
struct
linux_binprm
*
,
struct
pt_regs
*
);
extern
int
search_binary_handler
(
struct
linux_binprm
*
);
extern
int
flush_old_exec
(
struct
linux_binprm
*
bprm
);
extern
void
setup_new_exec
(
struct
linux_binprm
*
bprm
);
extern
void
would_dump
(
struct
linux_binprm
*
,
struct
file
*
);
...
...
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