kernel: protection fault trap, code=0 Stopped at pool_do_put+0x115: movq 0x8(%rbx),%rbx ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace pool_do_put(ffffffff829eb580,fffffd80710f4018) at pool_do_put+0x115 pool_put(ffffffff829eb580,fffffd80710f4018) at pool_put+0x8b sys/kern/subr_pool.c:799 soclose(fffffd80710f4018,0) at soclose+0x4ba sys/kern/uipc_socket.c:432 soo_close(fffffd8066780a38,ffff80002130c7f0) at soo_close+0x40 fdrop(fffffd8066780a38,ffff80002130c7f0) at fdrop+0xc7 sys/kern/kern_descrip.c:1274 closef(fffffd8066780a38,ffff80002130c7f0) at closef+0x11c sys/kern/kern_descrip.c:1258 fdfree(ffff80002130c7f0) at fdfree+0xe4 sys/kern/kern_descrip.c:1190 exit1(ffff80002130c7f0,0,0,1) at exit1+0x37d sys/kern/kern_exit.c:196 sys_exit(ffff80002130c7f0,ffff80002b022c40,ffff80002b022c90) at sys_exit+0x16 sys/kern/kern_exit.c:89 syscall(ffff80002b022d10) at syscall+0x435 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff80002b022d10) at syscall+0x435 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc4b80, count: -11 ddb{1}> show registers rdi 0 rsi 0xfffffd80710f4200 rbp 0xffff80002b0229b0 rbx 0xd1d1ecb6d0b9e2c0 rdx 0 rcx 0xc rax 0xffff80002130c7f0 r8 0 r9 0x1 r10 0x69b4a22b464fc4c8 r11 0x90421fec306018c4 r12 0xfffffd80710f4018 r13 0x3e10034818d03dbe r14 0xffffffff829eb580 socket_pool r15 0xfffffd80710f4f90 rip 0xffffffff8185f8a5 pool_do_put+0x115 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002b022900 ss 0x10 pool_do_put+0x115: movq 0x8(%rbx),%rbx ddb{1}> show proc PROC (syz-executor.5) pid=70100 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=84, nice=20 forw=0xffffffffffffffff, list=0xffff80002130aa80,0xffff80002130a550 process=0xffff80002e4f8020 user=0xffff80002b01d000, vmspace=0xfffffd806a93b8b0 estcpu=36, cpticks=4, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 46222 55418 82140 0 7 0 syz-executor.7 46222 844 82140 0 2 0x4000000 syz-executor.7 55740 241839 16701 0 3 0x1 kernel: protection fault trap, code=0 Faulted in DDB; continuing... ddb{1}> show all locks CPU 1: exclusive mutex sockpl r = 0 (0xffffffff829eb590) #0 witness_lock+0x44d #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 pool_put+0x80 sys/kern/subr_pool.c:797 #4 soclose+0x4ba sys/kern/uipc_socket.c:432 #5 soo_close+0x40 #6 fdrop+0xc7 sys/kern/kern_descrip.c:1274 #7 closef+0x11c sys/kern/kern_descrip.c:1258 #8 fdfree+0xe4 sys/kern/kern_descrip.c:1190 #9 exit1+0x37d sys/kern/kern_exit.c:196 #10 sys_exit+0x16 sys/kern/kern_exit.c:89 #11 syscall+0x435 mi_syscall sys/sys/syscall_mi.h:101 [inline] #11 syscall+0x435 sys/arch/amd64/amd64/trap.c:585 #12 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10223 6561K 8867K 78643K 16072 0 pcb 13 12K 14K 78643K 407 0 rtable 196 10K 10K 78643K 974 0 ifaddr 113 25K 26K 78643K 370 0 sysctl 3 1K 1K 78643K 5 0 counters 54 35K 35K 78643K 232 0 ioctlops 0 0K 4K 78643K 2070 0 iov 0 0K 16K 78643K 308 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1557 97K 98K 78643K 3314 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 22 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 378 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 13 45K 89K 78643K 3377 0 sigio 0 0K 0K 78643K 16 0 proc 71 91K 127K 78643K 1036 0 subproc 104 6K 6K 78643K 247 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 267 0 in_multi 75 5K 7K 78643K 317 0 ether_multi 1 0K 0K 78643K 16 0 mrt 1 0K 0K 78643K 29 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 163 731K 731K 78643K 163 0 exec 0 0K 2K 78643K 1161 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 266 81K 96K 78643K 21995 0 UVM aobj 131 4K 4K 78643K 134 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 56 0 NDP 13 0K 2K 78643K 110 0 temp 133 4734K 5758K 78643K 48662 0 kqueue 12 18K 24K 78643K 196 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> 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 149 0 146 1 0 1 1 0 8 0 rtentry 112 291 0 209 4 0 4 4 0 8 0 unpcb 144 2832 0 2817 30 28 2 10 0 8 1 syncache 296 23 0 23 6 6 0 1 0 8 0 tcpqe 32 45 0 45 3 3 0 1 0 8 0 tcpcb 768 903 0 898 40 35 5 15 0 8 4 arp 120 40 0 24 1 0 1 1 0 8 0 inpcb 368 2586 0 2579 49 45 4 10 0 8 3 nd6 48 65 0 47 1 0 1 1 0 8 0 kcovpl 48 19 0 11 1 0 1 1 0 8 0 ppxss 1256 67 0 67 7 6 1 1 0 8 1 pfstscr 40 10 0 7 2 1 1 1 0 8 0 pffrag 232 37 0 36 2 1 1 1 0 482 0 pffrnode 88 37 0 36 2 1 1 1 0 8 0 pffrent 40 112 0 111 2 1 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 pfrktable 1344 6 0 3 1 0 1 1 0 8 0 pfanchor 1280 21 0 18 2 1 1 1 0 8 0 pftag 88 2 0 1 2 1 1 1 0 8 0 pfstitem 24 52 0 47 1 0 1 1 0 8 0 pfstkey 120 65 0 62 2 1 1 2 0 8 0 pfstate 336 59 0 54 3 1 2 3 0 8 0 pfrule 1360 35 0 21 3 1 2 2 0 8 0 rttmr 136 12 0 12 3 3 0 1 0 8 0 art_heap8 4096 3 0 2 3 2 1 2 0 8 0 art_heap4 256 1391 0 1061 31 9 22 29 0 8 0 art_table 32 1394 0 1063 4 0 4 4 0 8 0 art_node 16 290 0 217 1 0 1 1 0 8 0 sysvmsgpl 40 110 0 70 1 0 1 1 0 8 0 semapl 112 373 0 363 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 5953 0 4505 92 0 92 92 0 8 0 ffsino 272 5953 0 4505 98 0 98 98 0 8 0 nchpl 144 10509 0 9968 63 39 24 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 40557 0 40557 8 7 1 2 0 8 1 percpumem 16 128 0 89 1 0 1 1 0 8 0 pfiaddrpl 120 3 0 0 1 0 1 1 0 8 0 kstatmem 264 128 0 102 2 0 2 2 0 8 0 scxspl 216 37903 0 37903 21 18 3 8 0 8 3 plimitpl 152 478 0 462 1 0 1 1 0 8 0 sigapl 424 3690 0 3623 9 1 8 8 0 8 0 futexpl 64 28327 0 28326 3 2 1 1 0 8 0 knotepl 120 410 0 0 11 0 11 11 0 8 0 kqueuepl 216 454 0 446 5 4 1 3 0 8 0 pipepl 320 643 0 615 22 19 3 8 0 8 0 fdescpl 496 3652 0 3626 5 1 4 5 0 8 0 filepl 152 25421 0 25172 61 48 13 19 0 8 3 lockfpl 104 1355 0 1353 3 2 1 2 0 8 0 lockfspl 48 411 0 409 1 0 1 1 0 8 0 sessionpl 144 35 0 18 1 0 1 1 0 8 0 pgrppl 48 54 0 37 1 0 1 1 0 8 0 ucredpl 104 3229 0 3214 1 0 1 1 0 8 0 zombiepl 144 3627 0 3623 1 0 1 1 0 8 0 processpl 1064 3690 0 3623 5 0 5 5 0 8 0 procpl 672 10020 0 9937 16 7 9 9 0 8 0 srpgc 96 22 0 22 7 7 0 1 0 8 0 sosppl 168 23 0 23 4 4 0 1 0 8 0 sockpl 488 5569 0 5543 111 103 8 34 0 8 4 sockpl: pool(0xffffffff829eb580:sockpl): free list modified: page 0xfffffd80710f4000; item ordinal 1; addr 0xfffffd80710f45d1 (p 0xfffffd80710f4000); offset 0x0=0x568ae7e8b16918c3 pool(sockpl): free list modified: page 0xfffffd80710f4000; item ordinal 1; addr 0xfffffd80710f45d1 (p 0xfffffd80710f4000); offset 0x0=0xefdeadbe sockpl: pool(0xffffffff829eb580:sockpl): page inconsistency: page 0xfffffd80710f4000; item ordinal 2; addr 0xd1d1ecb6d0b9e2c0 mcl64k 65536 25 0 0 4 1 3 3 0 8 0 mcl16k 16384 10 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 32 0 0 4 0 4 4 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 379 0 0 47 5 42 47 0 8 2 mtagpl 96 291 0 0 6 0 6 6 0 8 0 mbufpl 256 718 0 0 35 0 35 35 0 8 0 bufpl 288 9878 0 3549 453 0 453 453 0 8 0 anonpl 24 738715 0 721043 209 85 124 181 0 186 0 amapchunkpl 152 64094 0 63398 80 47 33 58 0 158 0 amappl16 200 9885 0 9281 60 17 43 45 0 8 6 amappl15 192 826 0 815 1 0 1 1 0 8 0 amappl14 184 194 0 191 1 0 1 1 0 8 0 amappl13 176 656 0 653 1 0 1 1 0 8 0 amappl12 168 234 0 226 2 1 1 1 0 8 0 amappl11 160 474 0 459 1 0 1 1 0 8 0 amappl10 152 240 0 234 1 0 1 1 0 8 0 amappl9 144 1069 0 1056 2 1 1 1 0 8 0 amappl8 136 1464 0 1391 3 0 3 3 0 8 0 amappl7 128 778 0 758 1 0 1 1 0 8 0 amappl6 120 854 0 829 2 1 1 2 0 8 0 amappl5 112 2905 0 2889 1 0 1 1 0 8 0 amappl4 104 2156 0 2123 3 1 2 3 0 8 0 amappl3 96 10787 0 10735 2 0 2 2 0 8 0 amappl2 88 4282 0 4216 3 1 2 3 0 8 0 amappl1 80 90612 0 89889 24 6 18 23 0 8 0 amappl 88 21246 0 21080 5 0 5 5 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 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 3653 0 3627 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3653 0 3627 1 0 1 1 0 8 0 vmmpekpl 168 33030 0 32969 5 1 4 4 0 8 0 vmmpepl 168 363143 0 360508 209 72 137 152 0 357 3 vmsppl 368 3652 0 3627 4 1 3 4 0 8 0 rwobjpl 56 97223 0 89400 116 2 114 114 0 8 2 pdppl 4096 7313 0 7254 331 262 69 81 0 8 10 pvpl 32 1529788 0 1506951 428 209 219 318 0 265 11 pmappl 248 3652 0 3627 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1183 0 342 25 0 25 25 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff82984ff0) at x86_ipi_db+0x1a 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 end of kernel end trace frame: 0x7f7ffffbda50, count: -3 ddb{0}> machine ddbcpu 1 Stopped at pool_do_put+0x115: movq 0x8(%rbx),%rbx ddb{1}> trace pool_do_put(ffffffff829eb580,fffffd80710f4018) at pool_do_put+0x115 pool_put(ffffffff829eb580,fffffd80710f4018) at pool_put+0x8b sys/kern/subr_pool.c:799 soclose(fffffd80710f4018,0) at soclose+0x4ba sys/kern/uipc_socket.c:432 soo_close(fffffd8066780a38,ffff80002130c7f0) at soo_close+0x40 fdrop(fffffd8066780a38,ffff80002130c7f0) at fdrop+0xc7 sys/kern/kern_descrip.c:1274 closef(fffffd8066780a38,ffff80002130c7f0) at closef+0x11c sys/kern/kern_descrip.c:1258 fdfree(ffff80002130c7f0) at fdfree+0xe4 sys/kern/kern_descrip.c:1190 exit1(ffff80002130c7f0,0,0,1) at exit1+0x37d sys/kern/kern_exit.c:196 sys_exit(ffff80002130c7f0,ffff80002b022c40,ffff80002b022c90) at sys_exit+0x16 sys/kern/kern_exit.c:89 syscall(ffff80002b022d10) at syscall+0x435 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff80002b022d10) at syscall+0x435 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc4b80, count: -11