Re: [PATCH v3 00/14] KEYS: Add support for PGP keys and signatures

2024-09-15 Thread Herbert Xu
On Sun, Sep 15, 2024 at 05:15:25PM +0800, Herbert Xu wrote: > > Roberto, correct me if I'm wrong but your intended use case is > the following patch series, right? Actually the meat of the changes is in the following series: https://lore.kernel.org/linux-integrity/2024090515

Re: [PATCH v3 00/14] KEYS: Add support for PGP keys and signatures

2024-09-15 Thread Herbert Xu
erto, correct me if I'm wrong but your intended use case is the following patch series, right? https://lore.kernel.org/linux-integrity/20240905152512.3781098-1-roberto.sa...@huaweicloud.com/ Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://

Re: [PATCH v3 00/14] KEYS: Add support for PGP keys and signatures

2024-09-15 Thread Herbert Xu
e-case is bogus, then distro package verification is going to be the only application for PGP keys in the kernel. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH v3 00/14] KEYS: Add support for PGP keys and signatures

2024-09-13 Thread Herbert Xu
of guarantees. Where is this discussion? I clicked through the two links above and everyone seems to agree that putting it in user-space is a good idea. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH v3 00/14] KEYS: Add support for PGP keys and signatures

2024-09-12 Thread Herbert Xu
ing. If we really wanted to we could extend the user-space verification to modules too and perhaps kick all public key crypto out of the kernel. The complexity and lack of reviewer attention in this area means that we're more likely to introduce security holes into the kernel with such cod

Re: [PATCH] virtio-crypto: support crypto engine framework

2024-09-06 Thread Herbert Xu
xposed outside of the kernel. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH][next] crypto: nx - Use static_assert() to check struct sizes

2024-08-17 Thread Herbert Xu
drivers/crypto/nx/nx-842.h | 3 +++ > 1 file changed, 3 insertions(+) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH][next] crypto: qat - Use static_assert() to check struct sizes

2024-08-17 Thread Herbert Xu
drivers/crypto/intel/qat/qat_common/qat_bl.h | 2 ++ > 1 file changed, 2 insertions(+) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH v2] crypto: chacha20poly1305 - Annotate struct chachapoly_ctx with __counted_by()

