Files
apfstests/tests/generic/574.out
T
Eric Biggers cfea24abcf generic/574: fix sporadic failure with test_dummy_encryption
When the "test_dummy_encryption" mount option is specified, the
fs-verity file corruption test generic/574 is flaky; it fails about 1%
of the time.  This happens because in the three test cases where a
single byte of the test file is corrupted, sometimes the new byte
happens to be the same as the original.  This is specific to
test_dummy_encryption because the encrypted data is nondeterministic
(and appears random), unlike the unencrypted data.

Fix this by corrupting 5 bytes instead of 1, so that the probability of
failure becomes effectively zero.

Signed-off-by: Eric Biggers <ebiggers@google.com>
2020-08-31 00:26:44 +08:00

92 lines
3.7 KiB
Plaintext

QA output created by 574
# Corruption test: file_len=131072 zap_offset=0 zap_len=5
0dfbe8aa4c20b52e1b8bf3cb6cbdf193 SCRATCH_MNT/file.fsv
Corrupting bytes...
Validating corruption (reading full file)...
md5sum: SCRATCH_MNT/file.fsv: Input/output error
Validating corruption (direct I/O)...
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
Validating corruption (reading just corrupted part)...
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
Validating corruption (reading full file via mmap)...
Bus error
Validating corruption (reading just corrupted part via mmap)...
Bus error
# Corruption test: file_len=131072 zap_offset=4091 zap_len=5
0dfbe8aa4c20b52e1b8bf3cb6cbdf193 SCRATCH_MNT/file.fsv
Corrupting bytes...
Validating corruption (reading full file)...
md5sum: SCRATCH_MNT/file.fsv: Input/output error
Validating corruption (direct I/O)...
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
Validating corruption (reading just corrupted part)...
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
Validating corruption (reading full file via mmap)...
Bus error
Validating corruption (reading just corrupted part via mmap)...
Bus error
# Corruption test: file_len=131072 zap_offset=65536 zap_len=65536
0dfbe8aa4c20b52e1b8bf3cb6cbdf193 SCRATCH_MNT/file.fsv
Corrupting bytes...
Validating corruption (reading full file)...
md5sum: SCRATCH_MNT/file.fsv: Input/output error
Validating corruption (direct I/O)...
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
Validating corruption (reading just corrupted part)...
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
Validating corruption (reading full file via mmap)...
Bus error
Validating corruption (reading just corrupted part via mmap)...
Bus error
# Corruption test: file_len=131072 zap_offset=131067 zap_len=5
0dfbe8aa4c20b52e1b8bf3cb6cbdf193 SCRATCH_MNT/file.fsv
Corrupting bytes...
Validating corruption (reading full file)...
md5sum: SCRATCH_MNT/file.fsv: Input/output error
Validating corruption (direct I/O)...
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
Validating corruption (reading just corrupted part)...
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
Validating corruption (reading full file via mmap)...
Bus error
Validating corruption (reading just corrupted part via mmap)...
Bus error
# Corruption test: file_len=130999 zap_offset=131000 zap_len=72
f5cca0d7fbb8b02bc6118a9954d5d306 SCRATCH_MNT/file.fsv
Corrupting bytes...
Validating corruption (reading full file)...
md5sum: SCRATCH_MNT/file.fsv: Input/output error
Validating corruption (direct I/O)...
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
Validating corruption (reading just corrupted part)...
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
Validating corruption (reading full file via mmap)...
Bus error
Validating corruption (reading just corrupted part via mmap)...
Bus error
# Corruption test: file_len=200000 zap_offset=100 (in Merkle tree) zap_len=10
4a1e4325031b13f933ac4f1db9ecb63f SCRATCH_MNT/file.fsv
Corrupting bytes...
Validating corruption (reading full file)...
md5sum: SCRATCH_MNT/file.fsv: Input/output error
Validating corruption (direct I/O)...
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
Validating corruption (reading full file via mmap)...
Bus error
# Corruption test: file_len=200000 (sparse) zap_offset=100 (in Merkle tree) zap_len=10
4a1e4325031b13f933ac4f1db9ecb63f SCRATCH_MNT/file.fsv
Corrupting bytes...
Validating corruption (reading full file)...
md5sum: SCRATCH_MNT/file.fsv: Input/output error
Validating corruption (direct I/O)...
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
Validating corruption (reading full file via mmap)...
Bus error