kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Fri Feb 25 12:47:03 PST 2022 OpenBSD/amd64 (ci-openbsd-multicore-3.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.0.255' (ED25519) to the list of known hosts. login: uvm_fault(0xfffffd806ed50e68, 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 * 85107 92367 0 0x2 0 0 syz-executor4120788865 92944 95490 0 0x12 0x8 1K sshd socreate(18,ffff8000211ce338,3,2c) at socreate+0x84 sys_socket(ffff8000ffff6550,ffff8000211ce3c8,ffff8000211ce420) at sys_socket+0xd8 syscall(ffff8000211ce490) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffceca0, 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(0xfffffd806ed50e68, 0x0, 0, 1) -> e ddb{0}> trace socreate(18,ffff8000211ce338,3,2c) at socreate+0x84 sys_socket(ffff8000ffff6550,ffff8000211ce3c8,ffff8000211ce420) at sys_socket+0xd8 syscall(ffff8000211ce490) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffceca0, count: -4 ddb{0}> show registers rdi 0x3 rsi 0x3 rbp 0xffff8000211ce320 rbx 0x18 rdx 0x3 rcx 0 rax 0 r8 0xffffffff811cfb80 uvm_map_inentry_pc r9 0xa r10 0 r11 0x6be377ad43eea33e r12 0xffff8000211ce338 r13 0xffffffff82676118 inet6sw+0x2d8 r14 0x3 r15 0x2c rip 0xffffffff81b8f4e4 socreate+0x84 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff8000211ce2c0 ss 0x10 socreate+0x84: cmpq $0,0(%rax) ddb{0}> show proc PROC (syz-executor4120788865) pid=85107 stat=onproc flags process=2 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff6a90,0xffffffff82b22b18 process=0xffff8000211a14d8 user=0xffff8000211c9000, vmspace=0xfffffd806ed50e68 estcpu=0, cpticks=1, pctcpu=0.0 user=1, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *92367 85107 54231 0 7 0x2 syz-executor4120788865 54231 244021 95490 0 3 0x10008a sigsusp ksh 95490 92944 87802 0 7 0x1a sshd 10255 156665 1 0 3 0x100083 ttyin getty 87802 116764 1 0 3 0x88 kqread sshd 86159 512795 5431 74 3 0x1100092 bpf pflogd 5431 25951 1 0 3 0x80 netio pflogd 72139 346143 45189 73 3 0x1100090 kqread syslogd 45189 68738 1 0 3 0x100082 netio syslogd 81305 404063 1 0 3 0x100080 kqread resolvd 95485 456697 50411 77 3 0x100092 kqread dhcpleased 94375 456446 50411 77 3 0x100092 kqread dhcpleased 50411 66893 1 0 3 0x80 kqread dhcpleased 25157 136901 0 0 3 0x14200 bored smr 63297 478035 0 0 3 0x14200 pgzero zerothread 85747 129618 0 0 3 0x14200 aiodoned aiodoned 38528 40653 0 0 3 0x14200 syncer update 45103 235708 0 0 3 0x14200 cleaner cleaner 41512 402908 0 0 3 0x14200 reaper reaper 31897 100368 0 0 3 0x14200 pgdaemon pagedaemon 82115 146574 0 0 3 0x14200 bored viomb 82084 403799 0 0 3 0x40014200 acpi0 acpi0 62025 308187 0 0 3 0x40014200 idle1 92895 135886 0 0 2 0x14200 softnet 3452 497363 0 0 3 0x14200 bored systqmp 65346 138798 0 0 3 0x14200 bored systq 98234 34774 0 0 3 0x40014200 bored softclock 57746 260336 0 0 3 0x40014200 idle0 1 231717 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 92367 (syz-executor4120788865) thread 0xffff8000ffff6550 (85107) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82b6e770) #0 witness_lock+0x44d #1 kpageflttrap+0x23d #2 kerntrap+0xef #3 alltraps_kern_meltdown+0x7b #4 socreate+0x84 #5 sys_socket+0xd8 #6 syscall+0x489 #7 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10149 6454K 6454K 78643K 11239 0 pcb 13 8K 8K 78643K 13 0 rtable 62 2K 2K 78643K 118 0 ifaddr 29 8K 8K 78643K 32 0 counters 40 33K 33K 78643K 40 0 ioctlops 0 0K 4K 78643K 1479 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 1 0K 0K 78643K 1 0 proc 67 87K 87K 78643K 282 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 11 0K 0K 78643K 11 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 447 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 82 11K 11K 78643K 2236 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 4 0K 0K 78643K 4 0 temp 24 4686K 4749K 78643K 3246 0 kqueue 11 16K 18K 78643K 24 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 20 0 17 1 0 1 1 0 8 0 rtentry 112 23 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 tcpqe 32 12 0 12 1 1 0 1 0 8 0 tcpcb 736 8 0 5 1 0 1 1 0 8 0 arp 120 2 0 0 1 0 1 1 0 8 0 inpcb 304 32 0 26 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 9 0 0 1 0 1 1 0 8 0 pfstkey 112 9 0 0 1 0 1 1 0 8 0 pfstate 320 9 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 96 0 0 6 0 6 6 0 8 0 art_table 32 97 0 0 1 0 1 1 0 8 0 art_node 16 22 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1424 0 39 87 0 87 87 0 8 0 ffsino 272 1424 0 39 93 0 93 93 0 8 0 nchpl 144 1599 0 49 58 0 58 58 0 8 0 uvmvnodes 80 1434 0 0 30 0 30 30 0 8 0 vnodes 224 1434 0 0 85 0 85 85 0 8 0 namei 1024 4472 0 4472 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 216 3791 0 3791 2 1 1 2 0 8 1 plimitpl 152 17 0 9 1 0 1 1 0 8 0 sigapl 424 329 0 300 4 0 4 4 0 8 0 knotepl 120 47 0 0 2 0 2 2 0 8 0 kqueuepl 216 20 0 13 1 0 1 1 0 8 0 pipepl 336 89 0 86 1 0 1 1 0 8 0 fdescpl 496 315 0 300 3 0 3 3 0 8 0 filepl 152 1163 0 1105 3 0 3 3 0 8 0 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 300 0 300 1 0 1 1 0 8 1 processpl 1064 329 0 300 3 0 3 3 0 8 0 procpl 672 329 0 300 3 0 3 3 0 8 0 sockpl 480 87 0 63 4 0 4 4 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 81 0 0 11 0 11 11 0 8 1 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 131 0 0 9 0 9 9 0 8 0 bufpl 288 2012 0 93 138 0 138 138 0 8 0 anonpl 24 42322 0 40011 17 2 15 17 0 186 1 amapchunkpl 152 4107 0 3964 7 1 6 7 0 158 0 amappl16 200 29 0 29 1 1 0 1 0 8 0 amappl15 192 70 0 67 1 0 1 1 0 8 0 amappl13 176 34 0 33 1 0 1 1 0 8 0 amappl12 168 17 0 17 1 0 1 1 0 8 1 amappl11 160 44 0 30 1 0 1 1 0 8 0 amappl10 152 2 0 0 1 0 1 1 0 8 0 amappl9 144 447 0 444 1 0 1 1 0 8 0 amappl8 136 381 0 378 1 0 1 1 0 8 0 amappl7 128 65 0 62 1 0 1 1 0 8 0 amappl6 120 117 0 104 1 0 1 1 0 8 0 amappl5 112 185 0 172 1 0 1 1 0 8 0 amappl4 104 656 0 636 1 0 1 1 0 8 0 amappl3 96 125 0 115 1 0 1 1 0 8 0 amappl2 88 390 0 351 1 0 1 1 0 8 0 amappl1 80 8953 0 8578 9 0 9 9 0 8 0 amappl 88 1946 0 1882 2 0 2 2 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 315 0 300 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 315 0 300 1 0 1 1 0 8 0 vmmpekpl 168 6354 0 6338 1 0 1 1 0 8 0 vmmpepl 168 27163 0 26328 41 0 41 41 0 357 3 vmsppl 368 314 0 300 2 0 2 2 0 8 0 rwobjpl 56 9698 0 7714 29 0 29 29 0 8 0 pdppl 4096 637 0 600 55 18 37 45 0 8 0 pvpl 32 138089 0 133943 38 1 37 37 0 265 2 pmappl 248 314 0 300 2 0 2 2 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 415 0 21 12 0 12 12 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace socreate(18,ffff8000211ce338,3,2c) at socreate+0x84 sys_socket(ffff8000ffff6550,ffff8000211ce3c8,ffff8000211ce420) at sys_socket+0xd8 syscall(ffff8000211ce490) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffceca0, count: -4 ddb{0}> machine ddbcpu 1