2024-08-17 Thread Herbert Xu
insertion(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: arm/crc32 - add kCFI annotations to asm routines

2024-06-21 Thread Herbert Xu
kCFI is enabled. > > Cc: Kees Cook > Cc: Linus Walleij > Signed-off-by: Ard Biesheuvel > --- > arch/arm/crypto/crc32-ce-core.S | 17 + > 1 file changed, 9 insertions(+), 8 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.

Re: [PATCH v7 4/5] keys: asymmetric: Add tpm2_key_rsa

2024-06-07 Thread Herbert Xu
>hash_algo) { > + asn1 = rsa_lookup_asn1(params->hash_algo); Could you please explain why this can't be done through pkcs1pad instead of going to raw RSA? Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

[PATCH] crypto: sm2 - Remove sm2 algorithm

2024-05-31 Thread Herbert Xu
emove this algorithm. It can be resubmitted when it is integrated properly into the asymmetric_keys subsystem. Signed-off-by: Herbert Xu --- crypto/Kconfig| 18 - crypto/Makefile | 8 - crypto/asymmetric_keys/pkcs7_parser.c | 4 - c

Re: [v3 PATCH] hwrng: core - Remove add_early_randomness

2024-05-23 Thread Herbert Xu
ernel thread doing the same thing, but moreover random.c itself has been modified so that it is no longer starved of entropy on startup. There is no reason to feed any early randomness. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [v3 PATCH] hwrng: core - Remove add_early_randomness

2024-05-22 Thread Herbert Xu
On Wed, May 22, 2024 at 02:51:36PM +0300, Jarkko Sakkinen wrote: > > What is the kthread doing this currently? It's hwrng_fillfn. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [v3 PATCH] hwrng: core - Remove add_early_randomness

2024-05-22 Thread Herbert Xu
compared to when the patch was first applied. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

[v3 PATCH] hwrng: core - Remove add_early_randomness

2024-05-21 Thread Herbert Xu
gers Fixes: 1b6d7f9eb150 ("tpm: add session encryption protection to tpm2_get_random()") Link: https://lore.kernel.org/r/119dc5ed-f159-41be-9dda-1a056f29888d@notapiano/ Signed-off-by: Herbert Xu diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c index f5c71a617a99

[v2 PATCH] crypto: api - Do not load modules if called by async probing

2024-05-20 Thread Herbert Xu
as F. R. A. Prado Reported-by: Eric Biggers Signed-off-by: Herbert Xu --- crypto/api.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crypto/api.c b/crypto/api.c index 22556907b3bc..7c4b9f86c1ad 100644 --- a/crypto/api.c +++ b/crypto/api.c @@ -10,6 +10,7 @@ *

Re: [PATCH] crypto: api - Do not load modules until algapi is ready

2024-05-18 Thread Herbert Xu
requires instantiation (anything with "()" in its name). Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: api - Do not load modules until algapi is ready

2024-05-18 Thread Herbert Xu
no point and it may deadlock) until such a point where all/most drivers have finished loading. So if the algorithm is missing (which shouldn't happen because of Kconfig selects), then it will simply fail. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/

Re: [PATCH v8 18/22] tpm: add session encryption protection to tpm2_get_random()

2024-05-18 Thread Herbert Xu
and all the required algorithms. You can verify this with the failing .config file as it has everything needed built into the kernel (which is in fact where the problem is). Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

[PATCH] crypto: api - Do not load modules until algapi is ready

2024-05-18 Thread Herbert Xu
re that it doesn't load modules if this is the case by checking crypto_boot_test_finished(). Add a call to wait_for_device_probe so that the drivers that may call into the Crypto API have finished probing. Reported-by: NĂ­colas F. R. A. Prado" Reported-by: Eric Biggers Signed-off-by: Herbert Xu

Re: [PATCH v2] crypto: rsa-pkcs1pad: export rsa1_asn_lookup()

2024-05-15 Thread Herbert Xu
uct. > --- > crypto/rsa-pkcs1pad.c | 16 ++-- > include/crypto/rsa-pkcs1pad.h | 20 > 2 files changed, 30 insertions(+), 6 deletions(-) > create mode 100644 include/crypto/rsa-pkcs1pad.h Please provide a link to the patch that will make use of this. Thank

Re: [PATCH v8 6/6] docs: trusted-encrypted: add DCP as new trust source

2024-04-11 Thread Herbert Xu
On Wed, Apr 03, 2024 at 06:47:51PM +0300, Jarkko Sakkinen wrote: > > Reviewed-by: Jarkko Sakkinen > > I can only test that this does not break a machine without the > hardware feature. Please feel free to take this through your tree. Thanks, -- Email: Herbert Xu

Re: [PATCH][next] crypto: qat - Avoid -Wflex-array-member-not-at-end warnings

2024-04-05 Thread Herbert Xu
ot at the end of another structure > [-Wflex-array-member-not-at-end] > > Link: https://github.com/KSPP/linux/issues/202 > Signed-off-by: Gustavo A. R. Silva > --- > drivers/crypto/intel/qat/qat_common/qat_bl.c | 6 -- > drivers/crypto/intel/qat/qat_common/qat_bl.h | 11 +

Re: [PATCH 1/2] dt-bindings: crypto: ice: Document sc7280 inline crypto engine

2024-03-28 Thread Herbert Xu
1 insertion(+) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH][next] crypto/nx: Avoid -Wflex-array-member-not-at-end warning

2024-03-28 Thread Herbert Xu
^~ > > Signed-off-by: Gustavo A. R. Silva > --- > drivers/crypto/nx/nx-842.c | 6 -- > drivers/crypto/nx/nx-842.h | 10 ++ > 2 files changed, 10 insertions(+), 6 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: virtio/akcipher - Fix stack overflow on memcpy

