Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61988C4332F for ; Wed, 17 Nov 2021 07:59:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 44ECC63222 for ; Wed, 17 Nov 2021 07:59:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234336AbhKQICc (ORCPT ); Wed, 17 Nov 2021 03:02:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:48166 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231967AbhKQICa (ORCPT ); Wed, 17 Nov 2021 03:02:30 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id C0A7B6142A; Wed, 17 Nov 2021 07:59:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1637135972; bh=zlI6DuKs1a97yTA8M7wBIZxcqHNzi85ewHk6F/DseBI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HWtgbAbwtACrrELtPYPuhg0WBa5UJpgNFKvxUUC7SsDehS0CxoYW5opZhbdWINAiX amrDyTBQT97u5ZusQ7abBie2ItO8Rln49AkmQV4mTRRWGman+NQRr/4c7RPmSf7XBl FJiGcOIyHKmqSCpR2cLqPnAC4cy3nB3tMQPziA2M= Date: Wed, 17 Nov 2021 08:59:30 +0100 From: Greg Kroah-Hartman To: Daniel =?iso-8859-1?Q?D=EDaz?= Cc: Naresh Kamboju , linux-kernel@vger.kernel.org, shuah@kernel.org, f.fainelli@gmail.com, patches@kernelci.org, lkft-triage@lists.linaro.org, jonathanh@nvidia.com, stable@vger.kernel.org, pavel@denx.de, akpm@linux-foundation.org, torvalds@linux-foundation.org, linux@roeck-us.net, Herbert Xu , "David S. Miller" , Linux Crypto Mailing List , Anders Roxell Subject: Re: [PATCH 5.15 000/927] 5.15.3-rc2 review Message-ID: References: <20211116142631.571909964@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 16, 2021 at 01:00:26PM -0600, Daniel D?az wrote: > Hello! > > On Tue, 16 Nov 2021 at 11:18, Naresh Kamboju wrote: > > > > On Tue, 16 Nov 2021 at 20:31, Greg Kroah-Hartman > > wrote: > > > > > > This is the start of the stable review cycle for the 5.15.3 release. > > > There are 927 patches in this series, all will be posted as a response > > > to this one. If anyone has any issues with these being applied, please > > > let me know. > > > > > > Responses should be made by Thu, 18 Nov 2021 14:24:22 +0000. > > > Anything received after that time might be too late. > > > > > > The whole patch series can be found in one patch at: > > > https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.15.3-rc2.gz > > > or in the git tree and branch at: > > > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.15.y > > > and the diffstat can be found below. > > > > > > thanks, > > > > > > greg k-h > > > > Regression found on arm64 juno-r2 / qemu-arm64. > > Following kernel crash reported on stable-rc 5.15 > > > > metadata: > > git branch: linux-5.15.y > > git repo: https://gitlab.com/Linaro/lkft/mirrors/stable/linux-stable-rc > > git commit: cb98d6b416c1a202f89fa1a3cebf05b054c3aa96 > > git describe: v5.15.2-928-gcb98d6b416c1 > > make_kernelversion: 5.15.3-rc2 > > kernel-config: https://builds.tuxbuild.com/210RSpE88PsYvgxZBgc8tYKzSYL/config > > > > Kernel crash log: > > ----------------- > > [ 0.368057] kernel BUG at crypto/algapi.c:461! > > [ 0.368438] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP > > [ 0.368921] Modules linked in: > > [ 0.369233] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 5.15.3-rc2 #1 > > [ 0.369974] Hardware name: linux,dummy-virt (DT) > > [ 0.370280] pstate: 20400005 (nzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) > > [ 0.370829] pc : crypto_unregister_alg+0x100/0x110 > > [ 0.371266] lr : crypto_unregister_alg+0x90/0x110 > > [ 0.371699] sp : ffff80001003bce0 > > [ 0.372003] x29: ffff80001003bce0 x28: 0000000000000000 x27: ffffb7ae6ee804f8 > > [ 0.372643] x26: ffffb7ae6ef51060 x25: 0000000000000006 x24: ffffb7ae6f068344 > > [ 0.373291] x23: ffffb7ae6ee6d348 x22: ffffb7ae6fc72728 x21: ffff80001003bd18 > > [ 0.373939] x20: ffffb7ae6f93d598 x19: ffff0000c0d6f500 x18: ffffffffffffffff > > [ 0.374582] x17: 6120737265746e75 x16: 6f632037202c7265 x15: ffff80009003b9d7 > > [ 0.375225] x14: 0000000000000001 x13: 293635326168732c x12: ffff0000ff7f49e8 > > [ 0.375868] x11: 0000000000000010 x10: 00000000000000a5 x9 : ffffb7ae6d74c190 > > [ 0.376509] x8 : ffff80001003bcc8 x7 : ffff80001003bcb8 x6 : ffff0000c0d6f510 > > [ 0.377325] x5 : ffff80001003bca8 x4 : ffff80001003bcc8 x3 : ffff80001003bca8 > > [ 0.377970] x2 : 0000000000000000 x1 : 0000000000000001 x0 : 0000000000000002 > > [ 0.378617] Call trace: > > [ 0.378846] crypto_unregister_alg+0x100/0x110 > > [ 0.379260] crypto_unregister_skcipher+0x20/0x30 > > [ 0.379726] simd_skcipher_free+0x28/0x40 > > [ 0.380251] aes_exit+0x38/0x70 > > [ 0.380575] cpu_feature_match_AES_init+0xac/0xdc > > [ 0.381010] do_one_initcall+0x50/0x2b0 > > [ 0.381348] kernel_init_freeable+0x250/0x2d8 > > [ 0.381747] kernel_init+0x30/0x140 > > [ 0.382068] ret_from_fork+0x10/0x20 > > [ 0.382398] Code: 910ea000 9433fa21 d4210000 17ffffee (d4210000) > > [ 0.382954] ---[ end trace 9a836623ed63b8f4 ]--- > > [ 0.383842] Kernel panic - not syncing: Attempted to kill init! > > exitcode=0x0000000b > > [ 0.384527] SMP: stopping secondary CPUs > > [ 0.384904] Kernel Offset: 0x37ae5d200000 from 0xffff800010000000 > > [ 0.385452] PHYS_OFFSET: 0x40000000 > > [ 0.385771] CPU features: 0x000042c1,23300e42 > > [ 0.386169] Memory Limit: none > > [ 0.386451] ---[ end Kernel panic - not syncing: Attempted to kill > > init! exitcode=0x0000000b ]--- > > > > > > > > Reported-by: Linux Kernel Functional Testing > > > > boot log, > > https://lkft.validation.linaro.org/scheduler/job/3939198#L401 > > > > build link: > > ----------- > > https://builds.tuxbuild.com/210RSpE88PsYvgxZBgc8tYKzSYL/build.log > > > > build config: > > ------------- > > https://builds.tuxbuild.com/210RSpE88PsYvgxZBgc8tYKzSYL/config > > Anders' bisection led to this: > > # first bad commit: [f3cb2b65eb9a206007e83679945b082aff1362c9] crypto: > api - Fix built-in testing dependency failures > commit f3cb2b65eb9a206007e83679945b082aff1362c9 > Author: Herbert Xu > Date: Fri Sep 17 08:26:19 2021 +0800 > > crypto: api - Fix built-in testing dependency failures > > Greetings! > > Daniel D?az > daniel.diaz@linaro.org > > -- > # bad: [cb98d6b416c1a202f89fa1a3cebf05b054c3aa96] Linux 5.15.3-rc2 > # good: [7cc36c3e14ae0af800a3a5d20cb17d0c168fc956] Linux 5.15.2 > git bisect start 'cb98d6b416c1a202f89fa1a3cebf05b054c3aa96' > 'efcdec78c4504aba664ccd7e1bfe4a6493126c96' > # bad: [e4c9bb1c1409f4a5f83bf9b859580175789d7e1a] mt76: mt7915: fix > bit fields for HT rate idx > git bisect bad e4c9bb1c1409f4a5f83bf9b859580175789d7e1a > # bad: [21c1a3174ff915ed8d83d4d390d97bcc390a78e4] brcmfmac: Add DMI > nvram filename quirk for Cyberbook T116 tablet > git bisect bad 21c1a3174ff915ed8d83d4d390d97bcc390a78e4 > # good: [359fa686d83b7f5410ab48f629f0bbac9286a546] power: supply: > max17042_battery: Prevent int underflow in set_soc_threshold > git bisect good 359fa686d83b7f5410ab48f629f0bbac9286a546 > # good: [5b6273aa9d9844b865e2b34857b0f1b155102541] serial: 8250: Fix > reporting real baudrate value in c_ospeed field > git bisect good 5b6273aa9d9844b865e2b34857b0f1b155102541 > # good: [0420c03e13550855a7697b8c9eb373696f9ff4b2] mwifiex: Run > SET_BSS_MODE when changing from P2P to STATION vif-type > git bisect good 0420c03e13550855a7697b8c9eb373696f9ff4b2 > # bad: [627e09916874a7d944a880f27377ac3039a95702] media: netup_unidvb: > handle interrupt properly according to the firmware > git bisect bad 627e09916874a7d944a880f27377ac3039a95702 > # bad: [f2c14d46beb5c26e3e48b2477e0bae1ed48a1914] selftests: net: > fib_nexthops: Wait before checking reported idle time > git bisect bad f2c14d46beb5c26e3e48b2477e0bae1ed48a1914 > # good: [5c4480638561e3d49b25747d78e78094b279d6b8] fscrypt: allow > 256-bit master keys with AES-256-XTS > git bisect good 5c4480638561e3d49b25747d78e78094b279d6b8 > # good: [2164859616e308f031897488558b5460b4dcd96a] drm/amd/display: > Fix null pointer dereference for encoders > git bisect good 2164859616e308f031897488558b5460b4dcd96a > # bad: [f3cb2b65eb9a206007e83679945b082aff1362c9] crypto: api - Fix > built-in testing dependency failures > git bisect bad f3cb2b65eb9a206007e83679945b082aff1362c9 > # first bad commit: [f3cb2b65eb9a206007e83679945b082aff1362c9] crypto: > api - Fix built-in testing dependency failures > commit f3cb2b65eb9a206007e83679945b082aff1362c9 > Author: Herbert Xu > Date: Fri Sep 17 08:26:19 2021 +0800 > > crypto: api - Fix built-in testing dependency failures > > [ Upstream commit adad556efcdd42a1d9e060cbe5f6161cccf1fa28 ] > > When complex algorithms that depend on other algorithms are built > into the kernel, the order of registration must be done such that > the underlying algorithms are ready before the ones on top are > registered. As otherwise they would fail during the self-test > which is required during registration. > > In the past we have used subsystem initialisation ordering to > guarantee this. The number of such precedence levels are limited > and they may cause ripple effects in other subsystems. > > This patch solves this problem by delaying all self-tests during > boot-up for built-in algorithms. They will be tested either when > something else in the kernel requests for them, or when we have > finished registering all built-in algorithms, whichever comes > earlier. > > Reported-by: Vladis Dronov > Signed-off-by: Herbert Xu > Signed-off-by: Sasha Levin > > crypto/algapi.c | 73 ++++++++++++++++++++++++++++++++++++++----------------- > crypto/api.c | 52 +++++++++++++++++++++++++++++++++++---- > crypto/internal.h | 10 ++++++++ > 3 files changed, 108 insertions(+), 27 deletions(-) I'm going to drop this one, and the follow-up crypto patches, from the tree now and push out a new -rc to hopefully resolve these issues... thanks, greg k-h