uvm_fault(0xfffffd80685ea468, 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 183362 47501 32767 0x10 0 0 syz-executor.7 *329859 47501 32767 0x10 0x4000000 1K syz-executor.7 socreate(18,ffff80002e3bdaa0,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socketpair(ffff80002122bce8,ffff80002e3bdb38,ffff80002e3bdb90) at sys_socketpair+0x6e sys/kern/uipc_syscalls.c:430 syscall(ffff80002e3bdc00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3bdc00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x467b1256bf0, 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(0xfffffd80685ea468, 0x0, 0, 1) -> e ddb{1}> trace socreate(18,ffff80002e3bdaa0,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socketpair(ffff80002122bce8,ffff80002e3bdb38,ffff80002e3bdb90) at sys_socketpair+0x6e sys/kern/uipc_syscalls.c:430 syscall(ffff80002e3bdc00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3bdc00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x467b1256bf0, count: -4 ddb{1}> show registers rdi 0xffff800027d0e000 rsi 0xb67 rbp 0xffff80002e3bda80 rbx 0x18 rdx 0xffff800027d0e000 rcx 0xb66 rax 0 r8 0xffffffff81e690f0 uvm_map_inentry_pc r9 0x16 r10 0 r11 0x77c9b0e1ea40db16 r12 0xffff80002e3bdaa0 r13 0xffffffff8288cca0 inet6sw r14 0 r15 0x29 rip 0xffffffff81e82144 socreate+0x84 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff80002e3bda20 ss 0x10 socreate+0x84: cmpq $0,0(%rax) ddb{1}> show proc PROC (syz-executor.7) pid=329859 stat=onproc flags process=10 proc=4000000 pri=83, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff80002122b508,0xffffffff82a987b8 process=0xffff80002122cc90 user=0xffff80002e3b8000, vmspace=0xfffffd80685ea468 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 13970 442374 34527 32767 2 0x10 syz-executor.1 13970 134002 34527 32767 3 0x4000090 fsleep syz-executor.1 16535 397636 80445 32767 2 0x10 syz-executor.0 16535 497105 80445 32767 3 0x4000090 fsleep syz-executor.0 47501 183362 19019 32767 7 0x10 syz-executor.7 *47501 329859 19019 32767 7 0x4000010 syz-executor.7 90697 299058 64893 32767 2 0x10 syz-executor.4 79403 169460 7478 32767 2 0x10 syz-executor.2 12030 155253 47092 32767 2 0x10 syz-executor.5 94377 509515 32947 32767 2 0x10 syz-executor.3 34527 88618 80131 32767 3 0x90 nanoslp syz-executor.1 80131 419097 64549 0 3 0x82 wait syz-executor.1 47092 459630 46938 32767 3 0x90 nanoslp syz-executor.5 46938 47259 64549 0 3 0x82 wait syz-executor.5 80445 170471 71498 32767 2 0x10 syz-executor.0 71498 498017 64549 0 3 0x82 wait syz-executor.0 32947 150879 21102 32767 3 0x90 nanoslp syz-executor.3 21102 191498 64549 0 3 0x82 wait syz-executor.3 19019 447466 1 32767 2 0x10 syz-executor.7 64893 380250 30798 32767 3 0x90 nanoslp syz-executor.4 30798 261381 64549 0 3 0x82 wait syz-executor.4 18868 104988 26526 32767 3 0x90 nanoslp syz-executor.6 26526 62723 64549 0 3 0x82 wait syz-executor.6 55088 132422 0 0 3 0x14200 bored sosplice 7478 500041 4964 32767 2 0x10 syz-executor.2 4964 132788 64549 0 3 0x82 wait syz-executor.2 64549 135877 59123 0 3 0x82 kqread syz-fuzzer 64549 312600 59123 0 3 0x4000082 thrsleep syz-fuzzer 64549 32378 59123 0 3 0x4000082 thrsleep syz-fuzzer 64549 93006 59123 0 3 0x4000082 thrsleep syz-fuzzer 64549 381738 59123 0 3 0x4000082 thrsleep syz-fuzzer 64549 115365 59123 0 3 0x4000082 thrsleep syz-fuzzer 64549 496615 59123 0 3 0x4000082 thrsleep syz-fuzzer 64549 67160 59123 0 3 0x4000082 thrsleep syz-fuzzer 64549 341856 59123 0 3 0x4000082 thrsleep syz-fuzzer 59123 353567 21278 0 3 0x10008a sigsusp ksh 21278 490352 82760 0 3 0x9a kqread sshd 53623 91468 1 0 3 0x100083 ttyin getty 82760 45905 1 0 3 0x88 kqread sshd 40250 414021 16607 73 3 0x1100090 kqread syslogd 16607 187088 1 0 3 0x100082 netio syslogd 19371 32782 1 0 3 0x100080 kqread resolvd 92601 246168 40923 77 3 0x100092 kqread dhcpleased 83977 489504 40923 77 3 0x100092 kqread dhcpleased 40923 203061 1 0 3 0x80 kqread dhcpleased 36802 429741 0 0 3 0x14200 bored smr 48028 6860 0 0 2 0x14200 zerothread 16860 339995 0 0 3 0x14200 aiodoned aiodoned 63116 28674 0 0 3 0x14200 syncer update 63617 368853 0 0 3 0x14200 cleaner cleaner 38381 312945 0 0 3 0x14200 reaper reaper 39116 81136 0 0 3 0x14200 pgdaemon pagedaemon 13729 217044 0 0 3 0x14200 bored viomb 3767 38055 0 0 3 0x40014200 acpi0 acpi0 94175 502406 0 0 3 0x40014200 idle1 13844 125226 0 0 3 0x14200 bored softnet 17022 393201 0 0 3 0x14200 bored systqmp 84685 264155 0 0 3 0x14200 bored systq 89617 371213 0 0 3 0x40014200 bored softclock 22168 254097 0 0 3 0x40014200 idle0 1 355184 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 47501 (syz-executor.7) thread 0xffff80002122bce8 (329859) 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_socketpair+0x6e sys/kern/uipc_syscalls.c:430 #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 10204 6411K 6419K 78643K 11386 0 pcb 13 20K 24K 78643K 21 0 rtable 268 7K 8K 78643K 3415 0 ifaddr 81 17K 17K 78643K 294 0 sysctl 3 1K 1K 78643K 3 0 counters 56 35K 35K 78643K 116 0 ioctlops 0 0K 2K 78643K 417 0 iov 0 0K 32K 78643K 5851 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1271 79K 79K 78643K 7391 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 410 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 5786 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 24 89K 121K 78643K 37009 0 sigio 0 0K 0K 78643K 775 0 proc 56 74K 99K 78643K 3349 0 subproc 104 6K 6K 78643K 494 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 3155 0 in_multi 99 6K 7K 78643K 899 0 ether_multi 1 0K 0K 78643K 191 0 mrt 1 0K 0K 78643K 4 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 241 1076K 1076K 78643K 241 0 exec 0 0K 2K 78643K 6251 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 543 99K 116K 78643K 482111 0 UVM aobj 131 8K 8K 78643K 169 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 859 0 NDP 11 0K 2K 78643K 117 0 temp 125 4703K 4831K 78643K 90951 0 kqueue 12 18K 28K 78643K 2873 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 3440 0 3437 50 49 1 5 0 8 0 rtentry 112 531 0 406 4 0 4 4 0 8 0 unpcb 136 31128 0 31115 267 266 1 9 0 8 0 syncache 296 501 0 501 67 66 1 1 0 8 1 tcpqe 32 105 0 105 39 38 1 1 0 8 1 tcpcb 736 19184 0 19178 436 428 8 20 0 8 6 arp 120 88 0 68 1 0 1 1 0 8 0 ipq 40 55 0 55 23 23 0 1 0 8 0 ipqe 40 994 0 994 23 23 0 1 0 8 0 inpcb 304 80898 0 80884 531 524 7 19 0 8 4 rttmr 72 155 0 151 2 1 1 1 0 8 0 ip6q 72 108 0 108 16 16 0 1 0 8 0 ip6af 40 212 0 212 13 13 0 1 0 8 0 nd6 48 186 0 153 1 0 1 1 0 8 0 kcovpl 48 38 0 30 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2322 0 1729 46 8 38 38 0 8 0 art_table 32 2323 0 1729 5 0 5 5 0 8 0 art_node 16 530 0 415 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 1 0 1 1 0 8 0 semapl 112 5784 0 5774 1 0 1 1 0 8 0 shmpl 112 166 0 38 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 49420 0 47945 93 0 93 93 0 8 0 ffsino 272 49420 0 47945 99 0 99 99 0 8 0 nchpl 144 97473 0 95845 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 321460 0 321460 18 17 1 2 0 8 1 percpumem 16 70 0 30 1 0 1 1 0 8 0 scxspl 216 273443 0 273443 111 110 1 8 0 8 1 plimitpl 152 8601 0 8578 23 22 1 2 0 8 0 sigapl 424 37226 0 37174 7 1 6 7 0 8 0 futexpl 64 353188 0 353186 14 13 1 1 0 8 0 knotepl 120 1847 0 0 26 2 24 24 0 8 0 kqueuepl 216 13504 0 13496 227 222 5 10 0 8 4 pipepl 336 41152 0 41124 393 385 8 14 0 8 5 fdescpl 496 37211 0 37176 7 2 5 6 0 8 0 filepl 152 343667 0 343433 572 555 17 27 0 8 7 lockfpl 104 5822 0 5819 6 5 1 2 0 8 0 lockfspl 48 1545 0 1542 1 0 1 1 0 8 0 sessionpl 144 53 0 37 1 0 1 1 0 8 0 pgrppl 48 422 0 406 1 0 1 1 0 8 0 ucredpl 96 38791 0 38773 1 0 1 1 0 8 0 zombiepl 144 37176 0 37174 5 4 1 1 0 8 0 processpl 1064 37226 0 37174 5 1 4 4 0 8 0 procpl 672 112151 0 112088 72 65 7 8 0 8 1 sosppl 168 612 0 611 52 51 1 1 0 8 0 sockpl 480 116703 0 116678 2004 1991 13 46 0 8 9 mcl64k 65536 115 0 0 5 2 3 3 0 8 0 mcl16k 16384 86 0 0 6 3 3 3 0 8 0 mcl12k 12288 54 0 0 2 0 2 2 0 8 0 mcl9k 9216 57 0 0 3 1 2 2 0 8 0 mcl8k 8192 73 0 0 8 5 3 3 0 8 0 mcl4k 4096 105 0 0 6 3 3 3 0 8 0 mcl2k2 2112 13 0 0 1 0 1 1 0 8 0 mcl2k 2048 695 0 0 19 5 14 19 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 4937 0 0 241 0 241 241 0 8 0 bufpl 288 57172 0 50837 453 0 453 453 0 8 0 anonpl 24 10927737 0 10913070 483 364 119 137 0 186 7 amapchunkpl 152 1239049 0 1238271 403 360 43 49 0 158 10 amappl16 200 116290 0 115912 524 501 23 42 0 8 0 amappl15 192 11590 0 11580 1 0 1 1 0 8 0 amappl14 184 3964 0 3958 1 0 1 1 0 8 0 amappl13 176 5386 0 5381 1 0 1 1 0 8 0 amappl12 168 9417 0 9412 1 0 1 1 0 8 0 amappl11 160 3099 0 3088 1 0 1 1 0 8 0 amappl10 152 2785 0 2777 1 0 1 1 0 8 0 amappl9 144 2469 0 2465 1 0 1 1 0 8 0 amappl8 136 4592 0 4276 11 0 11 11 0 8 0 amappl7 128 1999 0 1983 1 0 1 1 0 8 0 amappl6 120 2306 0 2270 3 1 2 2 0 8 0 amappl5 112 30748 0 30722 1 0 1 1 0 8 0 amappl4 104 8322 0 8294 2 0 2 2 0 8 0 amappl3 96 16494 0 16483 1 0 1 1 0 8 0 amappl2 88 11889 0 11840 3 1 2 3 0 8 0 amappl1 80 669470 0 668857 35 20 15 18 0 8 0 amappl 88 479242 0 478969 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 168 0 38 3 0 3 3 0 8 0 uaddrrnd 24 37211 0 37176 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 37211 0 37176 1 0 1 1 0 8 0 vmmpekpl 168 447474 0 447412 4 0 4 4 0 8 0 vmmpepl 168 3422075 0 3419199 424 285 139 148 0 357 0 vmsppl 368 37210 0 37176 4 0 4 4 0 8 0 rwobjpl 56 843007 0 835393 127 15 112 113 0 8 0 pdppl 4096 74429 0 74352 861 782 79 93 0 8 2 pvpl 32 17405725 0 17385795 1084 863 221 242 0 265 40 pmappl 248 37210 0 37176 4 1 3 3 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 2695 0 1640 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+0x129 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82abca58) at __mp_lock+0x129 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x1f end of kernel end trace frame: 0x7f7ffffeb620, count: 9 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+0x129 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82abca58) at __mp_lock+0x129 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x1f end of kernel end trace frame: 0x7f7ffffeb620, count: -6 ddb{0}> machine ddbcpu 1 Stopped at socreate+0x84: cmpq $0,0(%rax) socreate(18,ffff80002e3bdaa0,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socketpair(ffff80002122bce8,ffff80002e3bdb38,ffff80002e3bdb90) at sys_socketpair+0x6e sys/kern/uipc_syscalls.c:430 syscall(ffff80002e3bdc00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3bdc00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x467b1256bf0, count: 11 ddb{1}> trace socreate(18,ffff80002e3bdaa0,0,29) at socreate+0x84 sys/kern/uipc_socket.c:172 sys_socketpair(ffff80002122bce8,ffff80002e3bdb38,ffff80002e3bdb90) at sys_socketpair+0x6e sys/kern/uipc_syscalls.c:430 syscall(ffff80002e3bdc00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3bdc00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x467b1256bf0, count: -4