uvm_fault(0xfffffd80648fea28, 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 390393 79409 0 0 0 0 syz-executor.0 * 8750 79409 0 0 0x4000000 1K syz-executor.0 socreate(18,ffff80002e430e38,3,3c) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff80002e36d268,ffff80002e430ec8,ffff80002e430f20) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e430f90) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e430f90) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7e1badc4840, 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(0xfffffd80648fea28, 0x0, 0, 1) -> e ddb{1}> trace socreate(18,ffff80002e430e38,3,3c) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff80002e36d268,ffff80002e430ec8,ffff80002e430f20) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e430f90) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e430f90) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7e1badc4840, count: -4 ddb{1}> show registers rdi 0xffff80002123f000 rsi 0x26 rbp 0xffff80002e430e20 rbx 0x18 rdx 0xffff80002123f000 rcx 0x25 rax 0 r8 0xffffffff811cfb80 uvm_map_inentry_pc r9 0x18 r10 0 r11 0x53953a8780db9d1b r12 0xffff80002e430e38 r13 0xffffffff82676048 inet6sw+0x208 r14 0x3 r15 0x3c rip 0xffffffff81b8f4e4 socreate+0x84 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff80002e430dc0 ss 0x10 socreate+0x84: cmpq $0,0(%rax) ddb{1}> show proc PROC (syz-executor.0) pid=8750 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff80002e36da48,0xffff80002e36ca98 process=0xffff8000ffff3a48 user=0xffff80002e42c000, vmspace=0xfffffd80648fea28 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 2632 407154 7130 0 2 0 syz-executor.3 46976 64903 79291 0 2 0 syz-executor.5 46976 165150 79291 0 3 0x4000080 fsleep syz-executor.5 46976 237040 79291 0 3 0x4000080 fsleep syz-executor.5 79409 390393 52282 0 7 0 syz-executor.0 *79409 8750 52282 0 7 0x4000000 syz-executor.0 37797 7061 30514 60929 2 0x10 syz-executor.4 37797 93670 30514 60929 3 0x4000090 fsleep syz-executor.4 69373 225380 20200 0 2 0 syz-executor.7 69373 393395 20200 0 2 0x4000000 syz-executor.7 44428 97468 43486 0 2 0 syz-executor.1 44428 484662 43486 0 3 0x4000080 fsleep syz-executor.1 94581 332693 36422 0 2 0 syz-executor.6 94581 284336 36422 0 3 0x4000080 fsleep syz-executor.6 94581 234956 36422 0 3 0x4000080 fifor syz-executor.6 92579 143168 49027 0 2 0 syz-executor.2 92579 285402 49027 0 3 0x4000080 fsleep syz-executor.2 92579 244512 49027 0 3 0x4000080 fsleep syz-executor.2 49110 177199 0 0 3 0x14280 nfsidl nfsio 7759 466846 0 0 3 0x14280 nfsidl nfsio 11780 51691 0 0 3 0x14280 nfsidl nfsio 92001 93500 0 0 3 0x14280 nfsidl nfsio 58675 61982 0 0 3 0x14280 nfsidl nfsio 53280 244520 0 0 3 0x14280 nfsidl nfsio 49980 104230 0 0 3 0x14280 nfsidl nfsio 72942 458637 0 0 3 0x14280 nfsidl nfsio 40589 82691 0 0 3 0x14280 nfsidl nfsio 73968 505353 0 0 3 0x14280 nfsidl nfsio 71518 141062 0 0 3 0x14280 nfsidl nfsio 19493 20984 0 0 3 0x14280 nfsidl nfsio 93740 184621 0 0 3 0x14280 nfsidl nfsio 5890 118886 0 0 3 0x14280 nfsidl nfsio 60163 203789 0 0 3 0x14280 nfsidl nfsio 19358 198293 0 0 3 0x14280 nfsidl nfsio 62353 308911 0 0 3 0x14280 nfsidl nfsio 26552 298821 0 0 3 0x14280 nfsidl nfsio 88776 273986 0 0 3 0x14280 nfsidl nfsio 28776 59606 0 0 3 0x14280 nfsidl nfsio 30514 293145 74901 0 3 0x82 nanoslp syz-executor.4 20200 125901 74901 0 3 0x82 nanoslp syz-executor.7 43486 174884 74901 0 3 0x82 nanoslp syz-executor.1 52282 461751 74901 0 3 0x82 nanoslp syz-executor.0 7130 143620 74901 0 3 0x82 nanoslp syz-executor.3 49027 275619 74901 0 3 0x82 nanoslp syz-executor.2 72918 77132 0 0 3 0x14200 bored sosplice 36422 114204 74901 0 3 0x82 nanoslp syz-executor.6 79291 115857 74901 0 3 0x82 nanoslp syz-executor.5 74901 490659 72209 0 3 0x82 thrsleep syz-fuzzer 74901 199949 72209 0 3 0x4000082 nanoslp syz-fuzzer 74901 29117 72209 0 3 0x4000082 thrsleep syz-fuzzer 74901 504668 72209 0 3 0x4000082 kqread syz-fuzzer 74901 260863 72209 0 3 0x4000082 thrsleep syz-fuzzer 74901 455284 72209 0 3 0x4000082 thrsleep syz-fuzzer 74901 465251 72209 0 3 0x4000082 nanoslp syz-fuzzer 74901 210451 72209 0 3 0x4000082 thrsleep syz-fuzzer 74901 173216 72209 0 3 0x4000082 thrsleep syz-fuzzer 72209 188286 52930 0 3 0x10008a sigsusp ksh 52930 41045 90512 0 3 0x9a kqread sshd 34884 414471 1 0 3 0x100083 ttyin getty 90512 46670 1 0 3 0x88 kqread sshd 78611 290527 99496 74 3 0x1100092 bpf pflogd 99496 283035 1 0 3 0x80 netio pflogd 48495 273940 48497 73 3 0x1100090 kqread syslogd 48497 391631 1 0 3 0x100082 netio syslogd 76034 31405 1 0 3 0x100080 kqread resolvd 90177 143949 44125 77 3 0x100092 kqread dhcpleased 65831 460006 44125 77 3 0x100092 kqread dhcpleased 44125 265341 1 0 3 0x80 kqread dhcpleased 96084 269043 0 0 3 0x14200 bored smr 42492 265062 0 0 2 0x14200 zerothread 66740 200056 0 0 3 0x14200 aiodoned aiodoned 39844 324086 0 0 3 0x14200 syncer update 34760 372970 0 0 3 0x14200 cleaner cleaner 42884 175852 0 0 3 0x14200 reaper reaper 59357 179220 0 0 3 0x14200 pgdaemon pagedaemon 17047 56142 0 0 3 0x14200 bored viomb 3372 473296 0 0 3 0x40014200 acpi0 acpi0 96536 307854 0 0 3 0x40014200 idle1 67499 311667 0 0 3 0x14200 bored softnet 68412 93336 0 0 3 0x14200 bored systqmp 9807 426192 0 0 3 0x14200 bored systq 74674 195380 0 0 3 0x40014200 bored softclock 49021 140901 0 0 3 0x40014200 idle0 1 304808 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 79409 (syz-executor.0) thread 0xffff80002e36d268 (8750) 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 10213 6630K 7265K 78643K 28146 0 pcb 13 18K 23K 78643K 2215 0 rtable 210 11K 13K 78643K 1206 0 ifaddr 87 19K 21K 78643K 683 0 sysctl 2 0K 0K 78643K 2 0 counters 54 35K 36K 78643K 192 0 ioctlops 0 0K 8K 78643K 4525 0 iov 0 0K 16K 78643K 777 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1381 86K 87K 78643K 5635 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 62 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 3778 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 18 65K 89K 78643K 19949 0 sigio 0 0K 0K 78643K 93 0 proc 74 99K 123K 78643K 1170 0 subproc 104 6K 6K 78643K 273 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 77 5K 6K 78643K 418 0 ether_multi 1 0K 0K 78643K 64 0 mrt 0 0K 0K 78643K 43 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 151 678K 678K 78643K 151 0 exec 0 0K 2K 78643K 1675 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 497 258K 259K 78643K 252277 0 UVM aobj 131 4K 4K 78643K 145 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 2889 0 NDP 12 0K 2K 78643K 136 0 temp 138 4719K 4829K 78643K 96085 0 kqueue 12 18K 24K 78643K 648 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 232 0 229 3 2 1 3 0 8 0 rtentry 112 305 0 223 4 0 4 4 0 8 0 unpcb 136 24881 0 24863 100 94 6 8 0 8 5 syncache 296 25 0 25 6 6 0 1 0 8 0 tcpqe 32 189 0 189 3 3 0 1 0 8 0 tcpcb 736 6438 0 6425 101 99 2 21 0 8 0 arp 120 45 0 31 1 0 1 1 0 8 0 inpcb 304 15406 0 15393 114 112 2 13 0 8 0 rttmr 72 12 0 12 3 3 0 1 0 8 0 nd6 48 80 0 61 1 0 1 1 0 8 0 pkpcb 40 17 0 17 4 4 0 1 0 8 0 kcovpl 48 21 0 13 1 0 1 1 0 8 0 ppxss 1248 22 0 22 4 4 0 1 0 8 0 pfstscr 40 2 0 2 1 1 0 1 0 8 0 pffrag 232 34 0 34 1 1 0 1 0 482 0 pffrnode 88 34 0 34 1 1 0 1 0 8 0 pffrent 40 191 0 191 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 pfrktable 1344 39 0 28 2 1 1 2 0 8 0 pftag 88 10 0 5 1 0 1 1 0 8 0 pfstitem 24 18 0 16 1 0 1 1 0 8 0 pfstkey 112 22 0 20 1 0 1 1 0 8 0 pfstate 320 20 0 18 2 1 1 2 0 8 0 pfsrctr 152 342 0 342 1 1 0 1 0 8 0 pfrule 1360 1173 0 946 21 1 20 20 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1235 0 870 32 8 24 29 0 8 0 art_table 32 1236 0 870 4 0 4 4 0 8 0 art_node 16 304 0 233 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 5 1 0 1 1 0 8 0 semupl 112 9 0 9 1 1 0 1 0 8 0 semapl 112 3766 0 3756 1 0 1 1 0 8 0 shmpl 112 142 0 14 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 23355 0 21893 92 0 92 92 0 8 0 ffsino 272 23355 0 21893 98 0 98 98 0 8 0 nchpl 144 47716 0 46089 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 130237 0 130237 7 6 1 2 0 8 1 percpumem 16 108 0 69 1 0 1 1 0 8 0 vcpupl 2048 74 0 0 10 0 10 10 0 8 0 vmpool 560 163 0 89 8 2 6 6 0 8 0 pfiaddrpl 120 30 0 2 1 0 1 1 0 8 0 scsiplug 72 2 0 2 1 1 0 1 0 8 0 scxspl 216 135457 0 135457 19 18 1 8 0 8 1 plimitpl 152 474 0 459 1 0 1 1 0 8 0 sigapl 424 20268 0 20202 10 2 8 8 0 8 0 futexpl 64 164655 0 164648 3 2 1 1 0 8 0 knotepl 120 139 0 0 4 0 4 4 0 8 0 kqueuepl 216 1562 0 1553 21 20 1 5 0 8 0 pipepl 336 1954 0 1926 49 46 3 8 0 8 0 fdescpl 496 20213 0 20182 5 0 5 5 0 8 0 filepl 152 98552 0 98304 122 107 15 20 0 8 4 lockfpl 104 3504 0 3500 10 8 2 3 0 8 1 lockfspl 48 1452 0 1448 2 1 1 2 0 8 0 sessionpl 144 37 0 20 1 0 1 1 0 8 0 pgrppl 48 59 0 42 1 0 1 1 0 8 0 ucredpl 96 10535 0 10522 1 0 1 1 0 8 0 zombiepl 144 20202 0 20202 2 1 1 1 0 8 1 processpl 1064 20268 0 20202 5 0 5 5 0 8 0 procpl 672 54772 0 54688 24 15 9 9 0 8 1 srpgc 96 12 0 12 4 4 0 1 0 8 0 sosppl 168 25 0 25 6 6 0 1 0 8 0 sockpl 480 40540 0 40506 671 650 21 29 0 8 16 mcl64k 65536 26 0 0 3 0 3 3 0 8 0 mcl16k 16384 20 0 0 3 0 3 3 0 8 0 mcl12k 12288 25 0 0 3 1 2 2 0 8 0 mcl9k 9216 24 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 57 0 0 5 2 3 3 0 8 0 mcl2k2 2112 19 0 0 2 0 2 2 0 8 0 mcl2k 2048 234 0 0 22 5 17 22 0 8 0 mtagpl 96 740 0 0 13 1 12 12 0 8 0 mbufpl 256 1145 0 0 45 0 45 45 0 8 0 bufpl 288 26765 0 20429 453 0 453 453 0 8 0 anonpl 24 5424418 0 5404517 224 92 132 188 0 186 0 amapchunkpl 152 603730 0 602812 93 55 38 65 0 158 1 amappl16 200 42873 0 42223 56 20 36 42 0 8 1 amappl15 192 2379 0 2373 1 0 1 1 0 8 0 amappl14 184 4757 0 4749 1 0 1 1 0 8 0 amappl13 176 5416 0 5413 1 0 1 1 0 8 0 amappl12 168 3102 0 3092 1 0 1 1 0 8 0 amappl11 160 4114 0 4099 1 0 1 1 0 8 0 amappl10 152 661 0 653 1 0 1 1 0 8 0 amappl9 144 2435 0 2432 1 0 1 1 0 8 0 amappl8 136 1332 0 1189 7 1 6 6 0 8 0 amappl7 128 178 0 166 1 0 1 1 0 8 0 amappl6 120 2219 0 2190 2 1 1 2 0 8 0 amappl5 112 15666 0 15647 1 0 1 1 0 8 0 amappl4 104 7687 0 7651 2 0 2 2 0 8 0 amappl3 96 3979 0 3962 1 0 1 1 0 8 0 amappl2 88 9673 0 9612 3 1 2 3 0 8 0 amappl1 80 359970 0 359365 19 5 14 19 0 8 0 amappl 88 251436 0 251129 10 2 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 144 0 14 3 0 3 3 0 8 0 uaddrrnd 24 20376 0 20271 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 20376 0 20271 1 0 1 1 0 8 0 vmmpekpl 168 144856 0 144792 4 0 4 4 0 8 0 vmmpepl 168 1780887 0 1777853 264 129 135 145 0 357 1 vmsppl 368 20375 0 20271 11 1 10 10 0 8 0 rwobjpl 56 421647 0 413810 117 5 112 113 0 8 0 pdppl 4096 40759 0 40616 334 191 143 143 0 8 0 pvpl 32 8811976 0 8787201 430 195 235 321 0 265 22 pmappl 248 20375 0 20271 8 1 7 7 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 1296 0 361 27 0 27 27 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+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82b6e568) at __mp_lock+0x12e sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x1f copyout() at copyout+0x60 syscall(ffff80002e413360) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e413360) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdbe80, count: 6 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+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82b6e568) at __mp_lock+0x12e sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x1f copyout() at copyout+0x60 syscall(ffff80002e413360) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e413360) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdbe80, count: -9 ddb{0}> machine ddbcpu 1 Stopped at socreate+0x84: cmpq $0,0(%rax) socreate(18,ffff80002e430e38,3,3c) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff80002e36d268,ffff80002e430ec8,ffff80002e430f20) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e430f90) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e430f90) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7e1badc4840, count: 11 ddb{1}> trace socreate(18,ffff80002e430e38,3,3c) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socket(ffff80002e36d268,ffff80002e430ec8,ffff80002e430f20) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96 syscall(ffff80002e430f90) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e430f90) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7e1badc4840, count: -4