Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
71613c3b
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
71613c3b
编写于
10月 20, 2012
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
get rid of pt_regs argument of ->load_binary()
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
3c456bfc
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
25 addition
and
20 deletion
+25
-20
arch/alpha/kernel/binfmt_loader.c
arch/alpha/kernel/binfmt_loader.c
+1
-1
arch/x86/ia32/ia32_aout.c
arch/x86/ia32/ia32_aout.c
+3
-2
fs/binfmt_aout.c
fs/binfmt_aout.c
+3
-2
fs/binfmt_elf.c
fs/binfmt_elf.c
+3
-2
fs/binfmt_elf_fdpic.c
fs/binfmt_elf_fdpic.c
+3
-3
fs/binfmt_em86.c
fs/binfmt_em86.c
+1
-1
fs/binfmt_flat.c
fs/binfmt_flat.c
+3
-2
fs/binfmt_misc.c
fs/binfmt_misc.c
+1
-1
fs/binfmt_script.c
fs/binfmt_script.c
+1
-1
fs/binfmt_som.c
fs/binfmt_som.c
+3
-2
fs/exec.c
fs/exec.c
+2
-2
include/linux/binfmts.h
include/linux/binfmts.h
+1
-1
未找到文件。
arch/alpha/kernel/binfmt_loader.c
浏览文件 @
71613c3b
...
...
@@ -5,7 +5,7 @@
#include <linux/binfmts.h>
#include <linux/a.out.h>
static
int
load_binary
(
struct
linux_binprm
*
bprm
,
struct
pt_regs
*
regs
)
static
int
load_binary
(
struct
linux_binprm
*
bprm
)
{
struct
exec
*
eh
=
(
struct
exec
*
)
bprm
->
buf
;
unsigned
long
loader
;
...
...
arch/x86/ia32/ia32_aout.c
浏览文件 @
71613c3b
...
...
@@ -35,7 +35,7 @@
#undef WARN_OLD
#undef CORE_DUMP
/* definitely broken */
static
int
load_aout_binary
(
struct
linux_binprm
*
,
struct
pt_regs
*
regs
);
static
int
load_aout_binary
(
struct
linux_binprm
*
);
static
int
load_aout_library
(
struct
file
*
);
#ifdef CORE_DUMP
...
...
@@ -260,9 +260,10 @@ static u32 __user *create_aout_tables(char __user *p, struct linux_binprm *bprm)
* These are the functions used to load a.out style executables and shared
* libraries. There is no binary dependent code anywhere else.
*/
static
int
load_aout_binary
(
struct
linux_binprm
*
bprm
,
struct
pt_regs
*
regs
)
static
int
load_aout_binary
(
struct
linux_binprm
*
bprm
)
{
unsigned
long
error
,
fd_offset
,
rlim
;
struct
pt_regs
*
regs
=
current_pt_regs
();
struct
exec
ex
;
int
retval
;
...
...
fs/binfmt_aout.c
浏览文件 @
71613c3b
...
...
@@ -30,7 +30,7 @@
#include <asm/cacheflush.h>
#include <asm/a.out-core.h>
static
int
load_aout_binary
(
struct
linux_binprm
*
,
struct
pt_regs
*
regs
);
static
int
load_aout_binary
(
struct
linux_binprm
*
);
static
int
load_aout_library
(
struct
file
*
);
#ifdef CONFIG_COREDUMP
...
...
@@ -201,8 +201,9 @@ static unsigned long __user *create_aout_tables(char __user *p, struct linux_bin
* libraries. There is no binary dependent code anywhere else.
*/
static
int
load_aout_binary
(
struct
linux_binprm
*
bprm
,
struct
pt_regs
*
regs
)
static
int
load_aout_binary
(
struct
linux_binprm
*
bprm
)
{
struct
pt_regs
*
regs
=
current_pt_regs
();
struct
exec
ex
;
unsigned
long
error
;
unsigned
long
fd_offset
;
...
...
fs/binfmt_elf.c
浏览文件 @
71613c3b
...
...
@@ -44,7 +44,7 @@
#define user_siginfo_t siginfo_t
#endif
static
int
load_elf_binary
(
struct
linux_binprm
*
bprm
,
struct
pt_regs
*
regs
);
static
int
load_elf_binary
(
struct
linux_binprm
*
bprm
);
static
int
load_elf_library
(
struct
file
*
);
static
unsigned
long
elf_map
(
struct
file
*
,
unsigned
long
,
struct
elf_phdr
*
,
int
,
int
,
unsigned
long
);
...
...
@@ -558,7 +558,7 @@ static unsigned long randomize_stack_top(unsigned long stack_top)
#endif
}
static
int
load_elf_binary
(
struct
linux_binprm
*
bprm
,
struct
pt_regs
*
regs
)
static
int
load_elf_binary
(
struct
linux_binprm
*
bprm
)
{
struct
file
*
interpreter
=
NULL
;
/* to shut gcc up */
unsigned
long
load_addr
=
0
,
load_bias
=
0
;
...
...
@@ -575,6 +575,7 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
unsigned
long
reloc_func_desc
__maybe_unused
=
0
;
int
executable_stack
=
EXSTACK_DEFAULT
;
unsigned
long
def_flags
=
0
;
struct
pt_regs
*
regs
=
current_pt_regs
();
struct
{
struct
elfhdr
elf_ex
;
struct
elfhdr
interp_elf_ex
;
...
...
fs/binfmt_elf_fdpic.c
浏览文件 @
71613c3b
...
...
@@ -56,7 +56,7 @@ typedef char *elf_caddr_t;
MODULE_LICENSE
(
"GPL"
);
static
int
load_elf_fdpic_binary
(
struct
linux_binprm
*
,
struct
pt_regs
*
);
static
int
load_elf_fdpic_binary
(
struct
linux_binprm
*
);
static
int
elf_fdpic_fetch_phdrs
(
struct
elf_fdpic_params
*
,
struct
file
*
);
static
int
elf_fdpic_map_file
(
struct
elf_fdpic_params
*
,
struct
file
*
,
struct
mm_struct
*
,
const
char
*
);
...
...
@@ -164,10 +164,10 @@ static int elf_fdpic_fetch_phdrs(struct elf_fdpic_params *params,
/*
* load an fdpic binary into various bits of memory
*/
static
int
load_elf_fdpic_binary
(
struct
linux_binprm
*
bprm
,
struct
pt_regs
*
regs
)
static
int
load_elf_fdpic_binary
(
struct
linux_binprm
*
bprm
)
{
struct
elf_fdpic_params
exec_params
,
interp_params
;
struct
pt_regs
*
regs
=
current_pt_regs
();
struct
elf_phdr
*
phdr
;
unsigned
long
stack_size
,
entryaddr
;
#ifdef ELF_FDPIC_PLAT_INIT
...
...
fs/binfmt_em86.c
浏览文件 @
71613c3b
...
...
@@ -22,7 +22,7 @@
#define EM86_INTERP "/usr/bin/em86"
#define EM86_I_NAME "em86"
static
int
load_em86
(
struct
linux_binprm
*
bprm
,
struct
pt_regs
*
regs
)
static
int
load_em86
(
struct
linux_binprm
*
bprm
)
{
char
*
interp
,
*
i_name
,
*
i_arg
;
struct
file
*
file
;
...
...
fs/binfmt_flat.c
浏览文件 @
71613c3b
...
...
@@ -88,7 +88,7 @@ struct lib_info {
static
int
load_flat_shared_library
(
int
id
,
struct
lib_info
*
p
);
#endif
static
int
load_flat_binary
(
struct
linux_binprm
*
,
struct
pt_regs
*
regs
);
static
int
load_flat_binary
(
struct
linux_binprm
*
);
static
int
flat_core_dump
(
struct
coredump_params
*
cprm
);
static
struct
linux_binfmt
flat_format
=
{
...
...
@@ -858,9 +858,10 @@ static int load_flat_shared_library(int id, struct lib_info *libs)
* libraries. There is no binary dependent code anywhere else.
*/
static
int
load_flat_binary
(
struct
linux_binprm
*
bprm
,
struct
pt_regs
*
regs
)
static
int
load_flat_binary
(
struct
linux_binprm
*
bprm
)
{
struct
lib_info
libinfo
;
struct
pt_regs
*
regs
=
current_pt_regs
();
unsigned
long
p
=
bprm
->
p
;
unsigned
long
stack_len
;
unsigned
long
start_addr
;
...
...
fs/binfmt_misc.c
浏览文件 @
71613c3b
...
...
@@ -104,7 +104,7 @@ static Node *check_file(struct linux_binprm *bprm)
/*
* the loader itself
*/
static
int
load_misc_binary
(
struct
linux_binprm
*
bprm
,
struct
pt_regs
*
regs
)
static
int
load_misc_binary
(
struct
linux_binprm
*
bprm
)
{
Node
*
fmt
;
struct
file
*
interp_file
=
NULL
;
...
...
fs/binfmt_script.c
浏览文件 @
71613c3b
...
...
@@ -14,7 +14,7 @@
#include <linux/err.h>
#include <linux/fs.h>
static
int
load_script
(
struct
linux_binprm
*
bprm
,
struct
pt_regs
*
regs
)
static
int
load_script
(
struct
linux_binprm
*
bprm
)
{
const
char
*
i_arg
,
*
i_name
;
char
*
cp
;
...
...
fs/binfmt_som.c
浏览文件 @
71613c3b
...
...
@@ -35,7 +35,7 @@
#include <linux/elf.h>
static
int
load_som_binary
(
struct
linux_binprm
*
bprm
,
struct
pt_regs
*
regs
);
static
int
load_som_binary
(
struct
linux_binprm
*
bprm
);
static
int
load_som_library
(
struct
file
*
);
/*
...
...
@@ -180,13 +180,14 @@ static int map_som_binary(struct file *file,
*/
static
int
load_som_binary
(
struct
linux_binprm
*
bprm
,
struct
pt_regs
*
regs
)
load_som_binary
(
struct
linux_binprm
*
bprm
)
{
int
retval
;
unsigned
int
size
;
unsigned
long
som_entry
;
struct
som_hdr
*
som_ex
;
struct
som_exec_auxhdr
*
hpuxhdr
;
struct
pt_regs
*
regs
=
current_pt_regs
();
/* Get the exec-header */
som_ex
=
(
struct
som_hdr
*
)
bprm
->
buf
;
...
...
fs/exec.c
浏览文件 @
71613c3b
...
...
@@ -1374,13 +1374,13 @@ int search_binary_handler(struct linux_binprm *bprm)
for
(
try
=
0
;
try
<
2
;
try
++
)
{
read_lock
(
&
binfmt_lock
);
list_for_each_entry
(
fmt
,
&
formats
,
lh
)
{
int
(
*
fn
)(
struct
linux_binprm
*
,
struct
pt_regs
*
)
=
fmt
->
load_binary
;
int
(
*
fn
)(
struct
linux_binprm
*
)
=
fmt
->
load_binary
;
if
(
!
fn
)
continue
;
if
(
!
try_module_get
(
fmt
->
module
))
continue
;
read_unlock
(
&
binfmt_lock
);
retval
=
fn
(
bprm
,
current_pt_regs
()
);
retval
=
fn
(
bprm
);
/*
* Restore the depth counter to its starting value
* in this call, so we don't have to rely on every
...
...
include/linux/binfmts.h
浏览文件 @
71613c3b
...
...
@@ -72,7 +72,7 @@ struct coredump_params {
struct
linux_binfmt
{
struct
list_head
lh
;
struct
module
*
module
;
int
(
*
load_binary
)(
struct
linux_binprm
*
,
struct
pt_regs
*
regs
);
int
(
*
load_binary
)(
struct
linux_binprm
*
);
int
(
*
load_shlib
)(
struct
file
*
);
int
(
*
core_dump
)(
struct
coredump_params
*
cprm
);
unsigned
long
min_coredump
;
/* minimal dump size */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录