kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Fri Feb 25 22:28:30 PST 2022 OpenBSD/amd64 (ci-openbsd-setuid-4.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.0.161' (ED25519) to the list of known hosts. executing program login: uvm_fault(0xfffffd807effe170, 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 32029 22506 0 0x2 0 0 syz-executor252658238 *377589 22506 0 0x2 0x4000000 1K syz-executor252658238 socreate(18,ffff8000211c7d98,0,29) at socreate+0x84 sys_socket(ffff8000ffff6010,ffff8000211c7e28,ffff8000211c7e80) at sys_socket+0xd8 syscall(ffff8000211c7ef0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4f18fe68210, 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(0xfffffd807effe170, 0x0, 0, 1) -> e ddb{1}> trace socreate(18,ffff8000211c7d98,0,29) at socreate+0x84 sys_socket(ffff8000ffff6010,ffff8000211c7e28,ffff8000211c7e80) at sys_socket+0xd8 syscall(ffff8000211c7ef0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4f18fe68210, count: -4 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff8000211c7d80 rbx 0x18 rdx 0 rcx 0x29 rax 0 r8 0xffffffff81e690f0 uvm_map_inentry_pc r9 0x24 r10 0 r11 0x719e8506aa03dd4c r12 0xffff8000211c7d98 r13 0xffffffff8288cca0 inet6sw r14 0 r15 0x29 rip 0xffffffff81e82144 socreate+0x84 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff8000211c7d20 ss 0x10 socreate+0x84: cmpq $0,0(%rax) ddb{1}> show proc PROC (syz-executor252658238) pid=377589 stat=onproc flags process=2 proc=4000000 pri=32, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff6d30,0xffffffff82a987b8 process=0xffff8000211b6150 user=0xffff8000211c2000, vmspace=0xfffffd807effe170 estcpu=1, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 22506 32029 59302 0 7 0x2 syz-executor252658238 *22506 377589 59302 0 7 0x4000002 syz-executor252658238 59302 137927 76145 0 3 0x10008a sigsusp ksh 76145 517772 18992 0 3 0x9a kqread sshd 28544 78284 1 0 3 0x100083 ttyin getty 18992 120242 1 0 3 0x88 kqread sshd 19553 296776 70114 73 3 0x1100090 kqread syslogd 70114 328237 1 0 3 0x100082 netio syslogd 28187 456185 1 0 3 0x100080 kqread resolvd 7526 445309 64533 77 3 0x100092 kqread dhcpleased 49280 97087 64533 77 3 0x100092 kqread dhcpleased 64533 513252 1 0 3 0x80 kqread dhcpleased 91267 83492 0 0 3 0x14200 bored smr 46148 485544 0 0 3 0x14200 pgzero zerothread 38773 290175 0 0 3 0x14200 aiodoned aiodoned 44686 515594 0 0 3 0x14200 syncer update 67180 368950 0 0 3 0x14200 cleaner cleaner 90062 60054 0 0 3 0x14200 reaper reaper 90814 169482 0 0 3 0x14200 pgdaemon pagedaemon 1650 343388 0 0 3 0x14200 bored viomb 89419 396056 0 0 3 0x40014200 acpi0 acpi0 45681 465408 0 0 3 0x40014200 idle1 57007 141187 0 0 3 0x14200 bored softnet 21473 15080 0 0 3 0x14200 bored systqmp 59463 420910 0 0 3 0x14200 bored systq 29891 237342 0 0 3 0x40014200 bored softclock 56585 161711 0 0 3 0x40014200 idle0 1 69016 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 22506 (syz-executor252658238) thread 0xffff8000ffff6010 (377589) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82abcc60) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10143 6388K 6419K 78643K 11233 0 pcb 13 8K 8K 78643K 13 0 rtable 62 2K 2K 78643K 114 0 ifaddr 24 7K 7K 78643K 24 0 counters 40 33K 33K 78643K 40 0 ioctlops 0 0K 2K 78643K 25 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1166 73K 73K 78643K 1179 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 55 74K 75K 78643K 226 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 404 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 83 3K 5K 78643K 2039 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 3 0K 0K 78643K 3 0 temp 19 4686K 4749K 78643K 3108 0 kqueue 11 16K 18K 78643K 24 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 20 0 17 1 0 1 1 0 8 0 rtentry 112 23 0 1 1 0 1 1 0 8 0 unpcb 136 33 0 20 1 0 1 1 0 8 0 syncache 296 5 0 5 2 1 1 1 0 8 1 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 25 0 19 1 0 1 1 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 1415 0 38 87 0 87 87 0 8 0 ffsino 272 1415 0 38 92 0 92 92 0 8 0 nchpl 144 1590 0 47 58 0 58 58 0 8 0 uvmvnodes 80 1424 0 0 30 0 30 30 0 8 0 vnodes 224 1424 0 0 84 0 84 84 0 8 0 namei 1024 4177 0 4177 2 1 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 216 3744 0 3744 2 1 1 2 0 8 1 plimitpl 152 15 0 9 1 0 1 1 0 8 0 sigapl 424 300 0 273 4 0 4 4 0 8 0 futexpl 64 1 0 1 1 0 1 1 0 8 1 knotepl 120 51 0 0 2 0 2 2 0 8 0 kqueuepl 216 20 0 13 1 0 1 1 0 8 0 pipepl 336 82 0 79 2 1 1 1 0 8 0 fdescpl 496 286 0 273 3 0 3 3 0 8 0 filepl 152 1028 0 975 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 17 0 9 1 0 1 1 0 8 0 pgrppl 48 17 0 9 1 0 1 1 0 8 0 ucredpl 96 64 0 54 1 0 1 1 0 8 0 zombiepl 144 273 0 273 2 1 1 1 0 8 1 processpl 1064 300 0 273 3 0 3 3 0 8 0 procpl 672 301 0 273 3 0 3 3 0 8 0 sockpl 480 78 0 56 4 1 3 4 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 70 0 0 9 0 9 9 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 118 0 0 8 0 8 8 0 8 0 bufpl 288 1946 0 84 133 0 133 133 0 8 0 anonpl 24 39484 0 37159 16 1 15 15 0 186 0 amapchunkpl 152 3760 0 3609 7 1 6 7 0 158 0 amappl16 200 25 0 25 1 1 0 1 0 8 0 amappl15 192 63 0 60 1 0 1 1 0 8 0 amappl13 176 32 0 31 2 1 1 1 0 8 0 amappl12 168 15 0 15 2 1 1 1 0 8 1 amappl11 160 41 0 31 1 0 1 1 0 8 0 amappl10 152 3 0 2 1 0 1 1 0 8 0 amappl9 144 449 0 447 1 0 1 1 0 8 0 amappl8 136 353 0 348 1 0 1 1 0 8 0 amappl7 128 61 0 57 1 0 1 1 0 8 0 amappl6 120 109 0 96 1 0 1 1 0 8 0 amappl5 112 177 0 169 1 0 1 1 0 8 0 amappl4 104 592 0 571 1 0 1 1 0 8 0 amappl3 96 116 0 107 1 0 1 1 0 8 0 amappl2 88 356 0 320 1 0 1 1 0 8 0 amappl1 80 8430 0 8067 9 0 9 9 0 8 0 amappl 88 1777 0 1710 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 286 0 273 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 286 0 273 1 0 1 1 0 8 0 vmmpekpl 168 6000 0 5984 1 0 1 1 0 8 0 vmmpepl 168 25275 0 24465 43 5 38 43 0 357 0 vmsppl 368 285 0 273 2 0 2 2 0 8 0 rwobjpl 56 9232 0 7276 30 1 29 29 0 8 0 pdppl 4096 579 0 546 51 18 33 41 0 8 0 pvpl 32 127328 0 123242 40 6 34 40 0 265 0 pmappl 248 285 0 273 2 1 1 2 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 402 0 22 11 0 11 11 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 x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 end of kernel end trace frame: 0x7f7ffffd8730, count: 12 ddb{0}> trace x86_ipi_db(ffffffff828d5ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 end of kernel end trace frame: 0x7f7ffffd8730, count: -3 ddb{0}> machine ddbcpu 1 Stopped at socreate+0x84: cmpq $0,0(%rax) socreate(18,ffff8000211c7d98,0,29) at socreate+0x84 sys_socket(ffff8000ffff6010,ffff8000211c7e28,ffff8000211c7e80) at sys_socket+0xd8 syscall(ffff8000211c7ef0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4f18fe68210, count: 11 ddb{1}> trace socreate(18,ffff8000211c7d98,0,29) at socreate+0x84 sys_socket(ffff8000ffff6010,ffff8000211c7e28,ffff8000211c7e80) at sys_socket+0xd8 syscall(ffff8000211c7ef0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4f18fe68210, count: -4 ddb{1}>