1. 21 5月, 2021 1 次提交
  2. 27 4月, 2021 1 次提交
    • X
      async_xor: increase src_offs when dropping destination page · ceaf2966
      Xiao Ni 提交于
      Now we support sharing one page if PAGE_SIZE is not equal stripe size. To
      support this, it needs to support calculating xor value with different
      offsets for each r5dev. One offset array is used to record those offsets.
      
      In RMW mode, parity page is used as a source page. It sets
      ASYNC_TX_XOR_DROP_DST before calculating xor value in ops_run_prexor5.
      So it needs to add src_list and src_offs at the same time. Now it only
      needs src_list. So the xor value which is calculated is wrong. It can
      cause data corruption problem.
      
      I can reproduce this problem 100% on a POWER8 machine. The steps are:
      
        mdadm -CR /dev/md0 -l5 -n3 /dev/sdb1 /dev/sdc1 /dev/sdd1 --size=3G
        mkfs.xfs /dev/md0
        mount /dev/md0 /mnt/test
        mount: /mnt/test: mount(2) system call failed: Structure needs cleaning.
      
      Fixes: 29bcff78 ("md/raid5: add new xor function to support different page offset")
      Cc: stable@vger.kernel.org # v5.10+
      Signed-off-by: NXiao Ni <xni@redhat.com>
      Signed-off-by: NSong Liu <song@kernel.org>
      ceaf2966
  3. 22 4月, 2021 2 次提交
    • R
      crypto: camellia - drop duplicate "depends on CRYPTO" · d17d9227
      Randy Dunlap 提交于
      All 5 CAMELLIA crypto driver Kconfig symbols have a duplicate
      "depends on CRYPTO" line but they are inside an
      "if CRYPTO"/"endif # if CRYPTO" block, so drop the duplicate "depends"
      lines.
      
      These 5 symbols still depend on CRYPTO.
      
      Fixes: 584fffc8 ("[CRYPTO] kconfig: Ordering cleanup")
      Fixes: 0b95ec56 ("crypto: camellia - add assembler implementation for x86_64")
      Fixes: d9b1d2e7 ("crypto: camellia - add AES-NI/AVX/x86_64 assembler implementation of camellia cipher")
      Fixes: f3f935a7 ("crypto: camellia - add AVX2/AES-NI/x86_64 assembler implementation of camellia cipher")
      Fixes: c5aac2df ("sparc64: Add DES driver making use of the new des opcodes.")
      Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
      Cc: Sebastian Siewior <sebastian@breakpoint.cc>
      Cc: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: linux-crypto@vger.kernel.org
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      d17d9227
    • R
      crypto: doc - fix kernel-doc notation in chacha.c and af_alg.c · b2a4411a
      Randy Dunlap 提交于
      Fix function name in chacha.c kernel-doc comment to remove a warning.
      
      Convert af_alg.c to kernel-doc notation to eliminate many kernel-doc
      warnings.
      
      ../lib/crypto/chacha.c:77: warning: expecting prototype for chacha_block(). Prototype was for chacha_block_generic() instead
      chacha.c:104: warning: Excess function parameter 'out' description in 'hchacha_block_generic'
      
      af_alg.c:498: warning: Function parameter or member 'sk' not described in 'af_alg_alloc_tsgl'
      ../crypto/af_alg.c:539: warning: expecting prototype for aead_count_tsgl(). Prototype was for af_alg_count_tsgl() instead
      ../crypto/af_alg.c:596: warning: expecting prototype for aead_pull_tsgl(). Prototype was for af_alg_pull_tsgl() instead
      af_alg.c:663: warning: Function parameter or member 'areq' not described in 'af_alg_free_areq_sgls'
      af_alg.c:700: warning: Function parameter or member 'sk' not described in 'af_alg_wait_for_wmem'
      af_alg.c:700: warning: Function parameter or member 'flags' not described in 'af_alg_wait_for_wmem'
      af_alg.c:731: warning: Function parameter or member 'sk' not described in 'af_alg_wmem_wakeup'
      af_alg.c:757: warning: Function parameter or member 'sk' not described in 'af_alg_wait_for_data'
      af_alg.c:757: warning: Function parameter or member 'flags' not described in 'af_alg_wait_for_data'
      af_alg.c:757: warning: Function parameter or member 'min' not described in 'af_alg_wait_for_data'
      af_alg.c:796: warning: Function parameter or member 'sk' not described in 'af_alg_data_wakeup'
      af_alg.c:832: warning: Function parameter or member 'sock' not described in 'af_alg_sendmsg'
      af_alg.c:832: warning: Function parameter or member 'msg' not described in 'af_alg_sendmsg'
      af_alg.c:832: warning: Function parameter or member 'size' not described in 'af_alg_sendmsg'
      af_alg.c:832: warning: Function parameter or member 'ivsize' not described in 'af_alg_sendmsg'
      af_alg.c:985: warning: Function parameter or member 'sock' not described in 'af_alg_sendpage'
      af_alg.c:985: warning: Function parameter or member 'page' not described in 'af_alg_sendpage'
      af_alg.c:985: warning: Function parameter or member 'offset' not described in 'af_alg_sendpage'
      af_alg.c:985: warning: Function parameter or member 'size' not described in 'af_alg_sendpage'
      af_alg.c:985: warning: Function parameter or member 'flags' not described in 'af_alg_sendpage'
      af_alg.c:1040: warning: Function parameter or member 'areq' not described in 'af_alg_free_resources'
      af_alg.c:1059: warning: Function parameter or member '_req' not described in 'af_alg_async_cb'
      af_alg.c:1059: warning: Function parameter or member 'err' not described in 'af_alg_async_cb'
      af_alg.c:1083: warning: Function parameter or member 'file' not described in 'af_alg_poll'
      af_alg.c:1083: warning: Function parameter or member 'sock' not described in 'af_alg_poll'
      af_alg.c:1083: warning: Function parameter or member 'wait' not described in 'af_alg_poll'
      af_alg.c:1114: warning: Function parameter or member 'sk' not described in 'af_alg_alloc_areq'
      af_alg.c:1114: warning: Function parameter or member 'areqlen' not described in 'af_alg_alloc_areq'
      af_alg.c:1146: warning: Function parameter or member 'sk' not described in 'af_alg_get_rsgl'
      af_alg.c:1146: warning: Function parameter or member 'msg' not described in 'af_alg_get_rsgl'
      af_alg.c:1146: warning: Function parameter or member 'flags' not described in 'af_alg_get_rsgl'
      af_alg.c:1146: warning: Function parameter or member 'areq' not described in 'af_alg_get_rsgl'
      af_alg.c:1146: warning: Function parameter or member 'maxsize' not described in 'af_alg_get_rsgl'
      af_alg.c:1146: warning: Function parameter or member 'outlen' not described in 'af_alg_get_rsgl'
      Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: linux-crypto@vger.kernel.org
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      b2a4411a
  4. 16 4月, 2021 2 次提交
  5. 02 4月, 2021 3 次提交
  6. 26 3月, 2021 9 次提交
  7. 19 3月, 2021 1 次提交
  8. 12 3月, 2021 4 次提交
  9. 08 3月, 2021 1 次提交
  10. 07 3月, 2021 2 次提交
  11. 16 2月, 2021 1 次提交
  12. 10 2月, 2021 11 次提交
  13. 29 1月, 2021 2 次提交