All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Guenter Roeck <linux@roeck-us.net>,
	Linux Crypto Mailing List <linux-crypto@vger.kernel.org>,
	Vladis Dronov <vdronov@redhat.com>,
	Simo Sorce <ssorce@redhat.com>,
	Eric Biggers <ebiggers@kernel.org>,
	kernel@pengutronixx.de
Subject: Re: [v2 PATCH] crypto: api - Fix built-in testing dependency failures
Date: Wed, 22 Dec 2021 11:22:46 +0100	[thread overview]
Message-ID: <20211222102246.qibf7v2q4atl6gc6@pengutronix.de> (raw)
In-Reply-To: <729fc135-8e55-fd4f-707a-60b9a222ab97@roeck-us.net>

[-- Attachment #1: Type: text/plain, Size: 31690 bytes --]

Hello,

I didn't find a more suitable mail to respond to ...

On Sat, Nov 06, 2021 at 07:55:48AM -0700, Guenter Roeck wrote:
> On 11/5/21 8:47 PM, Herbert Xu wrote:
> > On Tue, Oct 26, 2021 at 09:33:19AM -0700, Guenter Roeck wrote:
> > > Hi,
> > > 
> > > On Fri, Sep 17, 2021 at 08:26:19AM +0800, Herbert Xu wrote:
> > > > 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>
> > > > 
> > > 
> > > I can not explain it, but this patch causes a crash with one of my boot
> > > tests (riscv32 with riscv32 virt machine and e1000 network adapter):
> > > 
> > > [    9.948557] e1000 0000:00:01.0: enabling device (0000 -> 0003)
> > 
> > Does this still occur with the latest patch I sent yesterday?
> > 
> 
> No, I don't see that problem anymore, neither in mainline with your
> patch applied nor in the latest -next with your patch applied.

I still experience a problem with the patch that got
adad556efcdd42a1d9e060cbe5f6161cccf1fa28 in v5.16-rc1. I saw there are
two commit fixing this one (

	cad439fc040e crypto: api - Do not create test larvals if manager is disabled
	e42dff467ee6 crypto: api - Export crypto_boot_test_finished

) but I still encounter the following on 2f47a9a4dfa3:

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.16.0-rc6-00031-g2f47a9a4dfa3 (ukl@dude) (arm-v7a-linux-gnueabihf-gcc (OSELAS.Toolchain-2018.12.0 8-20181130) 8.2.1 20181130, GNU ld (GNU Binutils) 2.31.1) #17 SMP PREEMPT Wed Dec 22 10:51:46 CET 2021
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: STMicroelectronics STM32MP157C eval daughter on eval mother
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created DMA memory pool at 0x10000000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node mcuram2@10000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x10040000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node vdev0vring0@10040000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x10041000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node vdev0vring1@10041000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x10042000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node vdev0buffer@10042000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x30000000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node mcuram@30000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x38000000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node retram@38000000, compatible id shared-dma-pool
[    0.000000] cma: Reserved 16 MiB at 0xfe800000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x00000000c0000000-0x00000000e7ffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x00000000e8000000-0x00000000ffffefff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000c0000000-0x00000000e7ffffff]
[    0.000000]   node   0: [mem 0x00000000e8000000-0x00000000efffffff]
[    0.000000]   node   0: [mem 0x00000000f0000000-0x00000000ffffefff]
[    0.000000] Initmem setup node 0 [mem 0x00000000c0000000-0x00000000ffffefff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 16 pages/cpu s35148 r8192 d22196 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260703
[    0.000000] Kernel command line: root=/dev/nfs nfsroot=192.168.23.4:/home/ukl/nfsroot/stm32mp157c-ev1,v3,tcp ip=dhcp console=ttySTM0,115200n8 rootwait rw 
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 874968K/1048572K available (9216K kernel code, 1064K rwdata, 3368K rodata, 1024K init, 200K bss, 157220K reserved, 16384K cma-reserved, 245756K highmem)
[    0.000000] random: get_random_u32 called from cache_random_seq_create+0x84/0x15c with crng_init=0
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] ftrace: allocating 34278 entries in 67 pages
[    0.000000] ftrace: allocated 67 pages with 3 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] 	Trampoline variant of Tasks RCU enabled.
[    0.000000] 	Rude variant of Tasks RCU enabled.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000002] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000031] Switching to timer-based delay loop, resolution 41ns
[    0.006510] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.006551] pid_max: default: 32768 minimum: 301
[    0.006906] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.006943] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.008536] CPU: Testing write buffer coherency: ok
[    0.009012] CPU0: update cpu_capacity 1024
[    0.009041] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.010632] Setting up static identity map for 0xc0100000 - 0xc0100060
[    0.010866] rcu: Hierarchical SRCU implementation.
[    0.012500] smp: Bringing up secondary CPUs ...
[    0.013639] CPU1: update cpu_capacity 1024
[    0.013660] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.013885] smp: Brought up 1 node, 2 CPUs
[    0.013929] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.013948] CPU: All CPU(s) started in SVC mode.
[    0.014920] devtmpfs: initialized
[    0.040428] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.040723] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.040766] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.041935] pinctrl core: initialized pinctrl subsystem
[    0.043866] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.047307] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.050013] thermal_sys: Registered thermal governor 'step_wise'
[    0.050438] cpuidle: using governor ladder
[    0.050517] cpuidle: using governor menu
[    0.051016] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.051048] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.051639] Serial: AMBA PL011 UART driver
[    0.084163] /soc/interrupt-controller@5000d000: bank0
[    0.084225] /soc/interrupt-controller@5000d000: bank1
[    0.084257] /soc/interrupt-controller@5000d000: bank2
[    0.099885] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOA bank added
[    0.100856] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOB bank added
[    0.101680] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOC bank added
[    0.102428] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOD bank added
[    0.103191] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOE bank added
[    0.103985] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOF bank added
[    0.104776] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOG bank added
[    0.105569] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOH bank added
[    0.106332] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOI bank added
[    0.107158] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOJ bank added
[    0.107896] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOK bank added
[    0.108167] stm32mp157-pinctrl soc:pin-controller@50002000: Pinctrl STM32 initialized
[    0.112296] stm32mp157-pinctrl soc:pin-controller-z@54004000: GPIOZ bank added
[    0.112355] stm32mp157-pinctrl soc:pin-controller-z@54004000: Pinctrl STM32 initialized
[    0.115621] platform 5a000000.dsi: Fixing up cyclic dependency with 5a001000.display-controller
[    0.134041] cryptd: max_cpu_qlen set to 1000
[    0.137839] stm32-dma 48000000.dma-controller: STM32 DMA driver registered
[    0.139723] stm32-dma 48001000.dma-controller: STM32 DMA driver registered
[    0.143877] stm32-mdma 58000000.dma-controller: STM32 MDMA driver registered
[    0.147444] usbcore: registered new interface driver usbfs
[    0.147563] usbcore: registered new interface driver hub
[    0.147643] usbcore: registered new device driver usb
[    0.148661] pps_core: LinuxPPS API ver. 1 registered
[    0.148682] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.148722] PTP clock support registered
[    0.151497] clocksource: Switched to clocksource arch_sys_counter
[    0.224527] NET: Registered PF_INET protocol family
[    0.224891] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.226763] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.226838] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.226975] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.227163] TCP: Hash tables configured (established 8192 bind 8192)
[    0.227345] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.227432] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.227773] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.228694] RPC: Registered named UNIX socket transport module.
[    0.228733] RPC: Registered udp transport module.
[    0.228747] RPC: Registered tcp transport module.
[    0.228760] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.228779] NET: Registered PF_XDP protocol family
[    0.229889] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    0.232522] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.247322] NFS: Registering the id_resolver key type
[    0.247411] Key type id_resolver registered
[    0.247428] Key type id_legacy registered
[    0.247796] 9p: Installing v9fs 9p2000 file system support
[    0.248584] bounce: pool size: 64 pages
[    0.257261] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.259560] STM32 USART driver initialized
[    0.260412] stm32-usart 40010000.serial: interrupt mode for rx (no dma)
[    0.260447] stm32-usart 40010000.serial: interrupt mode for tx (no dma)
[    0.260484] 40010000.serial: ttySTM0 at MMIO 0x40010000 (irq = 73, base_baud = 4000000) is a stm32-usart
[    1.174613] printk: console [ttySTM0] enabled
[    1.202878] loop: module loaded
[    1.203635] random: fast init done
[    1.209179] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    1.211339] random: crng init done
[    1.215888] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    1.230257] libphy: Fixed MDIO Bus: probed
[    1.236782] stm32-dwmac 5800a000.ethernet: IRQ eth_wake_irq not found
[    1.241840] stm32-dwmac 5800a000.ethernet: IRQ eth_lpi not found
[    1.248794] stm32-dwmac 5800a000.ethernet: User ID: 0x40, Synopsys ID: 0x42
[    1.254847] stm32-dwmac 5800a000.ethernet: 	DWMAC4/5
[    1.259691] stm32-dwmac 5800a000.ethernet: DMA HW capability register supported
[    1.267024] stm32-dwmac 5800a000.ethernet: RX Checksum Offload Engine supported
[    1.274329] stm32-dwmac 5800a000.ethernet: TX Checksum insertion supported
[    1.281165] stm32-dwmac 5800a000.ethernet: Wake-Up On Lan supported
[    1.287450] stm32-dwmac 5800a000.ethernet: TSO supported
[    1.292752] stm32-dwmac 5800a000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    1.300560] stm32-dwmac 5800a000.ethernet: Enabled L3L4 Flow TC (entries=2)
[    1.307548] stm32-dwmac 5800a000.ethernet: Enabled RFS Flow TC (entries=8)
[    1.314422] stm32-dwmac 5800a000.ethernet: TSO feature enabled
[    1.320208] stm32-dwmac 5800a000.ethernet: Using 32 bits DMA width
[    1.327329] libphy: stmmac: probed
[    1.335104] usbcore: registered new interface driver asix
[    1.339123] usbcore: registered new interface driver ax88179_178a
[    1.345392] usbcore: registered new interface driver smsc95xx
[    1.351931] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.357436] ehci-omap: OMAP-EHCI Host Controller driver
[    1.362882] ehci-atmel: EHCI Atmel driver
[    1.369108] stm32_rtc 5c004000.rtc: IRQ index 1 not found
[    1.373092] stm32_rtc 5c004000.rtc: alarm can't wake up the system: -6
[    1.380262] stm32_rtc 5c004000.rtc: registered as rtc0
[    1.384811] stm32_rtc 5c004000.rtc: setting system clock to 2000-01-01T02:37:57 UTC (946694277)
[    1.393860] stm32_rtc 5c004000.rtc: Date/Time must be initialized
[    1.399487] stm32_rtc 5c004000.rtc: registered rev:1.2
[    1.404985] i2c_dev: i2c /dev entries driver
[    1.430431] i2c 0-003c: Fixing up cyclic dependency with 4c006000.dcmi
[    1.437252] stm32f7-i2c 40013000.i2c: STM32F7 I2C-0 bus adapter
[    1.463227] stm32f7-i2c 40015000.i2c: STM32F7 I2C-1 bus adapter
[    1.493652] stpmic1 2-0033: PMIC Chip Version: 0x10
[    1.514417] vdda: Bringing 1800000uV into 2900000-2900000uV
[    1.520804] v2v8: Bringing 1800000uV into 2800000-2800000uV
[    1.534135] v1v8: Bringing 1000000uV into 1800000-1800000uV
[    1.547247] stm32f7-i2c 5c002000.i2c: STM32F7 I2C-2 bus adapter
[    1.555103] stm_thermal 50028000.thermal: stm_thermal_probe: Driver initialized successfully
[    1.566947] mmci-pl18x 58005000.mmc: Got CD GPIO
[    1.571295] mmci-pl18x 58005000.mmc: mmc0: PL180 manf 53 rev2 at 0x58005000 irq 59,0 (pio)
[    1.609532] mmci-pl18x 58007000.mmc: mmc1: PL180 manf 53 rev2 at 0x58007000 irq 60,0 (pio)
[    1.650912] sdhci: Secure Digital Host Controller Interface driver
[    1.655771] sdhci: Copyright(c) Pierre Ossman
[    1.660461] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.669007] ledtrig-cpu: registered to indicate activity on CPUs
[    1.673999] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    1.682512] stm32-ipcc 4c001000.mailbox: ipcc rev:1.0 enabled, 6 chans, proc 0
[    1.689646] stm32-rproc 10000000.m4: wdg irq registered
[    1.700148] mmc0: new ultra high speed DDR50 SDHC card at address 0001
[    1.706661] remoteproc remoteproc0: m4 is available
[    1.717321] Initializing XFRM netlink socket
[    1.720971] NET: Registered PF_INET6 protocol family
[    1.726295] mmcblk0: mmc0:0001 00000 7.44 GiB 
[    1.730578] Segment Routing with IPv6
[    1.733350] In-situ OAM (IOAM) with IPv6
[    1.737435] NET: Registered PF_PACKET protocol family
[    1.742266] NET: Registered PF_KEY protocol family
[    1.747283] 9pnet: Installing 9P2000 support
[    1.751319] Key type dns_resolver registered
[    1.755779] Registering SWP/SWPB emulation handler
[    1.762484] Internal error: Oops - undefined instruction: 0 [#1] PREEMPT SMP ARM
[    1.768451] Modules linked in:
[    1.771491] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.16.0-rc6-00031-g2f47a9a4dfa3 #17
[    1.779575] Hardware name: STM32 (Device Tree Support)
[    1.784706] PC is at crypto_unregister_alg+0xfc/0x104
[    1.789748] LR is at 0x0
[    1.792269] pc : [<c04b7008>]    lr : [<00000000>]    psr: 20000113
[    1.798529] sp : c18c9ea0  ip : 00000000  fp : c0e58858
[    1.803746] r10: 00000008  r9 : c18eb400  r8 : c192b600
[    1.808963] r7 : c100b41c  r6 : c18c9eac  r5 : c0f04ec8  r4 : c1b91e80
[    1.815484] r3 : 00000002  r2 : ffffffff  r1 : 00000001  r0 : c0f9e088
[    1.822006] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    1.829138] Control: 10c5387d  Table: c000406a  DAC: 00000051
[    1.834875] Register r0 information: non-slab/vmalloc memory
[    1.840527] Register r1 information: non-paged memory
[    1.845570] Register r2 information: non-paged memory
[    1.850613] Register r3 information: non-paged memory
[    1.855657] Register r4 information: slab kmalloc-512 start c1b91e00 pointer offset 128 size 512
[    1.864440] Register r5 information: non-slab/vmalloc memory
[    1.870092] Register r6 information: non-slab/vmalloc memory
[    1.875745] Register r7 information: non-slab/vmalloc memory
[    1.881398] Register r8 information: slab task_struct start c192b600 pointer offset 0
[    1.889224] Register r9 information: slab kmalloc-128 start c18eb400 pointer offset 0 size 128
[    1.897834] Register r10 information: non-paged memory
[    1.902966] Register r11 information: non-slab/vmalloc memory
[    1.908706] Register r12 information: NULL pointer
[    1.913489] Process swapper/0 (pid: 1, stack limit = 0xb3b87711)
[    1.919490] Stack: (0xc18c9ea0 to 0xc18ca000)
[    1.923847] 9ea0: c192b600 c0f0b16a 00000008 c18c9eac c18c9eac 0cd60047 c1b91e00 c100b430
[    1.932021] 9ec0: 00000001 c04c3864 c100b420 c011e448 c0f0b240 fffffffe 00000001 c0e083e0
[    1.940195] 9ee0: c0ff43a0 c0f04ec8 c0e08360 00000000 c192b600 c0101fa0 c019c37c c0e00424
[    1.948368] 9f00: c0ffc000 00000000 00000007 c0ce0378 c0c44b28 00000000 00000000 c0f04ec8
[    1.956542] 9f20: c0c5eae8 c0c4e8b8 37320000 c18eb476 00000000 0cd60047 c0f478c0 00000008
[    1.964715] 9f40: c0d48594 0cd60047 c0e9581c c0d48594 c100b000 c0e58838 000000b4 c0e012f4
[    1.972888] 9f60: 00000007 00000007 00000000 c0e00424 c0e58808 c0e00424 00000000 00004ec0
[    1.981062] 9f80: c09eb450 00000000 00000000 00000000 00000000 00000000 00000000 c09eb46c
[    1.989236] 9fa0: 00000000 c09eb450 00000000 c0100148 00000000 00000000 00000000 00000000
[    1.997411] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.005586] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[    2.013769] [<c04b7008>] (crypto_unregister_alg) from [<c04c3864>] (simd_skcipher_free+0x18/0x24)
[    2.022629] [<c04c3864>] (simd_skcipher_free) from [<c011e448>] (aes_exit+0x28/0x44)
[    2.030367] [<c011e448>] (aes_exit) from [<c0e083e0>] (aes_init+0x80/0x9c)
[    2.037238] [<c0e083e0>] (aes_init) from [<c0101fa0>] (do_one_initcall+0x50/0x25c)
[    2.044802] [<c0101fa0>] (do_one_initcall) from [<c0e012f4>] (kernel_init_freeable+0x21c/0x278)
[    2.053497] [<c0e012f4>] (kernel_init_freeable) from [<c09eb46c>] (kernel_init+0x1c/0x138)
[    2.061760] [<c09eb46c>] (kernel_init) from [<c0100148>] (ret_from_fork+0x14/0x2c)
[    2.069322] Exception stack(0xc18c9fb0 to 0xc18c9ff8)
[    2.074370] 9fa0:                                     00000000 00000000 00000000 00000000
[    2.082548] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.090721] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    2.097335] Code: e3a02009 e30011ca eb14a2e2 eaffffec (e7f001f2) 
[    2.103429] ---[ end trace 78f3561a8b67f754 ]---
[    2.108290] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    2.115684] CPU1: stopping
[    2.118373] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D           5.16.0-rc6-00031-g2f47a9a4dfa3 #17
[    2.127848] Hardware name: STM32 (Device Tree Support)
[    2.132986] [<c0110d2c>] (unwind_backtrace) from [<c010c81c>] (show_stack+0x18/0x1c)
[    2.140721] [<c010c81c>] (show_stack) from [<c09e5360>] (dump_stack_lvl+0x40/0x4c)
[    2.148287] [<c09e5360>] (dump_stack_lvl) from [<c010e8b8>] (do_handle_IPI+0x32c/0x354)
[    2.156286] [<c010e8b8>] (do_handle_IPI) from [<c010e900>] (ipi_handler+0x20/0x28)
[    2.163850] [<c010e900>] (ipi_handler) from [<c019813c>] (handle_percpu_devid_irq+0xa8/0x244)
[    2.172372] [<c019813c>] (handle_percpu_devid_irq) from [<c0191ce0>] (generic_handle_domain_irq+0x4c/0x90)
[    2.182025] [<c0191ce0>] (generic_handle_domain_irq) from [<c0536310>] (gic_handle_irq+0x7c/0x90)
[    2.190895] [<c0536310>] (gic_handle_irq) from [<c09eaf04>] (generic_handle_arch_irq+0x58/0x78)
[    2.199588] [<c09eaf04>] (generic_handle_arch_irq) from [<c0100b10>] (__irq_svc+0x50/0x80)
[    2.207848] Exception stack(0xc191ff48 to 0xc191ff90)
[    2.212899] ff40:                   000003ba c0c5eae8 00000000 c011a6a0 c0ff4fc0 c0f04f58
[    2.221073] ff60: 00000002 00000000 00000000 c0cf2868 c1946c00 c0e9ce38 c0f03d00 c191ff98
[    2.229244] ff80: c01091b0 c01091b4 60000113 ffffffff
[    2.234286] [<c0100b10>] (__irq_svc) from [<c01091b4>] (arch_cpu_idle+0x40/0x44)
[    2.241676] [<c01091b4>] (arch_cpu_idle) from [<c09f2620>] (default_idle_call.part.2+0x2c/0x120)
[    2.250458] [<c09f2620>] (default_idle_call.part.2) from [<c016ae58>] (do_idle+0x260/0x290)
[    2.258806] [<c016ae58>] (do_idle) from [<c016b18c>] (cpu_startup_entry+0x20/0x24)
[    2.266369] [<c016b18c>] (cpu_startup_entry) from [<c0101674>] (__enableNOTICE:  CPU: STM32MP157AAA Rev.B

Bisection identified adad556efcdd42a1d9e060cbe5f6161cccf1fa28:

	# bad: [fa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf] Linux 5.16-rc1
	# good: [8bb7eca972ad531c9b149c0a51ab43a417385813] Linux 5.15
	git bisect start 'v5.16-rc1' 'v5.15'
	# bad: [313b6ffc8e90173f1709b2f4bf9d30c4730a1dde] Merge tag 'linux-kselftest-kunit-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
	git bisect bad 313b6ffc8e90173f1709b2f4bf9d30c4730a1dde
	# good: [84882cf72cd774cf16fd338bdbf00f69ac9f9194] Revert "net: avoid double accounting for pure zerocopy skbs"
	git bisect good 84882cf72cd774cf16fd338bdbf00f69ac9f9194
	# good: [79ef0c00142519bc34e1341447f3797436cc48bf] Merge tag 'trace-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
	git bisect good 79ef0c00142519bc34e1341447f3797436cc48bf
	# good: [0f3d2b680444d5697650b5529c9e749acbf7371f] drm/amdkfd: protect raven_device_info with KFD_SUPPORT_IOMMU_V2
	git bisect good 0f3d2b680444d5697650b5529c9e749acbf7371f
	# bad: [a64a325bf6313aa5cde7ecd691927e92892d1b7f] Merge tag 'afs-next-20211102' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs
	git bisect bad a64a325bf6313aa5cde7ecd691927e92892d1b7f
	# good: [52cf891d8dbd7592261fa30f373410b97f22b76c] Merge tag 'kvm-riscv-5.16-2' of https://github.com/kvm-riscv/linux into HEAD
	git bisect good 52cf891d8dbd7592261fa30f373410b97f22b76c
	# bad: [bfc484fe6abba4b89ec9330e0e68778e2a9856b2] Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
	git bisect bad bfc484fe6abba4b89ec9330e0e68778e2a9856b2
	# good: [d2fac0afe89fe30c39eaa98dda71f7c4cea190c2] Merge tag 'audit-pr-20211101' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit
	git bisect good d2fac0afe89fe30c39eaa98dda71f7c4cea190c2
	# bad: [183b60e005975d3c84c22199ca64a9221e620fb6] crypto: hisilicon/qm - modify the uacce mode check
	git bisect bad 183b60e005975d3c84c22199ca64a9221e620fb6
	# good: [0e64dcd7c94b94f90b820bfbe57bbcea8bf21545] crypto: qat - remove unmatched CPU affinity to cluster IRQ
	git bisect good 0e64dcd7c94b94f90b820bfbe57bbcea8bf21545
	# good: [f20311cc9c58052e0b215013046cbf390937910c] crypto: caam - disable pkc for non-E SoCs
	git bisect good f20311cc9c58052e0b215013046cbf390937910c
	# bad: [f7324d4ba9e846e96ac85fbe74afe3fbdacf3b75] hwrng: meson - Improve error handling for core clock
	git bisect bad f7324d4ba9e846e96ac85fbe74afe3fbdacf3b75
	# good: [7c5329697ed4e0e1bf9a4e4fc9f0053f2f58935d] crypto: marvell/cesa - drop unneeded MODULE_ALIAS
	git bisect good 7c5329697ed4e0e1bf9a4e4fc9f0053f2f58935d
	# bad: [adad556efcdd42a1d9e060cbe5f6161cccf1fa28] crypto: api - Fix built-in testing dependency failures
	git bisect bad adad556efcdd42a1d9e060cbe5f6161cccf1fa28
	# first bad commit: [adad556efcdd42a1d9e060cbe5f6161cccf1fa28] crypto: api - Fix built-in testing dependency failures

	$ grep CRYPTO .config
	CONFIG_ARM_CRYPTO=y
	# CONFIG_CRYPTO_SHA1_ARM is not set
	# CONFIG_CRYPTO_SHA1_ARM_NEON is not set
	# CONFIG_CRYPTO_SHA1_ARM_CE is not set
	# CONFIG_CRYPTO_SHA2_ARM_CE is not set
	# CONFIG_CRYPTO_SHA256_ARM is not set
	# CONFIG_CRYPTO_SHA512_ARM is not set
	CONFIG_CRYPTO_BLAKE2S_ARM=y
	# CONFIG_CRYPTO_BLAKE2B_NEON is not set
	CONFIG_CRYPTO_AES_ARM=y
	CONFIG_CRYPTO_AES_ARM_BS=y
	# CONFIG_CRYPTO_AES_ARM_CE is not set
	# CONFIG_CRYPTO_GHASH_ARM_CE is not set
	# CONFIG_CRYPTO_CRC32_ARM_CE is not set
	CONFIG_CRYPTO_CHACHA20_NEON=y
	CONFIG_CRYPTO_POLY1305_ARM=y
	# CONFIG_CRYPTO_NHPOLY1305_NEON is not set
	CONFIG_CRYPTO_CURVE25519_NEON=y
	CONFIG_CRYPTO=y
	CONFIG_CRYPTO_ALGAPI=y
	CONFIG_CRYPTO_ALGAPI2=y
	CONFIG_CRYPTO_AEAD=y
	CONFIG_CRYPTO_AEAD2=y
	CONFIG_CRYPTO_SKCIPHER=y
	CONFIG_CRYPTO_SKCIPHER2=y
	CONFIG_CRYPTO_HASH=y
	CONFIG_CRYPTO_HASH2=y
	CONFIG_CRYPTO_RNG=y
	CONFIG_CRYPTO_RNG2=y
	CONFIG_CRYPTO_AKCIPHER2=y
	CONFIG_CRYPTO_AKCIPHER=y
	CONFIG_CRYPTO_KPP2=y
	CONFIG_CRYPTO_ACOMP2=y
	CONFIG_CRYPTO_MANAGER=y
	CONFIG_CRYPTO_MANAGER2=y
	# CONFIG_CRYPTO_USER is not set
	CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y
	CONFIG_CRYPTO_NULL=y
	CONFIG_CRYPTO_NULL2=y
	# CONFIG_CRYPTO_PCRYPT is not set
	CONFIG_CRYPTO_CRYPTD=y
	CONFIG_CRYPTO_AUTHENC=y
	# CONFIG_CRYPTO_TEST is not set
	CONFIG_CRYPTO_SIMD=y
	CONFIG_CRYPTO_ENGINE=y
	CONFIG_CRYPTO_RSA=y
	# CONFIG_CRYPTO_DH is not set
	# CONFIG_CRYPTO_ECDH is not set
	# CONFIG_CRYPTO_ECDSA is not set
	# CONFIG_CRYPTO_ECRDSA is not set
	# CONFIG_CRYPTO_SM2 is not set
	# CONFIG_CRYPTO_CURVE25519 is not set
	# CONFIG_CRYPTO_CCM is not set
	# CONFIG_CRYPTO_GCM is not set
	# CONFIG_CRYPTO_CHACHA20POLY1305 is not set
	# CONFIG_CRYPTO_AEGIS128 is not set
	# CONFIG_CRYPTO_SEQIV is not set
	# CONFIG_CRYPTO_ECHAINIV is not set
	# CONFIG_CRYPTO_CBC is not set
	# CONFIG_CRYPTO_CFB is not set
	# CONFIG_CRYPTO_CTR is not set
	# CONFIG_CRYPTO_CTS is not set
	CONFIG_CRYPTO_ECB=y
	# CONFIG_CRYPTO_LRW is not set
	# CONFIG_CRYPTO_OFB is not set
	# CONFIG_CRYPTO_PCBC is not set
	CONFIG_CRYPTO_XTS=y
	# CONFIG_CRYPTO_KEYWRAP is not set
	# CONFIG_CRYPTO_ADIANTUM is not set
	# CONFIG_CRYPTO_ESSIV is not set
	# CONFIG_CRYPTO_CMAC is not set
	# CONFIG_CRYPTO_HMAC is not set
	# CONFIG_CRYPTO_XCBC is not set
	# CONFIG_CRYPTO_VMAC is not set
	CONFIG_CRYPTO_CRC32C=y
	# CONFIG_CRYPTO_CRC32 is not set
	# CONFIG_CRYPTO_XXHASH is not set
	# CONFIG_CRYPTO_BLAKE2B is not set
	# CONFIG_CRYPTO_BLAKE2S is not set
	# CONFIG_CRYPTO_CRCT10DIF is not set
	# CONFIG_CRYPTO_GHASH is not set
	# CONFIG_CRYPTO_POLY1305 is not set
	# CONFIG_CRYPTO_MD4 is not set
	# CONFIG_CRYPTO_MD5 is not set
	# CONFIG_CRYPTO_MICHAEL_MIC is not set
	# CONFIG_CRYPTO_RMD160 is not set
	# CONFIG_CRYPTO_SHA1 is not set
	# CONFIG_CRYPTO_SHA256 is not set
	# CONFIG_CRYPTO_SHA512 is not set
	# CONFIG_CRYPTO_SHA3 is not set
	# CONFIG_CRYPTO_SM3 is not set
	# CONFIG_CRYPTO_STREEBOG is not set
	# CONFIG_CRYPTO_WP512 is not set
	CONFIG_CRYPTO_AES=y
	# CONFIG_CRYPTO_AES_TI is not set
	# CONFIG_CRYPTO_BLOWFISH is not set
	# CONFIG_CRYPTO_CAMELLIA is not set
	# CONFIG_CRYPTO_CAST5 is not set
	# CONFIG_CRYPTO_CAST6 is not set
	CONFIG_CRYPTO_DES=y
	# CONFIG_CRYPTO_FCRYPT is not set
	# CONFIG_CRYPTO_CHACHA20 is not set
	# CONFIG_CRYPTO_SERPENT is not set
	# CONFIG_CRYPTO_SM4 is not set
	# CONFIG_CRYPTO_TWOFISH is not set
	# CONFIG_CRYPTO_DEFLATE is not set
	# CONFIG_CRYPTO_LZO is not set
	# CONFIG_CRYPTO_842 is not set
	# CONFIG_CRYPTO_LZ4 is not set
	# CONFIG_CRYPTO_LZ4HC is not set
	# CONFIG_CRYPTO_ZSTD is not set
	# CONFIG_CRYPTO_ANSI_CPRNG is not set
	# CONFIG_CRYPTO_DRBG_MENU is not set
	# CONFIG_CRYPTO_JITTERENTROPY is not set
	# CONFIG_CRYPTO_USER_API_HASH is not set
	# CONFIG_CRYPTO_USER_API_SKCIPHER is not set
	# CONFIG_CRYPTO_USER_API_RNG is not set
	# CONFIG_CRYPTO_USER_API_AEAD is not set
	CONFIG_CRYPTO_LIB_AES=y
	CONFIG_CRYPTO_ARCH_HAVE_LIB_BLAKE2S=y
	CONFIG_CRYPTO_LIB_BLAKE2S=y
	CONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA=y
	CONFIG_CRYPTO_LIB_CHACHA=y
	CONFIG_CRYPTO_ARCH_HAVE_LIB_CURVE25519=y
	CONFIG_CRYPTO_LIB_CURVE25519_GENERIC=y
	CONFIG_CRYPTO_LIB_CURVE25519=y
	CONFIG_CRYPTO_LIB_DES=y
	CONFIG_CRYPTO_LIB_POLY1305_RSIZE=9
	CONFIG_CRYPTO_ARCH_HAVE_LIB_POLY1305=y
	CONFIG_CRYPTO_LIB_POLY1305=y
	CONFIG_CRYPTO_LIB_CHACHA20POLY1305=y
	CONFIG_CRYPTO_HW=y
	CONFIG_CRYPTO_DEV_FSL_CAAM_COMMON=y
	CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC=y
	CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API_DESC=y
	CONFIG_CRYPTO_DEV_FSL_CAAM=y
	# CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG is not set
	CONFIG_CRYPTO_DEV_FSL_CAAM_JR=y
	CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9
	# CONFIG_CRYPTO_DEV_FSL_CAAM_INTC is not set
	CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API=y
	CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API=y
	CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y
	CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y
	# CONFIG_CRYPTO_DEV_OMAP is not set
	# CONFIG_CRYPTO_DEV_SAHARA is not set
	# CONFIG_CRYPTO_DEV_ATMEL_AES is not set
	# CONFIG_CRYPTO_DEV_ATMEL_TDES is not set
	# CONFIG_CRYPTO_DEV_ATMEL_SHA is not set
	# CONFIG_CRYPTO_DEV_ATMEL_ECC is not set
	# CONFIG_CRYPTO_DEV_ATMEL_SHA204A is not set
	# CONFIG_CRYPTO_DEV_MXS_DCP is not set
	# CONFIG_CRYPTO_DEV_VIRTIO is not set
	# CONFIG_CRYPTO_DEV_STM32_CRC is not set
	# CONFIG_CRYPTO_DEV_STM32_HASH is not set
	# CONFIG_CRYPTO_DEV_STM32_CRYP is not set
	# CONFIG_CRYPTO_DEV_SAFEXCEL is not set
	# CONFIG_CRYPTO_DEV_CCREE is not set
	# CONFIG_CRYPTO_DEV_AMLOGIC_GXL is not set

I didn't try to understand and fix that. If you need more information,
just tell me.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2021-12-22 10:23 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-13  7:12 [PATCH] crypto: api - Fix built-in testing dependency failures Herbert Xu
2021-09-13 18:16 ` Eric Biggers
2021-09-14  3:28   ` Herbert Xu
2021-09-17  0:26 ` [v2 PATCH] " Herbert Xu
2021-09-28 18:32   ` Nathan Chancellor
2021-10-01  5:50     ` Herbert Xu
2021-10-01 10:58       ` Naresh Kamboju
2021-10-01 10:58         ` Naresh Kamboju
2021-10-01 18:01       ` Nathan Chancellor
2021-10-03  0:28         ` Herbert Xu
2021-10-06  2:33           ` Nathan Chancellor
2021-10-19 13:28             ` [PATCH] crypto: api - Do not create test larvals if manager is disabled Herbert Xu
2021-11-02 15:41               ` Geert Uytterhoeven
2021-11-04  7:28                 ` Damien Le Moal
2021-11-04  7:58                   ` Geert Uytterhoeven
2021-11-04  8:05                     ` Damien Le Moal
2021-11-04 12:16                     ` Herbert Xu
2021-11-04 13:11                       ` Geert Uytterhoeven
2021-11-04 13:30                         ` Herbert Xu
2021-11-04 15:18                           ` Ido Schimmel
2021-11-05  7:26                             ` crypto: api - Fix boot-up crash when crypto " Herbert Xu
2021-11-05 14:33                               ` Ido Schimmel
2021-11-05 18:00                               ` Geert Uytterhoeven
2021-10-26 16:33   ` [v2 PATCH] crypto: api - Fix built-in testing dependency failures Guenter Roeck
2021-10-27  2:59     ` Herbert Xu
2021-10-27  3:48       ` Guenter Roeck
2021-11-06  3:47     ` Herbert Xu
2021-11-06 14:55       ` Guenter Roeck
2021-12-22 10:22         ` Uwe Kleine-König [this message]
2021-12-22 10:37           ` Uwe Kleine-König
2021-12-29  2:05           ` Herbert Xu
2021-12-29 11:05             ` Uwe Kleine-König
2022-03-16  1:10               ` Herbert Xu
2022-03-16 16:37                 ` Uwe Kleine-König
2022-03-16 21:44                   ` Uwe Kleine-König
2022-03-16 22:38                     ` Herbert Xu
2022-03-16 22:55                   ` [PATCH] crypto: arm/aes-neonbs-cbc - Select generic cbc and aes Herbert Xu
2022-03-17  7:11                     ` Uwe Kleine-König
2022-03-17  9:16                     ` Philipp Zabel
2022-03-17 22:15                       ` Herbert Xu

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=20211222102246.qibf7v2q4atl6gc6@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=ebiggers@kernel.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=kernel@pengutronixx.de \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=ssorce@redhat.com \
    --cc=vdronov@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.