Re: Crypto Fixes for 4.18

2018-07-09 Thread Linus Torvalds
On Mon, Jul 9, 2018 at 2:47 AM Ondrej Mosnáček wrote: > > In conclusion, the bug remained undiscovered not because of lack of > testing, but because by sheer luck it was "working" anyway... Thanks for checking this out. That makes me a lot happier about this whole thing. Linus

Re: [PATCH v4 6/6] crypto: qcom: Add ACPI support

2018-07-09 Thread Jeffrey Hugo
On 7/9/2018 12:01 AM, Vinod wrote: On 07-07-18, 13:05, Timur Tabi wrote: On 7/5/18 1:07 AM, Vinod wrote: Yes we can add driver data in ACPI ID as well so code can be: if (!has_acpi_companion(&pdev->dev)) { rng->clk = devm_clk_get(&pdev->dev, "core");

KASAN: slab-out-of-bounds Write in crypto_dh_encode_key

2018-07-09 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:d00d6d9a339d Add linux-next specific files for 20180709 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=10d146dc40 kernel config: https://syzkaller.appspot.com/x/.config?x=94fe2b586beccacd

Re: Crypto Fixes for 4.18

2018-07-09 Thread Ondrej Mosnáček
Hi Linus, ne 8. 7. 2018 o 20:32 Linus Torvalds napísal(a): > > On Sun, Jul 8, 2018 at 9:20 AM Herbert Xu wrote: > > > > - Add missing RETs in x86 aegis/morus. > > Side note - I queried earlier during the discussion about this: how > was this code taken despite having clearly never tested on _any

[PATCH v2 4.9.y] x86/fpu: Remove use_eager_fpu()

2018-07-09 Thread Daniel Sangorrin
From: Andy Lutomirski commit c592b57347069abfc0dcad3b3a302cf882602597 upstream This removes all the obvious code paths that depend on lazy FPU mode. It shouldn't change the generated code at all. Signed-off-by: Andy Lutomirski Signed-off-by: Rik van Riel Cc: Borislav Petkov Cc: Brian Gerst

[PATCH] crypto: Add 0 walk-offset check in scatterwalk_pagedone()

2018-07-09 Thread Liu Chao
From: Luo Xinqiang In function scatterwalk_pagedone(), a kernel panic of invalid page will occur if walk->offset equals 0. This patch fixes the problem by setting the page addresswith sg_page(walk->sg) directly if walk->offset equals 0. Panic call stack: [] blkcipher_walk_done+0x430/0x8dc [] blk