2024-02-08 Thread Herbert Xu
rtio-crypto: implement RSA algorithm") > Link: > https://lore.kernel.org/all/0a194a79-e3a3-45e7-be98-83abd3e1c...@roeck-us.net/ > Signed-off-by: zhenwei pi > --- > drivers/crypto/virtio/virtio_crypto_akcipher_algs.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Patch

Re: [PATCH] crypto: sun8i-ce - Use kcalloc() instead of kzalloc()

2024-01-26 Thread Herbert Xu
> Signed-off-by: Erick Archer > --- > drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: qat - use kcalloc_node() instead of kzalloc_node()

2024-01-26 Thread Herbert Xu
ues/162 > Signed-off-by: Erick Archer > --- > drivers/crypto/intel/qat/qat_common/adf_isr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH 1/2] dt-bindings: qcom-qce: Add compatible for SM6350

2024-01-26 Thread Herbert Xu
Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH v2] crypto: virtio - Less function calls in __virtio_crypto_akcipher_do_req() after error detection

2024-01-26 Thread Herbert Xu
v2: > A typo was fixed for the delimiter of a label. > > drivers/crypto/virtio/virtio_crypto_akcipher_algs.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH 1/2] crypto: virtio-crypto: Wait for tasklet to complete on device remove

2023-12-21 Thread Herbert Xu
f-by: Gonglei > --- > drivers/crypto/virtio/virtio_crypto_core.c | 3 +++ > 1 file changed, 3 insertions(+) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH 2/2] crypto: virtio-crypto: Fix gcc check warnings

2023-12-21 Thread Herbert Xu
ta) #endif extern const struct seq_operations cpuinfo_op; Please send this patch to the x86 people. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH v2] crypto: virtio-crypto: Handle dataq logic with tasklet

2023-12-07 Thread Herbert Xu
drivers/crypto/virtio/virtio_crypto_core.c | 26 -- > 2 files changed, 18 insertions(+), 10 deletions(-) Your patch has already been merged. So please send this as an incremental patch. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH][next] powerpc/crypto: Avoid -Wstringop-overflow warnings

2023-12-01 Thread Herbert Xu
pe; and just for consistency, do the same for parameter `Xi`. > > Reported-by: Stephen Rothwell > Closes: > https://lore.kernel.org/linux-next/20231121131903.68a37...@canb.auug.org.au/ > Signed-off-by: Gustavo A. R. Silva > --- > arch/powerpc/crypto/aes-gcm-p10-glue.c

Re: [PATCH] crypto: virtio-crypto: Handle dataq logic with tasklet

2023-12-01 Thread Herbert Xu
eletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH v4 1/5] crypto: mxs-dcp: Add support for hardware-bound keys

2023-11-17 Thread Herbert Xu
--- > include/soc/fsl/dcp.h| 17 +++ > 2 files changed, 110 insertions(+), 11 deletions(-) > create mode 100644 include/soc/fsl/dcp.h Acked-by: Herbert Xu -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] treewide: Add SPDX identifier to IETF ASN.1 modules

2023-10-27 Thread Herbert Xu
> crypto/rsapubkey.asn1| 7 +++ > fs/smb/server/ksmbd_spnego_negtokeninit.asn1 | 8 > fs/smb/server/ksmbd_spnego_negtokentarg.asn1 | 7 +++++++ > net/ipv4/netfilter/nf_nat_snmp_basic.asn1| 8 > 9 files changed, 62 insertions(+) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: Limit MODULE_SIG_KEY_TYPE_ECDSA to SHA384 or SHA512

2023-10-19 Thread Herbert Xu
384 curve is used, force using either SHA384 or SHA512. > > Signed-off-by: Dimitri John Ledkov > --- > certs/Kconfig | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key:

Re: [PATCH] crypto: Limit MODULE_SIG_KEY_TYPE_ECDSA to SHA384 or SHA512

2023-10-19 Thread Herbert Xu
384 curve is used, force using either SHA384 or SHA512. > > Signed-off-by: Dimitri John Ledkov > --- > certs/Kconfig | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key:

