kernel: protection fault trap, code=0 Stopped at pool_do_put+0x115: movq 0x8(%rbx),%rbx ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace pool_do_put(ffffffff82e112a0,fffffd80670d45c0) at pool_do_put+0x115 pool_put(ffffffff82e112a0,fffffd80670d45c0) at pool_put+0x8f sys/kern/subr_pool.c:799 soclose(fffffd80670d45c0,0) at soclose+0x4ba sys/kern/uipc_socket.c:440 soo_close(fffffd80728f5be8,ffff8000261558b0) at soo_close+0x44 fdrop(fffffd80728f5be8,ffff8000261558b0) at fdrop+0xcb sys/kern/kern_descrip.c:1274 closef(fffffd80728f5be8,ffff8000261558b0) at closef+0x120 sys/kern/kern_descrip.c:1258 fdfree(ffff8000261558b0) at fdfree+0xf4 sys/kern/kern_descrip.c:1190 exit1(ffff8000261558b0,0,0,1) at exit1+0x37d sys/kern/kern_exit.c:197 sys_exit(ffff8000261558b0,ffff80002e44b9b0,ffff80002e44ba00) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e44ba80) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e44ba80) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:632 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x793d45d0d750, count: -11 ddb{0}> show registers rdi 0 rsi 0xfffffd80670d47a8 rbp 0xffff80002e44b720 rbx 0x42a020b1d6d081b1 rdx 0 rcx 0xc rax 0xffff8000261558b0 r8 0 r9 0 r10 0xdd06004026e8c02e r11 0x11091235300b99c6 r12 0xfffffd80670d45c0 r13 0xadf22d6137800cf6 r14 0xffffffff82e112a0 socket_pool r15 0xfffffd80670d4f90 rip 0xffffffff81524755 pool_do_put+0x115 cs 0x8 rflags 0x10296 __ALIGN_SIZE+0xf296 rsp 0xffff80002e44b670 ss 0x10 pool_do_put+0x115: movq 0x8(%rbx),%rbx ddb{0}> show proc PROC (syz-executor.7) pid=406876 stat=onproc flags process=1018 proc=2000 pri=32, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000212a7338,0xffff800029382050 process=0xffff80002121f250 user=0xffff80002e446000, vmspace=0xfffffd806be5c3a8 estcpu=32, cpticks=0, pctcpu=0.2 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 95489 321208 60872 32767 3 0x90 nanoslp syz-executor.0 95489 372239 60872 32767 3 0x4000010 kernel: protection fault trap, code=0 Faulted in DDB; continuing... ddb{0}> show all locks CPU 0: exclusive mutex sockpl r = 0 (0xffffffff82e112b0) #0 witness_lock+0x44d #1 mtx_enter_try+0x104 #2 mtx_enter+0x4f sys/kern/kern_lock.c:266 #3 pool_put+0x84 sys/kern/subr_pool.c:797 #4 soclose+0x4ba sys/kern/uipc_socket.c:440 #5 soo_close+0x44 #6 fdrop+0xcb sys/kern/kern_descrip.c:1274 #7 closef+0x120 sys/kern/kern_descrip.c:1258 #8 fdfree+0xf4 sys/kern/kern_descrip.c:1190 #9 exit1+0x37d sys/kern/kern_exit.c:197 #10 sys_exit+0x1a sys/kern/kern_exit.c:89 #11 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #11 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:632 #12 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10178 6407K 6419K 78643K 11286 0 pcb 13 8K 8K 78643K 13 0 rtable 236 6K 6K 78643K 542 0 ifaddr 73 24K 24K 78643K 113 0 sysctl 2 0K 0K 78643K 2 0 counters 60 35K 35K 78643K 72 0 ioctlops 0 0K 2K 78643K 38 0 iov 0 0K 16K 78643K 72 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1278 80K 80K 78643K 1574 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 26 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 117 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 20 73K 121K 78643K 1133 0 sigio 0 0K 0K 78643K 157 0 proc 56 78K 115K 78643K 723 0 subproc 104 6K 6K 78643K 182 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 308 0 in_multi 99 6K 6K 78643K 176 0 ether_multi 1 0K 0K 78643K 4 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 516 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 8 62K 64K 78643K 10 0 UVM amap 354 89K 967K 78643K 13108 0 UVM aobj 42 2K 4K 78643K 45 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 71 0 NDP 11 0K 2K 78643K 45 0 temp 124 5858K 5986K 78643K 6939 0 kqueue 12 18K 26K 78643K 108 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 70 0 67 1 0 1 1 0 8 0 rtentry 112 178 0 67 4 0 4 4 0 8 0 unpcb 144 1546 0 1531 12 11 1 8 0 8 0 syncache 296 8 0 8 3 2 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 87 0 87 3 2 1 1 0 8 1 tcpcb 776 354 0 347 10 8 2 8 0 8 0 arp 120 31 0 12 1 0 1 1 0 8 0 inpcb 368 906 0 893 26 18 8 13 0 8 6 nd6 136 42 0 18 1 0 1 1 0 8 0 kcovpl 48 14 0 6 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 723 0 267 29 0 29 29 0 8 0 art_table 32 724 0 267 4 0 4 4 0 8 0 art_node 16 177 0 76 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 109 0 99 1 0 1 1 0 8 0 shmpl 112 42 0 3 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2718 0 1278 91 0 91 91 0 8 0 ffsino 272 2718 0 1278 97 0 97 97 0 8 0 nchpl 144 4272 0 2634 63 0 63 63 0 8 0 uvmvnodes 80 2909 0 0 60 0 60 60 0 8 0 vnodes 216 2909 0 0 162 0 162 162 0 8 0 namei 1024 15628 0 15628 5 4 1 2 0 8 1 percpumem 16 49 0 6 1 0 1 1 0 8 0 kstatmem 264 34 0 12 2 0 2 2 0 8 0 scxspl 216 13158 0 13158 14 11 3 8 0 8 3 plimitpl 152 278 0 254 5 3 2 2 0 8 1 sigapl 424 1414 0 1365 7 0 7 7 0 8 0 futexpl 64 8623 0 8622 4 3 1 1 0 8 0 knotepl 120 296 0 0 9 0 9 9 0 8 0 kqueuepl 216 493 0 485 12 11 1 8 0 8 0 pipepl 320 345 0 317 11 5 6 8 0 8 3 fdescpl 496 1396 0 1365 7 1 6 6 0 8 0 filepl 152 9144 0 8906 23 11 12 18 0 8 2 lockfpl 104 255 0 253 1 0 1 1 0 8 0 lockfspl 48 33 0 31 1 0 1 1 0 8 0 sessionpl 144 29 0 13 1 0 1 1 0 8 0 pgrppl 48 35 0 19 1 0 1 1 0 8 0 ucredpl 104 1302 0 1284 1 0 1 1 0 8 0 zombiepl 144 1366 0 1365 3 2 1 1 0 8 0 processpl 1072 1414 0 1365 5 1 4 5 0 8 0 procpl 696 3178 0 3109 12 3 9 10 0 8 1 sosppl 168 13 0 13 2 2 0 1 0 8 0 sockpl 488 2569 0 2540 65 53 12 29 0 8 7 sockpl: pool(0xffffffff82e112a0:sockpl): free list modified: page 0xfffffd80670d4000; item ordinal 2; addr 0xfffffd80670d4d61 (p 0xfffffd80670d4000); offset 0x0=0x8e8cde281e53a8c9 pool(sockpl): free list modified: page 0xfffffd80670d4000; item ordinal 2; addr 0xfffffd80670d4d61 (p 0xfffffd80670d4000); offset 0x0=0xefdeadbe sockpl: pool(0xffffffff82e112a0:sockpl): page inconsistency: page 0xfffffd80670d4000; item ordinal 3; addr 0x42a020b1d6d081b1 mcl64k 65536 12 0 0 2 0 2 2 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 6 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 15 0 0 2 0 2 2 0 8 0 mcl4k 4096 20 0 0 3 0 3 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 476 0 0 59 0 59 59 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 1085 0 0 60 0 60 60 0 8 0 bufpl 288 5236 0 141 364 0 364 364 0 8 0 anonpl 24 302298 0 289853 119 20 99 99 0 186 17 amapchunkpl 152 270645 0 269749 4434 4313 121 4426 0 158 81 amappl16 200 8014 0 7675 45 18 27 31 0 8 8 amappl15 192 27 0 25 1 0 1 1 0 8 0 amappl14 184 163 0 150 2 1 1 2 0 8 0 amappl13 176 22 0 21 1 0 1 1 0 8 0 amappl12 168 2120 0 2087 2 0 2 2 0 8 0 amappl11 160 53 0 43 1 0 1 1 0 8 0 amappl10 152 33 0 23 1 0 1 1 0 8 0 amappl9 144 258 0 256 2 1 1 2 0 8 0 amappl8 136 211 0 149 3 0 3 3 0 8 0 amappl7 128 75 0 54 1 0 1 1 0 8 0 amappl6 120 317 0 299 2 1 1 2 0 8 0 amappl5 112 192 0 185 1 0 1 1 0 8 0 amappl4 104 666 0 632 2 0 2 2 0 8 0 amappl3 96 7954 0 7868 3 0 3 3 0 8 0 amappl2 88 1624 0 1561 4 2 2 3 0 8 0 amappl1 80 13703 0 13178 22 9 13 22 0 8 0 amappl 88 12529 0 12285 7 0 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 44 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1396 0 1365 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1396 0 1365 1 0 1 1 0 8 0 vmmpekpl 168 16672 0 16611 3 0 3 3 0 8 0 vmmpepl 168 106851 0 104622 130 20 110 120 0 357 2 vmsppl 456 1395 0 1365 7 2 5 6 0 8 0 rwobjpl 56 36398 0 32087 65 3 62 62 0 8 0 pdppl 4096 2800 0 2730 210 128 82 94 0 8 12 pvpl 32 679979 0 662030 347 118 229 346 0 265 74 pmappl 248 1395 0 1365 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 956 0 152 23 0 23 23 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace pool_do_put(ffffffff82e112a0,fffffd80670d45c0) at pool_do_put+0x115 pool_put(ffffffff82e112a0,fffffd80670d45c0) at pool_put+0x8f sys/kern/subr_pool.c:799 soclose(fffffd80670d45c0,0) at soclose+0x4ba sys/kern/uipc_socket.c:440 soo_close(fffffd80728f5be8,ffff8000261558b0) at soo_close+0x44 fdrop(fffffd80728f5be8,ffff8000261558b0) at fdrop+0xcb sys/kern/kern_descrip.c:1274 closef(fffffd80728f5be8,ffff8000261558b0) at closef+0x120 sys/kern/kern_descrip.c:1258 fdfree(ffff8000261558b0) at fdfree+0xf4 sys/kern/kern_descrip.c:1190 exit1(ffff8000261558b0,0,0,1) at exit1+0x37d sys/kern/kern_exit.c:197 sys_exit(ffff8000261558b0,ffff80002e44b9b0,ffff80002e44ba00) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e44ba80) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e44ba80) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:632 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x793d45d0d750, count: -11 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020d58ff0) 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+0x23 __mp_lock(ffffffff82c53368) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c53368) at __mp_lock+0x122 sys/kern/kern_lock.c:147 reaper(ffff8000211acae8) at reaper+0x160 sys/kern/kern_exit.c:437 end trace frame: 0x0, count: -5