git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60d509c
)
filter: use size of fetched data in __load_pointer()
author
Eric Dumazet
<eric.dumazet@gmail.com>
Tue, 7 Dec 2010 22:26:15 +0000
(22:26 +0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 10 Dec 2010 04:47:04 +0000
(20:47 -0800)
__load_pointer() checks data we fetch from skb is included in head
portion, but assumes we fetch one byte, instead of up to four.
This wont crash because we have extra bytes (struct skb_shared_info)
after head, but this can read uninitialized bytes.
Fix this using size of the data (1, 2, 4 bytes) in the test.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/filter.c
patch
|
blob
|
history
diff --cc
net/core/filter.c
Simple merge