diff options
author | Vegard Nossum <vegard.nossum@gmail.com> | 2009-02-26 09:55:52 +0100 |
---|---|---|
committer | Vegard Nossum <vegard.nossum@gmail.com> | 2009-06-15 12:40:10 +0200 |
commit | a5dc0ad5e24d2cdb1a46cc19761605e5902f83eb (patch) | |
tree | e9f0b6c792bd1d8166195d6a8e2436af64c8eaa0 /crypto/xor.c | |
parent | 7f32197e5e5fbb3b6681a3aae1e5a07aa4e5aaa8 (diff) | |
download | linux-crypto-a5dc0ad5e24d2cdb1a46cc19761605e5902f83eb.tar.gz linux-crypto-a5dc0ad5e24d2cdb1a46cc19761605e5902f83eb.zip |
crypto: don't track xor test pages with kmemcheck
The xor tests are run on uninitialized data, because it is doesn't
really matter what the underlying data is. Annotate this false-
positive warning.
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
Diffstat (limited to 'crypto/xor.c')
-rw-r--r-- | crypto/xor.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/xor.c b/crypto/xor.c index 996b6ee5..fc5b836f 100644 --- a/crypto/xor.c +++ b/crypto/xor.c @@ -101,7 +101,12 @@ calibrate_xor_blocks(void) void *b1, *b2; struct xor_block_template *f, *fastest; - b1 = (void *) __get_free_pages(GFP_KERNEL, 2); + /* + * Note: Since the memory is not actually used for _anything_ but to + * test the XOR speed, we don't really want kmemcheck to warn about + * reading uninitialized bytes here. + */ + b1 = (void *) __get_free_pages(GFP_KERNEL | __GFP_NOTRACK, 2); if (!b1) { printk(KERN_WARNING "xor: Yikes! No memory available.\n"); return -ENOMEM; |