generic: test encryption key revocation during concurrent I/O
authorEric Biggers <ebiggers@google.com>
Fri, 31 Mar 2017 19:48:36 +0000 (12:48 -0700)
committerEryu Guan <eguan@redhat.com>
Sat, 1 Apr 2017 06:05:32 +0000 (14:05 +0800)
commit98ac3be360228dd84e88eb2e289a7fd5783da6dd
treeb6361b51c36364afaf190694749a0b2296e949f2
parent9d0c046534581265ef09ca5f2d4c83eb29610a9e
generic: test encryption key revocation during concurrent I/O

Add a test which revokes a keyring key while other processes are
performing I/O on an encrypted file that was "unlocked" using that key.
The crashes unpatched kernels with filesystem encryption enabled.

This bug was present in kernels v4.2 and later.  It has been fixed in
v4.11-rc4, v4.10.7, v4.9.20, and v4.4.59.

Cc: Theodore Ts'o <tytso@mit.edu>
Cc: Jaegeuk Kim <jaegeuk@kernel.org>
Cc: Richard Weinberger <richard@nod.at>
Cc: Michael Halcrow <mhalcrow@google.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/encrypt
tests/generic/421 [new file with mode: 0755]
tests/generic/421.out [new file with mode: 0644]
tests/generic/group