Re: getrandom waits for a long time when /dev/random is insufficiently read from

2016-07-28 Thread Stephan Mueller
Am Donnerstag, 28. Juli 2016, 18:07:32 CEST schrieb Alex Xu: Hi Alex, > Linux 4.6, also tried 4.7, qemu 2.6, using this C program: I am not sure what problem you are referring to, but that is an expected behavior. You get partial reads when reading from /dev/random with a minimum of 64 bits.

Re: [PATCH 2/8] KEYS: Provide keyctls to drive the new key type ops for asymmetric keys [ver #2]

2016-07-28 Thread Mat Martineau
On Thu, 23 Jun 2016, David Howells wrote: diff --git a/include/uapi/linux/keyctl.h b/include/uapi/linux/keyctl.h index 8ac2c5fbc8fc..93ebd25b1427 100644 --- a/include/uapi/linux/keyctl.h +++ b/include/uapi/linux/keyctl.h @@ -60,6 +60,11 @@ #define KEYCTL_INVALIDATE 21 /* inva

getrandom waits for a long time when /dev/random is insufficiently read from

2016-07-28 Thread Alex Xu
Linux 4.6, also tried 4.7, qemu 2.6, using this C program: #include #include #include #include int main(int argc, char *argv[]) { char buf[16]; int fd; if (argc != 2) return 1; for (int i = 0; i < atoi(argv[1]); i++) { sleep(1); if ((fd = open("/dev/

[GIT PULL] /dev/random driver fix for 4.8

2016-07-28 Thread Theodore Ts'o
The following changes since commit 86a574de4590ffe6fd3f3ca34cdcf655a78e36ec: random: strengthen input validation for RNDADDTOENTCNT (2016-07-03 17:09:33 -0400) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tytso/random.git tags/random_for_linus_stabl

Re: [PATCH] crypto: marvell: Don't copy IV vectors from the _process op for ciphers

2016-07-28 Thread Boris Brezillon
On Thu, 28 Jul 2016 11:59:43 +0200 Romain Perier wrote: > The IV output vectors should only be copied from the _complete operation > and not from the _process operation, i.e only from the operation that is > designed to copy the result of the request to the right location. This > copy is already

[PATCH] crypto: marvell: Don't copy IV vectors from the _process op for ciphers

2016-07-28 Thread Romain Perier
The IV output vectors should only be copied from the _complete operation and not from the _process operation, i.e only from the operation that is designed to copy the result of the request to the right location. This copy is already done in the _complete operation, so this commit removes the duplic

Re: lib/mpi: BUG: sleeping function called from invalid context on next-20160726

2016-07-28 Thread Nicolai Stange
Herbert Xu writes: > On Wed, Jul 27, 2016 at 11:05:05PM +0200, Nicolai Stange wrote: >> >> with linux-next-20160726, I get this: >> >> BUG: sleeping function called from invalid context at >> /mnt/scratch/nic/linux-next/mm/slab.h:388 > > Does this patch help? Yes, works like a charm now! >