Project Number Date
test_Tails_ISO_test-snapshot-restore-improvements 2 21 Aug 2026, 16:21

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
System memory erasure on shutdown 40 1 10 0 0 51 5 1 6 13:34.196 Failed
Feature System memory erasure on shutdown
As a Tails user when I shutdown Tails I want the system memory to be free from sensitive data.
17.017
Before features/support/hooks.rb:274 0.000
Before features/support/hooks.rb:281 0.007
Given I have started Tails from DVD without network and logged in 3.704
And I prepare Tails for memory erasure tests 0.305
When I start a process allocating 128 MiB of memory with a known pattern 2.180
# Since Debian Trixie we only get 99.610% coverage (tails#21012)
Then patterns cover at least 127 MiB in the guest's memory 2.995

Pattern coverage: 100.395% (127 MiB out of 127 MiB reference memory)

When I kill the allocating process 0.215
Then I find very few patterns in the guest's memory after 5 seconds 7.616

Pattern coverage: 0.000% (0 MiB out of 1482 MiB reference memory)

After features/support/hooks.rb:339 0.728
After features/support/hooks.rb:108 0.000
16.667
Before features/support/hooks.rb:274 0.000
Before features/support/hooks.rb:281 0.002
Given I have started Tails from DVD without network and logged in 3.473
And I prepare Tails for memory erasure tests 0.454
And I find very few patterns in the guest's memory 2.406

Pattern coverage: 0.000% (0 MiB out of 1479 MiB reference memory)

When I mount a 128 MiB tmpfs on "/mnt" and fill it with a known pattern 1.443
Then patterns cover at least 99% of the test FS size in the guest's memory 2.801

Pattern coverage: 100.000% (128 MiB out of 128 MiB reference memory)

When I umount "/mnt" 0.368
Then I find very few patterns in the guest's memory after 3 seconds 5.719

Pattern coverage: 0.000% (0 MiB out of 1479 MiB reference memory)

After features/support/hooks.rb:339 0.501
After features/support/hooks.rb:108 0.000
33.886
Before features/support/hooks.rb:274 0.000
Before features/support/hooks.rb:281 0.001
Given I have started Tails from DVD without network and logged in 3.406
And I prepare Tails for memory erasure tests 0.265
When I plug and mount a 128 MiB USB drive with a vfat filesystem 5.413
Then I find very few patterns in the guest's memory 2.751

Pattern coverage: 0.000% (0 MiB out of 1481 MiB reference memory)

# write cache
When I fill the USB drive with a known pattern 2.863
Then patterns cover at least 75% of the test FS size in the guest's memory 2.921

Pattern coverage: 100.000% (127 MiB out of 127 MiB reference memory)

When I umount the USB drive 0.696
Then I find very few patterns in the guest's memory after 3 seconds 5.713

Pattern coverage: 0.000% (0 MiB out of 1481 MiB reference memory)

# read cache
When I mount the USB drive again 0.151
And I read the content of the test FS 0.529
Then patterns cover at least 99% of the test FS size in the guest's memory 3.011

Pattern coverage: 100.000% (127 MiB out of 127 MiB reference memory)

When I umount the USB drive 0.427
Then I find very few patterns in the guest's memory after 3 seconds 5.733

Pattern coverage: 0.000% (0 MiB out of 1481 MiB reference memory)

After features/support/hooks.rb:339 0.830
After features/support/hooks.rb:108 0.000
44.158
Scenario Erasure of read and write disk caches on unmount: LUKS-encrypted ext4
Before features/support/hooks.rb:274 0.000
Before features/support/hooks.rb:281 0.002
Steps
Given I have started Tails from DVD without network and logged in 3.407
And I prepare Tails for memory erasure tests 0.280
When I plug and mount a 128 MiB USB drive with an ext4 filesystem encrypted with password "asdf" 40.470
try_for() timeout expired (Timeout::Error)
./features/support/helpers/misc_helpers.rb:145:in `rescue in try_for'
./features/support/helpers/misc_helpers.rb:51:in `try_for'
./features/step_definitions/common_steps.rb:852:in `deal_with_polkit_prompt'
./features/step_definitions/common_steps.rb:1615:in `/^I plug and mount a (\d+) MiB USB drive with an? (.*)$/'
features/erase_memory.feature:51:in `When I plug and mount a 128 MiB USB drive with an ext4 filesystem encrypted with password "asdf"'
Then I find very few patterns in the guest's memory 0.000
# write cache
When I fill the USB drive with a known pattern 0.000
Then patterns cover at least 99% of the test FS size in the guest's memory 0.000
When I umount the USB drive 0.000
Then I find very few patterns in the guest's memory after 3 seconds 0.000
# read cache
When I mount the USB drive again 0.000
And I read the content of the test FS 0.000
Then patterns cover at least 99% of the test FS size in the guest's memory 0.000
When I umount the USB drive 0.000
Then I find very few patterns in the guest's memory after 3 seconds 0.000
After features/support/hooks.rb:339 4.736

SCENARIO FAILED: 'Erasure of read and write disk caches on unmount: LUKS-encrypted ext4' (at time 00:27:51)

Boot log: https://jenkins.tails.boum.org/job/test_Tails_ISO_test-snapshot-restore-improvements/2/artifact/build-artifacts/00:27:51_Erasure_of_read_and_write_disk_caches_on_unmount:_LUKS-encrypted_ext4.file_content_var_log_boot.log

Screenshot: https://jenkins.tails.boum.org/job/test_Tails_ISO_test-snapshot-restore-improvements/2/artifact/build-artifacts/00:27:51_Erasure_of_read_and_write_disk_caches_on_unmount:_LUKS-encrypted_ext4.png

Video: https://jenkins.tails.boum.org/job/test_Tails_ISO_test-snapshot-restore-improvements/2/artifact/build-artifacts/00:27:51_Erasure_of_read_and_write_disk_caches_on_unmount:_LUKS-encrypted_ext4.mkv

Systemd journal: https://jenkins.tails.boum.org/job/test_Tails_ISO_test-snapshot-restore-improvements/2/artifact/build-artifacts/00:27:51_Erasure_of_read_and_write_disk_caches_on_unmount:_LUKS-encrypted_ext4.journal

After features/support/hooks.rb:108 0.002
41.774
Before features/support/hooks.rb:274 0.000
Before features/support/hooks.rb:281 0.002
Given I have started Tails from DVD without network and logged in 3.811
And I prepare Tails for memory erasure tests 0.329
When I fill a 128 MiB file with a known pattern on the root filesystem 12.964
# ensure the pattern is in memory due to tmpfs, not to disk cache
And I drop all kernel caches 1.625
Then patterns cover at least 128 MiB in the guest's memory 2.131

Pattern coverage: 100.000% (128 MiB out of 128 MiB reference memory)

When I trigger shutdown 0.005
Then I find very few patterns in the guest's memory after 20 seconds 20.905

Pattern coverage: 0.000% (0 MiB out of 1478 MiB reference memory)

After features/support/hooks.rb:339 3.821
After features/support/hooks.rb:108 0.000
11:0.691
Before features/support/hooks.rb:274 0.000
Before features/support/hooks.rb:281 0.002
Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in 10:28.331
And I prepare Tails for memory erasure tests 0.283
When I fill a 128 MiB file with a known pattern on the persistent filesystem 11.033
When I trigger shutdown 0.010
Then I find very few patterns in the guest's memory after 20 seconds 21.032

Pattern coverage: 0.000% (0 MiB out of 1431 MiB reference memory)

After features/support/hooks.rb:339 3.673
After features/support/hooks.rb:108 0.034