diff options
author | Jason A. Donenfeld <[email protected]> | 2022-03-01 23:26:55 +0100 |
---|---|---|
committer | Jason A. Donenfeld <[email protected]> | 2022-03-12 18:00:56 -0700 |
commit | 2d6919c3205b141ba85fb733b2a67937ff85dc7f (patch) | |
tree | 962277837c89167e54352a7ea647837a3139a156 /net/lapb/lapb_subr.c | |
parent | f3c2682bad7bc6033c837e9c66e5af881fe8d465 (diff) |
wireguard: device: clear keys on VM fork
When a virtual machine forks, it's important that WireGuard clear
existing sessions so that different plaintexts are not transmitted using
the same key+nonce, which can result in catastrophic cryptographic
failure. To accomplish this, we simply hook into the newly added vmfork
notifier.
As a bonus, it turns out that, like the vmfork registration function,
the PM registration function is stubbed out when CONFIG_PM_SLEEP is not
set, so we can actually just remove the maze of ifdefs, which makes it
really quite clean to support both notifiers at once.
Cc: Dominik Brodowski <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Theodore Ts'o <[email protected]>
Acked-by: Jakub Kicinski <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions