Re: [Qestion] Lots of memory leaks when mounting and unmounting nfs client to server continuously.

2018-11-12 Thread zhong jiang
On 2018/11/8 3:49, Dave Wysochanski wrote: > On Tue, 2018-10-30 at 21:58 +0800, zhong jiang wrote: >> On 2018/10/30 21:06, Benjamin Coddington wrote: >>> Hi zhong jiang, >>> >>> Try asking in linux-nfs.. but I'll also note that 3.10-stable may >>> be missing a number of fixes to leaks in the NFS GS

Re: [RFCv3 PATCH 1/6] uacce: Add documents for WarpDrive/uacce

2018-11-12 Thread Leon Romanovsky
On Mon, Nov 12, 2018 at 03:58:02PM +0800, Kenneth Lee wrote: > From: Kenneth Lee > > WarpDrive is a general accelerator framework for the user application to > access the hardware without going through the kernel in data path. > > The kernel component to provide kernel facility to driver for expos

Re: [PATCH net-next v6 23/23] net: WireGuard secure network tunnel

2018-11-12 Thread Jason A. Donenfeld
On Mon, Nov 12, 2018 at 7:10 PM Dave Taht wrote: > you have a speling error (ECM). :) Thanks. > > side note: > > I have to say that wireguard works really well with ecn and non-ecn marked > flows > against codel and fq_codel on the bottleneck router. Yup! > I'd still rather like it if wiregua

Re: [PATCH net-next v6 23/23] net: WireGuard secure network tunnel

2018-11-12 Thread Dave Taht
On Mon, Nov 12, 2018 at 3:54 PM Jason A. Donenfeld wrote: > > Hey Ivan, > > Sorry for not getting back to you sooner. > > On Mon, Nov 5, 2018 at 8:06 AM Ivan Labáth wrote: > > Any news on this? > > > > To be clear, question is not about an insignificant documentation > > oversight. It is about co

Re: [PATCH net-next v6 23/23] net: WireGuard secure network tunnel

2018-11-12 Thread Jason A. Donenfeld
Hey Ivan, Sorry for not getting back to you sooner. On Mon, Nov 5, 2018 at 8:06 AM Ivan Labáth wrote: > Any news on this? > > To be clear, question is not about an insignificant documentation > oversight. It is about copying bits from inner packets to outer packets The short answer is RFC6040 w

Price Inquiry

2018-11-12 Thread Daniel Murray
Hi,friend, This is Daniel Murray and i am from Sinara Group Co.Ltd Group Co.,LTD in Russia. We are glad to know about your company from the web and we are interested in your products. Could you kindly send us your Latest catalog and price list for our trial order. Best Regards, Daniel Murray

Re: [RFC PATCH v3 10/15] crypto: poly1305 - use structures for key and accumulator

2018-11-12 Thread Eric Biggers
Hi Ard, On Tue, Nov 06, 2018 at 03:28:24PM +0100, Ard Biesheuvel wrote: > On 6 November 2018 at 00:25, Eric Biggers wrote: > > From: Eric Biggers > > > > In preparation for exposing a low-level Poly1305 API which implements > > the ε-almost-∆-universal (εA∆U) hash function underlying the Poly130

Re: [RFC][PATCH 08/12] KEYS: PGP-based public key signature verification

2018-11-12 Thread Roberto Sassu
On 11/12/2018 1:43 PM, David Howells wrote: Roberto Sassu wrote: - switch from session to user keyring (Roberto Sassu) - search user keyring only if no keyring was provided, so that the trustworthiness of the signature depends on the type of keyring containing the key used for signature

Re: [RFC][PATCH 08/12] KEYS: PGP-based public key signature verification

2018-11-12 Thread David Howells
Roberto Sassu wrote: > - switch from session to user keyring (Roberto Sassu) > - search user keyring only if no keyring was provided, so that the > trustworthiness of the signature depends on the type of keyring > containing the key used for signature verification (Roberto Sassu) Er. No. Y

Re: [RFC][PATCH 05/12] PGPLIB: Signature parser

2018-11-12 Thread David Howells
Roberto Sassu wrote: > - pr_devel("datalen=%zu size=%zu", datalen, size); > + pr_devel("datalen=%zu size=%zu\n", datalen, size); This needs rolling back into a previous patch. > + if ((int)size < 0) size > INT_MAX David

Re: [RFC][PATCH 04/12] PGPLIB: Basic packet parser

