Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1101402ybv; Thu, 20 Feb 2020 13:14:08 -0800 (PST) X-Google-Smtp-Source: APXvYqzB5PysPi2LmhVKsKKcYJAeQuGC53AZrpYosLC0SasVeVz2/NkFXSXj9Tk4dE4aFrH5blWU X-Received: by 2002:a05:6808:487:: with SMTP id z7mr3630866oid.59.1582233247911; Thu, 20 Feb 2020 13:14:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582233247; cv=none; d=google.com; s=arc-20160816; b=u8ZxJzlbXGKERnzNKTDqrCauVhpMom2I+xZ+Grg/YdvQbJ6HVGPqDaREza0FevSHg5 +ScB0xMxVFu9+UmMGSHOWMIVNoYz1aVfA5i3ZWD5IPMkKWyFiUAKLjRY72hspwHueZ6Q 74sC/hWtPWWhru+0LY62XovI+7wfRMyDbawLoYaCCZDl45ZbUJzpSgokgFypp7yRUT08 ijOYva5ep+wqYQGlLNRl6lP173Nlfy84trFLYSr+SC/x9C59vPkbaqOm4+4MqibwjLRv RS4kpY5KZ89bgqGG9rcEr7YaYOvt4PhmgvDPd8Jnon+nr1bli+w3GIT/U8G1KZlsgnPe Fx0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=rW5t0PJc3Jr/8TnUKVhYNJ/sFLfIcthwxD1CFSxUYJk=; b=xzUKKcVEtb3UTre9LZgbZ+HYkQfJnaY2kpchq3EpBUDTAffn/mGo5do736IcrdMgVh f0IDLMOk/xG8+xR0M6GSE39DvgAcNZiIe59YB+KXbnJdjLyZ64ApvxmZPMX9+o17BJe5 CEh40zcWOjIwXgS5UD19HhnsMYUA5JARQ2PEFSVx1u6KxaUF9X5wo4JSZIUgijDySYi6 Em2+YiALgmGV/cZQGb7zUP2cinmBO2FZ3fAggEuisDdiEtRQ6qqtBCW0hXYshRB/Q98O KdiHz2CCgZuaY/GRPm+cyJDHBeAGdoef36EEEZ2ZBBZ7SRPsID+MLJ9b7qoyhe06hiW9 7vfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="x/FOfayU"; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t20si251204oih.70.2020.02.20.13.13.30; Thu, 20 Feb 2020 13:14:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="x/FOfayU"; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729075AbgBTVNU (ORCPT + 99 others); Thu, 20 Feb 2020 16:13:20 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:56300 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726670AbgBTVNU (ORCPT ); Thu, 20 Feb 2020 16:13:20 -0500 Received: by mail-wm1-f65.google.com with SMTP id q9so51639wmj.5 for ; Thu, 20 Feb 2020 13:13:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=rW5t0PJc3Jr/8TnUKVhYNJ/sFLfIcthwxD1CFSxUYJk=; b=x/FOfayUnF/BRMjAioiFNqHeV0zfqdUHqQl8iVfRkmfljeRLLEO2K6AR/+ZU0WooEK cs4LCRRrCIcpXNuNxO+wWGIhk3KldWgzX4cfsgyfMPQerGfnQWOmttpMYSCJLYn8Wnml Yg37DI+oeXXD1O7i9EXd5p6j8aBCzr38LnaJp5B0XGmilQ+AsFldvo+nTzGd6LvfOQD3 /sWSfRLy80BbZJas/ZUSx8ncS/gl53OAhk7iXiDVGSM+BBQwfSCoDSqE4X9BKdObSO+s TfX7lOXXEaxbV8wloNDmbvv/n2yFKAV/fAyBuqv/OCehl7uojWY4cJlBaH+jzmlJiH3K J3kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=rW5t0PJc3Jr/8TnUKVhYNJ/sFLfIcthwxD1CFSxUYJk=; b=LJY9piBP5YwqCXDreH176xLlGRmyTmFnJoL17ULgv9aKfDMwcTiH2if2ZwShs5WfXw 2OCNlYFWJ0nJi9iQhjbSKaduQlJuIC3RBxA/zrARd4eJ8rarEOGPIbqJSjMhBlPL9Ki8 6NlgMKgtieNPoc2QY1tX0myeXw4Gtof4AQ5HQPSEZfNi4VQq+vWMt8z9s+ikxvvkP5ei 0dPSJBfpwOLbdMfgXxYIrWFsbzi01rlu4WW/0N1kaAnMgHKdPw7gFGs2WVwFIh3p+4mz IWKWXssTivBljllWjIWHQAD5pnZRFo0px3I5vCj3lWCAMSgS+8CQigPSHB6TMYQnLrZk 6sUg== X-Gm-Message-State: APjAAAWahFIiOK7vN2mek2U1yErpUZkZHl99svRU/cbZXfY/ebok4bBB cE8bUoKO++JVTW20M3ZoSEXN3gxuFbHJ2RDH5zpSIw== X-Received: by 2002:a05:600c:248:: with SMTP id 8mr6329781wmj.1.1582233198199; Thu, 20 Feb 2020 13:13:18 -0800 (PST) MIME-Version: 1.0 References: <20200123085312.GA24255@Red> <20200220195221.GA17341@Red> In-Reply-To: <20200220195221.GA17341@Red> From: Ard Biesheuvel Date: Thu, 20 Feb 2020 22:13:06 +0100 Message-ID: Subject: Re: [CRASH] crypto: omap: kernel panic when modprobing tcrypt To: LABBE Corentin Cc: Tero Kristo , linux-omap , Herbert Xu , "David S. Miller" , "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , dmitry.kasatkin@nokia.com, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, 20 Feb 2020 at 20:52, LABBE Corentin wrote: > > On Thu, Jan 23, 2020 at 01:59:21PM +0200, Tero Kristo wrote: > > Hi, > > > > Linux-next has huge pile of fixes in place for omap-crypto, so I would > > not recommend testing any older kernels. You are saying -next crashes i= n > > similar manner though? TI internal kernel has couple of additional fixe= s > > against 5.4 stable, but can't see why those would help on this. If you > > have spare time, you could try it out though [1]. > > > > Today's next doesn't compile for me at all for some reason (some toolin= g > > failure) so can't really test it myself right now. > > > > -Tero > > > > [1] > > https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/log/?h=3Dti-lin= ux-5.4.y > > > > I have tested this branch and loading tcrypt lead to a kernel panic Hi Corentin, It would be helpful if you could paste the entire error message. > [ 105.664062] Internal error: Oops: 17 [#1] SMP ARM > [ 105.668792] Modules linked in: vmac xcbc streebog_generic sm3_generic = sha3_generic crct10dif_generic crct10dif_common seed rmd320 rmd256 rmd160 r= md128 cts ccm salsa20_generic camellia_generic fcrypt pcbc tgr192 anubis wp= 512 khazad tea michael_mic arc4 libarc4 cast6_generic cast5_generic cast_co= mmon sha512_arm sha512_generic cfb ofb ux500_cryp aes_arm serpent_generic l= rw twofish_generic twofish_common blowfish_generic blowfish_common md4 tcry= pt(+) ghash_generic gf128mul gcm sha256_generic libsha256 hmac md5 des_gene= ric ctr sha1_arm_neon sha1_arm phy_generic aes_arm_bs crypto_simd cryptd sh= a1_generic omap_aes_driver omap_sham omap2430 ehci_omap omap_des omap_crypt= o libdes phy_twl6030_usb musb_hdrc > [ 105.730743] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W = 5.4.20-00513-gd274af0de6bd #2 > [ 105.730743] Hardware name: Generic OMAP4 (Flattened Device Tree) > [ 105.745849] PC is at omap_sham_finish_req+0x10/0x190 [omap_sham] > [ 105.745880] LR is at omap_sham_done_task+0x58/0x118 [omap_sham] > [ 105.757843] pc : [] lr : [] psr: 20000113 > [ 105.764129] sp : c1701da8 ip : 00000000 fp : ffffe000 > [ 105.769378] r10: c557b268 r9 : 00000040 r8 : c167d100 > [ 105.774627] r7 : c1894b44 r6 : 00000000 r5 : c5622200 r4 : 00000000 > [ 105.781188] r3 : 00000008 r2 : 000002b3 r1 : 00000000 r0 : c5622200 > [ 105.781188] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segme= nt none > [ 105.787750] Control: 10c5387d Table: 854d004a DAC: 00000051 > [ 105.787750] Process swapper/0 (pid: 0, stack limit =3D 0xd5fffd75) > [ 105.806701] Stack: (0xc1701da8 to 0xc1702000) > [ 105.806701] 1da0: c557b240 00000000 ef55b318 c1894b4= 4 c167d100 bf04d63c > [ 105.819305] 1dc0: 00000000 c528bab8 c557b264 00000000 ef55b318 c034d8c= 8 c5544040 00000006 > [ 105.827514] 1de0: c1701efc c1703098 00000007 00000040 00000006 ffffe00= 0 c1894b44 00000100 > [ 105.827514] 1e00: c1703080 c0302298 c1704e48 00000001 c1672388 c167d10= 0 c1704e6c 0000000a > [ 105.827514] 1e20: c1672314 ffffb416 c1703d00 c0f07470 00200002 eea7a66= 8 00000000 ffffe000 > [ 105.852142] 1e40: 00000000 00000000 00000001 ee824000 fa241100 c18ec14= c 00000000 c034e018 > [ 105.860351] 1e60: c167d098 c039be58 c1705528 c1774e04 fa24010c fa24010= 0 c1701ea0 c06e816c > [ 105.860351] 1e80: c0c98518 60000113 ffffffff c1701ed4 ef5655b0 c170000= 0 c18ec14c c0301a8c > [ 105.876800] 1ea0: 00000000 c170e1e8 2dee9000 00000050 c170e1e8 0000000= 0 00000000 c1895418 > [ 105.885009] 1ec0: ef5655b0 00000000 c18ec14c 00000000 ee6b2800 c1701ef= 0 c0c984f0 c0c98518 > [ 105.885009] 1ee0: 60000113 ffffffff 00000051 00000000 9a103e82 0000001= 8 9a0fc74d 00000018 > [ 105.901428] 1f00: 00000018 c167c5a8 ef569b40 c529a5c4 ef5655b0 c170e1e= 8 ffffffff ffff0000 > [ 105.909637] 1f20: ffffe000 c18ec14c c529a580 c0c9ae0c 00000002 c1704e6= c fe687d92 ef5655b0 > [ 105.909637] 1f40: c170e1e8 00000002 00000001 ef5655b0 c1704e48 c167c5a= 8 c170e1e8 c0c989b4 > [ 105.926086] 1f60: ffffe000 c1704e6c c1704eb0 c03770ec c18944b2 0000000= 2 01000000 f99d40c3 > [ 105.934295] 1f80: c15dea3c 000000cd c18a0594 00000001 c18a0540 0000000= 0 00000001 c15dea3c > [ 105.934295] 1fa0: ef585280 c037741c c1704e48 c1500ea8 ffffffff fffffff= f 00000000 c1500664 > [ 105.934295] 1fc0: 00000000 c15dea3c f99844d7 00000000 00000000 c150033= 0 00000051 10c0387d > [ 105.958923] 1fe0: 00000ae7 83f00000 411fc092 10c5387d 00000000 0000000= 0 00000000 00000000 > [ 105.967163] [] (omap_sham_finish_req [omap_sham]) from [] (omap_sham_done_task+0x58/0x118 [omap_sham]) > [ 105.978271] [] (omap_sham_done_task [omap_sham]) from [] (tasklet_action_common.constprop.5+0x70/0x174) > [ 105.978271] [] (tasklet_action_common.constprop.5) from [] (__do_softirq+0x130/0x3b4) > [ 105.999053] [] (__do_softirq) from [] (irq_exit+0x= cc/0xd8) > [ 106.006317] [] (irq_exit) from [] (__handle_domain= _irq+0x60/0xb4) > [ 106.014190] [] (__handle_domain_irq) from [] (gic_= handle_irq+0x58/0x9c) > [ 106.022613] [] (gic_handle_irq) from [] (__irq_svc= +0x6c/0x90) > [ 106.022613] Exception stack(0xc1701ea0 to 0xc1701ee8) > [ 106.022613] 1ea0: 00000000 c170e1e8 2dee9000 00000050 c170e1e8 0000000= 0 00000000 c1895418 > [ 106.043395] 1ec0: ef5655b0 00000000 c18ec14c 00000000 ee6b2800 c1701ef= 0 c0c984f0 c0c98518 > [ 106.043395] 1ee0: 60000113 ffffffff > [ 106.055114] [] (__irq_svc) from [] (cpuidle_enter_= state+0x180/0x5b8) > [ 106.063262] [] (cpuidle_enter_state) from [] (cpui= dle_enter_state_coupled+0x144/0x3c8) > [ 106.072967] [] (cpuidle_enter_state_coupled) from [] (cpuidle_enter+0x50/0x54) > [ 106.081970] [] (cpuidle_enter) from [] (do_idle+0x= 218/0x294) > [ 106.081970] [] (do_idle) from [] (cpu_startup_entr= y+0x18/0x1c) > [ 106.097015] [] (cpu_startup_entry) from [] (start_= kernel+0x480/0x4b0) > [ 106.097015] Code: e92d41f0 e1a05000 e5904040 e1a06001 (e59430bc) > [ 106.111358] ---[ end trace 53e3b1ecd80eac62 ]--- > [ 106.115997] Kernel panic - not syncing: Fatal exception in interrupt > [ 106.115997] SMP: failed to stop secondary CPUs > [ 106.115997] ---[ end Kernel panic - not syncing: Fatal exception in in= terrupt ]---