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 * 81991 53807 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(ffff800017733fa0) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800015729000,fffffd802e1d9468,10,ffff8000000251e0,ffff800017734208) at alltraps_kern_meltdown+0x7b 0(b,ffff800017734168,83,ffff800017734208,0,b) at 0 rt_match(fffffd803cc9ea58,fffffd8036ef5df8,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803cc9ea58,fffffd8036ef5df8,1,0) at rt_match+0xbe sys/net/route.c:242 ip_output(fffffd8036ef5d00,0,fffffd803cc9ea48,20,0,fffffd803cc9e9d8) at ip_output+0x4d2 sys/netinet/ip_output.c:204 rip_output(fffffd8036ef5d00,fffffd803b406500,ffff800017734418,ffff800015729000) at rip_output+0x22b sys/netinet/raw_ip.c:289 rip_usrreq(fffffd803b406500,9,fffffd8036ef5d00,0,0,ffff8000ffff2508) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd803b406500,0,ffff800017734628,0,0,0) at sosend+0x63d sys/kern/uipc_socket.c:524 dofilewritev(ffff8000ffff2508,6,ffff800017734628,0,ffff800017734710) at dofilewritev+0x1ac sys/kern/sys_generic.c:364 sys_write(ffff8000ffff2508,ffff8000177346c8,ffff800017734710) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800017734790) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 end trace frame: 0xffff800017734810, 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(ffff800017733fa0) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800015729000,fffffd802e1d9468,10,ffff8000000251e0,ffff800017734208) at alltraps_kern_meltdown+0x7b 0(b,ffff800017734168,83,ffff800017734208,0,b) at 0 rt_match(fffffd803cc9ea58,fffffd8036ef5df8,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803cc9ea58,fffffd8036ef5df8,1,0) at rt_match+0xbe sys/net/route.c:242 ip_output(fffffd8036ef5d00,0,fffffd803cc9ea48,20,0,fffffd803cc9e9d8) at ip_output+0x4d2 sys/netinet/ip_output.c:204 rip_output(fffffd8036ef5d00,fffffd803b406500,ffff800017734418,ffff800015729000) at rip_output+0x22b sys/netinet/raw_ip.c:289 rip_usrreq(fffffd803b406500,9,fffffd8036ef5d00,0,0,ffff8000ffff2508) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd803b406500,0,ffff800017734628,0,0,0) at sosend+0x63d sys/kern/uipc_socket.c:524 dofilewritev(ffff8000ffff2508,6,ffff800017734628,0,ffff800017734710) at dofilewritev+0x1ac sys/kern/sys_generic.c:364 sys_write(ffff8000ffff2508,ffff8000177346c8,ffff800017734710) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800017734790) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,92624763010) at Xsyscall+0x128 end of kernel end trace frame: 0x92841d621b0, count: -15 ddb> show registers rdi 0xffffffff812241d7 db_enter+0x17 rsi 0x20b4 __ALIGN_SIZE+0x10b4 rbp 0xffff800017733e10 rbx 0xffff800017733ec0 rdx 0x20b5 __ALIGN_SIZE+0x10b5 rcx 0xffff800015729000 rax 0xffff800015729000 r8 0xffff800017733dd0 r9 0x1 r10 0xffff800000ab7e00 r11 0x25a9cb3e87816071 r12 0x3000000008 r13 0xffff800017733e20 r14 0x100 r15 0x1 rip 0xffffffff812241d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800017733e00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=81991 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2018,0xffffffff825686e0 process=0xffff8000ffff66d0 user=0xffff80001772f000, vmspace=0xfffffd803f013770 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 53807 458410 74286 0 2 0 syz-executor.1 *53807 81991 74286 0 7 0x4000000 syz-executor.1 70146 177779 62189 0 2 0 syz-executor.0 70146 224485 62189 0 3 0x4000080 netio syz-executor.0 74286 509420 50526 0 3 0x82 nanosleep syz-executor.1 62189 188377 50526 0 3 0x82 nanosleep syz-executor.0 59536 361397 0 0 3 0x14200 acct acct 9627 63348 1 0 3 0x100083 ttyin getty 90919 365021 0 0 3 0x14200 bored sosplice 50526 26235 99323 0 3 0x82 thrsleep syz-fuzzer 50526 291872 99323 0 3 0x4000082 nanosleep syz-fuzzer 50526 26093 99323 0 3 0x4000082 thrsleep syz-fuzzer 50526 507759 99323 0 3 0x4000082 thrsleep syz-fuzzer 50526 493557 99323 0 3 0x4000082 kqread syz-fuzzer 50526 208618 99323 0 3 0x4000082 thrsleep syz-fuzzer 50526 83785 99323 0 3 0x4000082 thrsleep syz-fuzzer 50526 397101 99323 0 3 0x4000082 thrsleep syz-fuzzer 99323 445846 48037 0 3 0x10008a pause ksh 48037 226956 51578 0 3 0x92 select sshd 51578 508029 1 0 3 0x80 select sshd 10958 273938 31178 73 3 0x100090 kqread syslogd 31178 427989 1 0 3 0x100082 netio syslogd 23741 489823 0 0 2 0x14200 zerothread 92157 215161 0 0 3 0x14200 aiodoned aiodoned 37702 129473 0 0 3 0x14200 syncer update 18202 517971 0 0 3 0x14200 cleaner cleaner 66536 236765 0 0 3 0x14200 reaper reaper 62932 266792 0 0 3 0x14200 pgdaemon pagedaemon 5057 190108 0 0 3 0x14200 bored crynlk 33012 496554 0 0 3 0x14200 bored crypto 56405 245548 0 0 3 0x40014200 acpi0 acpi0 66304 258475 0 0 3 0x14200 bored softnet 99136 18485 0 0 3 0x14200 bored systqmp 87691 428994 0 0 3 0x14200 bored systq 26984 29777 0 0 3 0x40014200 bored softclock 14545 105419 0 0 3 0x40014200 idle0 62088 429747 0 0 3 0x14200 bored smr 1 383288 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 9598 6332K 7533K 78643K 32298 0 0 pcb 13 12K 14K 78643K 1555 0 0 rtable 112 8K 9K 78643K 3414 0 0 ifaddr 89 24K 26K 78643K 1239 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 326 0 0 iov 0 0K 32K 78643K 1838 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1211 76K 77K 78643K 7873 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 96 0 0 VM map 2 0K 0K 78643K 28 0 0 sem 12 0K 1K 78643K 1033 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 8022 0 0 sigio 0 0K 0K 78643K 73 0 0 proc 45 30K 63K 78643K 2933 0 0 subproc 32 2K 2K 78643K 756 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 425 0 0 in_multi 25 1K 2K 78643K 783 0 0 ether_multi 1 0K 0K 78643K 28 0 0 mrt 0 0K 0K 78643K 43 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 204 901K 901K 78643K 204 0 0 exec 0 0K 1K 78643K 1609 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 126 23K 31K 78643K 21319 0 0 UVM aobj 130 4K 4K 78643K 130 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 1969 0 0 NDP 21 0K 1K 78643K 407 0 0 temp 233 3537K 4177K 78643K 211799 0 0 kqueue 0 0K 0K 78643K 71 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 145 0 140 1 0 1 1 0 8 0 rtpcb 80 545 0 545 15 15 0 1 0 8 0 rtentry 112 778 0 738 2 0 2 2 0 8 0 unpcb 120 4356 0 4343 4 3 1 2 0 8 0 syncache 264 40 0 40 20 20 0 1 0 8 0 tcpqe 32 7747 0 7747 8 8 0 2 0 8 0 tcpcb 544 6535 0 6531 75 73 2 16 0 8 1 ipq 40 59 0 58 20 19 1 1 0 8 0 ipqe 40 153 0 152 20 19 1 1 0 8 0 inpcb 280 13997 0 13990 76 74 2 13 0 8 1 rttmr 72 15 0 14 7 6 1 1 0 8 0 nd6 48 111 0 109 9 8 1 1 0 8 0 pkpcb 40 22 0 22 6 6 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 141 0 141 40 39 1 1 0 8 1 art_heap8 4096 10 0 9 8 7 1 3 0 8 0 art_heap4 256 3425 0 3196 59 44 15 19 0 8 0 art_table 32 3435 0 3205 5 2 3 3 0 8 0 art_node 16 765 0 728 1 0 1 1 0 8 0 sysvmsgpl 40 26 0 15 1 0 1 1 0 8 0 semapl 112 1031 0 1021 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 14049 0 12640 46 0 46 46 0 8 0 ffsino 240 14049 0 12640 85 1 84 84 0 8 0 nchpl 144 28889 0 27270 61 0 61 61 0 8 0 uvmvnodes 72 8261 0 0 151 0 151 151 0 8 0 vnodes 208 8261 0 0 435 0 435 435 0 8 0 namei 1024 113928 0 113928 9 8 1 1 0 8 1 vmpool 520 26 0 26 10 9 1 1 0 8 1 scsiplug 64 5 0 5 3 3 0 1 0 8 0 scxspl 192 110915 0 110915 47 46 1 7 0 8 1 plimitpl 152 707 0 701 1 0 1 1 0 8 0 sigapl 432 8070 0 8058 2 0 2 2 0 8 0 futexpl 56 235035 0 235035 9 8 1 1 0 8 1 knotepl 112 1827 0 1808 1 0 1 1 0 8 0 kqueuepl 104 2152 0 2150 7 6 1 4 0 8 0 pipepl 112 4150 0 4131 16 15 1 2 0 8 0 fdescpl 424 8071 0 8058 2 0 2 2 0 8 0 filepl 120 85434 0 85341 76 71 5 11 0 8 2 lockfpl 104 2891 0 2891 4 3 1 1 0 8 1 lockfspl 48 945 0 945 4 3 1 1 0 8 1 sessionpl 112 62 0 54 1 0 1 1 0 8 0 pgrppl 48 116 0 108 1 0 1 1 0 8 0 ucredpl 96 11421 0 11415 1 0 1 1 0 8 0 zombiepl 144 8061 0 8061 3 2 1 1 0 8 1 processpl 864 8090 0 8061 4 0 4 4 0 8 0 procpl 632 18398 0 18360 5 1 4 5 0 8 0 sosppl 128 86 0 86 26 26 0 1 0 8 0 sockpl 384 19005 0 18985 111 107 4 21 0 8 0 mcl64k 65536 2893 0 2893 229 223 6 33 0 8 6 mcl16k 16384 91 0 91 36 36 0 1 0 8 0 mcl12k 12288 209 0 209 33 32 1 1 0 8 1 mcl9k 9216 130 0 130 39 38 1 1 0 8 1 mcl8k 8192 577 0 577 13 12 1 1 0 8 1 mcl4k 4096 840 0 840 10 9 1 1 0 8 1 mcl2k2 2112 464 0 463 24 23 1 1 0 8 0 mcl2k 2048 70270 0 70229 32 26 6 21 0 8 0 mtagpl 80 246 0 246 7 7 0 1 0 8 0 mbufpl 256 176144 0 176069 152 145 7 28 0 8 1 bufpl 256 37335 0 28822 533 0 533 533 0 8 0 anonpl 16 1005823 0 990757 299 224 75 93 0 62 0 amapchunkpl 152 44647 0 44546 184 179 5 18 0 158 0 amappl16 192 51441 0 50544 390 342 48 59 0 8 2 amappl15 184 764 0 760 8 7 1 1 0 8 0 amappl14 176 1564 0 1560 2 1 1 1 0 8 0 amappl13 168 1621 0 1619 7 6 1 1 0 8 0 amappl12 160 1011 0 1007 1 0 1 1 0 8 0 amappl11 152 504 0 500 1 0 1 1 0 8 0 amappl10 144 1338 0 1337 1 0 1 1 0 8 0 amappl9 136 1847 0 1840 1 0 1 1 0 8 0 amappl8 128 1366 0 1315 2 0 2 2 0 8 0 amappl7 120 1477 0 1468 1 0 1 1 0 8 0 amappl6 112 417 0 406 1 0 1 1 0 8 0 amappl5 104 1502 0 1495 1 0 1 1 0 8 0 amappl4 96 8386 0 8357 1 0 1 1 0 8 0 amappl3 88 1853 0 1847 1 0 1 1 0 8 0 amappl2 80 62488 0 62418 4 2 2 3 0 8 0 amappl1 72 159486 0 159092 28 19 9 20 0 8 0 amappl 80 19363 0 19330 1 0 1 1 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 129 0 0 3 0 3 3 0 8 0 uaddrrnd 24 8097 0 8058 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8097 0 8058 1 0 1 1 0 8 0 vmmpekpl 168 52250 0 52220 2 0 2 2 0 8 0 vmmpepl 168 985527 0 983522 608 492 116 124 0 357 22 vmsppl 272 8070 0 8058 6 5 1 2 0 8 0 pdppl 4096 16200 0 16168 6 1 5 6 0 8 0 pvpl 32 2875847 0 2857629 957 756 201 323 0 265 38 pmappl 200 8096 0 8084 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1258 0 592 21 0 21 21 0 8 0