The following commit has been merged in the master branch:
commit 64da7c133a66a15233c2cdc5d9a8f71d17d80d77
Author: Benjamin Kaduk <[email protected]>
Date:   Thu Jul 24 09:40:21 2014 -0400

    Make kernel hcrypto calloc return zeroed memory
    
    As far as I can tell, the afs_osi_Alloc contract does not
    guarantee zeroed memory.  On FreeBSD, with a debug kernel, it
    definitely does not currently provide zeroed memory, returning
    instead memory initialized with 0xdeadc0de.
    
    Properly speaking, the role of calloc() is to both check for overflow
    from the multiplication and to produce zeroed memory.  However, since
    we do not have a reasonable way to report failure, do not bother
    checking for overflow at this time.
    
    Change-Id: I187c2057d473fba869692c1dfa11735502b260c1
    Reviewed-on: http://gerrit.openafs.org/11322
    Tested-by: BuildBot <[email protected]>
    Reviewed-by: Chas Williams - CONTRACTOR <[email protected]>
    Reviewed-by: Jeffrey Altman <[email protected]>

 src/crypto/hcrypto/kernel/alloc.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

-- 
OpenAFS Master Repository
_______________________________________________
OpenAFS-cvs mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-cvs

Reply via email to