Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEST-70-TPM2 subtest cryptsetup is flaky in Github Actions #32697

Closed
DaanDeMeyer opened this issue May 7, 2024 · 0 comments · Fixed by #32886
Closed

TEST-70-TPM2 subtest cryptsetup is flaky in Github Actions #32697

DaanDeMeyer opened this issue May 7, 2024 · 0 comments · Fixed by #32886
Labels
bug 🐛 Programming errors, that need preferential fixing tests

Comments

@DaanDeMeyer
Copy link
Contributor

systemd version the issue has been seen with

main

Used distribution

No response

Linux kernel version used

No response

CPU architectures issue was seen on

None

Component

No response

Expected behaviour you didn't see

No response

Unexpected behaviour you saw

https://github.com/systemd/systemd/actions/runs/8988213589/job/24688524713?pr=32681

Test Journal: https://github.com/systemd/systemd/actions/runs/8988213589/artifacts/1481024155

Steps to reproduce the problem

No response

Additional program output to the terminal or log subsystem illustrating the issue

47/57 systemd:integration-tests / TEST-70-TPM2                  FAIL            129.34s   exit status 1
>>> MALLOC_PERTURB_=186 SYSTEMD_INTEGRATION_TESTS=1 /home/runner/work/systemd/systemd/test/integration-test-wrapper.py --meson-source-dir /home/runner/work/systemd/systemd --meson-build-dir /mnt/mkosi/build --test-name TEST-70-TPM2 --test-number 70 --storage volatile --firmware linux --
――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――
Listing only the last 100 lines from a long log.
[  117.545383] testsuite-70.sh[2455]: sym-keybits: 128
[  117.561871] testsuite-70.sh[2455]: rsa: ae75cbb8ea16c4304fee3ac27b57b91dd519673e1ba7105ac92eae11b164c78aad8e1ac119c46229318356979434bde25f6d694520ad6982ca437f4dee692854e55e84493a619e2f709ceffb102121218d8f382a4e46c1668a1f37292da9d3a03f95cab46b8e63460034064417391c587efd41cae943d3bacd3c0ac29d1003e1b0dbd9b8513b087debd79480c8a76209bd3788d582814245b21261b0a9884f6d129ac3202e0f2eadeb9e925d590110cf5b7ca3d4ecac6b990bbb400a2570b29c4a8bcd23b35b7cec4021393badf0b963e0f3916fce77e66cb4d8d411feb326c44a6eec35a8d0c438a68a1835e1a01788f0089a91e21930e0c00f549288e9d333
[  117.667420] testsuite-70.sh[2457]: ++ tpm2_evictcontrol -c /tmp/primary.ctx
[  117.669191] testsuite-70.sh[2458]: ++ grep persistent-handle
[  117.943615] testsuite-70.sh[2210]: + PERSISTENT_LINE='persistent-handle: 0x81000000'
[  117.945590] testsuite-70.sh[2210]: + PERSISTENT_HANDLE=0x81000000
[  117.947966] testsuite-70.sh[2210]: + tpm2_flushcontext -t
[  118.002670] testsuite-70.sh[2210]: + systemd-cryptenroll --wipe-slot=tpm2 /tmp/systemd-cryptsetup-OMY.IMAGE
[  118.033551] testsuite-70.sh[2210]: + ***
[  118.035090] testsuite-70.sh[2210]: + systemd-cryptenroll --tpm2-device=auto --tpm2-seal-key-handle=81000000 /tmp/systemd-cryptsetup-OMY.IMAGE
[  118.753915] testsuite-70.sh[2210]: + systemd-cryptsetup attach test-volume /tmp/systemd-cryptsetup-OMY.IMAGE - tpm2-device=auto,headless=1
[  119.442779] testsuite-70.sh[2210]: + systemd-cryptsetup detach test-volume
[  119.548936] testsuite-70.sh[2210]: + systemd-cryptenroll --wipe-slot=tpm2 /tmp/systemd-cryptsetup-OMY.IMAGE
[  119.581434] testsuite-70.sh[2210]: + ***
[  119.600363] testsuite-70.sh[2210]: + systemd-cryptenroll --tpm2-device=auto --tpm2-seal-key-handle=0x81000000 /tmp/systemd-cryptsetup-OMY.IMAGE
[  120.358371] testsuite-70.sh[2210]: + systemd-cryptsetup attach test-volume /tmp/systemd-cryptsetup-OMY.IMAGE - tpm2-device=auto,headless=1
[  120.905722] testsuite-70.sh[2210]: + systemd-cryptsetup detach test-volume
[  120.907842] testsuite-70.sh[2210]: + openssl_supports_kdf SSKDF
[  120.909770] testsuite-70.sh[2210]: + local kdf=SSKDF
[  120.911070] testsuite-70.sh[2210]: + openssl kdf -keylen 16 -kdfopt digest:SHA2-256 -kdfopt key:foo -out /dev/null SSKDF
[  120.913649] testsuite-70.sh[2210]: + tpm2_readpublic -c 0x81000001 -o /tmp/srk.pub
[  120.916254] testsuite-70.sh[2483]: name: 000be2cd836372911930548959afc79618694b7046036a767e63777a7fc2d2be5614
[  120.919231] testsuite-70.sh[2483]: qualified name: 000b5f12e5132fa649b43d52947d3ebe97f628d8343b55131c14e46f5f9beabf197c
[  120.922260] testsuite-70.sh[2483]: name-alg:
[  120.923538] testsuite-70.sh[2483]:   value: sha256
[  120.925132] testsuite-70.sh[2483]:   raw: 0xb
[  120.926726] testsuite-70.sh[2483]: attributes:
[  120.928473] testsuite-70.sh[2483]:   value: fixedtpm|fixedparent|sensitivedataorigin|userwithauth|noda|restricted|decrypt
[  120.931966] testsuite-70.sh[2483]:   raw: 0x30472
[  120.933760] testsuite-70.sh[2483]: type:
[  120.935315] testsuite-70.sh[2483]:   value: ecc
[  120.936961] testsuite-70.sh[2483]:   raw: 0x23
[  120.938630] testsuite-70.sh[2483]: curve-id:
[  120.940197] testsuite-70.sh[2483]:   value: NIST p256
[  120.941991] testsuite-70.sh[2483]:   raw: 0x3
[  120.943611] testsuite-70.sh[2483]: kdfa-alg:
[  120.945197] testsuite-70.sh[2483]:   value: null
[  120.947105] testsuite-70.sh[2483]:   raw: 0x10
[  120.948753] testsuite-70.sh[2483]: kdfa-halg:
[  120.950409] testsuite-70.sh[2483]:   value: (null)
[  120.952182] testsuite-70.sh[2483]:   raw: 0x0
[  120.953702] testsuite-70.sh[2483]: scheme:
[  120.955165] testsuite-70.sh[2483]:   value: null
[  120.956737] testsuite-70.sh[2483]:   raw: 0x10
[  120.958208] testsuite-70.sh[2483]: scheme-halg:
[  120.959620] testsuite-70.sh[2483]:   value: (null)
[  120.961386] testsuite-70.sh[2483]:   raw: 0x0
[  120.962932] testsuite-70.sh[2483]: sym-alg:
[  120.964428] testsuite-70.sh[2483]:   value: aes
[  120.965955] testsuite-70.sh[2483]:   raw: 0x6
[  120.967499] testsuite-70.sh[2483]: sym-mode:
[  120.969028] testsuite-70.sh[2483]:   value: cfb
[  120.970626] testsuite-70.sh[2483]:   raw: 0x43
[  120.972271] testsuite-70.sh[2483]: sym-keybits: 128
[  120.973981] testsuite-70.sh[2483]: x: 2842b0dafeb93e31aa9ae0221b776ccf163e764dddf67479a3649fdd43dcae20
[  120.976920] testsuite-70.sh[2483]: y: 6d326b685bde1b51659bcd78c2c89292c75151f2b3fa519aab0705390b421543
[  120.980122] testsuite-70.sh[2210]: + mkdir /tmp/dditest
[  120.982092] testsuite-70.sh[2210]: + cat
[  120.983626] testsuite-70.sh[2210]: + ***
[  120.985515] testsuite-70.sh[2210]: + systemd-repart --tpm2-device-key=/tmp/srk.pub --definitions=/tmp/dditest --empty=create --size=50M /tmp/dditest.raw --tpm2-pcrs=
[  120.995602] testsuite-70.sh[2486]: TYPE        LABEL       UUID                                 PARTNO FILE                      NODE  OFFSET OLD SIZE RAW SIZE      SIZE OLD PADDING RAW PADDING PADDING ACTIVITY
[  121.000647] testsuite-70.sh[2486]: root-x86-64 root-x86-64 ce5a2772-bf6e-429c-a341-3743d24a77e9 0      50-root.conf /tmp/dditest.raw1 1048576        0 51359744   → 48.9M           0           0 → 0B    create
[  121.006180] testsuite-70.sh[2486]:                                                                                                                              Σ = 48.9M                         Σ = 0B
[  121.011637] testsuite-70.sh[2486]:  ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
[  121.018748] testsuite-70.sh[2486]:   └─ 50-root.conf
[  122.367186] operation not supported error, dev loop0, sector 0 op 0x9:(WRITE_ZEROES) flags 0x8000800 phys_seg 0 prio class 0
[  122.370612] operation not supported error, dev loop0, sector 2048 op 0x9:(WRITE_ZEROES) flags 0x8000800 phys_seg 0 prio class 0
[  122.374181] operation not supported error, dev loop0, sector 4096 op 0x9:(WRITE_ZEROES) flags 0x8000800 phys_seg 0 prio class 0
[  122.382028] operation not supported error, dev loop0, sector 6144 op 0x9:(WRITE_ZEROES) flags 0x8000800 phys_seg 0 prio class 0
[  122.390730] operation not supported error, dev loop0, sector 8192 op 0x9:(WRITE_ZEROES) flags 0x8000800 phys_seg 0 prio class 0
[  122.399060] operation not supported error, dev loop0, sector 10240 op 0x9:(WRITE_ZEROES) flags 0x8000800 phys_seg 0 prio class 0
[  122.401709] operation not supported error, dev loop0, sector 12288 op 0x9:(WRITE_ZEROES) flags 0x8000800 phys_seg 0 prio class 0
[  122.404045] operation not supported error, dev loop0, sector 14336 op 0x9:(WRITE_ZEROES) flags 0x8000800 phys_seg 0 prio class 0
[  122.406586] operation not supported error, dev loop0, sector 16384 op 0x9:(WRITE_ZEROES) flags 0x8000800 phys_seg 0 prio class 0
[  122.409675] operation not supported error, dev loop0, sector 18432 op 0x9:(WRITE_ZEROES) flags 0x8000800 phys_seg 0 prio class 0
[  122.641180] testsuite-70.sh[2494]: mke2fs 1.47.0 (5-Feb-2023)
[  122.643228] testsuite-70.sh[2494]: Discarding device blocks:    0/8443���������         ���������done
[  122.646445] testsuite-70.sh[2494]: Creating filesystem with 8443 4k blocks and 2112 inodes
[  122.649346] testsuite-70.sh[2494]: Allocating group tables: 0/1���   ���done
[  122.651685] testsuite-70.sh[2494]: Writing inode tables: 0/1���   ���done
[  122.654284] testsuite-70.sh[2494]: Creating journal (1024 blocks): done
[  122.656652] testsuite-70.sh[2494]: Writing superblocks and filesystem accounting information: 0/1���   ���done
[  122.774296] testsuite-70.sh[2502]: ++ systemd-dissect --attach /tmp/dditest.raw
[  122.801937] testsuite-70.sh[2210]: + DEVICE=/dev/loop1
[  122.803676] testsuite-70.sh[2210]: + udevadm wait --settle --timeout=10 /dev/loop1
[  122.806128] testsuite-70.sh[2210]: + systemd-cryptsetup attach dditest /dev/loop1p1 - tpm2-device=auto,headless=yes
[  122.813267] testsuite-70.sh[2210]: + at_exit
[  122.814721] testsuite-70.sh[2210]: + [[ -n 0x81000000 ]]
[  122.819257] testsuite-70.sh[2210]: + tpm2_evictcontrol -c 0x81000000
[  122.972877] testsuite-70.sh[2505]: persistent-handle: 0x81000000
[  122.974839] testsuite-70.sh[2505]: action: evicted
[  122.986743] testsuite-70.sh[403]: + echo 'Subtest /usr/lib/systemd/tests/testdata/units/testsuite-70.cryptsetup.sh failed'
[  122.989777] testsuite-70.sh[403]: Subtest /usr/lib/systemd/tests/testdata/units/testsuite-70.cryptsetup.sh failed
[  122.992177] testsuite-70.sh[403]: + return 1
@DaanDeMeyer DaanDeMeyer added bug 🐛 Programming errors, that need preferential fixing tests labels May 7, 2024
yuwata added a commit to yuwata/systemd that referenced this issue May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Programming errors, that need preferential fixing tests
Development

Successfully merging a pull request may close this issue.

1 participant