From 733af496e822a07f216ec3d815946cb0212c4e1b Mon Sep 17 00:00:00 2001 From: Nickolai Zeldovich Date: Fri, 16 Apr 2004 07:26:11 +0000 Subject: [PATCH] more-memory-scrubbing-20040415 Scrub the callBacks array just in case, as we're exposing some arbitrary kernel stack contents to the user. --- src/afs/afs_vcache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/afs/afs_vcache.c b/src/afs/afs_vcache.c index 9e3a368534..b01641d80a 100644 --- 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,