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
98af046c
Commit
98af046c
authored
Jan 06, 2003
by
Tomas Szepe
Committed by
David S. Miller
Jan 06, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Protect secpath references in skbuff.c with CONFIG_INET.
parent
a773eb63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
net/core/skbuff.c
net/core/skbuff.c
+6
-0
No files found.
net/core/skbuff.c
View file @
98af046c
...
...
@@ -324,7 +324,9 @@ void __kfree_skb(struct sk_buff *skb)
}
dst_release
(
skb
->
dst
);
#ifdef CONFIG_INET
secpath_put
(
skb
->
sp
);
#endif
if
(
skb
->
destructor
)
{
if
(
in_irq
())
printk
(
KERN_WARNING
"Warning: kfree_skb on "
...
...
@@ -378,7 +380,9 @@ struct sk_buff *skb_clone(struct sk_buff *skb, int gfp_mask)
C
(
dst
);
dst_clone
(
n
->
dst
);
C
(
sp
);
#ifdef CONFIG_INET
secpath_get
(
n
->
sp
);
#endif
memcpy
(
n
->
cb
,
skb
->
cb
,
sizeof
(
skb
->
cb
));
C
(
len
);
C
(
data_len
);
...
...
@@ -438,7 +442,9 @@ static void copy_skb_header(struct sk_buff *new, const struct sk_buff *old)
new
->
priority
=
old
->
priority
;
new
->
protocol
=
old
->
protocol
;
new
->
dst
=
dst_clone
(
old
->
dst
);
#ifdef CONFIG_INET
new
->
sp
=
secpath_get
(
old
->
sp
);
#endif
new
->
h
.
raw
=
old
->
h
.
raw
+
offset
;
new
->
nh
.
raw
=
old
->
nh
.
raw
+
offset
;
new
->
mac
.
raw
=
old
->
mac
.
raw
+
offset
;
...
...
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