Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
3e0fa65f
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3e0fa65f
编写于
1月 14, 2009
作者:
H
Heiko Carstens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CVE-2009-0029] System call wrappers part 22
Signed-off-by:
N
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
上级
20f37034
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
16 addition
and
15 deletion
+16
-15
net/socket.c
net/socket.c
+16
-15
未找到文件。
net/socket.c
浏览文件 @
3e0fa65f
...
...
@@ -1214,7 +1214,7 @@ int sock_create_kern(int family, int type, int protocol, struct socket **res)
return
__sock_create
(
&
init_net
,
family
,
type
,
protocol
,
res
,
1
);
}
asmlinkage
long
sys_socket
(
int
family
,
int
type
,
int
protocol
)
SYSCALL_DEFINE3
(
socket
,
int
,
family
,
int
,
type
,
int
,
protocol
)
{
int
retval
;
struct
socket
*
sock
;
...
...
@@ -1255,8 +1255,8 @@ asmlinkage long sys_socket(int family, int type, int protocol)
* Create a pair of connected sockets.
*/
asmlinkage
long
sys_socketpair
(
int
family
,
int
type
,
int
protocol
,
int
__user
*
usockvec
)
SYSCALL_DEFINE4
(
socketpair
,
int
,
family
,
int
,
type
,
int
,
protocol
,
int
__user
*
,
usockvec
)
{
struct
socket
*
sock1
,
*
sock2
;
int
fd1
,
fd2
,
err
;
...
...
@@ -1385,7 +1385,7 @@ SYSCALL_DEFINE3(bind, int, fd, struct sockaddr __user *, umyaddr, int, addrlen)
* ready for listening.
*/
asmlinkage
long
sys_listen
(
int
fd
,
int
backlog
)
SYSCALL_DEFINE2
(
listen
,
int
,
fd
,
int
,
backlog
)
{
struct
socket
*
sock
;
int
err
,
fput_needed
;
...
...
@@ -1615,9 +1615,9 @@ SYSCALL_DEFINE3(getpeername, int, fd, struct sockaddr __user *, usockaddr,
* the protocol.
*/
asmlinkage
long
sys_sendto
(
int
fd
,
void
__user
*
buff
,
size_t
len
,
unsigned
flags
,
struct
sockaddr
__user
*
addr
,
int
addr_len
)
SYSCALL_DEFINE6
(
sendto
,
int
,
fd
,
void
__user
*
,
buff
,
size_t
,
len
,
unsigned
,
flags
,
struct
sockaddr
__user
*
,
addr
,
int
,
addr_len
)
{
struct
socket
*
sock
;
struct
sockaddr_storage
address
;
...
...
@@ -1660,7 +1660,8 @@ asmlinkage long sys_sendto(int fd, void __user *buff, size_t len,
* Send a datagram down a socket.
*/
asmlinkage
long
sys_send
(
int
fd
,
void
__user
*
buff
,
size_t
len
,
unsigned
flags
)
SYSCALL_DEFINE4
(
send
,
int
,
fd
,
void
__user
*
,
buff
,
size_t
,
len
,
unsigned
,
flags
)
{
return
sys_sendto
(
fd
,
buff
,
len
,
flags
,
NULL
,
0
);
}
...
...
@@ -1671,9 +1672,9 @@ asmlinkage long sys_send(int fd, void __user *buff, size_t len, unsigned flags)
* sender address from kernel to user space.
*/
asmlinkage
long
sys_recvfrom
(
int
fd
,
void
__user
*
ubuf
,
size_t
size
,
unsigned
flags
,
struct
sockaddr
__user
*
addr
,
int
__user
*
addr_len
)
SYSCALL_DEFINE6
(
recvfrom
,
int
,
fd
,
void
__user
*
,
ubuf
,
size_t
,
size
,
unsigned
,
flags
,
struct
sockaddr
__user
*
,
addr
,
int
__user
*
,
addr_len
)
{
struct
socket
*
sock
;
struct
iovec
iov
;
...
...
@@ -1815,7 +1816,7 @@ SYSCALL_DEFINE2(shutdown, int, fd, int, how)
* BSD sendmsg interface
*/
asmlinkage
long
sys_sendmsg
(
int
fd
,
struct
msghdr
__user
*
msg
,
unsigned
flags
)
SYSCALL_DEFINE3
(
sendmsg
,
int
,
fd
,
struct
msghdr
__user
*
,
msg
,
unsigned
,
flags
)
{
struct
compat_msghdr
__user
*
msg_compat
=
(
struct
compat_msghdr
__user
*
)
msg
;
...
...
@@ -1921,8 +1922,8 @@ asmlinkage long sys_sendmsg(int fd, struct msghdr __user *msg, unsigned flags)
* BSD recvmsg interface
*/
asmlinkage
long
sys_recvmsg
(
int
fd
,
struct
msghdr
__user
*
msg
,
unsigned
int
flags
)
SYSCALL_DEFINE3
(
recvmsg
,
int
,
fd
,
struct
msghdr
__user
*
,
msg
,
unsigned
int
,
flags
)
{
struct
compat_msghdr
__user
*
msg_compat
=
(
struct
compat_msghdr
__user
*
)
msg
;
...
...
@@ -2045,7 +2046,7 @@ static const unsigned char nargs[19]={
* it is set by the callees.
*/
asmlinkage
long
sys_socketcall
(
int
call
,
unsigned
long
__user
*
args
)
SYSCALL_DEFINE2
(
socketcall
,
int
,
call
,
unsigned
long
__user
*
,
args
)
{
unsigned
long
a
[
6
];
unsigned
long
a0
,
a1
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录