login: uvm_fault(0xfffffd8008716a10, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at socreate+0x84: cmpq $0,0(%rax) TID PID UID PRFLAGS PFLAGS CPU COMMAND *503603 37940 0 0 0 1K syz-executor.0 socreate(18,ffff8000211f2098,3,3c) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff80002119e000,ffff8000211f2128,ffff8000211f2180) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff8000211f21f0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000211f21f0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc3ac0, count: 11 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: uvm_fault(0xfffffd8008716a10, 0x0, 0, 1) -> e ddb{1}> trace socreate(18,ffff8000211f2098,3,3c) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff80002119e000,ffff8000211f2128,ffff8000211f2180) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff8000211f21f0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000211f21f0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc3ac0, count: -4 ddb{1}> show registers rdi 0x3 rsi 0x3 rbp 0xffff8000211f2080 rbx 0x18 rdx 0x3 rcx 0 rax 0 r8 0xffffffff811cfb80 uvm_map_inentry_pc r9 0x1 r10 0 r11 0x1c1860df1c081167 r12 0xffff8000211f2098 r13 0xffffffff82676048 inet6sw+0x208 r14 0x3 r15 0x3c rip 0xffffffff81b8f4e4 socreate+0x84 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff8000211f2020 ss 0x10 socreate+0x84: cmpq $0,0(%rax) ddb{1}> show proc PROC (syz-executor.0) pid=503603 stat=onproc flags process=0 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80002119f7a0,0xffffffff82b22b18 process=0xffff8000ffffa570 user=0xffff8000211ed000, vmspace=0xfffffd8008716a10 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND *37940 503603 97797 0 7 0 syz-executor.0 97797 439628 48545 0 3 0x82 nanoslp syz-executor.0 48545 377551 4145 0 3 0x82 nanoslp syz-execprog 48545 287528 4145 0 3 0x4000082 nanoslp syz-execprog 48545 288879 4145 0 3 0x4000082 thrsleep syz-execprog 48545 359851 4145 0 3 0x4000082 thrsleep syz-execprog 48545 395359 4145 0 3 0x4000082 thrsleep syz-execprog 48545 52280 4145 0 3 0x4000082 kqread syz-execprog 48545 288278 4145 0 3 0x4000082 thrsleep syz-execprog 48545 287417 4145 0 3 0x4000082 thrsleep syz-execprog 4145 369718 15856 0 3 0x10008a sigsusp ksh 15856 455156 1076 0 3 0x9a kqread sshd 3138 8740 1 0 3 0x100083 ttyin getty 1076 68372 1 0 3 0x88 kqread sshd 90570 105532 65491 74 3 0x1100092 bpf pflogd 65491 79536 1 0 3 0x80 netio pflogd 95320 461169 22773 73 3 0x1100090 kqread syslogd 22773 504159 1 0 3 0x100082 netio syslogd 38840 390363 1 0 3 0x100080 kqread resolvd 9354 206933 98911 77 3 0x100092 kqread dhcpleased 42248 229732 98911 77 3 0x100092 kqread dhcpleased 98911 253447 1 0 3 0x80 kqread dhcpleased 6477 511646 0 0 3 0x14200 bored smr 83143 503561 0 0 3 0x14200 pgzero zerothread 54869 284218 0 0 3 0x14200 aiodoned aiodoned 46659 414130 0 0 3 0x14200 syncer update 20565 361749 0 0 3 0x14200 cleaner cleaner 42389 291214 0 0 3 0x14200 reaper reaper 40404 293111 0 0 3 0x14200 pgdaemon pagedaemon 84331 185497 0 0 3 0x14200 bored viomb 96535 316482 0 0 3 0x40014200 acpi0 acpi0 93162 331513 0 0 3 0x40014200 idle1 76338 188946 0 0 3 0x14200 bored softnet 44107 398291 0 0 3 0x14200 bored systqmp 10737 153362 0 0 3 0x14200 bored systq 69086 368728 0 0 3 0x40014200 bored softclock 19792 296575 0 0 7 0x40014200 idle0 1 303339 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 37940 (syz-executor.0) thread 0xffff80002119e000 (503603) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82b6e770) #0 witness_lock+0x44d #1 kpageflttrap+0x23d sys/arch/amd64/amd64/trap.c:274 #2 kerntrap+0xef sys/arch/amd64/amd64/trap.c:318 #3 alltraps_kern_meltdown+0x7b #4 socreate+0x84 sys/kern/uipc_socket.c:172 #5 sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 #6 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #6 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #7 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10152 6457K 6457K 78643K 11242 0 pcb 13 8K 8K 78643K 13 0 rtable 84 2K 3K 78643K 150 0 ifaddr 37 9K 9K 78643K 40 0 counters 42 33K 33K 78643K 42 0 ioctlops 0 0K 4K 78643K 1480 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1167 73K 73K 78643K 1180 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 4 9K 13K 78643K 22 0 proc 67 87K 99K 78643K 310 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 22 1K 1K 78643K 22 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 25 122K 122K 78643K 25 0 exec 0 0K 2K 78643K 501 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 136 16K 16K 78643K 2562 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 7 0K 0K 78643K 7 0 temp 29 4686K 4749K 78643K 3592 0 kqueue 12 18K 18K 78643K 25 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 23 0 20 1 0 1 1 0 8 0 rtentry 112 34 0 1 1 0 1 1 0 8 0 unpcb 136 35 0 20 1 0 1 1 0 8 0 syncache 296 5 0 5 1 0 1 1 0 8 1 tcpcb 736 8 0 5 1 0 1 1 0 8 0 arp 120 4 0 0 1 0 1 1 0 8 0 inpcb 304 36 0 30 1 0 1 1 0 8 0 nd6 48 3 0 0 1 0 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 11 0 0 1 0 1 1 0 8 0 pfstkey 112 11 0 0 1 0 1 1 0 8 0 pfstate 320 11 0 0 1 0 1 1 0 8 0 pfrule 1360 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 144 0 0 9 0 9 9 0 8 0 art_table 32 145 0 0 2 0 2 2 0 8 0 art_node 16 33 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1451 0 49 88 0 88 88 0 8 0 ffsino 272 1451 0 49 94 0 94 94 0 8 0 nchpl 144 1679 0 59 60 0 60 60 0 8 0 uvmvnodes 80 1461 0 0 30 0 30 30 0 8 0 vnodes 224 1461 0 0 86 0 86 86 0 8 0 namei 1024 5210 0 5210 2 0 2 2 0 8 2 percpumem 16 33 0 0 1 0 1 1 0 8 0 scxspl 216 5137 0 5137 2 1 1 2 0 8 1 plimitpl 152 17 0 9 1 0 1 1 0 8 0 sigapl 424 359 0 328 5 0 5 5 0 8 1 knotepl 120 60 0 0 2 0 2 2 0 8 0 kqueuepl 216 21 0 13 1 0 1 1 0 8 0 pipepl 336 110 0 103 1 0 1 1 0 8 0 fdescpl 496 345 0 328 4 0 4 4 0 8 1 filepl 152 1373 0 1303 4 0 4 4 0 8 1 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 19 0 9 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 69 0 57 1 0 1 1 0 8 0 zombiepl 144 328 0 328 1 0 1 1 0 8 1 processpl 1064 359 0 328 3 0 3 3 0 8 0 procpl 672 366 0 328 4 0 4 4 0 8 0 sockpl 480 94 0 70 4 0 4 4 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 71 0 0 9 0 9 9 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 125 0 0 8 0 8 8 0 8 0 bufpl 288 3560 0 140 245 0 245 245 0 8 0 anonpl 24 50624 0 46881 49 3 46 47 0 186 21 amapchunkpl 152 5024 0 4708 21 1 20 20 0 158 6 amappl16 200 124 0 70 5 1 4 4 0 8 0 amappl15 192 89 0 83 1 0 1 1 0 8 0 amappl14 184 1 0 1 1 0 1 1 0 8 1 amappl13 176 55 0 50 1 0 1 1 0 8 0 amappl12 168 12 0 12 1 0 1 1 0 8 1 amappl11 160 51 0 37 1 0 1 1 0 8 0 amappl10 152 30 0 26 1 0 1 1 0 8 0 amappl9 144 441 0 439 1 0 1 1 0 8 0 amappl8 136 445 0 424 1 0 1 1 0 8 0 amappl7 128 88 0 78 1 0 1 1 0 8 0 amappl6 120 186 0 168 2 0 2 2 0 8 1 amappl5 112 168 0 154 1 0 1 1 0 8 0 amappl4 104 728 0 701 2 0 2 2 0 8 0 amappl3 96 148 0 138 1 0 1 1 0 8 0 amappl2 88 506 0 463 3 0 3 3 0 8 1 amappl1 80 9983 0 9551 19 0 19 19 0 8 10 amappl 88 2214 0 2112 4 0 4 4 0 92 1 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 345 0 328 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 345 0 328 1 0 1 1 0 8 0 vmmpekpl 168 8177 0 8161 1 0 1 1 0 8 0 vmmpepl 168 32429 0 31300 91 0 91 91 0 357 41 vmsppl 368 344 0 328 3 0 3 3 0 8 1 rwobjpl 56 11072 0 8883 42 1 41 41 0 8 5 pdppl 4096 697 0 656 77 20 57 57 0 8 16 pvpl 32 220400 0 213723 262 1 261 261 0 265 204 pmappl 248 344 0 328 2 0 2 2 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 548 0 23 15 0 15 15 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82999ff0) 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(ffffffff82b6e568) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82b6e568) at __mp_lock+0x122 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x1f acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffffffff82999ff0) at sched_idle+0x417 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: 7 ddb{0}> trace x86_ipi_db(ffffffff82999ff0) 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(ffffffff82b6e568) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82b6e568) at __mp_lock+0x122 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x1f acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffffffff82999ff0) at sched_idle+0x417 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at socreate+0x84: cmpq $0,0(%rax) socreate(18,ffff8000211f2098,3,3c) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff80002119e000,ffff8000211f2128,ffff8000211f2180) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff8000211f21f0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000211f21f0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc3ac0, count: 11 ddb{1}> trace socreate(18,ffff8000211f2098,3,3c) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff80002119e000,ffff8000211f2128,ffff8000211f2180) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff8000211f21f0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000211f21f0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc3ac0, count: -4 ddb{1}>