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:
68d6ac6
)
rds: fix a leak of kernel memory
author
Eric Dumazet
<
[email protected]
>
Mon, 16 Aug 2010 03:25:00 +0000
(
03:25
+0000)
committer
David S. Miller
<
[email protected]
>
Thu, 19 Aug 2010 06:40:03 +0000
(23:40 -0700)
struct rds_rdma_notify contains a 32 bits hole on 64bit arches,
make sure it is zeroed before copying it to user.
Signed-off-by: Eric Dumazet <
[email protected]
>
CC: Andy Grover <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/rds/recv.c
patch
|
blob
|
history
diff --git
a/net/rds/recv.c
b/net/rds/recv.c
index 795a00b7f2cb7aa6a539adb3c86a2cad180575f1..c93588c2d553cf6b162ab500cf1fd72dbbc9c26c 100644
(file)
--- a/
net/rds/recv.c
+++ b/
net/rds/recv.c
@@
-297,7
+297,7
@@
static int rds_still_queued(struct rds_sock *rs, struct rds_incoming *inc,
int rds_notify_queue_get(struct rds_sock *rs, struct msghdr *msghdr)
{
struct rds_notifier *notifier;
- struct rds_rdma_notify cmsg
;
+ struct rds_rdma_notify cmsg
= { 0 }; /* fill holes with zero */
unsigned int count = 0, max_messages = ~0U;
unsigned long flags;
LIST_HEAD(copy);