stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: "Daniel Díaz" <daniel.diaz@linaro.org>
Cc: Naresh Kamboju <naresh.kamboju@linaro.org>,
	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 <herbert@gondor.apana.org.au>,
	"David S. Miller" <davem@davemloft.net>,
	Linux Crypto Mailing List <linux-crypto@vger.kernel.org>,
	Anders Roxell <anders.roxell@linaro.org>
Subject: Re: [PATCH 5.15 000/927] 5.15.3-rc2 review
Date: Wed, 17 Nov 2021 08:59:30 +0100	[thread overview]
Message-ID: <YZS2Yn6+JYYLrfGw@kroah.com> (raw)
In-Reply-To: <CAEUSe7-eCDLo_qcDVUZgvZHVan_igPvE16-PYnXMOh3TZdQ9+w@mail.gmail.com>

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 <naresh.kamboju@linaro.org> wrote:
> >
> > On Tue, 16 Nov 2021 at 20:31, Greg Kroah-Hartman
> > <gregkh@linuxfoundation.org> 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 <lkft@linaro.org>
> >
> > 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 <herbert@gondor.apana.org.au>
> 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 <herbert@gondor.apana.org.au>
> 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 <vdronov@redhat.com>
>     Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
>     Signed-off-by: Sasha Levin <sashal@kernel.org>
> 
>  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

  reply	other threads:[~2021-11-17  7:59 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-16 15:01 [PATCH 5.15 000/927] 5.15.3-rc2 review Greg Kroah-Hartman
2021-11-16 17:18 ` Naresh Kamboju
2021-11-16 19:00   ` Daniel Díaz
2021-11-17  7:59     ` Greg Kroah-Hartman [this message]
2021-11-16 18:18 ` Guenter Roeck
2021-11-17  7:59   ` Greg Kroah-Hartman
2021-11-16 18:43 ` Shuah Khan
2021-11-16 20:28 ` Florian Fainelli
2021-11-16 21:17 ` Fox Chen
2021-11-16 21:59 ` Scott Bruce
2021-11-17  5:41   ` Scott Bruce
2021-11-17  8:04     ` Greg Kroah-Hartman
2021-11-17 16:05       ` Scott Bruce
2021-11-18 17:09         ` Greg Kroah-Hartman
2021-11-17  4:12 ` Guenter Roeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YZS2Yn6+JYYLrfGw@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=akpm@linux-foundation.org \
    --cc=anders.roxell@linaro.org \
    --cc=daniel.diaz@linaro.org \
    --cc=davem@davemloft.net \
    --cc=f.fainelli@gmail.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=jonathanh@nvidia.com \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=lkft-triage@lists.linaro.org \
    --cc=naresh.kamboju@linaro.org \
    --cc=patches@kernelci.org \
    --cc=pavel@denx.de \
    --cc=shuah@kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).