Revision 6af10a33c501b0b5878476501143c2cfbbfd63a2 authored by Yufen Yu on 20 August 2020, 13:22:05 UTC, committed by Song Liu on 28 August 2020, 05:41:03 UTC
Commit 3b5408b98e4d ("md/raid5: support config stripe_size by sysfs entry") make stripe_size as a configurable value. It just requires stripe_size as multiple of 4KB. In fact, we should make sure stripe_size as power of two. Otherwise, stripe_shift which is the result of ilog2 can not represent the real stripe_size. Then, stripe_hash() and stripe_hash_locks_hash() may get unexpected value. Fixes: 3b5408b98e4d ("md/raid5: support config stripe_size by sysfs entry") Signed-off-by: Yufen Yu <yuyufen@huawei.com> Signed-off-by: Song Liu <songliubraving@fb.com>
1 parent 79e5dc5
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 4.4 KB |
Makefile | -rw-r--r-- | 1.5 KB |
aes.c | -rw-r--r-- | 12.2 KB |
arc4.c | -rw-r--r-- | 1.1 KB |
blake2s-generic.c | -rw-r--r-- | 2.9 KB |
blake2s-selftest.c | -rw-r--r-- | 31.1 KB |
blake2s.c | -rw-r--r-- | 3.6 KB |
chacha.c | -rw-r--r-- | 3.7 KB |
chacha20poly1305-selftest.c | -rw-r--r-- | 393.3 KB |
chacha20poly1305.c | -rw-r--r-- | 9.8 KB |
curve25519-fiat32.c | -rw-r--r-- | 29.5 KB |
curve25519-generic.c | -rw-r--r-- | 855 bytes |
curve25519-hacl64.c | -rw-r--r-- | 17.4 KB |
curve25519-selftest.c | -rw-r--r-- | 59.6 KB |
curve25519.c | -rw-r--r-- | 897 bytes |
des.c | -rw-r--r-- | 32.9 KB |
libchacha.c | -rw-r--r-- | 896 bytes |
poly1305-donna32.c | -rw-r--r-- | 4.7 KB |
poly1305-donna64.c | -rw-r--r-- | 3.8 KB |
poly1305.c | -rw-r--r-- | 2.0 KB |
sha256.c | -rw-r--r-- | 10.4 KB |
Computing file changes ...