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
343320d2
Commit
343320d2
authored
Aug 18, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV4/IPV6]: Fix direct user pointer deref in xfrm icmp changes.
Signed-off-by:
David S. Miller
<
davem@redhat.com
>
parent
a9497b16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
net/ipv4/raw.c
net/ipv4/raw.c
+4
-4
net/ipv6/raw.c
net/ipv6/raw.c
+4
-4
No files found.
net/ipv4/raw.c
View file @
343320d2
...
@@ -326,8 +326,8 @@ static int raw_send_hdrinc(struct sock *sk, void *from, int length,
...
@@ -326,8 +326,8 @@ static int raw_send_hdrinc(struct sock *sk, void *from, int length,
static
void
raw_probe_proto_opt
(
struct
flowi
*
fl
,
struct
msghdr
*
msg
)
static
void
raw_probe_proto_opt
(
struct
flowi
*
fl
,
struct
msghdr
*
msg
)
{
{
struct
iovec
*
iov
;
struct
iovec
*
iov
;
u8
*
type
=
NULL
;
u8
__user
*
type
=
NULL
;
u8
*
code
=
NULL
;
u8
__user
*
code
=
NULL
;
int
probed
=
0
;
int
probed
=
0
;
int
i
;
int
i
;
...
@@ -354,8 +354,8 @@ static void raw_probe_proto_opt(struct flowi *fl, struct msghdr *msg)
...
@@ -354,8 +354,8 @@ static void raw_probe_proto_opt(struct flowi *fl, struct msghdr *msg)
code
=
iov
->
iov_base
;
code
=
iov
->
iov_base
;
if
(
type
&&
code
)
{
if
(
type
&&
code
)
{
fl
->
fl_icmp_type
=
*
type
;
get_user
(
fl
->
fl_icmp_type
,
type
)
;
fl
->
fl_icmp_code
=
*
code
;
__get_user
(
fl
->
fl_icmp_code
,
code
)
;
probed
=
1
;
probed
=
1
;
}
}
break
;
break
;
...
...
net/ipv6/raw.c
View file @
343320d2
...
@@ -559,8 +559,8 @@ static int rawv6_send_hdrinc(struct sock *sk, void *from, int length,
...
@@ -559,8 +559,8 @@ static int rawv6_send_hdrinc(struct sock *sk, void *from, int length,
static
void
rawv6_probe_proto_opt
(
struct
flowi
*
fl
,
struct
msghdr
*
msg
)
static
void
rawv6_probe_proto_opt
(
struct
flowi
*
fl
,
struct
msghdr
*
msg
)
{
{
struct
iovec
*
iov
;
struct
iovec
*
iov
;
u8
*
type
=
NULL
;
u8
__user
*
type
=
NULL
;
u8
*
code
=
NULL
;
u8
__user
*
code
=
NULL
;
int
probed
=
0
;
int
probed
=
0
;
int
i
;
int
i
;
...
@@ -587,8 +587,8 @@ static void rawv6_probe_proto_opt(struct flowi *fl, struct msghdr *msg)
...
@@ -587,8 +587,8 @@ static void rawv6_probe_proto_opt(struct flowi *fl, struct msghdr *msg)
code
=
iov
->
iov_base
;
code
=
iov
->
iov_base
;
if
(
type
&&
code
)
{
if
(
type
&&
code
)
{
fl
->
fl_icmp_type
=
*
type
;
get_user
(
fl
->
fl_icmp_type
,
type
)
;
fl
->
fl_icmp_code
=
*
code
;
__get_user
(
fl
->
fl_icmp_code
,
code
)
;
probed
=
1
;
probed
=
1
;
}
}
break
;
break
;
...
...
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