2018-11-12 Thread David Howells
Roberto Sassu wrote: > + size_t size, datalen = *_datalen; > ... > + if ((int)size < 0) > + goto too_big; Hmmm... "if (size > INT_MAX)" is probably better. David

Re: [PATCH] HID: add driver for U2F Zero built-in LED and RNG

2018-11-12 Thread Jiri Kosina
On Thu, 1 Nov 2018, Andrej Shadura wrote: > Hi everyone, > > I’ve got a comment from Nick Kossifidis that I probably shouldn’t set > RNG’s quality to 1024. Adding linux-crypto@ to the loop. So, what was this about? Is there any resolution to it? :) Thanks. > > On 23/10/2018 16:46, Andrej Shad

[RFC][PATCH 12/12] KEYS: Introduce load_pgp_public_keyring()

2018-11-12 Thread Roberto Sassu
Preload PGP keys from 'pubring.gpg', placed in the kernel source directory. Signed-off-by: Roberto Sassu --- certs/Kconfig | 7 +++ certs/Makefile | 3 +++ certs/system_keyring.c | 25 + 3 files changed, 35 insertions(+) diff --git a/certs/Kconfig

[RFC][PATCH 11/12] KEYS: Provide a function to load keys from a PGP keyring blob

2018-11-12 Thread Roberto Sassu
From: David Howells Provide a function to load keys from a PGP keyring blob for use in initialising the module signing key keyring: int preload_pgp_keys(const u8 *pgpdata, size_t pgpdatalen, struct key *keyring); Descriptions are generated from user ID notes

[RFC][PATCH 10/12] PGP: Provide a key type for testing PGP signatures

2018-11-12 Thread Roberto Sassu
From: David Howells Provide a key type for testing the PGP signature parser. It is given a non-detached PGP message as payload: keyctl padd pgp_test a @s content.txt gpg --compress-algo=none -s content.txt Changelog v0: - use verify_pgp_signature() to verify signatures with bu

[RFC][PATCH 09/12] verification: introduce verify_pgp_signature()

2018-11-12 Thread Roberto Sassu
Introduce verify_pgp_signature() to to verify PGP signatures from data or a digest. One user of this function would be IMA, that can verify the signature of RPM headers when appraisal is enabled. Signed-off-by: Roberto Sassu --- certs/system_keyring.c | 39 +

[RFC][PATCH 08/12] KEYS: PGP-based public key signature verification

2018-11-12 Thread Roberto Sassu
From: David Howells Provide handlers for PGP-based public-key algorithm signature verification. This does most of the work involved in signature verification as most of it is public-key algorithm agnostic. The public-key verification algorithm itself is just the last little bit and is supplied t

[RFC][PATCH 07/12] KEYS: Provide PGP key description autogeneration

2018-11-12 Thread Roberto Sassu
From: David Howells Provide a facility to autogenerate the name of PGP keys from the contents of the payload. If add_key() is given a blank description, a description is constructed from the last user ID packet in the payload data plus the last 8 hex digits of the key ID. For instance:

[RFC][PATCH 05/12] PGPLIB: Signature parser

