kernel: double fault trap, code=0 Stopped at restore_saved+0x32: xorq 0x30(%rsp),%r11 ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace end trace frame: 0x0, count: -1 ddb{0}> show registers rdi 0xffffffff832ca000 end+0x2ca000 rsi 0xffff80002acf34b8 rbp 0 rbx 0 rdx 0 rcx 0xfffffd806aba6ca8 rax 0x1b r8 0 r9 0 r10 0xcaec3968809f78d1 r11 0xb40b9ca7fb90661b r12 0xffff80002acf34b8 r13 0xffff80002a2b2000 r14 0 r15 0xffff80002a286d10 rip 0xffffffff8130b1dc restore_saved+0x32 cs 0x8 rflags 0x10046 __ALIGN_SIZE+0xf046 rsp 0 ss 0x10 restore_saved+0x32: xorq 0x30(%rsp),%r11 ddb{0}> show proc PROC (syz-executor.1) tid=460310 pid=78643 tcnt=2 stat=onproc flags process=8000000 proc=0 runpri=84, usrpri=84, slppri=16, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002acf2f98,0xffff80002acf2d18 process=0xffff8000ffff0018 user=0xffff80002a2b2000, vmspace=0xfffffd806a84b010 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 21074 63861 67078 0 2 0x8000000 syz-executor.6 21074 487580 67078 0 3 0xc000080 fsleep syz-executor.6 *78643 460310 19917 0 7 0x8000000 syz-executor.1 78643 36652 19917 0 3 0xc000080 fsleep syz-executor.1 33146 58427 37334 0 2 0x8000000 syz-executor.4 33146 237821 37334 0 2 0xc000000 syz-executor.4 59342 281266 74652 0 7 0x8000000 syz-executor.2 59342 398395 74652 0 3 0xc000080 fsleep syz-executor.2 97467 226034 74041 0 2 0x8000000 syz-executor.7 97467 18592 74041 0 3 0xc000080 fsleep syz-executor.7 30035 226463 39357 0 3 0x8000080 nanoslp syz-executor.0 30035 423459 39357 0 3 0xc000080 kqsel syz-executor.0 65793 223206 53375 0 3 0x8000080 nanoslp syz-executor.3 65793 63867 53375 0 3 0xc000080 ttyretype syz-executor.3 65793 99175 53375 0 3 0xc000080 fsleep syz-executor.3 6568 485492 64967 0 2 0x8000000 syz-executor.5 6568 478916 64967 0 3 0xc000080 lockf syz-executor.5 6568 320251 64967 0 3 0xc000080 fsleep syz-executor.5 6568 159510 64967 0 3 0xc000080 fsleep syz-executor.5 53375 400484 4970 0 3 0x8000082 nanoslp syz-executor.3 37334 153404 4970 0 3 0x8000082 nanoslp syz-executor.4 64967 39324 4970 0 2 0x8000002 syz-executor.5 39357 172335 4970 0 3 0x8000082 nanoslp syz-executor.0 74652 460978 4970 0 3 0x8000082 nanoslp syz-executor.2 67078 109409 4970 0 3 0x8000082 nanoslp syz-executor.6 2388 356936 1 0 3 0x18100083 ttyin getty 74041 244734 4970 0 3 0x8000082 nanoslp syz-executor.7 19917 320723 4970 0 3 0x8000082 nanoslp syz-executor.1 29919 185591 0 0 3 0x14200 bored sosplice 4970 497930 79530 0 3 0x1a000082 wait syz-fuzzer 4970 85800 79530 0 3 0x1e000082 thrsleep syz-fuzzer 4970 327233 79530 0 3 0x1e000082 wait syz-fuzzer 4970 468884 79530 0 3 0x1e000082 wait syz-fuzzer 4970 235759 79530 0 3 0x1e000082 thrsleep syz-fuzzer 4970 367887 79530 0 3 0x1e000082 thrsleep syz-fuzzer 4970 402444 79530 0 3 0x1e000082 thrsleep syz-fuzzer 4970 238340 79530 0 3 0x1e000082 wait syz-fuzzer 4970 393340 79530 0 3 0x1e000082 kqread syz-fuzzer 4970 177021 79530 0 3 0x1e000082 wait syz-fuzzer 4970 100349 79530 0 3 0x1e000082 thrsleep syz-fuzzer 4970 21576 79530 0 3 0x1e000082 wait syz-fuzzer 4970 169232 79530 0 3 0x1e000082 thrsleep syz-fuzzer 4970 494073 79530 0 3 0x1e000082 wait syz-fuzzer 4970 487732 79530 0 3 0x1e000082 wait syz-fuzzer 4970 56277 79530 0 3 0x1e000082 thrsleep syz-fuzzer 79530 440887 17672 0 3 0x810008a sigsusp ksh 17672 114513 27629 0 3 0x1800009a kqread sshd 27629 159403 1 0 3 0x18000088 kqread sshd 77808 125530 1404 73 3 0x19100090 kqread syslogd 1404 31114 1 0 3 0x18100082 sbwait syslogd 15290 301695 1 0 3 0x18100080 kqread resolvd 74858 450995 25169 77 3 0x18100092 kqread dhcpleased 84427 358848 25169 77 3 0x18100092 kqread dhcpleased 25169 510256 1 0 3 0x18000080 kqread dhcpleased 45030 31716 0 0 3 0x14200 bored smr 37280 360491 0 0 2 0x14200 zerothread 77196 61710 0 0 3 0x14200 aiodoned aiodoned 30389 62539 0 0 3 0x14200 syncer update 82655 425166 0 0 3 0x14200 cleaner cleaner 88345 490900 0 0 3 0x14200 reaper reaper 34794 397746 0 0 3 0x14200 pgdaemon pagedaemon 19807 506197 0 0 3 0x14200 bored viomb 17760 250740 0 0 3 0x40014200 acpi0 acpi0 19060 28630 0 0 3 0x40014200 idle1 89712 308997 0 0 3 0x14200 bored softnet3 33924 117760 0 0 3 0x14200 bored softnet2 63071 397593 0 0 3 0x14200 bored softnet1 52067 168041 0 0 3 0x14200 bored softnet0 29580 433034 0 0 3 0x14200 bored systqmp 71180 453501 0 0 3 0x14200 bored systq 96976 206906 0 0 3 0x14200 tmoslp softclockmp 15874 288917 0 0 3 0x40014200 tmoslp softclock 89497 440560 0 0 3 0x40014200 idle0 1 187480 0 0 3 0x8080082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive sched_lock &sched_lock r = 0 (0xffffffff82df76a8) #0 witness_lock+0x446 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x446 sys/kern/subr_witness.c:1157 #1 sleep_finish+0x145 sys/kern/kern_synch.c:401 #2 rwsleep+0xb3 sys/kern/kern_synch.c:300 #3 futex_wait+0x297 sys/kern/sys_futex.c:250 #4 sys_futex+0xfb sys/kern/sys_futex.c:101 #5 syscall+0x8cf mi_syscall sys/sys/syscall_mi.h:180 [inline] #5 syscall+0x8cf sys/arch/amd64/amd64/trap.c:577 #6 Xsyscall+0x128 Process 59342 (syz-executor.2) thread 0xffff80002acf39d8 (281266) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10229 6440K 7082K 166960K 17736 0 pcb 18 14K 16K 166960K 623 0 rtable 178 13K 15K 166960K 1961 0 pf 32 9K 10K 166960K 325 0 ifaddr 38 15K 17K 166960K 317 0 ifgroup 57 2K 2K 166960K 489 0 sysctl 4 1K 1K 166960K 4 0 counters 66 36K 37K 166960K 320 0 ioctlops 0 0K 4K 166960K 1807 0 iov 0 0K 16K 166960K 235 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1479 93K 93K 166960K 5069 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 54 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 220 0 dirhash 12 2K 2K 166960K 99 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 18 65K 85K 166960K 3743 0 sigio 0 0K 0K 166960K 81 0 proc 60 79K 128K 166960K 1870 0 subproc 104 6K 7K 166960K 663 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 589 0 in_multi 76 5K 7K 166960K 664 0 ether_multi 1 0K 0K 166960K 21 0 mrt 1 0K 0K 166960K 11 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 1310 0 pfkey data 0 0K 0K 166960K 6 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 308 122K 159K 166960K 34102 0 UVM aobj 96 7K 7K 166960K 110 0 pinsyscall 38 76K 100K 166960K 6046 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 172 0 NDP 12 0K 2K 166960K 241 0 temp 76 6812K 7308K 166960K 108674 0 kqueue 13 20K 29K 166960K 525 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 523 0 520 2 1 1 2 0 8 0 rtentry 112 666 0 589 4 0 4 4 0 8 0 unpcb 144 2690 0 2674 8 7 1 3 0 8 0 syncache 336 31 0 31 14 14 0 1 0 8 0 tcpcb 808 1289 0 1284 41 40 1 8 0 8 0 arp 120 120 0 105 1 0 1 1 0 8 0 ipq 40 2 0 2 2 2 0 1 0 8 0 ipqe 40 5 0 5 2 2 0 1 0 8 0 inpcb 384 4134 0 4124 70 67 3 15 0 8 1 nd6 136 178 0 159 1 0 1 1 0 8 0 pkpcb 40 71 0 71 19 19 0 1 0 8 0 kcovpl 48 51 0 43 1 0 1 1 0 8 0 ppxss 1168 55 0 55 21 20 1 1 0 8 1 pffrag 232 24 0 21 6 5 1 1 0 482 0 pffrnode 88 23 0 20 6 5 1 1 0 8 0 pffrent 40 291 0 288 6 5 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 272 0 234 1 0 1 1 0 8 0 pfstkey 128 272 0 234 3 1 2 2 0 8 0 pfstate 376 272 0 234 11 6 5 5 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2531 0 2169 45 20 25 29 0 8 0 art_table 32 2532 0 2169 4 0 4 4 0 8 0 art_node 16 656 0 587 1 0 1 1 0 8 0 sysvmsgpl 40 25 0 18 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 217 0 207 1 0 1 1 0 8 0 shmpl 112 107 0 14 3 0 3 3 0 8 0 dirhash 1024 75 0 58 3 0 3 3 0 8 0 dino2pl 256 7387 0 5849 97 0 97 97 0 8 0 ffsino 272 7387 0 5849 104 0 104 104 0 8 0 nchpl 144 12478 0 11875 67 40 27 67 0 8 0 uvmvnodes 80 10006 0 0 205 0 205 205 0 8 0 vnodes 216 10006 0 0 556 0 556 556 0 8 0 namei 1024 47651 0 47651 13 12 1 2 0 8 1 percpumem 16 174 0 127 1 0 1 1 0 8 0 vcpupl 3904 10 0 3 2 0 2 2 0 8 0 vmpool 696 21 0 14 1 0 1 1 0 8 0 kstatmem 264 278 0 254 2 0 2 2 0 8 0 scsiplug 72 6 0 6 6 6 0 1 0 8 0 scxspl 216 71270 0 71270 17 16 1 8 1 8 1 plimitpl 152 938 0 922 1 0 1 1 0 8 0 sigapl 424 3988 0 3940 9 3 6 9 0 8 0 futexpl 64 53206 0 53199 23 22 1 1 0 8 0 knotepl 120 1049 0 0 17 0 17 17 0 8 0 kqueuepl 216 1114 0 1104 9 8 1 5 0 8 0 pipepl 320 742 0 712 8 5 3 6 0 8 0 fdescpl 496 3947 0 3918 9 4 5 5 0 8 0 filepl 152 27899 0 27640 49 36 13 18 0 8 0 lockfpl 104 953 0 948 1 0 1 1 0 8 0 lockfspl 48 421 0 417 1 0 1 1 0 8 0 sessionpl 144 68 0 52 1 0 1 1 0 8 0 pgrppl 48 90 0 74 1 0 1 1 0 8 0 ucredpl 104 5080 0 5070 1 0 1 1 0 8 0 zombiepl 144 3940 0 3940 2 1 1 1 0 8 1 processpl 1144 3988 0 3940 6 2 4 6 0 8 0 procpl 656 8143 0 8069 9 2 7 9 0 8 0 srpgc 96 10 0 10 4 4 0 1 0 8 0 sosppl 168 24 0 24 14 14 0 1 0 8 0 sockpl 664 7452 0 7424 84 80 4 14 0 8 0 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 6 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 439 0 0 44 8 36 44 0 8 0 mtagpl 96 83 0 0 3 0 3 3 0 8 0 mbufpl 256 1150 0 0 60 0 60 60 0 8 0 bufpl 280 15237 0 4981 733 0 733 733 0 8 0 anonpl 24 736895 0 730528 263 188 75 155 0 186 0 amapchunkpl 152 120799 0 120059 144 110 34 74 0 158 0 amappl16 200 14252 0 14116 89 74 15 21 0 8 0 amappl15 192 35 0 35 1 1 0 1 0 8 0 amappl14 184 305 0 294 2 1 1 2 0 8 0 amappl13 176 14 0 14 3 3 0 1 0 8 0 amappl12 168 5290 0 5256 2 0 2 2 0 8 0 amappl11 160 76 0 66 1 0 1 1 0 8 0 amappl10 152 102 0 93 1 0 1 1 0 8 0 amappl9 144 162 0 162 2 2 0 1 0 8 0 amappl8 136 355 0 318 3 1 2 3 0 8 0 amappl7 128 76 0 61 1 0 1 1 0 8 0 amappl6 120 911 0 895 2 1 1 2 0 8 0 amappl5 112 354 0 340 1 0 1 1 0 8 0 amappl4 104 906 0 872 2 0 2 2 0 8 0 amappl3 96 21105 0 21009 3 0 3 3 0 8 0 amappl2 88 4428 0 4356 4 2 2 4 0 8 0 amappl1 80 23359 0 22857 22 10 12 22 0 8 1 amappl 88 32983 0 32766 6 0 6 6 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 109 0 14 2 0 2 2 0 8 0 uaddrrnd 24 3968 0 3932 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3968 0 3932 1 0 1 1 0 8 0 vmmpekpl 168 30307 0 30241 4 0 4 4 0 8 0 vmmpepl 168 261691 0 259711 256 162 94 116 0 357 5 vmsppl 440 3967 0 3932 5 0 5 5 0 8 0 rwobjpl 56 76046 0 64822 172 13 159 159 0 8 0 pdppl 4096 7943 0 7871 309 236 73 81 0 8 1 pvpl 32 49822 0 0 400 2 398 398 0 265 0 pmappl 248 3967 0 3932 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 760 0 352 13 0 13 13 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace end trace frame: 0x0, count: -1 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800029cebff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff82df74a0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82df74a0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 wakeup_n(ffff80002a287c70,1) at wakeup_n+0x58 sys/kern/kern_synch.c:543 futex_requeue(ae4c06afb10,7fffffff,0,0,2) at futex_requeue+0x108 sys/kern/sys_futex.c:296 sys_futex(ffff80002acf39d8,ffff80002a2a9880,ffff80002a2a97d0) at sys_futex+0x11a sys/kern/sys_futex.c:105 syscall(ffff80002a2a9880) at syscall+0x8cf mi_syscall sys/sys/syscall_mi.h:180 [inline] syscall(ffff80002a2a9880) at syscall+0x8cf sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7256337b1900, count: -9