[PATCH v1] compiler: prevent dead store elimination

2010-02-27 Thread Roel Kluin
Due to optimization A call to memset() may be removed as a dead store when the buffer is not used after its value is overwritten. The new function secure_bzero() ensures a section of memory is padded with zeroes. >From the GCC manual, section 5.37: If your assembler instructions access memory in a

Re: hifn_795x module on a 64 bit system

2010-02-27 Thread Evgeniy Polyakov
On Sat, Feb 27, 2010 at 03:04:13PM +0100, Michael Bohn (boh...@googlemail.com) wrote: > is there a way to use the hifn_795x module on a 64 bit system. ( with > 4GB RAM ) ? > > I get this error message if I try to load this module. > > [3.466307] HIFN supports only 32-bit addresses. > [ 114

hifn_795x module on a 64 bit system

2010-02-27 Thread Michael Bohn
Hello is there a way to use the hifn_795x module on a 64 bit system. ( with 4GB RAM ) ? I get this error message if I try to load this module. # modprobe hifn_795x FATAL: Error inserting hifn_795x (/lib/modules/2.6.32-gentoo-r6/kernel/drivers/crypto/hifn_795x.ko): Invalid argument # dmesg |

Suspect bug in the authenc module

2010-02-27 Thread Roberto Sassu
Hello i'm trying to use the authenc module and i wrote a small kernel module that simply encrypts/decrypts a fixed data using the hmac(sha1) as authentication algorithm and cbc(aes) as encryption algorithm. The used platform is a KVM quest with Fedora 12 i686 and the latest kernel 2.6.33. I ha