Re: [PATCH] module: Do not offer sha224 for built-in module signing

2023-10-19 Thread Herbert Xu
gt; sha224 being introduced. > > Signed-off-by: Dimitri John Ledkov > --- > kernel/module/Kconfig | 5 - > 1 file changed, 5 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: pkcs7: remove sha1 support

2023-10-19 Thread Herbert Xu
ic_keys/signature.c| 2 +- > crypto/asymmetric_keys/x509_cert_parser.c | 8 --- > crypto/testmgr.h | 80 --- > include/linux/oid_registry.h | 4 -- > kernel/module/Kconfig | 5 -- > 8 files changed, 2

Re: [PATCH] crypto: qat: Annotate struct adf_fw_counters with __counted_by

2023-10-01 Thread Herbert Xu
; (for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family > functions). > > As found with Coccinelle[1], add __counted_by for struct adf_fw_counters. > > [1] > https://github.com/kees/kernel-tools/blob/trunk/coccinelle/examples/counted_by.cocci > > Cc

Re: [PATCH] crypto: qat - refactor deprecated strncpy

2023-09-19 Thread Herbert Xu
; drivers/crypto/intel/qat/qat_common/qat_uclo.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: cavium/nitrox - refactor deprecated strncpy

2023-09-19 Thread Herbert Xu
off-by: Justin Stitt > --- > Note: build-tested only. > --- > drivers/crypto/cavium/nitrox/nitrox_hal.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH v3] crypto: hisilicon/hpre - delete redundant log and return in advance

2021-04-16 Thread Herbert Xu
> --- > drivers/crypto/hisilicon/hpre/hpre_main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: crc32-generic - Use SPDX-License-Identifier

2021-04-16 Thread Herbert Xu
T > --- > crypto/crc32_generic.c | 24 +--- > 1 file changed, 1 insertion(+), 23 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: arm/curve25519 - Move '.fpu' after '.arch'

2021-04-16 Thread Herbert Xu
g > Fixes: d8f1308a025f ("crypto: arm/curve25519 - wire up NEON implementation") > Link: https://github.com/ClangBuiltLinux/continuous-integration2/issues/118 > Reported-by: Arnd Bergmann > Suggested-by: Arnd Bergmann > Suggested-by: Jessica Clarke > Signed-off-b

Re: [PATCH 0/3] crypto: hisilicon/hpre - add debug log

2021-04-16 Thread Herbert Xu
silicon/hpre - add debug log > > drivers/crypto/hisilicon/hpre/hpre_crypto.c | 11 +-- > drivers/crypto/hisilicon/hpre/hpre_main.c | 4 ++-- > 2 files changed, 11 insertions(+), 4 deletions(-) All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.

Re: [PATCH] crypto: qat - enable detection of accelerators hang

2021-04-16 Thread Herbert Xu
c | 40 +++ > .../crypto/qat/qat_common/adf_gen4_hw_data.h | 14 ++- > drivers/crypto/qat/qat_common/adf_init.c | 4 ++ > 9 files changed, 99 insertions(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH v3 0/5] bug fix and clear coding style

2021-04-16 Thread Herbert Xu
le changed, 31 insertions(+), 6 deletions(-) All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH 0/2] crypto: correct the use of print format

2021-04-16 Thread Herbert Xu
3 files changed, 6 insertions(+), 6 deletions(-) All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH -next 1/7] crypto: sun4i-ss - Fix PM reference leak when pm_runtime_get_sync() fails

2021-04-16 Thread Herbert Xu
.c | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: cavium - remove unused including

2021-04-16 Thread Herbert Xu
On Thu, Apr 08, 2021 at 11:21:51AM +0800, Tian Tao wrote: > Remove including that don't need it. > > Signed-off-by: Tian Tao > Signed-off-by: Zhiqi Song > --- > drivers/crypto/cavium/zip/common.h | 1 - > 1 file changed, 1 deletion(-) Patch applied. Thanks. -- Em

