Linux 6.6.76-rc1 regression due to crypto-api-fix-boot-up-self-test-race

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

 



Compared to 6.6.75, 6.6.76-rc1 freezes up for roughly one minute
during boot, and I think the log messages are indicating a crypto
self-test failure afterward. I have tried it on two different
computers (a Core 2 Duo-based PC and a Haswell-based 2015 15" MacBook
Pro) and it happens 100% of the time on both. I bisected it down to
crypto-api-fix-boot-up-self-test-race ("crypto: api - Fix boot-up
self-test race"). Reverting that one patch from 6.6.76-rc1 fixes the
regression for me.

By the way, I also tested 6.13.2-rc1 and 6.12.13-rc1, and this bug did
not reproduce on either.

Log excerpt:

[    4.523861] ima: No TPM chip found, activating TPM-bypass!
[    4.534858] ima: Allocated hash algorithm: sha256
[    4.544294] ima: No architecture policies found
[    4.553384] evm: Initialising EVM extended attributes:
[    4.563682] evm: security.selinux
[    4.570339] evm: security.SMACK64 (disabled)
[    4.578900] evm: security.SMACK64EXEC (disabled)
[    4.588156] evm: security.SMACK64TRANSMUTE (disabled)
[    4.598279] evm: security.SMACK64MMAP (disabled)
[    4.607534] evm: security.apparmor
[    4.614363] evm: security.ima
[    4.620326] evm: security.capability
[    4.627502] evm: HMAC attrs: 0x1
[   65.685967] random: crng init done
[   68.452968] DRBG: could not allocate digest TFM handle: hmac(sha512)
[   68.465701] alg: drbg: Failed to reset rng
[   68.473914] alg: drbg: Test 0 failed for drbg_nopr_hmac_sha512
[   68.485595] alg: self-tests for stdrng using drbg_nopr_hmac_sha512
failed (rc=-22)
[   68.485597] ------------[ cut here ]------------
[   68.510017] alg: self-tests for stdrng using drbg_nopr_hmac_sha512
failed (rc=-22)
[   68.510035] WARNING: CPU: 1 PID: 78 at crypto/testmgr.c:5936
alg_test+0x49e/0x610
[   68.540198] Modules linked in:
[   68.546332] CPU: 1 PID: 78 Comm: cryptomgr_test Not tainted 6.6.76-rc1 #1
[   68.559920] Hardware name: Gigabyte Technology Co., Ltd.
G41MT-S2PT/G41MT-S2PT, BIOS F2 12/06/2011
[   68.579005] RIP: 0010:alg_test+0x49e/0x610
[   68.587220] Code: de 48 89 df 89 04 24 e8 70 ed fe ff 44 8b 0c 24
e9 bc fc ff ff 44 89 c9 48 89 ea 4c 89 ee 48 c7 c7 80 9a ed ad e8 f2
74 b2 ff <0f> 0b 44 8b 0c 24 e9 a1 fe ff ff 8b 05 21 04 c2 01 85 c0 74
56 83
[   68.624782] RSP: 0018:ffffbc8380307e10 EFLAGS: 00010286
[   68.635252] RAX: 0000000000000000 RBX: 00000000ffffffff RCX: c0000000ffffefff
[   68.649534] RDX: 0000000000000000 RSI: 00000000ffffefff RDI: 0000000000000001
[   68.663816] RBP: ffffa01c47be0200 R08: 0000000000000000 R09: ffffbc8380307c98
[   68.678100] R10: 0000000000000003 R11: ffffffffae0d1368 R12: 0000000000000058
[   68.692384] R13: ffffa01c47be0280 R14: 0000000000000058 R15: 0000000000000058
[   68.706665] FS:  0000000000000000(0000) GS:ffffa01d37c80000(0000)
knlGS:0000000000000000
[   68.722871] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   68.734381] CR2: 00007ff2f64622e0 CR3: 0000000146c20000 CR4: 00000000000406e0
[   68.748664] Call Trace:
[   68.753588]  <TASK>
[   68.757817]  ? alg_test+0x49e/0x610
[   68.764817]  ? __warn+0x81/0x130
[   68.771301]  ? alg_test+0x49e/0x610
[   68.778304]  ? report_bug+0x171/0x1a0
[   68.785652]  ? console_unlock+0x78/0x120
[   68.793521]  ? handle_bug+0x58/0x90
[   68.800525]  ? exc_invalid_op+0x17/0x70
[   68.808221]  ? asm_exc_invalid_op+0x1a/0x20
[   68.816611]  ? alg_test+0x49e/0x610
[   68.823614]  ? finish_task_switch.isra.0+0x90/0x2d0
[   68.833390]  ? __schedule+0x3c8/0xb00
[   68.840739]  ? __pfx_cryptomgr_test+0x10/0x10
[   68.849473]  cryptomgr_test+0x24/0x40
[   68.856824]  kthread+0xe5/0x120
[   68.863133]  ? __pfx_kthread+0x10/0x10
[   68.870656]  ret_from_fork+0x31/0x50
[   68.877832]  ? __pfx_kthread+0x10/0x10
[   68.885354]  ret_from_fork_asm+0x1b/0x30
[   68.893226]  </TASK>
[   68.897626] ---[ end trace 0000000000000000 ]---


-- 
-Barry K. Nathan  <barryn@xxxxxxxxx>




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux