diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2018-06-14 18:44:44 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2018-06-14 18:44:44 +0000 |
commit | 3577bfdee797f7d4069eff952710d1fb2af59e74 (patch) | |
tree | ec527776a7d94086651e4efb1387e18af5a43b08 /sys/arch | |
parent | 9ef1aaa886ac376c05ca9ee2d3a10154c768df67 (diff) |
Grab the FPU lock before calling aesni_enc
ok guenther
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/amd64/aesni.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/aesni.c b/sys/arch/amd64/amd64/aesni.c index de2d32347aa..14b6f0d7a8a 100644 --- a/sys/arch/amd64/amd64/aesni.c +++ b/sys/arch/amd64/amd64/aesni.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aesni.c,v 1.47 2018/06/01 18:39:48 fcambus Exp $ */ +/* $OpenBSD: aesni.c,v 1.48 2018/06/14 18:44:43 mikeb Exp $ */ /*- * Copyright (c) 2003 Jason Wright * Copyright (c) 2003, 2004 Theo de Raadt @@ -246,7 +246,9 @@ aesni_newsession(u_int32_t *sidp, struct cryptoini *cri) } /* prepare a hash subkey */ + fpu_kernel_enter(); aesni_enc(ses, ses->ses_ghash->H, ses->ses_ghash->H); + fpu_kernel_exit(); break; case CRYPTO_MD5_HMAC: |