Bug 250351 - [ZFS] [panic] panic: fpudna while in fpu_kern_enter(FPU_KERN_NOCTX)
Summary: [ZFS] [panic] panic: fpudna while in fpu_kern_enter(FPU_KERN_NOCTX)
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Matt Macy
Depends on:
Reported: 2020-10-14 20:19 UTC by Brooks Davis
Modified: 2020-10-15 16:07 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Brooks Davis freebsd_committer 2020-10-14 20:19:29 UTC
As of r366676 (GitHub export 4b539280260) I get the following panic at boot after updating /etc/rc.d with openzfs bits (I suspect this is the result of populating /etc/zfs/zpool.cache):

panic: fpudna while in fpu_kern_enter(FPU_KERN_NOCTX)                                   
cpuid = 22                                                                              
time = 1602700258                                                                       
KDB: stack backtrace:                                                                   
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe02056ec310          
vpanic() at vpanic+0x182/frame 0xfffffe02056ec360                                       
panic() at panic+0x43/frame 0xfffffe02056ec3c0                                          
fpudna() at fpudna+0x95/frame 0xfffffe02056ec3e0                                        
trap() at trap+0x34b/frame 0xfffffe02056ec4f0                                           
calltrap() at calltrap+0x8/frame 0xfffffe02056ec4f0                                     
--- trap 0x16, rip = 0xffffffff82171ac5, rsp = 0xfffffe02056ec5c0, rbp = 0xfffffe02056ec
5e0 ---                                                                                 
fletcher_4_sse2_native() at fletcher_4_sse2_native+0x25/frame 0xfffffe02056ec5e0        
abd_fletcher_4_iter() at abd_fletcher_4_iter+0x3e/frame 0xfffffe02056ec620              
abd_iterate_func() at abd_iterate_func+0x149/frame 0xfffffe02056ec6b0                   
abd_fletcher_4_native() at abd_fletcher_4_native+0x5f/frame 0xfffffe02056ec880          
zio_checksum_error_impl() at zio_checksum_error_impl+0x22b/frame 0xfffffe02056eca10     
zio_checksum_error() at zio_checksum_error+0x8f/frame 0xfffffe02056eca40                
zio_checksum_verify() at zio_checksum_verify+0x31/frame 0xfffffe02056ecab0              
zio_execute() at zio_execute+0x69/frame 0xfffffe02056ecb00                              
taskqueue_run_locked() at taskqueue_run_locked+0xaa/frame 0xfffffe02056ecb80            
taskqueue_thread_loop() at taskqueue_thread_loop+0x94/frame 0xfffffe02056ecbb0          
fork_exit() at fork_exit+0x80/frame 0xfffffe02056ecbf0                                  
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe02056ecbf0                       
--- trap 0, rip = 0, rsp = 0, rbp = 0 ---                                               
KDB: enter: panic                                                                       
[ thread pid 0 tid 100805 ]                                                             
Stopped at      kdb_enter+0x37: movq    $0,0x10ad516(%rip)                              

At jhb@'s suggestion I added logging of fpu_kern_enter(FPU_KERN_NOCTX) and the resulting boot (limited by serial console buffer) is at https://reviews.freebsd.org/P439

I'm happy to provide more information on the pools in question.
Comment 1 Konstantin Belousov freebsd_committer 2020-10-15 00:48:14 UTC
can you show disassemble of your fletcher_4_sse2_native ?