panic: attempt to execute user address 0x0 in supervisor mode Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *384822 38745 32767 0x10 0x4000000 1K syz-executor.0 462130 49066 0 0x2 0x4000000 0 syz-fuzzer db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82234bff) at panic+0x15c sys/kern/subr_prf.c:207 pageflttrap(ffff800024fd3820,0) at pageflttrap+0x40b kerntrap(ffff800024fd3820) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b 0(fffffd806e920680,ffff800024fd3a30,ffff800020ad9158,fffffd806e920680,ebfeebd71cd15c38,7) at 0 sys_kevent(ffff800020ad9158,ffff800024fd3b38,ffff800024fd3b80) at sys_kevent+0x2b1 sys/kern/kern_event.c:522 syscall(ffff800024fd3c00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024fd3c00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x40684d6c7c0, count: 6 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 attempt to execute user address 0x0 in supervisor mode ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82234bff) at panic+0x15c sys/kern/subr_prf.c:207 pageflttrap(ffff800024fd3820,0) at pageflttrap+0x40b kerntrap(ffff800024fd3820) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b 0(fffffd806e920680,ffff800024fd3a30,ffff800020ad9158,fffffd806e920680,ebfeebd71cd15c38,7) at 0 sys_kevent(ffff800020ad9158,ffff800024fd3b38,ffff800024fd3b80) at sys_kevent+0x2b1 sys/kern/kern_event.c:522 syscall(ffff800024fd3c00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024fd3c00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x40684d6c7c0, count: -9 ddb{1}> show registers rdi 0xffffffff81e12997 db_enter+0x17 rsi 0x3e98 __ALIGN_SIZE+0x2e98 rbp 0xffff800024fd3690 rbx 0xffff800024fd3740 rdx 0x3e99 __ALIGN_SIZE+0x2e99 rcx 0xffff800020d4c000 rax 0xffff800020d4c000 r8 0xffffffff8191fd6f kprintf+0x16f r9 0x1 r10 0x25 r11 0x9d797fb6d0f7e512 r12 0x3000000008 r13 0xffff800024fd36a0 r14 0x100 r15 0x1 rip 0xffffffff81e12998 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024fd3680 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=384822 stat=onproc flags process=10 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020aa1b40,0xffff800020aa1660 process=0xffff800020aa3c50 user=0xffff800024fce000, vmspace=0xfffffd806e8ad5c8 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 38745 518944 90338 32767 2 0x10 syz-executor.0 38745 356464 90338 32767 2 0x4000010 syz-executor.0 *38745 384822 90338 32767 7 0x4000010 syz-executor.0 38745 307305 90338 32767 3 0x4000090 fsleep syz-executor.0 90338 240260 66483 32767 3 0x90 nanosleep syz-executor.0 66483 401283 49066 0 3 0x82 wait syz-executor.0 23407 195158 46675 32767 2 0x10 syz-executor.1 46675 504542 49066 0 3 0x82 wait syz-executor.1 82204 296500 0 0 3 0x14200 bored sosplice 49066 383693 76868 0 3 0x82 thrsleep syz-fuzzer 49066 175752 76868 0 3 0x4000082 thrsleep syz-fuzzer 49066 462130 76868 0 7 0x4000002 syz-fuzzer 49066 162667 76868 0 3 0x4000082 thrsleep syz-fuzzer 49066 501107 76868 0 3 0x4000082 thrsleep syz-fuzzer 49066 144704 76868 0 3 0x4000082 thrsleep syz-fuzzer 49066 168906 76868 0 3 0x4000082 thrsleep syz-fuzzer 49066 164508 76868 0 3 0x4000082 thrsleep syz-fuzzer 49066 275485 76868 0 3 0x4000082 thrsleep syz-fuzzer 49066 160807 76868 0 3 0x4000082 thrsleep syz-fuzzer 76868 27444 60343 0 3 0x10008a pause ksh 60343 228497 35614 0 3 0x92 select sshd 8874 522402 1 0 3 0x100083 ttyin getty 35614 424602 1 0 3 0x80 select sshd 37104 295433 3961 73 3 0x100090 kqread syslogd 3961 502277 1 0 3 0x100082 netio syslogd 74137 418452 1 77 3 0x100090 poll dhclient 99943 114394 1 0 3 0x80 poll dhclient 91371 357768 0 0 3 0x14200 pgzero zerothread 8390 272885 0 0 3 0x14200 aiodoned aiodoned 31857 399939 0 0 3 0x14200 syncer update 64554 472797 0 0 3 0x14200 cleaner cleaner 5582 99659 0 0 3 0x14200 reaper reaper 51805 471868 0 0 3 0x14200 pgdaemon pagedaemon 64550 519638 0 0 3 0x14200 bored crynlk 42468 182155 0 0 3 0x14200 bored crypto 37745 131499 0 0 3 0x40014200 acpi0 acpi0 19712 467317 0 0 3 0x40014200 idle1 36184 321070 0 0 3 0x14200 bored softnet 55975 353056 0 0 3 0x14200 bored systqmp 2850 354143 0 0 3 0x14200 bored systq 10351 467770 0 0 3 0x40014200 bored softclock 81356 140541 0 0 3 0x40014200 idle0 98557 506856 0 0 3 0x14200 bored smr 1 151817 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 38745 (syz-executor.0) thread 0xffff800020ad9158 (384822) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff826101a0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9485 6334K 6334K 78643K 10637 0 pcb 13 10K 12K 78643K 15 0 rtable 105 3K 3K 78643K 822 0 ifaddr 39 10K 10K 78643K 148 0 counters 39 33K 33K 78643K 39 0 ioctlops 0 0K 2K 78643K 46 0 iov 0 0K 48K 78643K 121 0 mount 1 1K 1K 78643K 1 0 vnodes 1215 76K 76K 78643K 1543 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 9 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 114 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 7 21K 33K 78643K 630 0 sigio 0 0K 0K 78643K 9 0 proc 48 50K 83K 78643K 1081 0 subproc 34 2K 2K 78643K 289 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 83 0 in_multi 33 2K 2K 78643K 203 0 ether_multi 1 0K 0K 78643K 2 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 1K 78643K 418 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 126 22K 27K 78643K 3143 0 UVM aobj 116 3K 3K 78643K 120 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 44 0 NDP 7 0K 0K 78643K 54 0 temp 108 3030K 3097K 78643K 6311 0 kqueue 0 0K 0K 78643K 19 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 arp 64 38 0 32 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 136 0 134 1 0 1 1 0 8 0 rtentry 112 197 0 153 2 0 2 2 0 8 0 unpcb 120 822 0 814 1 0 1 1 0 8 0 syncache 264 10 0 10 3 3 0 1 0 8 0 tcpqe 32 407 0 407 2 2 0 1 0 8 0 tcpcb 544 517 0 513 13 12 1 12 0 8 0 ipq 40 9 0 9 2 2 0 1 0 8 0 ipqe 40 362 0 362 2 2 0 1 0 8 0 inpcb 280 1114 0 1105 11 9 2 9 0 8 1 nd6 48 34 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 872 0 657 14 0 14 14 0 8 0 art_table 32 873 0 657 2 0 2 2 0 8 0 art_node 16 196 0 156 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 13 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 112 0 102 1 0 1 1 0 8 0 shmpl 112 118 0 4 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1986 0 584 46 0 46 46 0 8 0 ffsino 272 1986 0 584 94 0 94 94 0 8 0 nchpl 144 2901 0 1301 60 0 60 60 0 8 0 uvmvnodes 72 2284 0 0 42 0 42 42 0 8 0 vnodes 208 2284 0 0 121 0 121 121 0 8 0 namei 1024 10798 0 10798 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 9262 0 9262 11 9 2 7 0 8 2 plimitpl 152 122 0 113 1 0 1 1 0 8 0 sigapl 432 756 0 741 4 1 3 3 0 8 1 futexpl 56 11897 0 11896 1 0 1 1 0 8 0 knotepl 112 486 0 462 1 0 1 1 0 8 0 kqueuepl 104 616 0 610 4 3 1 4 0 8 0 pipepl 112 1030 0 1003 4 1 3 3 0 8 2 fdescpl 488 757 0 741 3 0 3 3 0 8 0 filepl 152 7478 0 7367 16 8 8 13 0 8 3 lockfpl 104 134 0 133 1 0 1 1 0 8 0 lockfspl 48 43 0 42 1 0 1 1 0 8 0 sessionpl 112 32 0 22 1 0 1 1 0 8 0 pgrppl 48 44 0 34 1 0 1 1 0 8 0 ucredpl 96 1093 0 1084 1 0 1 1 0 8 0 zombiepl 144 741 0 741 1 0 1 1 0 8 1 processpl 904 773 0 741 4 0 4 4 0 8 0 procpl 632 1780 0 1736 6 1 5 5 0 8 1 srpgc 64 30 0 30 3 2 1 1 0 8 1 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 384 2102 0 2083 22 17 5 14 0 8 2 mcl64k 65536 12 0 0 2 0 2 2 0 8 0 mcl16k 16384 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 8 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 7 0 0 1 0 1 1 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 158 0 0 19 0 19 19 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 362 0 0 23 1 22 22 0 8 0 bufpl 280 7569 0 1326 446 0 446 446 0 8 0 anonpl 16 109919 0 97028 84 15 69 82 0 125 0 amapchunkpl 152 6136 0 6006 11 4 7 9 0 158 0 amappl16 192 3687 0 2762 67 19 48 57 0 8 1 amappl15 184 179 0 175 1 0 1 1 0 8 0 amappl14 176 200 0 195 1 0 1 1 0 8 0 amappl13 168 30 0 29 3 2 1 1 0 8 0 amappl12 160 195 0 192 1 0 1 1 0 8 0 amappl11 152 123 0 112 1 0 1 1 0 8 0 amappl10 144 35 0 32 1 0 1 1 0 8 0 amappl9 136 779 0 775 1 0 1 1 0 8 0 amappl8 128 263 0 228 2 0 2 2 0 8 0 amappl7 120 191 0 176 1 0 1 1 0 8 0 amappl6 112 101 0 92 1 0 1 1 0 8 0 amappl5 104 411 0 401 1 0 1 1 0 8 0 amappl4 96 925 0 895 1 0 1 1 0 8 0 amappl3 88 297 0 288 1 0 1 1 0 8 0 amappl2 80 4159 0 4088 3 1 2 3 0 8 0 amappl1 72 29372 0 28919 24 14 10 20 0 8 0 amappl 80 2247 0 2201 2 0 2 2 0 84 0 dma4096 4096 1 0 1 1 1 0 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 64 119 0 4 2 0 2 2 0 8 0 uaddrrnd 24 757 0 741 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 757 0 741 1 0 1 1 0 8 0 vmmpekpl 168 11361 0 11328 2 0 2 2 0 8 0 vmmpepl 168 112926 0 110749 155 26 129 130 0 357 29 vmsppl 368 756 0 741 2 0 2 2 0 8 0 pdppl 4096 1521 0 1482 6 0 6 6 0 8 1 pvpl 32 347660 0 331246 202 29 173 202 0 265 12 pmappl 232 756 0 741 4 2 2 2 0 8 1 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 187 0 15 6 1 5 6 0 8 0