From a059115bfaf4c7e0c4723be917903b54f0dfc899 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 12 Oct 2017 02:14:26 +0200 Subject: noise: handshake constants can be read-only after init --- src/noise.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/noise.c b/src/noise.c index f4d4deb..72b57cc 100644 --- a/src/noise.c +++ b/src/noise.c @@ -24,8 +24,8 @@ static const u8 handshake_name[37] = "Noise_IKpsk2_25519_ChaChaPoly_BLAKE2s"; static const u8 identifier_name[34] = "WireGuard v1 zx2c4 Jason@zx2c4.com"; -static u8 handshake_init_hash[NOISE_HASH_LEN] __read_mostly; -static u8 handshake_init_chaining_key[NOISE_HASH_LEN] __read_mostly; +static u8 handshake_init_hash[NOISE_HASH_LEN] __ro_after_init; +static u8 handshake_init_chaining_key[NOISE_HASH_LEN] __ro_after_init; static atomic64_t keypair_counter = ATOMIC64_INIT(0); void __init noise_init(void) -- cgit v1.2.3-59-g8ed1b