panic: pool_p_free: sockpl free list modified: page 0xfffffd805a42b000; item addr 0xfffffd805a42b5c3; offset 0x0=0x54f88c22d93aca32 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 239896 79832 0 0x2 0x4000000 0 syz-fuzzer *393611 44734 0 0x14000 0x200 1 systqmp db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8282075f) at panic+0x17b sys/kern/subr_prf.c:198 pool_p_free(ffffffff82ceb410,fffffd805a42bf90) at pool_p_free+0x1d3 pool_gc_pages(0) at pool_gc_pages+0x255 sys/kern/subr_pool.c:1583 taskq_thread(ffffffff82bb10c0) at taskq_thread+0xe5 sys/kern/kern_task.c:450 end trace frame: 0x0, count: 10 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: pool_p_free: sockpl free list modified: page 0xfffffd805a42b000; item addr 0xfffffd805a42b5c3; offset 0x0=0x54f88c22d93aca32 ddb{1}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8282075f) at panic+0x17b sys/kern/subr_prf.c:198 pool_p_free(ffffffff82ceb410,fffffd805a42bf90) at pool_p_free+0x1d3 pool_gc_pages(0) at pool_gc_pages+0x255 sys/kern/subr_pool.c:1583 taskq_thread(ffffffff82bb10c0) at taskq_thread+0xe5 sys/kern/kern_task.c:450 end trace frame: 0x0, count: -5 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800021181750 rbx 0xffff800020d59b8f rdx 0 rcx 0xffff800021168570 rax 0xffff800020d58ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x798d35b2fa87e77 r11 0x64f225ebea4127bd r12 0xffff800020d59990 r13 0 r14 0 r15 0x1 rip 0xffffffff81e7075c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800021181740 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{1}> show proc PROC (systqmp) pid=393611 stat=onproc flags process=14000 proc=200 pri=32, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800021168ae0,0xffff8000211682c8 process=0xffff8000ffffd920 user=0xffff80002117c000, vmspace=0xffffffff82ca1118 estcpu=1, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 90934 343549 79832 0 3 0x3 kernel: protection fault trap, code=0 Faulted in DDB; continuing... ddb{1}> show all locks Process 44734 (systqmp) thread 0xffff800021168570 (393611) shared rwlock pools r = 0 (0xffffffff82c3ff80) #0 witness_lock+0x447 #1 pool_gc_pages+0x25 sys/kern/subr_pool.c:1560 #2 taskq_thread+0xe5 sys/kern/kern_task.c:450 #3 proc_trampoline+0x1c shared rwlock systqmp r = 0 (0xffffffff82bb1130) #0 witness_lock+0x447 #1 taskq_thread+0xca sys/kern/kern_task.c:446 #2 proc_trampoline+0x1c ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10223 6487K 7066K 78643K 23394 0 pcb 13 14K 15K 78643K 534 0 rtable 253 7K 8K 78643K 892 0 pf 35 10K 10K 78643K 201 0 ifaddr 46 16K 17K 78643K 169 0 ifgroup 60 2K 2K 78643K 331 0 sysctl 2 0K 2K 78643K 72 0 counters 62 36K 36K 78643K 202 0 ioctlops 0 0K 4K 78643K 1577 0 iov 0 0K 32K 78643K 1013 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1425 89K 89K 78643K 9014 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 105 0 VM map 2 1K 1K 78643K 2 0 sem 11 0K 1K 78643K 13 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 10 33K 85K 78643K 10675 0 sigio 0 0K 0K 78643K 234 0 proc 70 91K 128K 78643K 1543 0 subproc 104 6K 7K 78643K 303 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 511 0 in_multi 99 7K 7K 78643K 323 0 ether_multi 1 0K 0K 78643K 1 0 mrt 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 253 1129K 1129K 78643K 253 0 exec 0 0K 1K 78643K 1616 0 pfkey data 0 0K 0K 78643K 1 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 377 94K 102K 78643K 107064 0 UVM aobj 131 6K 6K 78643K 136 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 214 0 NDP 13 0K 1K 78643K 129 0 temp 76 5880K 6004K 78643K 57469 0 kqueue 12 18K 26K 78643K 622 0 SYN cache 2 16K 24K 78643K 3 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 244 0 241 3 2 1 2 0 8 0 rtentry 112 299 0 181 4 0 4 4 0 8 0 unpcb 144 6616 0 6601 89 88 1 8 0 8 0 syncache 296 31 0 31 10 10 0 1 0 8 0 tcpqe 32 186 0 186 8 8 0 1 0 8 0 tcpcb 808 2047 0 2043 82 81 1 14 0 8 0 arp 120 48 0 30 1 0 1 1 0 8 0 inpcb 368 4813 0 4806 122 121 1 13 0 8 0 nd6 136 86 0 54 3 1 2 2 0 8 0 pkpcb 40 9 0 9 2 2 0 1 0 8 0 kcovpl 48 23 0 15 1 0 1 1 0 8 0 ppxss 1256 12 0 12 4 4 0 1 0 8 0 pffrag 232 84 0 83 9 8 1 1 0 482 0 pffrnode 88 84 0 83 9 8 1 1 0 8 0 pffrent 40 282 0 281 11 10 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 295 0 288 1 0 1 1 0 8 0 pfstkey 128 295 0 288 2 1 1 2 0 8 0 pfstate 376 295 0 288 10 7 3 4 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 1198 0 704 32 1 31 32 0 8 0 art_table 32 1199 0 704 5 0 5 5 0 8 0 art_node 16 292 0 184 1 0 1 1 0 8 0 sysvmsgpl 40 19 0 6 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 133 0 5 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 20223 0 18728 94 0 94 94 0 8 0 ffsino 272 20223 0 18728 100 0 100 100 0 8 0 nchpl 144 35575 0 35013 64 40 24 64 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 126390 0 126388 6 5 1 2 0 8 0 percpumem 16 114 0 70 1 0 1 1 0 8 0 kstatmem 264 166 0 140 2 0 2 2 0 8 0 scxspl 216 96113 0 96113 32 31 1 8 1 8 1 plimitpl 152 950 0 934 1 0 1 1 0 8 0 sigapl 424 11010 0 10968 11 4 7 8 0 8 0 futexpl 64 84841 0 84841 1 0 1 1 0 8 1 knotepl 120 393 0 0 11 1 10 11 0 8 0 kqueuepl 216 1267 0 1259 17 16 1 5 0 8 0 pipepl 320 2118 0 2090 46 43 3 8 0 8 0 fdescpl 496 10951 0 10928 5 1 4 5 0 8 0 filepl 152 79464 0 79224 166 156 10 21 0 8 0 lockfpl 104 2473 0 2465 8 7 1 3 0 8 0 lockfspl 48 834 0 827 1 0 1 1 0 8 0 sessionpl 144 42 0 25 1 0 1 1 0 8 0 pgrppl 48 201 0 184 1 0 1 1 0 8 0 ucredpl 104 27312 0 27297 1 0 1 1 0 8 0 zombiepl 144 10969 0 10968 1 0 1 1 0 8 0 processpl 1072 11010 0 10968 6 1 5 5 0 8 0 procpl 696 30216 0 30159 32 23 9 10 0 8 0 srpgc 96 2 0 2 1 1 0 1 0 8 0 sosppl 168 86 0 86 17 17 0 1 0 8 0 sockpl 488 11772 0 11747 292 288 4 28 0 8 0 mcl64k 65536 28 0 0 3 1 2 3 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 26 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 33 0 0 3 0 3 3 0 8 0 mcl4k 4096 39 0 0 3 0 3 3 0 8 0 mcl2k2 2112 9 0 0 1 0 1 1 0 8 0 mcl2k 2048 316 0 0 31 8 23 31 0 8 0 mtagpl 96 314 0 0 7 2 5 7 0 8 0 mbufpl 256 1497 0 0 87 0 87 87 0 8 0 bufpl 288 21941 0 15627 452 0 452 452 0 8 0 anonpl 24 1153372 0 1139633 222 123 99 126 0 186 0 amapchunkpl 152 335938 0 335172 71 32 39 51 0 158 0 amappl16 200 25132 0 24775 129 107 22 43 0 8 0 amappl15 192 25 0 23 1 0 1 1 0 8 0 amappl14 184 230 0 214 2 1 1 2 0 8 0 amappl13 176 16 0 15 1 0 1 1 0 8 0 amappl12 168 11856 0 11832 4 2 2 3 0 8 0 amappl11 160 81 0 67 1 0 1 1 0 8 0 amappl10 152 75 0 60 1 0 1 1 0 8 0 amappl9 144 288 0 286 2 1 1 2 0 8 0 amappl8 136 679 0 530 6 0 6 6 0 8 0 amappl7 128 182 0 160 1 0 1 1 0 8 0 amappl6 120 485 0 455 2 1 1 2 0 8 0 amappl5 112 432 0 422 1 0 1 1 0 8 0 amappl4 104 1051 0 1000 2 0 2 2 0 8 0 amappl3 96 66138 0 66081 4 1 3 3 0 8 0 amappl2 88 11559 0 11489 3 1 2 3 0 8 0 amappl1 80 47816 0 47276 23 10 13 23 0 8 0 amappl 88 106065 0 105864 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 135 0 5 3 0 3 3 0 8 0 uaddrrnd 24 10951 0 10928 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 10951 0 10928 1 0 1 1 0 8 0 vmmpekpl 168 82721 0 82657 5 1 4 4 0 8 0 vmmpepl 168 668355 0 666237 318 203 115 137 0 357 0 vmsppl 464 10950 0 10928 5 1 4 5 0 8 0 rwobjpl 56 168078 0 160511 130 18 112 114 0 8 0 pdppl 4096 21910 0 21856 716 654 62 80 0 8 8 pvpl 32 3154321 0 3135180 523 341 182 343 0 265 0 pmappl 248 10950 0 10928 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1745 0 877 26 0 26 26 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffffffff82bc0ff0) 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(ffffffff82c95c88) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c95c88) at __mp_lock+0x122 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x52 sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 __mp_release_all(ffffffff82c95c88) at __mp_release_all+0xb2 sys/kern/kern_lock.c:197 tsleep(ffffffff82cc2e60,120,ffffffff8277758d,2) at tsleep+0x166 sys/kern/kern_synch.c:146 sys_nanosleep(ffff8000212155d8,ffff800021259840,ffff800021259890) at sys_nanosleep+0x1f5 sys/kern/kern_time.c:296 syscall(ffff800021259910) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800021259910) at syscall+0x606 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x244724380, count: 4 ddb{0}> trace x86_ipi_db(ffffffff82bc0ff0) 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(ffffffff82c95c88) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c95c88) at __mp_lock+0x122 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x52 sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 __mp_release_all(ffffffff82c95c88) at __mp_release_all+0xb2 sys/kern/kern_lock.c:197 tsleep(ffffffff82cc2e60,120,ffffffff8277758d,2) at tsleep+0x166 sys/kern/kern_synch.c:146 sys_nanosleep(ffff8000212155d8,ffff800021259840,ffff800021259890) at sys_nanosleep+0x1f5 sys/kern/kern_time.c:296 syscall(ffff800021259910) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800021259910) at syscall+0x606 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x244724380, count: -11 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x1c: addq $0x8,%rsp db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8282075f) at panic+0x17b sys/kern/subr_prf.c:198 pool_p_free(ffffffff82ceb410,fffffd805a42bf90) at pool_p_free+0x1d3 pool_gc_pages(0) at pool_gc_pages+0x255 sys/kern/subr_pool.c:1583 taskq_thread(ffffffff82bb10c0) at taskq_thread+0xe5 sys/kern/kern_task.c:450 end trace frame: 0x0, count: 10 ddb{1}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8282075f) at panic+0x17b sys/kern/subr_prf.c:198 pool_p_free(ffffffff82ceb410,fffffd805a42bf90) at pool_p_free+0x1d3 pool_gc_pages(0) at pool_gc_pages+0x255 sys/kern/subr_pool.c:1583 taskq_thread(ffffffff82bb10c0) at taskq_thread+0xe5 sys/kern/kern_task.c:450 end trace frame: 0x0, count: -5