Re: [PATCH -next 0/5] Remove redundant dev_err call

2021-04-16 Thread Herbert Xu
re.c | 1 - > 7 files changed, 3 insertions(+), 15 deletions(-) All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: hisilicon/trng - add version to adapt new algorithm

2021-04-16 Thread Herbert Xu
off-by: Weili Qian > --- > drivers/crypto/hisilicon/trng/trng.c | 13 ++--- > 1 file changed, 10 insertions(+), 3 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: arm64/aes-ce - deal with oversight in new CTR carry code

2021-04-16 Thread Herbert Xu
| 1 + > 1 file changed, 1 insertion(+) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: hisilicon/qm - add stop queue by hardware

2021-04-16 Thread Herbert Xu
ypto/hisilicon/qm.c | 29 - > 1 file changed, 28 insertions(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH -next] crypto: ixp4xx -: use DEFINE_SPINLOCK() for spinlock

2021-04-16 Thread Herbert Xu
t; --- > drivers/crypto/ixp4xx_crypto.c | 7 ++- > 1 file changed, 2 insertions(+), 5 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH -next] crypto: geode -: use DEFINE_SPINLOCK() for spinlock

2021-04-16 Thread Herbert Xu
> drivers/crypto/geode-aes.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH v2] ecc: delete a useless function declaration

2021-04-16 Thread Herbert Xu
> v1 -> v2: Modify the 'Fixes tag' from '14bb76768275' to '4e6602916bc6 '. > > --- > crypto/ecc.h | 8 ---- > 1 file changed, 8 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: hisilicon/hpre - fix unmapping invalid dma address

2021-04-16 Thread Herbert Xu
-by: Hui Tang > --- > drivers/crypto/hisilicon/hpre/hpre_crypto.c | 18 ++ > 1 file changed, 18 insertions(+) This triggers new sparse warnings. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH v2 0/8] ccp: KVM: SVM: Use stack for SEV command buffers

2021-04-15 Thread Herbert Xu
Herbert. I don't mind at all. Paolo you can take this through your tree. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: qat: Fix a double free in adf_create_ring

2021-04-09 Thread Herbert Xu
on/adf_transport.c | 1 + > 1 file changed, 1 insertion(+) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH crypto] chcr: Read rxchannel-id from firmware

2021-04-09 Thread Herbert Xu
("crypto: chelsio - Use multiple txq/rxq per tfm to > process the requests) > Signed-off-by: Ayush Sawal > --- > drivers/crypto/chelsio/chcr_algo.c | 19 +-- > 1 file changed, 17 insertions(+), 2 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu

Re: [PATCH v2] crypto: hisilicon/qm - delete redundant code

2021-04-09 Thread Herbert Xu
v1 -> v2: > Re-edit the description. > > drivers/crypto/hisilicon/qm.c | 1 - > 1 file changed, 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto:hisilicon/sec - fixup checking the 3DES weak key

2021-04-09 Thread Herbert Xu
ons(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH][V2] crypto: sa2ul: Fix memory leak of rxd

2021-04-09 Thread Herbert Xu
o: sa2ul - Fix DMA mapping API usage") > Signed-off-by: Colin Ian King > --- > > V2: Fix typo in $SUBJECT > > --- > drivers/crypto/sa2ul.c | 8 ++-- > 1 file changed, 6 insertions(+), 2 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://

Re: [PATCH][next] crypto: sun8i-ss: Fix memory leak of pad

2021-04-09 Thread Herbert Xu
uot;crypto: sun8i-ss - support hash algorithms") > Signed-off-by: Colin Ian King > --- > drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c | 7 --- > 1 file changed, 4 insertions(+), 3 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apan

Re: [PATCH] crypto: rockchip/rk3288_crypto_ahash - delete unneeded variable initialization

2021-04-09 Thread Herbert Xu
On Thu, Apr 01, 2021 at 11:01:39AM +0800, Kai Ye wrote: > Delete unneeded variable initialization > > Signed-off-by: Kai Ye > --- > drivers/crypto/rockchip/rk3288_crypto_ahash.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Patch applied. Thanks. -- Email: Her

Re: [PATCH -next] crypto: ccp - Use DEFINE_SPINLOCK() for spinlock

2021-04-09 Thread Herbert Xu
o-main.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH -next] crypto: hisilicon/hpre - fix a typo in hpre_crypto.c

