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:
b7983e3
)
ipv4: call __ip_options_echo() in cookie_v4_check()
author
Cong Wang
<
[email protected]
>
Wed, 15 Oct 2014 21:33:20 +0000
(14:33 -0700)
committer
David S. Miller
<
[email protected]
>
Fri, 17 Oct 2014 16:02:57 +0000
(12:02 -0400)
commit
971f10eca186cab238c49da
("tcp: better TCP_SKB_CB layout to reduce cache line misses")
missed that cookie_v4_check() still calls ip_options_echo() which uses
IPCB(). It should use TCPCB() at TCP layer, so call __ip_options_echo()
instead.
Fixes: commit 971f10eca186cab238c49da ("tcp: better TCP_SKB_CB layout to reduce cache line misses")
Cc: Krzysztof Kolasa <
[email protected]
>
Cc: Eric Dumazet <
[email protected]
>
Reported-by: Krzysztof Kolasa <
[email protected]
>
Tested-by: Krzysztof Kolasa <
[email protected]
>
Signed-off-by: Cong Wang <
[email protected]
>
Signed-off-by: Cong Wang <
[email protected]
>
Signed-off-by: Eric Dumazet <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv4/syncookies.c
patch
|
blob
|
history
diff --git
a/net/ipv4/syncookies.c
b/net/ipv4/syncookies.c
index 0431a8f3c8f458538e37543a0b37a091da0c04bb..7e7401cdb9d719356c41bd0c985667f1ff6638a7 100644
(file)
--- a/
net/ipv4/syncookies.c
+++ b/
net/ipv4/syncookies.c
@@
-321,7
+321,7
@@
struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb,
int opt_size = sizeof(struct ip_options_rcu) + opt->optlen;
ireq->opt = kmalloc(opt_size, GFP_ATOMIC);
- if (ireq->opt != NULL &&
ip_options_echo(&ireq->opt->opt, skb
)) {
+ if (ireq->opt != NULL &&
__ip_options_echo(&ireq->opt->opt, skb, opt
)) {
kfree(ireq->opt);
ireq->opt = NULL;
}