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
78cf0a67
Commit
78cf0a67
authored
Jun 03, 2003
by
Thomas Osterried
Committed by
David S. Miller
Jun 03, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AX25]: AX.25 bug fixes.
- Flxnet CRC handling fix for mkiss.c - Use after free bug in ax25_ip.c
parent
6badba35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
drivers/net/hamradio/mkiss.c
drivers/net/hamradio/mkiss.c
+6
-0
net/ax25/ax25_ip.c
net/ax25/ax25_ip.c
+9
-3
No files found.
drivers/net/hamradio/mkiss.c
View file @
78cf0a67
...
...
@@ -329,6 +329,12 @@ static void ax_bump(struct ax_disp *ax)
return
;
}
ax
->
rcount
-=
2
;
/* dl9sau bugfix: the trailling two bytes flexnet crc
* will not be passed to the kernel. thus we have
* to correct the kissparm signature, because it
* indicates a crc but there's none
*/
*
ax
->
rbuff
&=
~
0x20
;
}
}
...
...
net/ax25/ax25_ip.c
View file @
78cf0a67
...
...
@@ -154,9 +154,15 @@ int ax25_rebuild_header(struct sk_buff *skb)
skb_set_owner_w
(
ourskb
,
skb
->
sk
);
kfree_skb
(
skb
);
src_c
=
*
src
;
dst_c
=
*
dst
;
/* dl9sau: bugfix
* after kfree_skb(), dst and src which were pointer
* to bp which is part of skb->data would not be valid
* anymore hope that after skb_pull(ourskb, ..) our
* dsc_c and src_c will not become invalid
*/
bp
=
ourskb
->
data
;
dst_c
=
*
(
ax25_address
*
)(
bp
+
1
);
src_c
=
*
(
ax25_address
*
)(
bp
+
8
);
skb_pull
(
ourskb
,
AX25_HEADER_LEN
-
1
);
/* Keep PID */
ourskb
->
nh
.
raw
=
ourskb
->
data
;
...
...
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