2021-04-09 Thread Herbert Xu
letion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: ccp -A value assigned to a variable is never used.

2021-04-09 Thread Herbert Xu
d-off-by: Jiapeng Chong > --- > drivers/crypto/ccp/ccp-ops.c | 1 - > 1 file changed, 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH v2] crypto: hisilicon/sec - Fix a module parameter error

2021-04-09 Thread Herbert Xu
need to register the kernel mode algorithms. > > Signed-off-by: Longfang Liu > --- > > Changes in V2: > - Add algorithms unregistration processing > > drivers/crypto/hisilicon/sec2/sec_main.c | 17 - > 1 file changed, 12 insertions(+), 5 deletions(-) Pa

Re: crypto: possible NULL reference

2021-04-09 Thread Herbert Xu
ers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: allwinner: add missing CRYPTO_ prefix

2021-04-09 Thread Herbert Xu
ms") > Signed-off-by: Corentin Labbe > --- > drivers/crypto/allwinner/Kconfig | 14 +++--- > 1 file changed, 7 insertions(+), 7 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH v2 5/5] crypto: hisilicon/sgl - fix the sg buf unmap

2021-04-09 Thread Herbert Xu
[i].page_ctrl = NULL; > + hw_sge[i].buf = 0; > + hw_sge[i].len = 0; > + } > +} This causes a new sparse warning: CHECK ../drivers/crypto/hisilicon/sgl.c ../drivers/crypto/hisilicon/sgl.c:200:31: warning: restricted __le16 degrades to integer Please

Re: [PATCH] crypto: chelsio: fix incorrect kernel-doc comment syntax in file

2021-04-09 Thread Herbert Xu
rs/crypto/chelsio/chcr_core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) This patch doesn't apply against cryptodev. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH v2] crypto: hisilicon/hpre - delete redundant log

2021-04-09 Thread Herbert Xu
that the patch is in fact changing behaviour. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: cbc - fix coding style

2021-04-09 Thread Herbert Xu
r to improve the code. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: api - fix coding style

2021-04-09 Thread Herbert Xu
--- > crypto/api.c | 20 > 1 file changed, 12 insertions(+), 8 deletions(-) Please don't mix unrelated changes in a single patch. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: deflate - Remove useless call "zlib_inflateEnd"

2021-04-09 Thread Herbert Xu
off-by: Jiapeng Chong > --- > crypto/deflate.c | 1 - > 1 file changed, 1 deletion(-) The function might not do anything today but the documentation clearly indicates that it could free any dynamically allocated data so it should stay. Cheers, -- Email: Herbert Xu Home Page: htt

Re: [PATCH] crypto: hisilicon/hpre - rsa key should not be empty

2021-04-02 Thread Herbert Xu
d for this patch for now. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: hisilicon/sec - Fixes AES algorithm mode parameter problem

2021-04-02 Thread Herbert Xu
y: Longfang Liu > --- > drivers/crypto/hisilicon/sec2/sec_crypto.c | 37 > ++ > 1 file changed, 32 insertions(+), 5 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: hisilicon/hpre - Add processing of src_data in 'CURVE25519'

2021-04-02 Thread Herbert Xu
reduced modulo the field prime' > So we get its modulus to p, and then deal it with HPRE. > > Signed-off-by: Meng Yu > --- > drivers/crypto/hisilicon/hpre/hpre_crypto.c | 22 ++ > 1 file changed, 18 insertions(+), 4 deletions(-) Patch applied. Thanks.

Re: [PATCH] crypto: hisilicon - delete redundant '\n'

2021-04-02 Thread Herbert Xu
les changed, 3 insertions(+), 3 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: hisilicon/hpre - fix a typo and delete redundant blank line

