Project Number Date
test_Tails_ISO_20268-more-early-patch-functionality 34 08 Apr 2024, 06:49

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
System memory erasure on shutdown 47 1 5 0 0 53 5 1 6 28:55.114 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.
19.096
Before features/support/hooks.rb:259 0.003
Given I have started Tails from DVD without network and logged in 8.108
And I prepare Tails for memory erasure tests 0.519
When I start a process allocating 128 MiB of memory with a known pattern 2.677
Then patterns cover at least 128 MiB in the guest's memory 3.229

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

When I kill the allocating process 0.704
Then I find very few patterns in the guest's memory 3.856

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

After features/support/hooks.rb:305 0.634
After features/support/hooks.rb:89 0.000
21.863
Before features/support/hooks.rb:259 0.002
Given I have started Tails from DVD without network and logged in 7.974
And I prepare Tails for memory erasure tests 0.397
And I find very few patterns in the guest's memory 3.830

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

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

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

When I umount "/mnt" 1.185
Then I find very few patterns in the guest's memory 3.703

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

After features/support/hooks.rb:305 0.949
After features/support/hooks.rb:89 0.000
45.017
Before features/support/hooks.rb:259 0.003
Given I have started Tails from DVD without network and logged in 8.225
And I prepare Tails for memory erasure tests 0.424
When I plug and mount a 128 MiB USB drive with a vfat filesystem 7.929
Then I find very few patterns in the guest's memory 4.104

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

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

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

When I umount the USB drive 0.871
Then I find very few patterns in the guest's memory 4.280

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

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

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

When I umount the USB drive 0.326
Then I find very few patterns in the guest's memory 4.441

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

After features/support/hooks.rb:305 0.894
After features/support/hooks.rb:89 0.000
1:1.046
Before features/support/hooks.rb:259 0.003
Given I have started Tails from DVD without network and logged in 8.150
And I prepare Tails for memory erasure tests 0.440
When I plug and mount a 128 MiB USB drive with an ext4 filesystem encrypted with password "asdf" 29.806
Then I find very few patterns in the guest's memory 3.416

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

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

Pattern coverage: 106.113% (97 MiB out of 91 MiB reference memory)

When I umount the USB drive 0.631
Then I find very few patterns in the guest's memory 3.456

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

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

Pattern coverage: 106.116% (97 MiB out of 91 MiB reference memory)

When I umount the USB drive 0.488
Then I find very few patterns in the guest's memory 3.858

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

After features/support/hooks.rb:305 0.771
After features/support/hooks.rb:89 0.000
49.390
Before features/support/hooks.rb:259 0.002
Given I have started Tails from DVD without network and logged in 8.688
And I prepare Tails for memory erasure tests 0.649
When I fill a 128 MiB file with a known pattern on the root filesystem 14.056
# ensure the pattern is in memory due to tmpfs, not to disk cache
And I drop all kernel caches 1.077
Then patterns cover at least 128 MiB in the guest's memory 3.101

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

When I trigger shutdown 0.013
And I wait 20 seconds 20.016

Slept for 20 seconds

Then I find very few patterns in the guest's memory 1.786

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

After features/support/hooks.rb:305 3.564
After features/support/hooks.rb:89 0.000
25:38.699
Scenario Erasure of read and write disk caches of persistent data on shutdown
Before features/support/hooks.rb:259 0.003
Steps
Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in 25:38.699
execution expired (RemoteShell::Timeout)
./features/support/helpers/remote_shell.rb:56:in `read'
./features/support/helpers/remote_shell.rb:56:in `block (3 levels) in communicate'
./features/support/helpers/remote_shell.rb:55:in `block (2 levels) in communicate'
./features/support/helpers/remote_shell.rb:42:in `loop'
./features/support/helpers/remote_shell.rb:42:in `block in communicate'
./features/support/helpers/remote_shell.rb:37:in `communicate'
./features/support/helpers/remote_shell.rb:174:in `execute'
./features/support/helpers/remote_shell.rb:185:in `initialize'
./features/support/helpers/dogtail.rb:80:in `new'
./features/support/helpers/dogtail.rb:80:in `run'
./features/support/helpers/dogtail.rb:70:in `initialize'
./features/step_definitions/common_steps.rb:713:in `new'
./features/step_definitions/common_steps.rb:713:in `/^all notifications have disappeared$/'
./features/step_definitions/snapshots.rb:152:in `block in reach_checkpoint'
./features/step_definitions/snapshots.rb:149:in `each'
./features/step_definitions/snapshots.rb:149:in `reach_checkpoint'
./features/step_definitions/snapshots.rb:172:in `/^I\ have\ started\ Tails\ without\ network\ from\ a\ USB\ drive\ with\ a\ persistent\ partition\ enabled\ and\ logged\ in$/'
features/erase_memory.feature:76:in `Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in'
And I prepare Tails for memory erasure tests 0.000
When I fill a 128 MiB file with a known pattern on the persistent filesystem 0.000
When I trigger shutdown 0.000
And I wait 20 seconds 0.000
Then I find very few patterns in the guest's memory 0.000
After features/support/hooks.rb:305 9.809

SCENARIO FAILED: 'Erasure of read and write disk caches of persistent data on shutdown' (at time 00:54:29)

Screenshot: https://jenkins.tails.boum.org/job/test_Tails_ISO_20268-more-early-patch-functionality/34/artifact/build-artifacts/00:54:29_Erasure_of_read_and_write_disk_caches_of_persistent_data_on_shutdown.png

Video: https://jenkins.tails.boum.org/job/test_Tails_ISO_20268-more-early-patch-functionality/34/artifact/build-artifacts/00:54:29_Erasure_of_read_and_write_disk_caches_of_persistent_data_on_shutdown.mkv

After features/support/hooks.rb:89 0.018