kernel: protection fault trap, code=0 Stopped at sblock+0x4a: movq 0x8(%rax),%rax ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace sblock(fffffd807f546018,fffffd807f546150,1) at sblock+0x4a soassertlocked sys/kern/uipc_socket2.c:323 [inline] sblock(fffffd807f546018,fffffd807f546150,1) at sblock+0x4a sys/kern/uipc_socket2.c:378 sosend(fffffd807f546018,0,ffff800021170608,0,0,0) at sosend+0x280 sys/kern/uipc_socket.c:517 fifo_write(ffff800021170550) at fifo_write+0x7c sys/miscfs/fifofs/fifo_vnops.c:281 VOP_WRITE(fffffd8076267550,ffff800021170608,3,fffffd807f7d7660) at VOP_WRITE+0xbf sys/kern/vfs_vops.c:245 ktrwriteraw(ffff8000ffff6fd0,fffffd8076267550,fffffd807f7d7660,ffff8000211706d0,ffff8000211706b0) at ktrwriteraw+0x15f sys/kern/kern_ktrace.c:666 ktrgenio(ffff8000ffff6fd0,7,0,ffff8000006c7cb0,13ca) at ktrgenio+0x292 ktrwrite2 sys/kern/kern_ktrace.c:630 [inline] ktrgenio(ffff8000ffff6fd0,7,0,ffff8000006c7cb0,13ca) at ktrgenio+0x292 sys/kern/kern_ktrace.c:265 dofilereadv(ffff8000ffff6fd0,7,ffff800021170848,0,ffff800021170940) at dofilereadv+0x2e3 sys/kern/sys_generic.c:269 sys_read(ffff8000ffff6fd0,ffff8000211708e0,ffff800021170940) at sys_read+0x83 sys/kern/sys_generic.c:173 syscall(ffff8000211709b0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000211709b0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe70b0, count: -10 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff800021170410 rbx 0xfffffd807f546150 rdx 0 rcx 0xb rax 0xbabe499398f070d5 r8 0 r9 0 r10 0x3d1bcc8cc473871e r11 0xdcb4b53533e26fed r12 0xfffffd807f546001 r13 0x1 r14 0xfffffd807f5461a0 r15 0xfffffd807f546018 rip 0xffffffff81d930ea sblock+0x4a cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff8000211703b0 ss 0x10 sblock+0x4a: movq 0x8(%rax),%rax ddb{0}> show proc PROC (sshd) pid=9884 stat=onproc flags process=12 proc=1 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff6d30,0xffff8000ffff6020 process=0xffff8000211a2dc8 user=0xffff80002116b000, vmspace=0xfffffd806eea1178 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 55061 265100 15635 0 3 0x80 nanoslp syz-executor.3 55061 247225 15635 0 2 0x4000081 syz-executor.3 55061 234038 15635 0 3 0x4000080 fsleep syz-executor.3 55061 466690 15635 0 3 0x4000080 fsleep syz-executor.3 36230 281444 27695 0 3 0x82 nanoslp syz-executor.5 15635 30471 27695 0 3 0x82 nanoslp syz-executor.3 51193 335325 27695 0 3 0x82 nanoslp syz-executor.6 6666 44574 0 0 3 0x14200 acct acct 29191 61115 27695 0 2 0x83 syz-executor.0 15925 93446 27695 0 3 0x82 nanoslp syz-executor.2 32002 202377 27695 0 2 0x83 syz-executor.4 12169 409941 27695 0 2 0x83 syz-executor.1 28711 158252 27695 0 2 0x83 syz-executor.7 85623 465527 0 0 3 0x14200 bored sosplice 27695 47759 7653 0 2 0x83 syz-fuzzer 27695 329500 7653 0 3 0x4000082 nanoslp syz-fuzzer 27695 153534 7653 0 2 0x4000083 syz-fuzzer 27695 172698 7653 0 3 0x4000082 thrsleep syz-fuzzer 27695 504519 7653 0 2 0x4000083 syz-fuzzer 27695 124100 7653 0 3 0x4000082 thrsleep syz-fuzzer 27695 154980 7653 0 3 0x4000082 kqread syz-fuzzer 27695 94877 7653 0 2 0x4000083 syz-fuzzer 27695 330510 7653 0 3 0x4000082 thrsleep syz-fuzzer 7653 477836 84862 0 3 0x10008a sigsusp ksh *84862 9884 46609 0 7 0x13 sshd 87827 158549 1 0 3 0x100083 ttyin getty 46609 74206 1 0 3 0x88 kqread sshd 65172 467950 47475 74 3 0x1100092 bpf pflogd 47475 372595 1 0 3 0x80 netio pflogd 12762 89839 70355 73 3 0x1100090 kqread syslogd 70355 12784 1 0 3 0x100082 netio syslogd 59365 2025 1 0 2 0x100081 resolvd 8917 245414 14299 77 2 0x100093 dhcpleased 16647 103696 14299 77 3 0x100092 kqread dhcpleased 14299 160651 1 0 3 0x80 kqread dhcpleased 11451 360459 0 0 3 0x14200 bored smr 83145 122069 0 0 2 0x14200 zerothread 58134 230672 0 0 3 0x14200 aiodoned aiodoned 46494 353404 0 0 3 0x14200 syncer update 2392 74201 0 0 3 0x14200 cleaner cleaner 64257 252313 0 0 3 0x14200 reaper reaper 51543 251271 0 0 3 0x14200 pgdaemon pagedaemon 18705 202833 0 0 3 0x14200 bored viomb 71938 484890 0 0 3 0x40014200 acpi0 acpi0 27356 55541 0 0 7 0x40014200 idle1 38734 357767 0 0 3 0x14200 bored softnet 6901 155462 0 0 3 0x14200 bored systqmp 96138 129911 0 0 3 0x14200 bored systq 26121 244363 0 0 3 0x40014200 bored softclock 62061 74469 0 0 3 0x40014200 idle0 1 257916 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 84862 (sshd) thread 0xffff8000ffff6fd0 (9884) exclusive rwlock unplock r = 0 (0xffffffff82986950) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 rwsleep+0x100 sys/kern/kern_synch.c:320 #3 sosend+0x71a sys/kern/uipc_socket.c:553 #4 fifo_write+0x7c sys/miscfs/fifofs/fifo_vnops.c:281 #5 VOP_WRITE+0xbf sys/kern/vfs_vops.c:245 #6 ktrwriteraw+0x15f sys/kern/kern_ktrace.c:666 #7 ktrgenio+0x292 ktrwrite2 sys/kern/kern_ktrace.c:630 [inline] #7 ktrgenio+0x292 sys/kern/kern_ktrace.c:265 #8 dofilereadv+0x2e3 sys/kern/sys_generic.c:269 #9 sys_read+0x83 sys/kern/sys_generic.c:173 #10 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #10 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #11 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82a26318) #0 witness_lock+0x44d #1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 #2 mi_switch+0x3d3 sys/kern/sched_bsd.c:416 #3 sleep_finish+0x198 sys/kern/kern_synch.c:437 #4 rwsleep+0xd5 sys/kern/kern_synch.c:317 #5 sosend+0x71a sys/kern/uipc_socket.c:553 #6 fifo_write+0x7c sys/miscfs/fifofs/fifo_vnops.c:281 #7 VOP_WRITE+0xbf sys/kern/vfs_vops.c:245 #8 ktrwriteraw+0x15f sys/kern/kern_ktrace.c:666 #9 ktrgenio+0x292 ktrwrite2 sys/kern/kern_ktrace.c:630 [inline] #9 ktrgenio+0x292 sys/kern/kern_ktrace.c:265 #10 dofilereadv+0x2e3 sys/kern/sys_generic.c:269 #11 sys_read+0x83 sys/kern/sys_generic.c:173 #12 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #12 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #13 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10219 6569K 7662K 78643K 78450 0 pcb 13 16K 18K 78643K 2449 0 rtable 199 12K 20K 78643K 3379 0 ifaddr 96 23K 24K 78643K 1970 0 sysctl 3 1K 1K 78643K 3 0 counters 56 35K 36K 78643K 390 0 ioctlops 0 0K 8K 78643K 5706 0 iov 0 0K 18K 78643K 1507 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1452 91K 91K 78643K 17222 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 138 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 21 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 11 37K 97K 78643K 15862 0 sigio 0 0K 0K 78643K 399 0 proc 73 91K 128K 78643K 2564 0 subproc 104 6K 6K 78643K 702 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1180 0 in_multi 80 5K 6K 78643K 1691 0 ether_multi 1 0K 0K 78643K 484 0 mrt 1 0K 0K 78643K 73 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 229 1023K 1023K 78643K 229 0 exec 0 0K 2K 78643K 3094 0 pfkey data 0 0K 0K 78643K 6 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 551 1289K 1290K 78643K 96252 0 UVM aobj 131 9K 9K 78643K 135 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1466 0 NDP 13 0K 2K 78643K 308 0 temp 284 4977K 5428K 78643K 272816 0 kqueue 12 18K 26K 78643K 937 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 820 0 817 9 7 2 3 0 8 1 rtentry 112 840 0 758 4 1 3 4 0 8 0 unpcb 136 9099 0 9084 100 97 3 10 0 8 2 syncache 296 42 0 42 12 12 0 1 0 8 0 tcpqe 32 412 0 412 1 1 0 1 0 8 0 tcpcb 736 11055 0 11047 209 206 3 21 0 8 2 arp 120 138 0 122 1 0 1 1 0 8 0 inpcb 312 24750 0 24742 191 184 7 14 0 8 6 rttmr 72 15 0 15 6 6 0 1 0 8 0 ip6q 72 4 0 4 1 1 0 1 0 8 0 ip6af 40 12 0 12 1 1 0 1 0 8 0 nd6 48 195 0 178 1 0 1 1 0 8 0 pkpcb 40 84 0 84 11 11 0 1 0 8 0 kcovpl 48 54 0 46 1 0 1 1 0 8 0 ppxss 1248 68 0 68 18 17 1 1 0 8 1 pfstscr 40 32 0 25 3 2 1 1 0 8 0 pffrag 232 76 0 75 4 3 1 1 0 482 0 pffrnode 88 74 0 73 4 3 1 1 0 8 0 pffrent 40 176 0 175 6 5 1 1 0 8 0 pfosfp 40 1440 0 1014 5 0 5 5 0 8 0 pfosfpen 112 1440 0 717 21 0 21 21 0 8 0 pfrktable 1344 364 0 361 15 14 1 2 0 8 0 pftag 88 20 0 12 1 0 1 1 0 8 0 pfqueue 264 22 0 22 6 6 0 1 0 8 0 pfstitem 24 62 0 45 1 0 1 1 0 8 0 pfstkey 112 248 0 242 1 0 1 1 0 8 0 pfstate 320 176 0 166 4 3 1 3 0 8 0 pfrule 1360 693 0 685 11 10 1 7 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 3299 0 2927 47 20 27 31 0 8 0 art_table 32 3300 0 2927 4 0 4 4 0 8 0 art_node 16 783 0 710 1 0 1 1 0 8 0 sysvmsgpl 40 17 0 5 1 0 1 1 0 8 0 semupl 112 5 0 5 2 2 0 1 0 8 0 semapl 112 18 0 8 1 0 1 1 0 8 0 shmpl 112 132 0 4 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 21322 0 19850 93 0 93 93 0 8 0 ffsino 272 21322 0 19850 99 0 99 99 0 8 0 nchpl 144 41305 0 39662 63 0 63 63 0 8 0 uvmvnodes 80 26256 0 0 536 0 536 536 0 8 0 vnodes 224 26256 0 0 1545 0 1545 1545 0 8 0 namei 1024 152021 0 152021 5 4 1 2 0 8 1 percpumem 16 207 0 167 1 0 1 1 0 8 0 vcpupl 2048 404 0 2 51 0 51 51 0 8 0 vmpool 560 477 0 75 29 0 29 29 0 8 0 pfiaddrpl 120 126 0 122 5 4 1 1 0 8 0 scsiplug 72 11 0 11 3 3 0 1 0 8 0 scxspl 216 114774 0 114774 30 29 1 8 0 8 1 plimitpl 152 1783 0 1766 1 0 1 1 0 8 0 sigapl 424 16097 0 16054 8 1 7 8 0 8 0 futexpl 64 162658 0 162656 1 0 1 1 0 8 0 knotepl 120 840 0 0 17 0 17 17 0 8 0 kqueuepl 216 6989 0 6981 102 97 5 6 0 8 4 pipepl 336 3052 0 3024 64 61 3 9 0 8 0 fdescpl 496 16057 0 16033 7 3 4 5 0 8 0 filepl 152 117506 0 117264 166 151 15 23 0 8 5 lockfpl 104 3769 0 3767 8 7 1 2 0 8 0 lockfspl 48 1101 0 1099 1 0 1 1 0 8 0 sessionpl 144 70 0 53 1 0 1 1 0 8 0 pgrppl 48 82 0 65 1 0 1 1 0 8 0 ucredpl 96 10846 0 10831 1 0 1 1 0 8 0 zombiepl 144 16057 0 16054 3 2 1 1 0 8 0 processpl 1064 16097 0 16054 5 0 5 5 0 8 0 procpl 672 47084 0 47030 30 24 6 10 0 8 0 srpgc 96 67 0 67 13 13 0 1 0 8 0 sosppl 168 93 0 93 18 18 0 1 0 8 0 sockpl 480 34893 0 34867 529 517 12 37 0 8 8 mcl64k 65536 45 0 0 4 1 3 3 0 8 0 mcl16k 16384 33 0 0 4 1 3 3 0 8 0 mcl12k 12288 49 0 0 2 0 2 2 0 8 0 mcl9k 9216 24 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 41 0 0 3 0 3 3 0 8 0 mcl2k2 2112 12 0 0 1 0 1 1 0 8 0 mcl2k 2048 505 0 0 40 4 36 39 0 8 0 mtagpl 96 2110 0 0 42 0 42 42 0 8 0 mbufpl 256 3770 0 0 225 0 225 225 0 8 0 bufpl 288 25454 0 19121 453 0 453 453 0 8 0 anonpl 24 3074346 0 3055860 270 144 126 142 0 186 7 amapchunkpl 152 272631 0 271967 51 17 34 34 0 158 0 amappl16 200 39335 0 38688 132 95 37 48 0 8 0 amappl15 192 2428 0 2428 1 1 0 1 0 8 0 amappl14 184 1775 0 1766 1 0 1 1 0 8 0 amappl13 176 1822 0 1821 1 0 1 1 0 8 0 amappl12 168 2781 0 2775 2 1 1 1 0 8 0 amappl11 160 377 0 358 1 0 1 1 0 8 0 amappl10 152 720 0 712 1 0 1 1 0 8 0 amappl9 144 4746 0 4736 1 0 1 1 0 8 0 amappl8 136 5245 0 5110 6 1 5 5 0 8 0 amappl7 128 3806 0 3792 1 0 1 1 0 8 0 amappl6 120 4792 0 4765 2 1 1 2 0 8 0 amappl5 112 11832 0 11819 1 0 1 1 0 8 0 amappl4 104 4291 0 4256 4 2 2 2 0 8 0 amappl3 96 51364 0 51325 2 0 2 2 0 8 0 amappl2 88 20150 0 20059 4 1 3 3 0 8 0 amappl1 80 383682 0 383116 27 12 15 20 0 8 0 amappl 88 94616 0 94358 8 1 7 7 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 134 0 4 3 0 3 3 0 8 0 uaddrrnd 24 16534 0 16108 3 0 3 3 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 16534 0 16108 3 0 3 3 0 8 0 vmmpekpl 168 114581 0 114486 5 0 5 5 0 8 0 vmmpepl 168 1575044 0 1571687 383 207 176 193 0 357 10 vmsppl 368 16533 0 16108 41 1 40 40 0 8 0 rwobjpl 56 407243 0 379034 409 9 400 400 0 8 0 pdppl 4096 33075 0 32618 1086 615 471 471 0 8 14 pvpl 32 5949600 0 5926116 492 280 212 248 0 265 11 pmappl 248 16533 0 16108 28 0 28 28 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 2636 0 1109 44 0 44 44 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sblock(fffffd807f546018,fffffd807f546150,1) at sblock+0x4a soassertlocked sys/kern/uipc_socket2.c:323 [inline] sblock(fffffd807f546018,fffffd807f546150,1) at sblock+0x4a sys/kern/uipc_socket2.c:378 sosend(fffffd807f546018,0,ffff800021170608,0,0,0) at sosend+0x280 sys/kern/uipc_socket.c:517 fifo_write(ffff800021170550) at fifo_write+0x7c sys/miscfs/fifofs/fifo_vnops.c:281 VOP_WRITE(fffffd8076267550,ffff800021170608,3,fffffd807f7d7660) at VOP_WRITE+0xbf sys/kern/vfs_vops.c:245 ktrwriteraw(ffff8000ffff6fd0,fffffd8076267550,fffffd807f7d7660,ffff8000211706d0,ffff8000211706b0) at ktrwriteraw+0x15f sys/kern/kern_ktrace.c:666 ktrgenio(ffff8000ffff6fd0,7,0,ffff8000006c7cb0,13ca) at ktrgenio+0x292 ktrwrite2 sys/kern/kern_ktrace.c:630 [inline] ktrgenio(ffff8000ffff6fd0,7,0,ffff8000006c7cb0,13ca) at ktrgenio+0x292 sys/kern/kern_ktrace.c:265 dofilereadv(ffff8000ffff6fd0,7,ffff800021170848,0,ffff800021170940) at dofilereadv+0x2e3 sys/kern/sys_generic.c:269 sys_read(ffff8000ffff6fd0,ffff8000211708e0,ffff800021170940) at sys_read+0x83 sys/kern/sys_generic.c:173 syscall(ffff8000211709b0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000211709b0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe70b0, count: -10 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> tace No such command