[Bug 255997] fpu_kern_thread is called before fpu_initialstate has been set in ktls_kern_thread

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 27 May 2021 15:20:47 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255997

John Baldwin <jhb_at_FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kib_at_FreeBSD.org

--- Comment #1 from John Baldwin <jhb_at_FreeBSD.org> ---
The issue is that fpuinitstate SYSINIT runs at SI_SUB_DRIVERS.  On the one hand
I'd probably like to defer creation of the KTLS thread pool until the first
use, but the immediate fix is probably to init fpuinitstate earlier.  I'm not
sure why we don't do that in something like SI_SUB_CPU?

However, I'm curious how you are managing to get the KTLS threads to try to use
the FPU prior to SI_SUB_DRIVERS since they will only do crypto work in after a
userland call to setsockopt() post boot to enable KTLS on a socket.

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Thu May 27 2021 - 15:20:47 UTC

Original text of this message