Re: BUG: kernel BUG at crypto/algapi.c:401 (omap_aes, beaglebone black)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've had some issues with the crypto engine conversion lately myself also, but I think it happened only once enabling the crypto tests from Kconfig. Anyway, the series I just posted contains fixes for the crypto engine registration, give it a try and see if it helps (or patch #10/11 in that series at least.)

https://marc.info/?l=linux-crypto-vger&m=147030669304668&w=2

-Tero

On 01/08/16 18:12, Philipp Gesang wrote:
Hi,

I’ve been working with a Beaglebone Black rev. C lately. Distro
is Fedora 24. Things run smoothly with the original 4.5 kernel,
but not with the 4.6 one that comes with a ``dnf update``: The
system does not reboot or poweroff normally and there’s an oops
with every run:

[  146.000769] omap-aes 53500000.aes: failed to create crypto request pump task
[  146.008674] ------------[ cut here ]------------
[  146.013503] kernel BUG at crypto/algapi.c:401!
[  146.018140] Internal error: Oops - BUG: 0 [#2] SMP ARM
[  146.023502] Modules linked in: musb_dsps phy_am335x musb_hdrc cppi41 udc_core phy_am335x_control phy_generic wkup_m3_rproc remoteproc virtio_ring virtio omap_aes(+) crypto_engine omap_sham omap_rn
g omap_hwspinlock hwspinlock_core omap_mailbox at24 nvmem_core musb_am335x omap_wdt 8250_omap leds_gpio cpufreq_dt smsc davinci_mdio mmc_block ti_cpsw cpsw_common ptp pps_core cpsw_ale tda998x davinc
i_cpdma tilcdc drm_kms_helper syscopyarea sysfillrect omap_hsmmc sysimgblt fb_sys_fops omap_dma mmc_core drm
[  146.069862] CPU: 0 PID: 419 Comm: systemd-udevd Tainted: G      D W       4.6.4-301.fc24.armv7hl #1
[  146.079301] Hardware name: Generic AM33XX (Flattened Device Tree)
[  146.085662] task: cfa41d00 ti: dc95e000 task.ti: dc95e000
[  146.091302] PC is at crypto_unregister_alg+0x4c/0x7c
[  146.096482] LR is at crypto_unregister_alg+0x38/0x7c
[  146.101665] pc : [<c050e51c>]    lr : [<c050e508>]    psr: 20070013
[  146.101665] sp : dc95fcf0  ip : 00000000  fp : ffffffff
[  146.113645] r10: cfd43738  r9 : 00000000  r8 : ffffff00
[  146.119098] r7 : 00000000  r6 : 00000000  r5 : 00000000  r4 : bf1ed4c0
[  146.125909] r3 : 00000003  r2 : ffff0001  r1 : 00000000  r0 : c0e59b80
[  146.132723] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[  146.140169] Control: 10c5387d  Table: 9ce0c019  DAC: 00000051
[  146.146165] Process systemd-udevd (pid: 419, stack limit = 0xdc95e220)
[  146.152978] Stack: (0xdc95fcf0 to 0xdc960000)
[  146.157528] fce0:                                     dc95fcf0 dc95fcf0 bf1ed364 cfd43718
[  146.166069] fd00: de1bf010 bf1ec074 db6ffeb0 00000000 00000000 db6ffe10 00000001 00ffffff
[  146.174610] fd20: de1be500 00000800 53500000 5350009f dfde2708 00000200 00000000 00000000
[  146.183151] fd40: 00000000 00000000 c0fba630 bf1ebb18 de1bf010 bf1ed31c 00000000 c0eece18
[  146.191692] fd60: c0fba630 0000001c cff22588 c06708f8 de1bf010 c0fba628 bf1ed31c c066eaac
[  146.200231] fd80: bf1ed31c de1bf010 de1bf010 de1bf044 bf1ed31c c0eecd40 00000000 00000001
[  146.208773] fda0: cff225a4 c066eca4 00000000 bf1ed31c c066ebfc c066cbd0 de020b5c de1bc334
[  146.217314] fdc0: bf1ed31c dc998e00 c0e9a908 c066de74 bf1ed1fb bf1ed201 bf1ed31c cff22680
[  146.225855] fde0: 00000000 c0de04d0 c0de04d0 c066f828 bf1f0000 cff22680 00000000 c0209bf0
[  146.234395] fe00: 8040003f 00000001 0018bce1 00000000 00000001 c0346d54 8040003e db6f6bc0
[  146.242937] fe20: dc95fe40 c0390aa4 db6f6bc0 c038f408 cff22588 c038f408 dc95fe58 c02cfea8
[  146.251477] fe40: 00064cb3 0000000c 00000001 bf1ed780 dc95ff54 bf1ed780 dc95ff54 cff22640
[  146.260018] fe60: bf1ed7c8 cff22580 00000001 c033fb90 bf1ed780 deb5ba98 bf1ed780 dc95ff54
[  146.268559] fe80: 00000001 c02d008c bf1ed78c 00007fff bf1ed780 c02cd8fc 024000c0 c02cd2e0
[  146.277099] fea0: c09447c8 e0f9b394 bf1ed964 e0f995b0 000000cf b6e19a38 cfdf0540 0000572f
[  146.285639] fec0: 00000000 dc95ff48 0000572f 00000000 00000000 00000000 00000000 00000000
[  146.294178] fee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  146.302717] ff00: 00000000 00000000 7fffffff 00000000 b6e19a38 0000000f 0000017b c020fe04
[  146.311258] ff20: dc95e000 00000020 802bc648 c02d0690 7fffffff 00000000 00000002 cfdf0540
[  146.319798] ff40: 00000000 e0f96000 0000572f 00000000 cf8bd800 e0f96000 00005434 e0f9ae1c
[  146.328338] ff60: e0f9aca0 e0f9a380 00002984 00003084 bf1ed6c0 00000008 00000001 0000160c
[  146.336879] ff80: 00000023 00000024 00000020 00000000 00000018 00000000 00000000 b6f04c88
[  146.345420] ffa0: 4eb3d300 c020fddc 00000000 b6f04c88 0000000f b6e19a38 00000000 802c5da0
[  146.353961] ffc0: 00000000 b6f04c88 4eb3d300 0000017b 00020000 7f6930e4 00000000 802bc648
[  146.362502] ffe0: beebc0a0 beebc090 b6e105f0 b6d398e0 60010010 0000000f 57000000 13000013
[  146.371073] [<c050e51c>] (crypto_unregister_alg) from [<bf1ec074>] (omap_aes_probe+0x55c/0x5e0 [omap_aes])
[  146.381218] [<bf1ec074>] (omap_aes_probe [omap_aes]) from [<c06708f8>] (platform_drv_probe+0x58/0xa4)
[  146.390890] [<c06708f8>] (platform_drv_probe) from [<c066eaac>] (driver_probe_device+0x2c0/0x410)
[  146.400195] [<c066eaac>] (driver_probe_device) from [<c066eca4>] (__driver_attach+0xa8/0x10c)
[  146.409135] [<c066eca4>] (__driver_attach) from [<c066cbd0>] (bus_for_each_dev+0x84/0x94)
[  146.417709] [<c066cbd0>] (bus_for_each_dev) from [<c066de74>] (bus_add_driver+0x1c0/0x240)
[  146.426375] [<c066de74>] (bus_add_driver) from [<c066f828>] (driver_register+0xa8/0xe8)
[  146.434772] [<c066f828>] (driver_register) from [<c0209bf0>] (do_one_initcall+0x58/0x1d8)
[  146.443350] [<c0209bf0>] (do_one_initcall) from [<c033fb90>] (do_init_module+0x60/0x1c0)
[  146.451838] [<c033fb90>] (do_init_module) from [<c02d008c>] (load_module+0x1abc/0x1e84)
[  146.460199] [<c02d008c>] (load_module) from [<c02d0690>] (SyS_finit_module+0xbc/0xcc)
[  146.468382] [<c02d0690>] (SyS_finit_module) from [<c020fddc>] (__sys_trace_return+0x0/0x10)
[  146.477105] Code: 1a00000a e5943024 e3530001 0a000000 (e7f001f2)
[  146.483469] ---[ end trace 6625eafb3f05b8e6 ]---

I’ve bisected the issue down to this change:

        0529900a01cb840feb7f7e2f64ed88f7a9ed0031 is the first bad commit
        commit 0529900a01cb840feb7f7e2f64ed88f7a9ed0031
        Author: Baolin Wang <baolin.wang@xxxxxxxxxx>
        Date:   Tue Jan 26 20:25:40 2016 +0800

            crypto: omap-aes - Support crypto engine framework

            Integrate with the newly added crypto engine to make the crypto hardware
            engine underutilized as each block needs to be processed before the crypto
            hardware can start working on the next block.

Which adds the “CRYPTO_ENGINE” module. After blacklisting the
module “omap_aes” the issue vanishes (no oops, system reboots).

Please let me know if you need more information or want me to run
further tests.
Philipp



--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux