projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1ee89d
)
ATM: mpc, fix use after free
author
Jiri Slaby
<
[email protected]
>
Sun, 10 Oct 2010 22:46:34 +0000
(22:46 +0000)
committer
David S. Miller
<
[email protected]
>
Mon, 11 Oct 2010 18:05:42 +0000
(11:05 -0700)
Stanse found that mpc_push frees skb and then it dereferences it. It
is a typo, new_skb should be dereferenced there.
Signed-off-by: Jiri Slaby <
[email protected]
>
Cc: Eric Dumazet <
[email protected]
>
Acked-by: Eric Dumazet <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/atm/mpc.c
patch
|
blob
|
history
diff --git
a/net/atm/mpc.c
b/net/atm/mpc.c
index 622b471e14e03dbc3752697851022a59aebffbe0..74bcc662c3dd8c5e7ec33a393560cc9bbf313b57 100644
(file)
--- a/
net/atm/mpc.c
+++ b/
net/atm/mpc.c
@@
-778,7
+778,7
@@
static void mpc_push(struct atm_vcc *vcc, struct sk_buff *skb)
eg->packets_rcvd++;
mpc->eg_ops->put(eg);
- memset(ATM_SKB(skb), 0, sizeof(struct atm_skb_data));
+ memset(ATM_SKB(
new_
skb), 0, sizeof(struct atm_skb_data));
netif_rx(new_skb);
}