2018-11-12 Thread Roberto Sassu
From: David Howells Provide some PGP signature parsing helpers: (1) A function to parse V4 signature subpackets and pass the desired ones to a processor function: int pgp_parse_sig_subpkts(const u8 *data, size_t datalen, struct pgp_parse_sig_conte

[RFC][PATCH 06/12] KEYS: PGP data parser

2018-11-12 Thread Roberto Sassu
From: David Howells Implement a PGP data parser for the crypto key type to use when instantiating a key. This parser attempts to parse the instantiation data as a PGP packet sequence (RFC 4880) and if it parses okay, attempts to extract a public-key algorithm key or subkey from it. If it finds

[RFC][PATCH 04/12] PGPLIB: Basic packet parser

2018-11-12 Thread Roberto Sassu
From: David Howells Provide a simple parser that extracts the packets from a PGP packet blob and passes the desirous ones to the given processor function: struct pgp_parse_context { u64 types_of_interest; int (*process_packet)(struct pgp_parse_context *con

[RFC][PATCH 03/12] PGPLIB: PGP definitions (RFC 4880)

2018-11-12 Thread Roberto Sassu
From: David Howells Provide some useful PGP definitions from RFC 4880. These describe details of public key crypto as used by crypto keys for things like signature verification. Changelog: v0: - fix style issues (Roberto Sassu) Signed-off-by: David Howells Co-developed-by: Roberto Sassu ---

[RFC][PATCH 02/12] rsa: add parser of raw format

2018-11-12 Thread Roberto Sassu
Parse the RSA key with RAW format if the ASN.1 parser returns an error. Signed-off-by: Roberto Sassu --- crypto/rsa.c | 14 +-- crypto/rsa_helper.c | 69 +++ include/crypto/internal/rsa.h | 6 +++ 3 files changed, 85 insertions(+),

[RFC][PATCH 01/12] mpi: introduce mpi_key_length()

2018-11-12 Thread Roberto Sassu
Introduce the new function to get the number of bits and bytes from an MPI. Signed-off-by: Roberto Sassu --- include/linux/mpi.h | 2 ++ lib/mpi/mpicoder.c | 33 ++--- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/include/linux/mpi.h b/include/linu

[RFC][PATCH 00/12] keys: add support for PGP keys and signatures

2018-11-12 Thread Roberto Sassu
This patch set is based on kernel/git/dhowells/linux-modsign.git (branch: pgp-parser) at git.kernel.org. The goal of this patch set is to add support for PGP keys and signatures, so that it will be possible to verify RPM header signatures (included in RPM-based Linux distributions) when IMA Apprai

Inquiry 12/11/2018

2018-11-12 Thread sinara-group
Hi,friend, This is Daniel Murray and i am from Sinara Group Co.Ltd Group Co.,LTD in Russia. We are glad to know about your company from the web and we are interested in your products. Could you kindly send us your Latest catalog and price list for our trial order. Best Regards, Daniel Murray

Re: Something wrong with cryptodev-2.6 tree?

2018-11-12 Thread Herbert Xu
On Mon, Nov 12, 2018 at 09:44:41AM +0200, Gilad Ben-Yossef wrote: > Hi, > > It seems that the cryptodev-2.6 tree at > https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git > has somehow rolled back 3 months ago. > > Not sure if it's a git.kernel.org issue or something else but

[RFCv3 PATCH 6/6] uacce: add user sample for uacce/warpdrive

2018-11-12 Thread Kenneth Lee
From: Kenneth Lee This is the sample code to demostrate how WarpDrive user application should be. (Uacce is the kernel component for WarpDrive.) It contains: 1. wd.[ch]: the common library to provide WrapDrive interface. 2. wd_adaptor.[ch]: the adaptor for wd to call different user drivers 3. d

[RFCv3 PATCH 5/6] crypto: add uacce support to Hisilicon qm

2018-11-12 Thread Kenneth Lee
From: Kenneth Lee This patch add uacce support to the Hislicon QM driver, any accelerator that use QM can share its queues to the user space. Signed-off-by: Kenneth Lee Signed-off-by: Zhou Wang Signed-off-by: Hao Fang Signed-off-by: Zaibo Xu --- drivers/crypto/hisilicon/Kconfig| 7

[RFCv3 PATCH 3/6] crypto/hisilicon: add hisilicon Queue Manager driver

2018-11-12 Thread Kenneth Lee
From: Kenneth Lee Hisilicon QM is a general IP used by some Hisilicon accelerators. It provides a general PCIE device interface for the CPU and the accelerator to share a group of queues. QM is implemented as an End Point of the virtual PCI-E bus in Hisilicon SoC. It is actually a interface wrap

[RFCv3 PATCH 4/6] crypto/hisilicon: add Hisilicon zip driver

2018-11-12 Thread Kenneth Lee
From: Kenneth Lee The Hisilicon ZIP accelerator implements the zlib and gzip algorithm. It uses Hisilicon QM as the interface to the CPU. This patch provides PCIE driver to the accelerator and register it to the crypto subsystem. Signed-off-by: Kenneth Lee Signed-off-by: Zhou Wang Signed-off-

[RFCv3 PATCH 2/6] uacce: add uacce module

2018-11-12 Thread Kenneth Lee
From: Kenneth Lee Uacce is the kernel component to support WarpDrive accelerator framework. It provides register/unregister interface for device drivers to expose their hardware resource to the user space. The resource is taken as "queue" in WarpDrive. Uacce create a chrdev for every registratio

[RFCv3 PATCH 1/6] uacce: Add documents for WarpDrive/uacce

2018-11-12 Thread Kenneth Lee
From: Kenneth Lee WarpDrive is a general accelerator framework for the user application to access the hardware without going through the kernel in data path. The kernel component to provide kernel facility to driver for expose the user interface is called uacce. It a short name for "Unified/User