uvm_fault(0xfffffd806c62ba20, 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 504631 41996 32767 0x10 0 0 syz-executor.4 * 74446 12694 32767 0x10 0x4000000 1K syz-executor.1 socreate(18,ffff80002e3ac9b8,3,3c) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff8000294e8548,ffff80002e3aca48,ffff80002e3acaa0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e3acb10) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3acb10) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb589e3597b0, 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(0xfffffd806c62ba20, 0x0, 0, 1) -> e ddb{1}> trace socreate(18,ffff80002e3ac9b8,3,3c) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff8000294e8548,ffff80002e3aca48,ffff80002e3acaa0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e3acb10) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3acb10) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb589e3597b0, count: -4 ddb{1}> show registers rdi 0xffff800024267000 rsi 0x978 rbp 0xffff80002e3ac9a0 rbx 0x18 rdx 0xffff800024267000 rcx 0x977 rax 0 r8 0xffffffff81e690f0 uvm_map_inentry_pc r9 0x14 r10 0 r11 0xdbafbf816773703f r12 0xffff80002e3ac9b8 r13 0xffffffff8288cea8 inet6sw+0x208 r14 0x3 r15 0x3c rip 0xffffffff81e82144 socreate+0x84 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff80002e3ac940 ss 0x10 socreate+0x84: cmpq $0,0(%rax) ddb{1}> show proc PROC (syz-executor.1) pid=74446 stat=onproc flags process=10 proc=4000000 pri=83, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff8000294e8fc8,0xffff8000294e8d38 process=0xffff8000ffff3a48 user=0xffff80002e3a7000, vmspace=0xfffffd806c62ba20 estcpu=33, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 45296 294446 75067 32767 2 0x10 syz-executor.7 25748 5657 27619 32767 2 0x10 syz-executor.2 25748 242750 27619 32767 2 0x4000010 syz-executor.2 25388 483792 66242 32767 2 0x10 syz-executor.5 77520 441566 9510 32767 2 0x10 syz-executor.3 41996 504631 9853 32767 7 0x10 syz-executor.4 41996 300672 9853 32767 2 0x4000010 syz-executor.4 12694 368769 22903 32767 2 0x10 syz-executor.1 *12694 74446 22903 32767 7 0x4000010 syz-executor.1 37362 225638 64034 32767 2 0x10 syz-executor.0 75067 43508 44654 32767 3 0x90 nanoslp syz-executor.7 44654 480348 57145 0 3 0x82 wait syz-executor.7 9853 46848 65895 32767 3 0x90 nanoslp syz-executor.4 65895 144853 57145 0 3 0x82 wait syz-executor.4 66242 445564 5001 32767 3 0x90 nanoslp syz-executor.5 5001 71891 57145 0 3 0x82 wait syz-executor.5 27619 201893 87208 32767 3 0x90 nanoslp syz-executor.2 87208 407693 57145 0 3 0x82 wait syz-executor.2 9510 139938 97145 32767 2 0x10 syz-executor.3 97145 171236 57145 0 3 0x82 wait syz-executor.3 22903 18774 54973 32767 3 0x90 nanoslp syz-executor.1 54973 43775 57145 0 3 0x82 wait syz-executor.1 86347 490529 88539 32767 2 0x10 syz-executor.6 88539 56272 57145 0 3 0x82 wait syz-executor.6 54616 431719 0 0 3 0x14200 bored sosplice 64034 521221 83982 32767 3 0x90 nanoslp syz-executor.0 83982 205389 57145 0 3 0x82 wait syz-executor.0 57145 355254 45185 0 3 0x82 thrsleep syz-fuzzer 57145 416703 45185 0 3 0x4000082 thrsleep syz-fuzzer 57145 411898 45185 0 3 0x4000082 thrsleep syz-fuzzer 57145 262801 45185 0 3 0x4000082 kqread syz-fuzzer 57145 487001 45185 0 3 0x4000082 thrsleep syz-fuzzer 57145 69948 45185 0 3 0x4000082 thrsleep syz-fuzzer 57145 312632 45185 0 3 0x4000082 thrsleep syz-fuzzer 57145 284930 45185 0 3 0x4000082 thrsleep syz-fuzzer 57145 188786 45185 0 3 0x4000082 thrsleep syz-fuzzer 45185 392505 42520 0 3 0x10008a sigsusp ksh 42520 25487 51974 0 3 0x9a kqread sshd 14549 407235 1 0 3 0x100083 ttyin getty 51974 438194 1 0 3 0x88 kqread sshd 9407 377162 38885 73 3 0x1100090 kqread syslogd 38885 344476 1 0 3 0x100082 netio syslogd 20575 70598 1 0 3 0x100080 kqread resolvd 2887 485372 45387 77 3 0x100092 kqread dhcpleased 14344 466532 45387 77 3 0x100092 kqread dhcpleased 45387 291366 1 0 3 0x80 kqread dhcpleased 4311 426352 0 0 3 0x14200 bored smr 86276 435042 0 0 2 0x14200 zerothread 60378 290652 0 0 3 0x14200 aiodoned aiodoned 3679 358571 0 0 3 0x14200 syncer update 3364 205757 0 0 3 0x14200 cleaner cleaner 58080 235441 0 0 3 0x14200 reaper reaper 38920 146183 0 0 3 0x14200 pgdaemon pagedaemon 1589 344889 0 0 3 0x14200 bored viomb 167 105552 0 0 3 0x40014200 acpi0 acpi0 82814 346940 0 0 3 0x40014200 idle1 48238 297108 0 0 3 0x14200 bored softnet 84972 37142 0 0 3 0x14200 bored systqmp 53376 205679 0 0 3 0x14200 bored systq 81862 480557 0 0 3 0x40014200 bored softclock 16171 75447 0 0 3 0x40014200 idle0 1 300247 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 12694 (syz-executor.1) thread 0xffff8000294e8548 (74446) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82abcc60) #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 10207 6412K 6419K 78643K 11479 0 pcb 13 12K 14K 78643K 17 0 rtable 268 7K 8K 78643K 4924 0 ifaddr 81 18K 18K 78643K 505 0 sysctl 3 1K 3K 78643K 6 0 counters 56 35K 35K 78643K 176 0 ioctlops 0 0K 2K 78643K 853 0 iov 0 0K 44K 78643K 6370 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1271 79K 79K 78643K 8772 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 549 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 11888 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 25 93K 113K 78643K 41706 0 sigio 0 0K 0K 78643K 430 0 proc 56 74K 99K 78643K 4586 0 subproc 104 6K 6K 78643K 884 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 3858 0 in_multi 99 6K 7K 78643K 1324 0 ether_multi 1 0K 0K 78643K 167 0 mrt 4 0K 0K 78643K 5 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 259 1155K 1155K 78643K 259 0 exec 0 0K 2K 78643K 7408 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 476 96K 121K 78643K 541322 0 UVM aobj 131 8K 8K 78643K 132 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1143 0 NDP 11 0K 2K 78643K 207 0 temp 125 4703K 4831K 78643K 104850 0 kqueue 14 20K 28K 78643K 3306 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 3826 0 3823 49 48 1 6 0 8 0 rtentry 112 873 0 748 4 0 4 4 0 8 0 unpcb 136 33978 0 33965 291 290 1 9 0 8 0 syncache 296 378 0 378 70 69 1 1 0 8 1 tcpqe 32 114 0 114 29 29 0 1 0 8 0 tcpcb 736 17444 0 17440 487 479 8 17 0 8 7 arp 120 146 0 127 1 0 1 1 0 8 0 ipq 40 68 0 67 24 23 1 1 0 8 0 ipqe 40 1328 0 1327 24 23 1 1 0 8 0 inpcb 304 34130 0 34116 415 409 6 12 0 8 4 rttmr 72 43 0 41 2 1 1 1 0 8 0 ip6q 72 67 0 66 13 12 1 1 0 8 0 ip6af 40 130 0 129 13 12 1 1 0 8 0 nd6 48 287 0 251 1 0 1 1 0 8 0 kcovpl 48 68 0 60 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 3694 0 3075 45 6 39 39 0 8 0 art_table 32 3695 0 3075 5 0 5 5 0 8 0 art_node 16 872 0 757 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 4 1 1 0 1 0 8 0 semapl 112 11886 0 11876 1 0 1 1 0 8 0 shmpl 112 129 0 1 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 63135 0 61645 94 0 94 94 0 8 0 ffsino 272 63135 0 61645 100 0 100 100 0 8 0 nchpl 144 123970 0 122337 62 0 62 62 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 522100 0 522100 22 21 1 2 0 8 1 percpumem 16 100 0 60 1 0 1 1 0 8 0 scxspl 216 357893 0 357893 114 113 1 8 0 8 1 plimitpl 152 7444 0 7422 31 30 1 2 0 8 0 sigapl 424 41858 0 41807 7 1 6 7 0 8 0 futexpl 64 392884 0 392884 11 10 1 1 0 8 1 knotepl 120 1626 0 0 17 2 15 17 0 8 0 kqueuepl 216 14315 0 14306 232 227 5 8 0 8 4 pipepl 336 9354 0 9326 256 248 8 13 0 8 5 fdescpl 496 41843 0 41807 9 4 5 6 0 8 0 filepl 152 300344 0 300111 422 404 18 21 0 8 8 lockfpl 104 8155 0 8153 10 9 1 2 0 8 0 lockfspl 48 1877 0 1875 1 0 1 1 0 8 0 sessionpl 144 83 0 67 1 0 1 1 0 8 0 pgrppl 48 774 0 758 1 0 1 1 0 8 0 ucredpl 96 45205 0 45187 1 0 1 1 0 8 0 zombiepl 144 41807 0 41807 5 4 1 1 0 8 1 processpl 1064 41858 0 41807 5 1 4 4 0 8 0 procpl 672 126923 0 126861 65 57 8 9 0 8 1 sosppl 168 790 0 790 70 69 1 1 0 8 1 sockpl 480 73084 0 73061 1474 1464 10 35 0 8 7 mcl64k 65536 147 0 0 8 5 3 3 0 8 0 mcl16k 16384 65 0 0 6 3 3 3 0 8 0 mcl12k 12288 81 0 0 2 0 2 2 0 8 0 mcl9k 9216 63 0 0 3 1 2 2 0 8 0 mcl8k 8192 73 0 0 6 3 3 3 0 8 0 mcl4k 4096 81 0 0 5 2 3 4 0 8 0 mcl2k2 2112 37 0 0 3 1 2 2 0 8 0 mcl2k 2048 705 0 0 22 7 15 19 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 3784 0 0 227 0 227 227 0 8 0 bufpl 288 66320 0 59985 453 0 453 453 0 8 0 anonpl 24 12422815 0 12408514 401 282 119 136 0 186 2 amapchunkpl 152 1357191 0 1356442 477 436 41 49 0 158 5 amappl16 200 142852 0 142461 629 601 28 43 0 8 4 amappl15 192 5109 0 5104 1 0 1 1 0 8 0 amappl14 184 6319 0 6314 1 0 1 1 0 8 0 amappl13 176 4324 0 4320 1 0 1 1 0 8 0 amappl12 168 7144 0 7134 1 0 1 1 0 8 0 amappl11 160 10321 0 10307 1 0 1 1 0 8 0 amappl10 152 704 0 700 1 0 1 1 0 8 0 amappl9 144 5321 0 5312 1 0 1 1 0 8 0 amappl8 136 9555 0 9289 10 0 10 10 0 8 0 amappl7 128 6354 0 6340 1 0 1 1 0 8 0 amappl6 120 5268 0 5230 4 2 2 2 0 8 0 amappl5 112 30003 0 29986 1 0 1 1 0 8 0 amappl4 104 21069 0 21030 3 1 2 2 0 8 0 amappl3 96 11614 0 11592 1 0 1 1 0 8 0 amappl2 88 12509 0 12445 3 1 2 3 0 8 0 amappl1 80 771427 0 770821 38 23 15 18 0 8 0 amappl 88 538097 0 537847 11 3 8 8 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 131 0 1 3 0 3 3 0 8 0 uaddrrnd 24 41843 0 41807 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 41843 0 41807 1 0 1 1 0 8 0 vmmpekpl 168 337942 0 337899 4 1 3 3 0 8 0 vmmpepl 168 3900498 0 3897637 514 375 139 147 0 357 0 vmsppl 368 41842 0 41807 4 0 4 4 0 8 0 rwobjpl 56 970983 0 963414 140 29 111 113 0 8 0 pdppl 4096 83693 0 83614 1031 950 81 89 0 8 2 pvpl 32 20140882 0 20120954 1033 806 227 253 0 265 35 pmappl 248 41842 0 41807 4 1 3 3 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 2773 0 1726 31 0 31 31 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff828d5ff0) 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(ffffffff82abca58) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82abca58) 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 __mp_lock(ffffffff82abca58) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82abca58) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff80002c94eac0) at syscall+0x3ef mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff80002c94eac0) at syscall+0x3ef sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc5ac0, count: 6 ddb{0}> trace x86_ipi_db(ffffffff828d5ff0) 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(ffffffff82abca58) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82abca58) 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 __mp_lock(ffffffff82abca58) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82abca58) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff80002c94eac0) at syscall+0x3ef mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff80002c94eac0) at syscall+0x3ef sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc5ac0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at socreate+0x84: cmpq $0,0(%rax) socreate(18,ffff80002e3ac9b8,3,3c) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff8000294e8548,ffff80002e3aca48,ffff80002e3acaa0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e3acb10) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3acb10) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb589e3597b0, count: 11 ddb{1}> trace socreate(18,ffff80002e3ac9b8,3,3c) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff8000294e8548,ffff80002e3aca48,ffff80002e3acaa0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e3acb10) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3acb10) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb589e3597b0, count: -4