2021-04-02 Thread Herbert Xu
On Sat, Mar 27, 2021 at 04:32:08PM +0800, Hui Tang wrote: > s/shoul/should/ > > Signed-off-by: Hui Tang > --- > drivers/crypto/hisilicon/hpre/hpre_main.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Patch applied. Thanks. -- Email: Herbert X

Re: [PATCH] crypto: hisilicon/hpre - fix PASID setting on kunpeng 920

2021-04-02 Thread Herbert Xu
ions(+), 25 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: poly1305: fix poly1305_core_setkey() declaration

2021-04-02 Thread Herbert Xu
gt; lib/crypto/poly1305-donna64.c | 3 ++- > lib/crypto/poly1305.c | 3 ++- > 9 files changed, 18 insertions(+), 12 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH v2 0/4] crypto: hisilicon/zip - support new 'sqe' type in Kunpeng930

2021-04-02 Thread Herbert Xu
ivers/crypto/hisilicon/zip/zip.h| 46 +- > drivers/crypto/hisilicon/zip/zip_crypto.c | 706 > +- > 2 files changed, 438 insertions(+), 314 deletions(-) All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: fcrypt: Remove 'do while(0)' loop for single statement macro

2021-04-02 Thread Herbert Xu
file changed, 1 insertion(+), 4 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: keywrap: Remove else after break statement

2021-04-02 Thread Herbert Xu
2 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: hisilicon - use the correct HiSilicon copyright

2021-04-02 Thread Herbert Xu
| 6 +++--- > drivers/crypto/hisilicon/sec/sec_drv.h | 2 +- > 3 files changed, 5 insertions(+), 5 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: qat - fix error path in adf_isr_resource_alloc()

2021-04-02 Thread Herbert Xu
ntel(R) QAT DH895xcc accelerator") > Signed-off-by: Giovanni Cabiddu > Reviewed-by: Marco Chiappero > --- > drivers/crypto/qat/qat_common/adf_isr.c | 29 ++--- > 1 file changed, 21 insertions(+), 8 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home P

Re: [PATCH] hwrng: omap - Use of_device_get_match_data() helper

2021-04-02 Thread Herbert Xu
h applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH RESEND] random: remove dead code left over from blocking pool

2021-04-02 Thread Herbert Xu
o > Reviewed-by: Andy Lutomirski > Acked-by: Ard Biesheuvel > Signed-off-by: Eric Biggers > --- > drivers/char/random.c | 17 ++- > include/trace/events/random.h | 83 --- > 2 files changed, 3 insertions(+), 97 deletions(-)

Re: [PATCH RESEND] random: initialize ChaCha20 constants with correct endianness

2021-04-02 Thread Herbert Xu
> ChaCha20 anymore. Fix it to always use the standard constants. > > Cc: linux-crypto@vger.kernel.org > Cc: Andy Lutomirski > Cc: Jann Horn > Cc: Theodore Ts'o > Acked-by: Herbert Xu > Acked-by: Ard Biesheuvel > Signed-off-by: Eric Biggers > --- >

Re: [PATCH] crypto: rng - fix crypto_rng_reset() refcounting when !CRYPTO_STATS

2021-04-02 Thread Herbert Xu
gned-off-by: Eric Biggers > --- > crypto/rng.c | 10 +++--- > 1 file changed, 3 insertions(+), 7 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [PATCH] crypto: hisilicon/hpre - delete redundant log

2021-04-02 Thread Herbert Xu
err(dev, "acpi_evaluate_dsm err.\n"); > - > + hpre_cfg_by_dsm(qm); > disable_flr_of_bme(qm); > } If the return value is non-zero you've just changed what this code does from returning non-zero to returning zero. Are you sure about this? Thanks, --

Re: [PATCH] crypto: hisilicon/hpre - rsa key should not be empty

2021-04-02 Thread Herbert Xu
bug? Wouldn't the soft fallback setkey catch this anyhow? Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

  1   2   3   4   5   6   7   8   9   10   >