projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d98da5
)
netfilter: nfnetlink_queue: fix incorrect initialization of copy range field
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Thu, 14 Mar 2013 06:03:18 +0000
(06:03 +0000)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Fri, 15 Mar 2013 11:35:49 +0000
(12:35 +0100)
2^16 = 0xffff, not 0xfffff (note the extra 'f'). Not dangerous since you
adjust it to min_t(data_len, skb->len) just after on.
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_queue_core.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nfnetlink_queue_core.c
b/net/netfilter/nfnetlink_queue_core.c
index
858fd52
..
1cb4854
100644
(file)
--- a/
net/netfilter/nfnetlink_queue_core.c
+++ b/
net/netfilter/nfnetlink_queue_core.c
@@
-112,7
+112,7
@@
instance_create(u_int16_t queue_num, int portid)
inst->queue_num = queue_num;
inst->peer_portid = portid;
inst->queue_maxlen = NFQNL_QMAX_DEFAULT;
- inst->copy_range = 0xffff
f
;
+ inst->copy_range = 0xffff;
inst->copy_mode = NFQNL_COPY_NONE;
spin_lock_init(&inst->lock);
INIT_LIST_HEAD(&inst->queue_list);