uvm_fault(0xfffffd806a899d00, 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 *378213 98324 0 0 0x4000000 0K syz-executor.2 406600 77184 0 0x2 0 1 syz-executor.0 socreate(18,ffff80002e40c998,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff8000fffe9cf0,ffff80002e40ca28,ffff80002e40ca80) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e40caf0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e40caf0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x54cf40c6880, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: uvm_fault(0xfffffd806a899d00, 0x0, 0, 1) -> e ddb{0}> trace socreate(18,ffff80002e40c998,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff8000fffe9cf0,ffff80002e40ca28,ffff80002e40ca80) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e40caf0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e40caf0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x54cf40c6880, count: -4 ddb{0}> show registers rdi 0xffff80002468b000 rsi 0x16fa __ALIGN_SIZE+0x6fa rbp 0xffff80002e40c980 rbx 0x18 rdx 0xffff80002468b000 rcx 0x16f9 __ALIGN_SIZE+0x6f9 rax 0 r8 0xffffffff811cfb80 uvm_map_inentry_pc r9 0x16 r10 0 r11 0x4a44667c763dad6f r12 0xffff80002e40c998 r13 0xffffffff82675e40 inet6sw r14 0 r15 0x29 rip 0xffffffff81b8f4e4 socreate+0x84 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff80002e40c920 ss 0x10 socreate+0x84: cmpq $0,0(%rax) ddb{0}> show proc PROC (syz-executor.2) pid=378213 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000fffe8fd0,0xffff8000fffe8800 process=0xffff8000fffed0c0 user=0xffff80002e407000, vmspace=0xfffffd806a899d00 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 41217 327804 92254 0 2 0 syz-executor.5 41217 200716 92254 0 3 0x4000080 fsleep syz-executor.5 65550 13547 98548 0 2 0 syz-executor.7 98324 509905 81137 0 2 0 syz-executor.2 *98324 378213 81137 0 7 0x4000000 syz-executor.2 22190 402408 16002 0 3 0x80 nanoslp syz-executor.1 22190 275585 16002 0 3 0x4000080 lockf syz-executor.1 22190 514031 16002 0 3 0x4000080 fsleep syz-executor.1 22190 519762 16002 0 3 0x4000080 fsleep syz-executor.1 53443 171476 27683 0 2 0 syz-executor.6 53443 54255 27683 0 3 0x4000080 fsleep syz-executor.6 60090 385910 941 0 2 0x480 syz-executor.3 60090 118654 941 0 3 0x4000080 fsleep syz-executor.3 60090 485710 941 0 3 0x4000080 lockf syz-executor.3 60090 381898 941 0 3 0x4000080 fsleep syz-executor.3 43315 147615 0 0 3 0x14280 nfsidl nfsio 77273 485201 0 0 3 0x14280 nfsidl nfsio 2559 53198 0 0 3 0x14280 nfsidl nfsio 34377 374862 0 0 3 0x14280 nfsidl nfsio 52127 94112 0 0 3 0x14280 nfsidl nfsio 84805 452200 0 0 3 0x14280 nfsidl nfsio 87633 193733 0 0 3 0x14280 nfsidl nfsio 61425 434149 0 0 3 0x14280 nfsidl nfsio 58864 388988 0 0 3 0x14280 nfsidl nfsio 32980 142711 0 0 3 0x14280 nfsidl nfsio 75711 163039 0 0 3 0x14280 nfsidl nfsio 37715 446550 0 0 3 0x14280 nfsidl nfsio 89875 395560 0 0 3 0x14280 nfsidl nfsio 88189 360601 0 0 3 0x14280 nfsidl nfsio 32862 27530 0 0 3 0x14280 nfsidl nfsio 30979 357819 0 0 3 0x14280 nfsidl nfsio 93163 409044 0 0 3 0x14280 nfsidl nfsio 25335 444388 0 0 3 0x14280 nfsidl nfsio 85940 231614 0 0 3 0x14280 nfsidl nfsio 30537 44184 0 0 3 0x14280 nfsidl nfsio 98548 480813 86968 0 3 0x82 nanoslp syz-executor.7 27683 354622 86968 0 3 0x82 nanoslp syz-executor.6 92254 299484 86968 0 2 0x482 syz-executor.5 23623 517155 86968 0 2 0x2 syz-executor.4 941 432000 86968 0 2 0x482 syz-executor.3 81137 63045 86968 0 3 0x82 nanoslp syz-executor.2 16002 316569 86968 0 2 0x482 syz-executor.1 77184 406600 86968 0 7 0x2 syz-executor.0 86968 520739 67192 0 3 0x82 nanoslp syz-fuzzer 86968 474114 67192 0 2 0x4000482 syz-fuzzer 86968 227284 67192 0 3 0x4000082 thrsleep syz-fuzzer 86968 84907 67192 0 3 0x4000082 thrsleep syz-fuzzer 86968 325020 67192 0 3 0x4000082 thrsleep syz-fuzzer 86968 124982 67192 0 3 0x4000082 thrsleep syz-fuzzer 86968 185619 67192 0 3 0x4000082 kqread syz-fuzzer 86968 395815 67192 0 3 0x4000082 thrsleep syz-fuzzer 67192 230455 4567 0 3 0x10008a sigsusp ksh 4567 279987 98896 0 3 0x9a kqread sshd 79937 284181 1 0 3 0x100083 ttyin getty 98896 31273 1 0 3 0x88 kqread sshd 23111 366886 4860 74 3 0x1100092 bpf pflogd 4860 354955 1 0 3 0x80 netio pflogd 63796 104588 29088 73 3 0x1100090 kqread syslogd 29088 466648 1 0 3 0x100082 netio syslogd 30798 147202 1 0 3 0x100080 kqread resolvd 49959 103692 84303 77 3 0x100092 kqread dhcpleased 60928 312026 84303 77 3 0x100092 kqread dhcpleased 84303 89150 1 0 3 0x80 kqread dhcpleased 7138 395299 0 0 3 0x14200 bored smr 61076 430348 0 0 2 0x14200 zerothread 25686 162705 0 0 3 0x14200 aiodoned aiodoned 968 481379 0 0 3 0x14200 syncer update 94493 146127 0 0 3 0x14200 cleaner cleaner 61443 287424 0 0 3 0x14200 reaper reaper 3702 181957 0 0 3 0x14200 pgdaemon pagedaemon 17000 514265 0 0 3 0x14200 bored viomb 21086 378326 0 0 3 0x40014200 acpi0 acpi0 21482 237382 0 0 3 0x40014200 idle1 79008 6152 0 0 3 0x14200 bored softnet 24576 342923 0 0 3 0x14200 bored systqmp 88444 416417 0 0 3 0x14200 bored systq 20736 56764 0 0 3 0x40014200 bored softclock 23122 293650 0 0 3 0x40014200 idle0 1 480728 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 98324 (syz-executor.2) thread 0xffff8000fffe9cf0 (378213) 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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10202 6481K 6522K 78643K 21252 0 pcb 13 12K 14K 78643K 914 0 rtable 238 6K 7K 78643K 352 0 ifaddr 86 17K 17K 78643K 90 0 sysctl 2 0K 0K 78643K 2 0 counters 56 35K 35K 78643K 56 0 ioctlops 0 0K 4K 78643K 7119 0 iov 0 0K 4K 78643K 464 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1370 86K 86K 78643K 6482 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 355 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 874 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 77K 78643K 48958 0 sigio 0 0K 0K 78643K 184 0 proc 68 87K 111K 78643K 507 0 subproc 104 6K 6K 78643K 104 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 99 6K 6K 78643K 99 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 193 864K 864K 78643K 193 0 exec 0 0K 2K 78643K 644 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 311 78K 80K 78643K 590234 0 UVM aobj 131 6K 6K 78643K 276 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 12 0K 2K 78643K 28 0 temp 129 4699K 4827K 78643K 112189 0 kqueue 12 18K 44K 78643K 1633 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 33 0 30 1 0 1 1 0 8 0 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 136 22018 0 22003 92 89 3 9 0 8 2 syncache 296 4 0 4 1 1 0 1 0 8 0 sackhl 24 3 0 3 1 1 0 1 0 8 0 tcpcb 736 341 0 337 9 8 1 7 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 304 3698 0 3691 57 56 1 6 0 8 0 nd6 48 24 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 pffrag 232 12 0 12 1 1 0 1 0 482 0 pffrnode 88 11 0 11 1 1 0 1 0 8 0 pffrent 40 173 0 173 1 1 0 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 26 0 24 1 0 1 1 0 8 0 pfstkey 112 26 0 24 1 0 1 1 0 8 0 pfstate 320 26 0 24 2 1 1 2 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 453 0 0 29 0 29 29 0 8 0 art_table 32 454 0 0 4 0 4 4 0 8 0 art_node 16 110 0 10 1 0 1 1 0 8 0 semapl 112 872 0 862 1 0 1 1 0 8 0 shmpl 112 273 0 145 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 55314 0 53878 91 0 91 91 0 8 0 ffsino 272 55314 0 53878 97 0 97 97 0 8 0 nchpl 144 121300 0 119632 63 0 63 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 224 5926 0 0 349 0 349 349 0 8 0 namei 1024 296438 0 296438 2 1 1 2 0 8 1 percpumem 16 40 0 0 1 0 1 1 0 8 0 scxspl 216 313694 0 313694 23 22 1 8 0 8 1 plimitpl 152 255 0 240 1 0 1 1 0 8 0 sigapl 424 49307 0 49244 8 0 8 8 0 8 0 futexpl 64 234765 0 234759 1 0 1 1 0 8 0 knotepl 120 255 0 0 6 0 6 6 0 8 0 kqueuepl 216 3641 0 3633 26 25 1 5 0 8 0 pipepl 336 37850 0 37816 317 308 9 18 0 8 6 fdescpl 496 49249 0 49220 5 0 5 5 0 8 0 filepl 152 208701 0 208438 320 304 16 24 0 8 5 lockfpl 104 5337 0 5331 6 5 1 2 0 8 0 lockfspl 48 1706 0 1702 1 0 1 1 0 8 0 sessionpl 144 24 0 7 1 0 1 1 0 8 0 pgrppl 48 186 0 169 1 0 1 1 0 8 0 ucredpl 96 6687 0 6675 1 0 1 1 0 8 0 zombiepl 144 49244 0 49244 1 0 1 1 0 8 1 processpl 1064 49307 0 49244 5 0 5 5 0 8 0 procpl 672 112244 0 112165 42 34 8 8 0 8 0 sockpl 480 25749 0 25724 350 338 12 33 0 8 8 mcl64k 65536 49 0 0 3 0 3 3 0 8 0 mcl16k 16384 41 0 0 5 2 3 3 0 8 0 mcl12k 12288 62 0 0 2 0 2 2 0 8 0 mcl9k 9216 65 0 0 3 1 2 2 0 8 0 mcl8k 8192 57 0 0 6 3 3 3 0 8 0 mcl4k 4096 73 0 0 7 4 3 3 0 8 0 mcl2k2 2112 10 0 0 1 0 1 1 0 8 0 mcl2k 2048 218 0 0 10 0 10 10 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 1692 0 0 22 6 16 20 0 8 0 bufpl 288 53667 0 47331 453 0 453 453 0 8 0 anonpl 24 12430190 0 12420901 95 36 59 61 0 186 0 amapchunkpl 152 1407320 0 1406690 174 147 27 39 0 158 1 amappl16 200 93964 0 93791 11 1 10 10 0 8 0 amappl15 192 12092 0 12085 1 0 1 1 0 8 0 amappl14 184 12311 0 12303 1 0 1 1 0 8 0 amappl13 176 82 0 80 1 0 1 1 0 8 0 amappl12 168 6226 0 6218 1 0 1 1 0 8 0 amappl11 160 6130 0 6113 1 0 1 1 0 8 0 amappl10 152 6123 0 6116 1 0 1 1 0 8 0 amappl9 144 6581 0 6576 1 0 1 1 0 8 0 amappl8 136 7156 0 7077 3 0 3 3 0 8 0 amappl7 128 6364 0 6349 1 0 1 1 0 8 0 amappl6 120 6327 0 6306 2 1 1 2 0 8 0 amappl5 112 43749 0 43729 1 0 1 1 0 8 0 amappl4 104 13497 0 13471 2 0 2 2 0 8 0 amappl3 96 8464 0 8450 1 0 1 1 0 8 0 amappl2 88 8357 0 8313 3 1 2 3 0 8 0 amappl1 80 821027 0 820435 20 5 15 19 0 8 0 amappl 88 588860 0 588637 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 275 0 145 3 0 3 3 0 8 0 uaddrrnd 24 49249 0 49220 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 49249 0 49220 1 0 1 1 0 8 0 vmmpekpl 168 398160 0 398112 3 0 3 3 0 8 0 vmmpepl 168 4178102 0 4175986 320 220 100 102 0 357 2 vmsppl 368 49248 0 49220 4 1 3 4 0 8 0 rwobjpl 56 929408 0 922180 109 6 103 103 0 8 0 pdppl 4096 98505 0 98440 1317 1248 69 75 0 8 4 pvpl 32 20492291 0 20478698 388 272 116 250 0 265 0 pmappl 248 49248 0 49220 3 1 2 3 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 2381 0 1584 24 0 24 24 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace socreate(18,ffff80002e40c998,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff8000fffe9cf0,ffff80002e40ca28,ffff80002e40ca80) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e40caf0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e40caf0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x54cf40c6880, count: -4 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020ce8ff0) 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 syscall(ffff800021210970) at syscall+0x3ef mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff800021210970) at syscall+0x3ef sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff0650, count: 9 ddb{1}> trace x86_ipi_db(ffff800020ce8ff0) 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 syscall(ffff800021210970) at syscall+0x3ef mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff800021210970) at syscall+0x3ef sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff0650, count: -6