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(ffffffff82ceba90,fffffd80659bcd90) at pool_do_put+0x115 pool_put(ffffffff82ceba90,fffffd80659bcd90) at pool_put+0x8b sys/kern/subr_pool.c:799 soclose(fffffd80659bcd90,0) at soclose+0x4ba sys/kern/uipc_socket.c:442 soo_close(fffffd80663100a0,ffff800021254048) at soo_close+0x40 fdrop(fffffd80663100a0,ffff800021254048) at fdrop+0xc7 sys/kern/kern_descrip.c:1274 closef(fffffd80663100a0,ffff800021254048) at closef+0x11c sys/kern/kern_descrip.c:1258 fdfree(ffff800021254048) at fdfree+0xe4 sys/kern/kern_descrip.c:1190 exit1(ffff800021254048,0,0,1) at exit1+0x37d sys/kern/kern_exit.c:196 sys_exit(ffff800021254048,ffff8000295af300,ffff8000295af350) at sys_exit+0x16 sys/kern/kern_exit.c:89 syscall(ffff8000295af3d0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff8000295af3d0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd1930, count: -11 ddb{0}> show registers rdi 0 rsi 0xfffffd80659bc7d8 rbp 0xffff8000295af070 rbx 0x41f67d7225bf975b rdx 0 rcx 0xc rax 0xffff800021254048 r8 0 r9 0 r10 0xea605729f6cd8904 r11 0x5d0ea6c1ee99a206 r12 0xfffffd80659bcd90 r13 0xaea725aa0fd5d946 r14 0xffffffff82ceba90 socket_pool r15 0xfffffd80659bcf90 rip 0xffffffff81a7e465 pool_do_put+0x115 cs 0x8 rflags 0x10296 __ALIGN_SIZE+0xf296 rsp 0xffff8000295aefc0 ss 0x10 pool_do_put+0x115: movq 0x8(%rbx),%rbx ddb{0}> show proc PROC (syz-executor.2) pid=391042 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800021254300,0xffff8000212545c8 process=0xffff800022d3e5d0 user=0xffff8000295aa000, vmspace=0xfffffd8008a021b8 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 55140 334885 75566 0 2 0 syz-executor.1 55140 352038 75566 0 3 0x4000080 fsleep syz-executor.1 55140 135729 75566 0 3 0x4000080 fsleep syz-executor.1 55140 241614 75566 0 3 0x4000080 fsleep syz-executor.1 216 23136 35985 0 2 0 syz-executor.3 216 307200 35985 0 3 0x4000001 kernel: protection fault trap, code=0 Faulted in DDB; continuing... ddb{0}> show all locks CPU 0: exclusive mutex sockpl r = 0 (0xffffffff82cebaa0) #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:442 #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+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #11 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 #12 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10228 6505K 6846K 78643K 18171 0 pcb 45 21K 24K 78643K 4520 0 rtable 167 15K 18K 78643K 1445 0 ifaddr 70 24K 26K 78643K 654 0 sysctl 2 0K 0K 78643K 4 0 counters 54 35K 36K 78643K 446 0 ioctlops 0 0K 4K 78643K 1984 0 iov 0 0K 24K 78643K 1003 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1403 88K 88K 78643K 4653 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 96 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 823 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 14 49K 93K 78643K 4808 0 sigio 0 0K 0K 78643K 108 0 proc 71 91K 128K 78643K 1164 0 subproc 104 6K 6K 78643K 312 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 123 0 in_multi 58 4K 6K 78643K 427 0 ether_multi 1 0K 0K 78643K 19 0 mrt 1 0K 0K 78643K 37 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 157 705K 705K 78643K 157 0 exec 0 0K 1K 78643K 1116 0 pfkey data 0 0K 0K 78643K 3 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 392 99K 99K 78643K 35589 0 UVM aobj 131 4K 4K 78643K 141 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 101 0 NDP 15 0K 1K 78643K 208 0 temp 133 5778K 6802K 78643K 49377 0 kqueue 12 18K 28K 78643K 470 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 619 0 615 11 10 1 4 0 8 0 rtentry 112 470 0 405 4 1 3 4 0 8 0 unpcb 144 4503 0 4487 43 37 6 10 0 8 5 syncache 296 25 0 25 9 8 1 1 0 8 1 tcpqe 32 250 0 250 7 6 1 1 0 8 1 tcpcb 776 2661 0 2652 59 50 9 11 0 8 8 arp 120 55 0 44 1 0 1 1 0 8 0 inpcb 368 13466 0 13418 101 87 14 16 0 8 9 nd6 48 88 0 74 1 0 1 1 0 8 0 pkpcb 40 16 0 16 3 3 0 1 0 8 0 kcovpl 48 24 0 16 1 0 1 1 0 8 0 mppekey 1024 38 0 38 3 3 0 1 0 8 0 ppxss 1256 104 0 104 8 7 1 1 0 8 1 pppxif 1456 52 0 52 6 5 1 1 0 8 1 pffrag 232 29 0 27 4 3 1 1 0 482 0 pffrnode 88 27 0 25 4 3 1 1 0 8 0 pffrent 40 71 0 69 4 3 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 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 264 4 0 0 1 0 1 1 0 8 0 pfstitem 24 100 0 81 1 0 1 1 0 8 0 pfstkey 128 104 0 85 2 0 2 2 0 8 0 pfstate 384 101 0 82 6 4 2 5 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 rttmr 136 9 0 9 3 3 0 1 0 8 0 art_heap8 4096 7 0 6 6 4 2 2 0 8 1 art_heap4 256 2346 0 2034 44 21 23 29 0 8 0 art_table 32 2353 0 2040 4 1 3 4 0 8 0 art_node 16 465 0 410 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 10 1 1 0 1 0 8 0 semapl 112 821 0 811 1 0 1 1 0 8 0 shmpl 112 138 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 8063 0 6617 91 0 91 91 0 8 0 ffsino 272 8063 0 6617 97 0 97 97 0 8 0 nchpl 144 14508 0 12853 63 0 63 63 0 8 0 rtmask 32 2 0 2 1 1 0 1 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 52228 0 52228 3 2 1 2 0 8 1 percpumem 16 236 0 196 1 0 1 1 0 8 0 vmpool 696 8 0 8 3 3 0 1 0 8 0 kstatmem 264 294 0 268 4 1 3 3 0 8 1 scsiplug 72 6 0 6 2 2 0 1 0 8 0 scxspl 216 44216 0 44216 17 16 1 8 0 8 1 plimitpl 152 597 0 581 1 0 1 1 0 8 0 sigapl 424 5122 0 5053 10 2 8 8 0 8 0 futexpl 64 50060 0 50052 2 1 1 1 0 8 0 knotepl 120 544 0 0 11 0 11 11 0 8 0 kqueuepl 216 1065 0 1056 21 20 1 5 0 8 0 pipepl 320 1043 0 1015 27 22 5 13 0 8 2 fdescpl 496 5083 0 5056 5 1 4 5 0 8 0 filepl 152 42738 0 42460 68 53 15 27 0 8 4 lockfpl 104 1307 0 1305 4 3 1 2 0 8 0 lockfspl 48 484 0 482 1 0 1 1 0 8 0 sessionpl 144 42 0 25 1 0 1 1 0 8 0 pgrppl 48 101 0 84 1 0 1 1 0 8 0 ucredpl 104 4652 0 4634 1 0 1 1 0 8 0 zombiepl 144 5057 0 5053 1 0 1 1 0 8 0 processpl 1072 5122 0 5053 5 0 5 5 0 8 0 procpl 696 14135 0 14040 16 6 10 11 0 8 0 srpgc 96 38 0 38 9 8 1 1 0 8 1 sosppl 168 41 0 41 7 6 1 1 0 8 1 sockpl 488 18679 0 18613 305 285 20 38 0 8 11 sockpl: pool(0xffffffff82ceba90:sockpl): free list modified: page 0xfffffd80659bc000; item ordinal 1; addr 0xfffffd80659bc039 (p 0xfffffd80659bc000); offset 0x0=0x4e8c2265ccd9ab1c pool(sockpl): free list modified: page 0xfffffd80659bc000; item ordinal 1; addr 0xfffffd80659bc039 (p 0xfffffd80659bc000); offset 0x0=0xefdeadbe sockpl: pool(0xffffffff82ceba90:sockpl): page inconsistency: page 0xfffffd80659bc000; item ordinal 2; addr 0x41f67d7225bf975b mcl64k 65536 16 0 0 2 0 2 2 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 13 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 33 0 0 5 2 3 3 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 394 0 0 49 1 48 49 0 8 0 mtagpl 96 179 0 0 4 0 4 4 0 8 0 mbufpl 256 1453 0 0 81 1 80 80 0 8 0 bufpl 288 11496 0 5174 452 0 452 452 0 8 0 anonpl 24 1096888 0 1079551 187 59 128 149 0 186 1 amapchunkpl 152 99086 0 98260 60 24 36 48 0 158 1 amappl16 200 11278 0 10688 90 57 33 44 0 8 0 amappl15 192 3 0 2 1 0 1 1 0 8 0 amappl14 184 238 0 224 2 1 1 2 0 8 0 amappl13 176 5 0 5 1 1 0 1 0 8 0 amappl12 168 626 0 623 1 0 1 1 0 8 0 amappl11 160 65 0 50 1 0 1 1 0 8 0 amappl10 152 59 0 48 1 0 1 1 0 8 0 amappl9 144 1015 0 1014 1 0 1 1 0 8 0 amappl8 136 377 0 284 5 1 4 4 0 8 0 amappl7 128 216 0 188 2 0 2 2 0 8 0 amappl6 120 348 0 331 2 1 1 2 0 8 0 amappl5 112 262 0 252 1 0 1 1 0 8 0 amappl4 104 755 0 719 3 1 2 2 0 8 1 amappl3 96 15162 0 15105 2 0 2 2 0 8 0 amappl2 88 5854 0 5769 6 4 2 4 0 8 0 amappl1 80 119216 0 118435 28 10 18 28 0 8 0 amappl 88 34769 0 34548 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 140 0 10 3 0 3 3 0 8 0 uaddrrnd 24 5091 0 5064 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5091 0 5064 1 0 1 1 0 8 0 vmmpekpl 168 46509 0 46434 5 1 4 4 0 8 0 vmmpepl 168 478640 0 475717 216 63 153 156 0 357 11 vmsppl 440 5090 0 5063 6 2 4 5 0 8 0 rwobjpl 56 135165 0 127244 123 9 114 116 0 8 0 pdppl 4096 10189 0 10126 289 220 69 83 0 8 6 pvpl 32 2164822 0 2141456 367 150 217 347 0 265 2 pmappl 248 5090 0 5063 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1243 0 350 26 0 26 26 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace pool_do_put(ffffffff82ceba90,fffffd80659bcd90) at pool_do_put+0x115 pool_put(ffffffff82ceba90,fffffd80659bcd90) at pool_put+0x8b sys/kern/subr_pool.c:799 soclose(fffffd80659bcd90,0) at soclose+0x4ba sys/kern/uipc_socket.c:442 soo_close(fffffd80663100a0,ffff800021254048) at soo_close+0x40 fdrop(fffffd80663100a0,ffff800021254048) at fdrop+0xc7 sys/kern/kern_descrip.c:1274 closef(fffffd80663100a0,ffff800021254048) at closef+0x11c sys/kern/kern_descrip.c:1258 fdfree(ffff800021254048) at fdfree+0xe4 sys/kern/kern_descrip.c:1190 exit1(ffff800021254048,0,0,1) at exit1+0x37d sys/kern/kern_exit.c:196 sys_exit(ffff800021254048,ffff8000295af300,ffff8000295af350) at sys_exit+0x16 sys/kern/kern_exit.c:89 syscall(ffff8000295af3d0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff8000295af3d0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd1930, count: -11 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020d68ff0) 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 __mp_lock(ffffffff82db6020) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82db6020) at __mp_lock+0x122 sys/kern/kern_lock.c:147 uvm_unmap_detach(ffff8000211c9440,1) at uvm_unmap_detach+0x113 sys/uvm/uvm_map.c:1382 uvm_map_teardown(fffffd8008a02a50) at uvm_map_teardown+0x28d sys/uvm/uvm_map.c:2598 uvmspace_free(fffffd8008a02a50) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3516 reaper(ffff8000211bd310) at reaper+0x19a sys/kern/kern_exit.c:448 end trace frame: 0x0, count: -8