more-memory-scrubbing-20040415

Scrub the callBacks array just in case, as we're exposing some
arbitrary kernel stack contents to the user.
This commit is contained in:
Nickolai Zeldovich 2004-04-16 07:26:11 +00:00
parent 5db578e078
commit 733af496e8

View File

@ -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,