git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
5db578e
)
more-memory-scrubbing-20040415
author
Nickolai Zeldovich
<kolya@mit.edu>
Fri, 16 Apr 2004 07:26:11 +0000 (07:26 +0000)
committer
Nickolai Zeldovich
<kolya@mit.edu>
Fri, 16 Apr 2004 07:26:11 +0000 (07:26 +0000)
Scrub the callBacks array just in case, as we're exposing some
arbitrary kernel stack contents to the user.
src/afs/afs_vcache.c
patch
|
blob
|
history
diff --git
a/src/afs/afs_vcache.c
b/src/afs/afs_vcache.c
index
9e3a368
..
b01641d
100644
(file)
--- a/
src/afs/afs_vcache.c
+++ b/
src/afs/afs_vcache.c
@@
-365,6
+365,7
@@
afs_FlushVCBs(afs_int32 lockit)
fidArray.AFSCBFids_val = (struct AFSFid *)tfids;
cbArray.AFSCBs_len = 1;
cbArray.AFSCBs_val = callBacks;
+ memset(&callBacks[0], 0, sizeof(callBacks[0]));
callBacks[0].CallBackType = CB_EXCLUSIVE;
for (safety3 = 0; safety3 < MAXHOSTS * 2; safety3++) {
tc = afs_ConnByHost(tsp, tsp->cell->fsport,