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 * 83670 99315 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 pageflttrap() at pageflttrap+0x3eb kerntrap(ffff800015a3aaa0) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800015b20000,fffffd8036d71a10,10,ffff80000005b820,ffff800015a3ad08) at alltraps_kern_meltdown+0x7b 0(b,ffff800015a3ac68,83,ffff800015a3ad08,0,b) at 0 rt_match(fffffd803a8bab70,fffffd803f02d5f8,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803a8bab70,fffffd803f02d5f8,1,0) at rt_match+0xbe sys/net/route.c:242 ip_output(fffffd803f02d500,0,fffffd803a8bab60,20,0,fffffd803a8baaf0) at ip_output+0x4d2 sys/netinet/ip_output.c:204 rip_output(fffffd803f02d500,fffffd80386b4670,ffff800015a3af18,ffff800015b20000) at rip_output+0x22b sys/netinet/raw_ip.c:289 rip_usrreq(fffffd80386b4670,9,fffffd803f02d500,0,0,ffff8000ffff2508) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd80386b4670,0,ffff800015a3b128,0,0,0) at sosend+0x63d sys/kern/uipc_socket.c:524 dofilewritev(ffff8000ffff2508,3,ffff800015a3b128,0,ffff800015a3b210) at dofilewritev+0x1ac sys/kern/sys_generic.c:364 sys_write(ffff8000ffff2508,ffff800015a3b1c8,ffff800015a3b210) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800015a3b290) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 end trace frame: 0xffff800015a3b310, count: 0 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic attempt to execute user address 0x0 in supervisor mode ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 pageflttrap() at pageflttrap+0x3eb kerntrap(ffff800015a3aaa0) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800015b20000,fffffd8036d71a10,10,ffff80000005b820,ffff800015a3ad08) at alltraps_kern_meltdown+0x7b 0(b,ffff800015a3ac68,83,ffff800015a3ad08,0,b) at 0 rt_match(fffffd803a8bab70,fffffd803f02d5f8,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803a8bab70,fffffd803f02d5f8,1,0) at rt_match+0xbe sys/net/route.c:242 ip_output(fffffd803f02d500,0,fffffd803a8bab60,20,0,fffffd803a8baaf0) at ip_output+0x4d2 sys/netinet/ip_output.c:204 rip_output(fffffd803f02d500,fffffd80386b4670,ffff800015a3af18,ffff800015b20000) at rip_output+0x22b sys/netinet/raw_ip.c:289 rip_usrreq(fffffd80386b4670,9,fffffd803f02d500,0,0,ffff8000ffff2508) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd80386b4670,0,ffff800015a3b128,0,0,0) at sosend+0x63d sys/kern/uipc_socket.c:524 dofilewritev(ffff8000ffff2508,3,ffff800015a3b128,0,ffff800015a3b210) at dofilewritev+0x1ac sys/kern/sys_generic.c:364 sys_write(ffff8000ffff2508,ffff800015a3b1c8,ffff800015a3b210) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800015a3b290) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,9e0ddcae010) at Xsyscall+0x128 end of kernel end trace frame: 0x9e2fa2a83b0, count: -15 ddb> show registers rdi 0xffffffff8186dab7 db_enter+0x17 rsi 0x210b __ALIGN_SIZE+0x110b rbp 0xffff800015a3a910 rbx 0xffff800015a3a9c0 rdx 0x210c __ALIGN_SIZE+0x110c rcx 0xffff800015b20000 rax 0xffff800015b20000 r8 0xffff800015a3a8d0 r9 0x1 r10 0xffff800000bf5040 r11 0xed8b387342962661 r12 0x3000000008 r13 0xffff800015a3a920 r14 0x100 r15 0x1 rip 0xffffffff8186dab8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015a3a900 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=83670 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff38c8,0xffffffff825607a0 process=0xffff8000148a3b18 user=0xffff800015a36000, vmspace=0xfffffd803f013aa0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 99315 248960 73974 0 2 0 syz-executor.1 *99315 83670 73974 0 7 0x4000000 syz-executor.1 74753 238938 41896 0 3 0x80 nanosleep syz-executor.0 74753 133443 41896 0 3 0x4000080 ttyin syz-executor.0 74753 26103 41896 0 3 0x4000080 fsleep syz-executor.0 73974 430899 96872 0 3 0x82 nanosleep syz-executor.1 41896 51006 96872 0 3 0x82 nanosleep syz-executor.0 22636 373917 0 0 3 0x14200 acct acct 85141 299936 1 0 3 0x100083 ttyin getty 54218 427194 0 0 3 0x14200 bored sosplice 96872 123831 13398 0 3 0x82 thrsleep syz-fuzzer 96872 190258 13398 0 3 0x4000082 thrsleep syz-fuzzer 96872 406083 13398 0 3 0x4000082 thrsleep syz-fuzzer 96872 171063 13398 0 3 0x4000082 thrsleep syz-fuzzer 96872 210445 13398 0 3 0x4000082 thrsleep syz-fuzzer 96872 176717 13398 0 3 0x4000082 thrsleep syz-fuzzer 96872 21047 13398 0 3 0x4000082 thrsleep syz-fuzzer 96872 382303 13398 0 3 0x4000082 kqread syz-fuzzer 96872 458419 13398 0 3 0x4000082 thrsleep syz-fuzzer 13398 254003 59175 0 3 0x10008a pause ksh 59175 223266 52560 0 3 0x92 select sshd 52560 388505 1 0 3 0x80 select sshd 47577 169518 60606 73 3 0x100090 kqread syslogd 60606 389557 1 0 3 0x100082 netio syslogd 24757 10066 1 77 3 0x100090 poll dhclient 34552 303034 1 0 3 0x80 poll dhclient 3200 140905 0 0 2 0x14200 zerothread 72722 93758 0 0 3 0x14200 aiodoned aiodoned 31219 405637 0 0 3 0x14200 syncer update 23479 131068 0 0 3 0x14200 cleaner cleaner 93987 495226 0 0 3 0x14200 reaper reaper 75710 383793 0 0 3 0x14200 pgdaemon pagedaemon 12153 50577 0 0 3 0x14200 bored crynlk 38903 331390 0 0 3 0x14200 bored crypto 38649 265747 0 0 3 0x40014200 acpi0 acpi0 82707 366959 0 0 3 0x14200 bored softnet 22359 515031 0 0 3 0x14200 bored systqmp 80479 269438 0 0 3 0x14200 bored systq 95829 354753 0 0 3 0x40014200 bored softclock 16657 423361 0 0 3 0x40014200 idle0 33794 110404 0 0 3 0x14200 bored smr 1 216466 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9639 7054K 8400K 78643K 47272 0 0 pcb 13 11K 12K 78643K 4289 0 0 rtable 150 14K 15K 78643K 6742 0 0 ifaddr 118 29K 29K 78643K 1806 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 3674 0 0 iov 0 0K 32K 78643K 3192 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1222 77K 77K 78643K 18564 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 176 0 0 VM map 130 32K 32K 78643K 202 0 0 sem 12 1K 1K 78643K 4206 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 12331 0 0 sigio 0 0K 0K 78643K 189 0 0 proc 50 38K 55K 78643K 4028 0 0 subproc 32 2K 2K 78643K 1162 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 1340 0 0 in_multi 35 2K 3K 78643K 1368 0 0 ether_multi 1 0K 0K 78643K 135 0 0 mrt 2 0K 0K 78643K 80 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 144 636K 636K 78643K 144 0 0 exec 0 0K 1K 78643K 2448 0 0 pfkey data 0 0K 4K 78643K 2 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 327 1035K 1035K 78643K 32212 0 0 UVM aobj 130 5K 5K 78643K 143 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 2994 0 0 NDP 27 0K 1K 78643K 587 0 0 temp 275 3546K 4185K 78643K 388829 0 0 kqueue 0 0K 0K 78643K 150 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 198 0 193 1 0 1 1 0 8 0 rtpcb 80 1510 0 1508 1 0 1 1 0 8 0 rtentry 112 1181 0 1125 2 0 2 2 0 8 0 unpcb 120 6831 0 6815 4 3 1 2 0 8 0 syncache 264 102 0 102 34 33 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 207 0 207 21 21 0 1 0 8 0 tcpcb 544 5629 0 5625 55 54 1 15 0 8 0 ipq 40 144 0 144 42 42 0 1 0 8 0 ipqe 40 4743 0 4743 42 42 0 1 0 8 0 inpcb 280 21337 0 21328 61 59 2 9 0 8 1 rttmr 72 24 0 23 2 1 1 1 0 8 0 ip6q 72 11 0 11 6 6 0 1 0 8 0 ip6af 40 32 0 32 6 6 0 1 0 8 0 nd6 48 170 0 168 10 9 1 1 0 8 0 pkpcb 40 25 0 25 9 9 0 1 0 8 0 swfcl 56 6 0 0 1 0 1 1 0 8 0 ppxss 1128 221 0 221 50 49 1 1 0 8 1 art_heap8 4096 43 0 39 28 24 4 6 0 8 0 art_heap4 256 4995 0 4728 79 62 17 21 0 8 0 art_table 32 5038 0 4767 4 1 3 3 0 8 0 art_node 16 1165 0 1116 1 0 1 1 0 8 0 sysvmsgpl 40 25 0 21 1 0 1 1 0 8 0 semapl 112 4204 0 4194 1 0 1 1 0 8 0 shmpl 112 141 0 13 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 20567 0 19132 47 0 47 47 0 8 0 ffsino 240 20567 0 19132 85 0 85 85 0 8 0 nchpl 144 38550 0 38068 60 40 20 60 0 8 0 uvmvnodes 72 9512 0 0 173 0 173 173 0 8 0 vnodes 208 9512 0 0 501 0 501 501 0 8 0 namei 1024 158160 0 158160 8 7 1 1 0 8 1 vcpupl 1984 130 0 2 16 0 16 16 0 8 0 vmpool 520 200 0 72 12 3 9 9 0 8 0 scsiplug 64 17 0 17 9 9 0 1 0 8 0 scxspl 192 145362 0 145362 63 62 1 7 0 8 1 plimitpl 152 1182 0 1175 1 0 1 1 0 8 0 sigapl 432 12306 0 12292 2 0 2 2 0 8 0 futexpl 56 430292 0 430291 10 9 1 1 0 8 0 knotepl 112 2973 0 2954 15 14 1 3 0 8 0 kqueuepl 104 6363 0 6361 11 10 1 4 0 8 0 pipepl 112 8586 0 8567 23 21 2 2 0 8 0 fdescpl 424 12307 0 12292 2 0 2 2 0 8 0 filepl 120 125142 0 125038 71 67 4 10 0 8 0 lockfpl 104 5420 0 5419 1 0 1 1 0 8 0 lockfspl 48 1586 0 1585 1 0 1 1 0 8 0 sessionpl 112 86 0 76 1 0 1 1 0 8 0 pgrppl 48 236 0 226 1 0 1 1 0 8 0 ucredpl 96 27164 0 27156 1 0 1 1 0 8 0 zombiepl 144 12309 0 12309 1 0 1 1 0 8 1 processpl 864 12340 0 12309 4 0 4 4 0 8 0 procpl 632 27723 0 27681 12 8 4 5 0 8 0 sosppl 128 235 0 235 53 52 1 1 0 8 1 sockpl 384 30150 0 30121 104 100 4 14 0 8 0 mcl64k 65536 2061 0 2061 84 83 1 33 0 8 1 mcl16k 16384 179 0 179 50 49 1 1 0 8 1 mcl12k 12288 798 0 798 17 16 1 1 0 8 1 mcl9k 9216 327 0 327 44 43 1 1 0 8 1 mcl8k 8192 679 0 679 23 22 1 1 0 8 1 mcl4k 4096 1746 0 1746 12 11 1 1 0 8 1 mcl2k2 2112 150 0 150 50 49 1 1 0 8 1 mcl2k 2048 92633 0 92586 25 18 7 18 0 8 0 mtagpl 80 620 0 620 11 10 1 1 0 8 1 mbufpl 256 290875 0 290773 458 450 8 31 0 8 0 bufpl 256 56792 0 47283 595 0 595 595 0 8 0 anonpl 16 1596888 0 1576673 439 329 110 111 0 62 10 amapchunkpl 152 67224 0 67060 212 202 10 21 0 158 1 amappl16 192 77778 0 76433 480 403 77 80 0 8 8 amappl15 184 3469 0 3465 11 10 1 1 0 8 0 amappl14 176 2830 0 2821 1 0 1 1 0 8 0 amappl13 168 1611 0 1610 1 0 1 1 0 8 0 amappl12 160 1707 0 1706 1 0 1 1 0 8 0 amappl11 152 627 0 616 1 0 1 1 0 8 0 amappl10 144 1581 0 1579 1 0 1 1 0 8 0 amappl9 136 1989 0 1986 1 0 1 1 0 8 0 amappl8 128 1642 0 1557 4 1 3 3 0 8 0 amappl7 120 1862 0 1854 1 0 1 1 0 8 0 amappl6 112 458 0 441 1 0 1 1 0 8 0 amappl5 104 2571 0 2559 1 0 1 1 0 8 0 amappl4 96 11156 0 11117 3 2 1 2 0 8 0 amappl3 88 4437 0 4426 1 0 1 1 0 8 0 amappl2 80 97308 0 97213 5 3 2 3 0 8 0 amappl1 72 237414 0 236979 26 17 9 20 0 8 0 amappl 80 29228 0 29117 3 0 3 3 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 142 0 13 3 0 3 3 0 8 0 uaddrrnd 24 12507 0 12292 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 12507 0 12292 2 0 2 2 0 8 0 vmmpekpl 168 76122 0 76073 3 0 3 3 0 8 0 vmmpepl 168 1517868 0 1514897 842 669 173 173 0 357 36 vmsppl 272 12306 0 12292 6 5 1 2 0 8 0 pdppl 4096 25020 0 24856 24 3 21 21 0 8 0 pvpl 32 4315361 0 4294229 1011 782 229 342 0 265 31 pmappl 200 12506 0 12364 9 1 8 8 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1537 0 790 23 0 23 23 0 8 0