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 359766 63646 0 0 0 0 syz-executor.1 *437884 59767 0 0 0x4000000 1K syz-executor.0 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+0x40b kerntrap(ffff800020f533d0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff80002276a000,fffffd80642197e8,10,ffff80000005b5f0,ffff800020f53638) at alltraps_kern_meltdown+0x7b 0(b,ffff800020f53598,83,ffff800020f53638,0,b) at 0 rt_clone(ffff800020f536a8,fffffd806f6d3c88,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d3c88,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d3c88,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800020f53780,fffffd8063e03e20,fffffd806f6d3c08) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d3c08,fffffd8063e03e00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd806454e1a0,4,0,fffffd8063e03e00,0,ffff800020abf8c8) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020abf8c8,ffff800020f53928,ffff800020f53970) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800020f539f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020f539f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,bb9d19e4010) at Xsyscall+0x128 end of kernel end trace frame: 0xbbbe149a0b0, count: 1 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() at panic+0x15c sys/kern/subr_prf.c:207 pageflttrap() at pageflttrap+0x40b kerntrap(ffff800020f533d0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff80002276a000,fffffd80642197e8,10,ffff80000005b5f0,ffff800020f53638) at alltraps_kern_meltdown+0x7b 0(b,ffff800020f53598,83,ffff800020f53638,0,b) at 0 rt_clone(ffff800020f536a8,fffffd806f6d3c88,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d3c88,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d3c88,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800020f53780,fffffd8063e03e20,fffffd806f6d3c08) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d3c08,fffffd8063e03e00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd806454e1a0,4,0,fffffd8063e03e00,0,ffff800020abf8c8) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020abf8c8,ffff800020f53928,ffff800020f53970) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800020f539f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020f539f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,bb9d19e4010) at Xsyscall+0x128 end of kernel end trace frame: 0xbbbe149a0b0, count: -14 ddb{1}> show registers rdi 0xffffffff81bf2867 db_enter+0x17 rsi 0x2235 __ALIGN_SIZE+0x1235 rbp 0xffff800020f53240 rbx 0xffff800020f532f0 rdx 0x2236 __ALIGN_SIZE+0x1236 rcx 0xffff80002276a000 rax 0xffff80002276a000 r8 0xffffffff814afb0f kprintf+0x16f r9 0x1 r10 0x25 r11 0xe91097976be6eae3 r12 0x3000000008 r13 0xffff800020f53250 r14 0x100 r15 0x1 rip 0xffffffff81bf2868 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020f53230 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=437884 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020abf160,0xffff800020abeef8 process=0xffff800020add180 user=0xffff800020f4e000, vmspace=0xfffffd807f00a8a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 63646 359766 99295 0 7 0 syz-executor.1 63646 451251 99295 0 3 0x4000080 fsleep syz-executor.1 59767 183837 24431 0 2 0 syz-executor.0 *59767 437884 24431 0 7 0x4000000 syz-executor.0 24431 92605 59086 0 3 0x82 nanosleep syz-executor.0 99295 256993 59086 0 3 0x82 nanosleep syz-executor.1 27096 153788 1 0 3 0x100083 ttyin getty 61779 212612 0 0 3 0x14200 acct acct 26310 403800 0 0 3 0x14200 bored sosplice 59086 465124 81596 0 3 0x82 thrsleep syz-fuzzer 59086 111148 81596 0 3 0x4000082 thrsleep syz-fuzzer 59086 469156 81596 0 3 0x4000082 thrsleep syz-fuzzer 59086 133455 81596 0 3 0x4000082 thrsleep syz-fuzzer 59086 196807 81596 0 3 0x4000082 thrsleep syz-fuzzer 59086 419953 81596 0 3 0x4000082 thrsleep syz-fuzzer 59086 110705 81596 0 3 0x4000082 kqread syz-fuzzer 59086 478431 81596 0 3 0x4000082 thrsleep syz-fuzzer 59086 316993 81596 0 3 0x4000082 thrsleep syz-fuzzer 59086 424744 81596 0 3 0x4000082 thrsleep syz-fuzzer 81596 372132 88608 0 3 0x10008a pause ksh 88608 24201 394 0 3 0x92 select sshd 394 313596 1 0 3 0x80 select sshd 44233 119337 29023 74 3 0x100092 bpf pflogd 29023 345647 1 0 3 0x80 netio pflogd 4889 324181 55438 73 3 0x100090 kqread syslogd 55438 212928 1 0 3 0x100082 netio syslogd 79125 432427 1 77 3 0x100090 poll dhclient 73486 33139 1 0 3 0x80 poll dhclient 21936 183424 0 0 2 0x14200 zerothread 8599 177234 0 0 3 0x14200 aiodoned aiodoned 75153 347682 0 0 3 0x14200 syncer update 87468 152624 0 0 3 0x14200 cleaner cleaner 41603 412551 0 0 3 0x14200 reaper reaper 6034 303819 0 0 3 0x14200 pgdaemon pagedaemon 71680 319830 0 0 3 0x14200 bored crynlk 2011 190017 0 0 3 0x14200 bored crypto 99597 506233 0 0 3 0x40014200 acpi0 acpi0 8410 319834 0 0 3 0x40014200 idle1 21917 315161 0 0 3 0x14200 bored softnet 68655 502761 0 0 3 0x14200 bored systqmp 68885 22998 0 0 3 0x14200 bored systq 71233 495542 0 0 3 0x40014200 bored softclock 44728 166087 0 0 3 0x40014200 idle0 11252 249850 0 0 3 0x14200 bored smr 1 86894 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 59767 (syz-executor.0) thread 0xffff800020abf8c8 (437884) exclusive rwlock netlock r = 0 (0xffffffff82474be8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sys_connect+0x6b sys/kern/uipc_syscalls.c:362 #3 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #3 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #4 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 2 (0xffffffff82669b48) #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 Kern Lim devbuf 9597 7092K 8062K 78643K 27142 0 0 pcb 13 13K 14K 78643K 624 0 0 rtable 128 14K 16K 78643K 2002 0 0 ifaddr 92 21K 23K 78643K 605 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1663 0 0 iov 0 0K 32K 78643K 878 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1232 77K 78K 78643K 6443 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 45 0 0 VM map 18 9K 9K 78643K 30 0 0 sem 12 0K 1K 78643K 1695 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 4034 0 0 sigio 0 0K 0K 78643K 48 0 0 proc 62 63K 83K 78643K 1700 0 0 subproc 32 2K 2K 78643K 427 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 736 0 0 in_multi 29 1K 2K 78643K 569 0 0 ether_multi 1 0K 0K 78643K 37 0 0 mrt 0 0K 0K 78643K 13 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 773 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 166 142K 143K 78643K 14652 0 0 UVM aobj 130 7K 7K 78643K 137 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 2K 78643K 636 0 0 NDP 21 0K 0K 78643K 196 0 0 temp 235 3565K 4205K 78643K 130808 0 0 kqueue 0 0K 0K 78643K 43 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 66 0 59 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 256 0 254 1 0 1 1 0 8 0 rtentry 112 352 0 304 2 0 2 2 0 8 0 unpcb 120 3168 0 3156 3 2 1 2 0 8 0 syncache 264 21 0 21 7 6 1 1 0 8 1 tcpqe 32 4 0 4 3 2 1 1 0 8 1 tcpcb 544 1629 0 1624 26 25 1 14 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 2 0 2 1 1 0 1 0 8 0 inpcb 280 6754 0 6746 35 33 2 13 0 8 1 rttmr 72 6 0 5 1 0 1 1 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 6 0 6 1 1 0 1 0 8 0 nd6 48 55 0 53 3 2 1 1 0 8 0 pkpcb 40 43 0 43 7 7 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 65 0 65 15 14 1 1 0 8 1 pffrag 232 458 0 76 31 8 23 23 0 482 0 pffrnode 88 79 0 76 9 8 1 1 0 8 0 pffrent 40 2951 0 2544 13 8 5 5 0 8 0 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 569 0 244 2 0 2 2 0 8 0 pfstkey 112 569 0 244 10 0 10 10 0 8 0 pfstate 328 569 0 244 30 2 28 28 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 10 0 6 8 4 4 6 0 8 0 art_heap4 256 1689 0 1454 31 13 18 20 0 8 3 art_table 32 1699 0 1460 4 1 3 3 0 8 0 art_node 16 351 0 308 1 0 1 1 0 8 0 sysvmsgpl 40 59 0 29 1 0 1 1 0 8 0 semapl 112 1689 0 1679 1 0 1 1 0 8 0 shmpl 112 135 0 7 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 8150 0 6739 46 0 46 46 0 8 0 ffsino 272 8150 0 6739 96 1 95 95 0 8 0 nchpl 144 14812 0 14329 60 41 19 60 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 50137 0 50137 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 16 0 0 2 0 2 2 0 8 0 vmpool 552 28 0 12 2 0 2 2 0 8 0 scsiplug 64 5 0 5 5 5 0 1 0 8 0 scxspl 192 66938 0 66938 26 25 1 7 0 8 1 plimitpl 152 284 0 275 1 0 1 1 0 8 0 sigapl 432 4166 0 4150 3 1 2 3 0 8 0 futexpl 56 92035 0 92034 1 0 1 1 0 8 0 knotepl 112 800 0 781 4 3 1 2 0 8 0 kqueuepl 104 1234 0 1232 7 6 1 4 0 8 0 pipepl 112 2626 0 2607 8 6 2 2 0 8 1 fdescpl 488 4167 0 4150 3 0 3 3 0 8 0 filepl 152 36804 0 36701 46 40 6 14 0 8 2 lockfpl 104 6511 0 6510 1 0 1 1 0 8 0 lockfspl 48 2738 0 2737 1 0 1 1 0 8 0 sessionpl 112 44 0 33 1 0 1 1 0 8 0 pgrppl 48 77 0 66 1 0 1 1 0 8 0 ucredpl 96 3506 0 3496 1 0 1 1 0 8 0 zombiepl 144 4151 0 4151 1 0 1 1 0 8 1 processpl 896 4185 0 4151 4 0 4 4 0 8 0 procpl 632 12461 0 12416 5 0 5 5 0 8 0 srpgc 64 48 0 48 14 13 1 1 0 8 1 sosppl 128 98 0 98 14 14 0 1 0 8 0 sockpl 384 10350 0 10328 56 52 4 22 0 8 1 mcl64k 65536 638 0 0 71 22 49 65 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 15 0 0 2 0 2 2 0 8 0 mcl8k 8192 18 0 0 3 0 3 3 0 8 1 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 162 0 0 18 1 17 18 0 8 0 mtagpl 80 58 0 0 1 0 1 1 0 8 0 mbufpl 256 1423 0 0 74 0 74 74 0 8 0 bufpl 256 28584 0 21526 442 0 442 442 0 8 0 anonpl 16 525011 0 508058 127 36 91 98 0 124 4 amapchunkpl 152 28344 0 28192 51 43 8 21 0 158 0 amappl16 192 24331 0 23139 137 73 64 73 0 8 3 amappl15 184 1329 0 1329 4 4 0 1 0 8 0 amappl14 176 852 0 845 1 0 1 1 0 8 0 amappl13 168 506 0 506 3 3 0 1 0 8 0 amappl12 160 89 0 86 2 1 1 1 0 8 0 amappl11 152 697 0 681 1 0 1 1 0 8 0 amappl10 144 233 0 226 1 0 1 1 0 8 0 amappl9 136 1126 0 1123 1 0 1 1 0 8 0 amappl8 128 700 0 654 3 1 2 2 0 8 0 amappl7 120 392 0 382 1 0 1 1 0 8 0 amappl6 112 649 0 638 1 0 1 1 0 8 0 amappl5 104 419 0 403 1 0 1 1 0 8 0 amappl4 96 4830 0 4795 1 0 1 1 0 8 0 amappl3 88 870 0 856 1 0 1 1 0 8 0 amappl2 80 32970 0 32891 3 1 2 3 0 8 0 amappl1 72 102650 0 102202 25 15 10 20 0 8 0 amappl 80 13154 0 13093 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 136 0 7 3 0 3 3 0 8 0 uaddrrnd 24 4195 0 4150 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4195 0 4150 1 0 1 1 0 8 0 vmmpekpl 168 33876 0 33833 3 0 3 3 0 8 0 vmmpepl 168 540351 0 537855 302 150 152 154 0 357 40 vmsppl 368 4166 0 4150 2 0 2 2 0 8 0 pdppl 4096 8397 0 8340 8 0 8 8 0 8 0 pvpl 32 1412614 0 1392299 316 94 222 232 0 265 23 pmappl 232 4194 0 4162 4 2 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 793 0 69 21 0 21 21 0 8 0