login: 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 56546 76234 0 0 0 0 syz-executor.1 *421252 54926 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(ffff8000239bd310) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b52000,fffffd80641d6078,10,ffff80000005bee0,ffff8000239bd578) at alltraps_kern_meltdown+0x7b 0(b,ffff8000239bd4d8,83,ffff8000239bd578,0,b) at 0 rt_clone(ffff8000239bd5e8,fffffd806f6d2eb8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d2eb8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d2eb8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff8000239bd6c0,fffffd80641cc220,fffffd806f6d2e38) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d2e38,fffffd80641cc200) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd807005b318,4,0,fffffd80641cc200,0,ffff800020ab0ee8) at udp_usrreq+0x560 sys_connect(ffff800020ab0ee8,ffff8000239bd848,ffff8000239bd890) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000239bd910) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000239bd910) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,27179503010) at Xsyscall+0x128 end of kernel end trace frame: 0x273ce672530, 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(ffff8000239bd310) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b52000,fffffd80641d6078,10,ffff80000005bee0,ffff8000239bd578) at alltraps_kern_meltdown+0x7b 0(b,ffff8000239bd4d8,83,ffff8000239bd578,0,b) at 0 rt_clone(ffff8000239bd5e8,fffffd806f6d2eb8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d2eb8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d2eb8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff8000239bd6c0,fffffd80641cc220,fffffd806f6d2e38) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d2e38,fffffd80641cc200) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd807005b318,4,0,fffffd80641cc200,0,ffff800020ab0ee8) at udp_usrreq+0x560 sys_connect(ffff800020ab0ee8,ffff8000239bd848,ffff8000239bd890) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000239bd910) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000239bd910) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,27179503010) at Xsyscall+0x128 end of kernel end trace frame: 0x273ce672530, count: -14 ddb{1}> show registers rdi 0xffffffff81194cb7 db_enter+0x17 rsi 0x1ddc __ALIGN_SIZE+0xddc rbp 0xffff8000239bd180 rbx 0xffff8000239bd230 rdx 0x1ddd __ALIGN_SIZE+0xddd rcx 0xffff800020b52000 rax 0xffff800020b52000 r8 0xffffffff81f734ef kprintf+0x16f r9 0x1 r10 0x25 r11 0x7de9fc3c7af74a5f r12 0x3000000008 r13 0xffff8000239bd190 r14 0x100 r15 0x1 rip 0xffffffff81194cb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000239bd170 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=421252 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0508,0xffff800020ab0a08 process=0xffff800020a8aa90 user=0xffff8000239b8000, vmspace=0xfffffd807f00a730 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 76234 56546 91630 0 7 0 syz-executor.1 76234 458005 91630 0 3 0x4000000 biowait syz-executor.1 76234 290360 91630 0 3 0x4000080 fsleep syz-executor.1 54926 150294 27097 0 2 0 syz-executor.0 *54926 421252 27097 0 7 0x4000000 syz-executor.0 54926 242887 27097 0 3 0x4000080 fsleep syz-executor.0 71673 92028 0 0 3 0x14200 acct acct 16098 47628 1 0 3 0x100083 ttyin getty 91630 380464 98840 0 3 0x82 nanosleep syz-executor.1 27097 520124 98840 0 3 0x82 nanosleep syz-executor.0 60798 133656 0 0 3 0x14200 bored sosplice 98840 69193 78873 0 3 0x82 thrsleep syz-fuzzer 98840 300829 78873 0 3 0x4000082 thrsleep syz-fuzzer 98840 343583 78873 0 3 0x4000082 thrsleep syz-fuzzer 98840 251558 78873 0 3 0x4000082 thrsleep syz-fuzzer 98840 237991 78873 0 3 0x4000082 thrsleep syz-fuzzer 98840 293554 78873 0 3 0x4000082 thrsleep syz-fuzzer 98840 261602 78873 0 3 0x4000082 thrsleep syz-fuzzer 98840 509231 78873 0 3 0x4000082 thrsleep syz-fuzzer 98840 396238 78873 0 3 0x4000082 kqread syz-fuzzer 98840 41798 78873 0 3 0x4000082 thrsleep syz-fuzzer 78873 180225 91008 0 3 0x10008a pause ksh 91008 400236 89597 0 3 0x92 select sshd 89597 212555 1 0 3 0x80 select sshd 94116 421373 45580 74 3 0x100092 bpf pflogd 45580 322390 1 0 3 0x80 netio pflogd 51565 254919 51522 73 3 0x100090 kqread syslogd 51522 187096 1 0 3 0x100082 netio syslogd 67824 346273 1 77 3 0x100090 poll dhclient 95727 443827 1 0 3 0x80 poll dhclient 56166 82067 0 0 3 0x14200 pgzero zerothread 16082 17829 0 0 3 0x14200 aiodoned aiodoned 9600 55717 0 0 3 0x14200 syncer update 60650 147690 0 0 3 0x14200 cleaner cleaner 62019 372685 0 0 3 0x14200 reaper reaper 28117 340530 0 0 3 0x14200 pgdaemon pagedaemon 3997 274931 0 0 3 0x14200 bored crynlk 10405 235065 0 0 3 0x14200 bored crypto 33628 205619 0 0 3 0x40014200 acpi0 acpi0 16807 454769 0 0 3 0x40014200 idle1 11917 276729 0 0 3 0x14200 bored softnet 32318 17272 0 0 3 0x14200 bored systqmp 86295 336007 0 0 3 0x14200 bored systq 26799 253290 0 0 3 0x40014200 bored softclock 23935 326093 0 0 3 0x40014200 idle0 67425 396406 0 0 3 0x14200 bored smr 1 125574 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 76234 (syz-executor.1) thread 0xffff800020ab09f8 (458005) exclusive rrwlock inode r = 0 (0xfffffd806e10cc48) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1352 #5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164 #7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #10 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd807f552b40) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:574 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:2968 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 Process 54926 (syz-executor.0) thread 0xffff800020ab0ee8 (421252) exclusive rwlock netlock r = 0 (0xffffffff824f3758) #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 (0xffffffff8262a6d0) #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 9585 7073K 8044K 78643K 16014 0 0 pcb 13 10K 12K 78643K 364 0 0 rtable 102 13K 16K 78643K 1468 0 0 ifaddr 80 17K 19K 78643K 501 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1570 0 0 iov 0 0K 16K 78643K 369 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1237 78K 78K 78643K 3386 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 24 0 0 VM map 34 17K 17K 78643K 40 0 0 sem 12 0K 0K 78643K 756 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 1715 0 0 sigio 0 0K 0K 78643K 12 0 0 proc 62 63K 95K 78643K 1032 0 0 subproc 32 2K 2K 78643K 204 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 1K 78643K 195 0 0 in_multi 15 0K 2K 78643K 231 0 0 ether_multi 1 0K 0K 78643K 16 0 0 mrt 0 0K 0K 78643K 9 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 504 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 172 299K 300K 78643K 7213 0 0 UVM aobj 130 5K 5K 78643K 134 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 324 0 0 NDP 19 0K 0K 78643K 149 0 0 temp 220 3561K 4201K 78643K 83670 0 0 kqueue 0 0K 0K 78643K 37 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 35 0 30 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 165 0 163 1 0 1 1 0 8 0 rtentry 112 235 0 200 2 0 2 2 0 8 0 unpcb 120 959 0 949 2 1 1 2 0 8 0 syncache 264 13 0 13 5 5 0 1 0 8 0 tcpqe 32 108 0 108 4 4 0 1 0 8 0 tcpcb 544 895 0 891 16 15 1 13 0 8 0 inpcb 280 2615 0 2605 13 12 1 9 0 8 0 rttmr 72 4 0 4 3 3 0 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 32 0 32 2 2 0 1 0 8 0 pkpcb 40 14 0 14 3 3 0 1 0 8 0 ppxss 1128 67 0 67 8 8 0 1 0 8 0 pffrag 232 46 0 46 10 10 0 1 0 482 0 pffrnode 88 46 0 46 10 10 0 1 0 8 0 pffrent 40 1720 0 1720 10 10 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 167 0 128 1 0 1 1 0 8 0 pfstkey 112 167 0 128 2 0 2 2 0 8 0 pfstate 328 167 0 128 5 0 5 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 13 0 11 5 3 2 4 0 8 0 art_heap4 256 993 0 835 25 11 14 16 0 8 0 art_table 32 1006 0 846 3 1 2 3 0 8 0 art_node 16 232 0 199 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 12 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 754 0 744 1 0 1 1 0 8 0 shmpl 112 132 0 4 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4069 0 2662 46 0 46 46 0 8 0 ffsino 272 4069 0 2662 95 0 95 95 0 8 0 nchpl 144 7694 0 7247 60 41 19 60 0 8 0 uvmvnodes 72 5822 0 0 106 0 106 106 0 8 0 vnodes 208 5822 0 0 307 0 307 307 0 8 0 namei 1024 25478 0 25477 3 2 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 32 0 0 4 0 4 4 0 8 0 vmpool 552 38 0 6 3 0 3 3 0 8 0 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 22607 0 22606 22 21 1 5 0 8 0 plimitpl 152 172 0 164 1 0 1 1 0 8 0 sigapl 432 1885 0 1869 3 1 2 3 0 8 0 futexpl 56 44308 0 44306 2 1 1 1 0 8 0 knotepl 112 624 0 605 2 1 1 2 0 8 0 kqueuepl 104 2764 0 2761 6 5 1 4 0 8 0 pipepl 112 1262 0 1241 5 4 1 2 0 8 0 fdescpl 488 1886 0 1869 3 0 3 3 0 8 0 filepl 152 20027 0 19920 23 18 5 14 0 8 0 lockfpl 104 729 0 728 1 0 1 1 0 8 0 lockfspl 48 249 0 248 1 0 1 1 0 8 0 sessionpl 112 30 0 19 1 0 1 1 0 8 0 pgrppl 48 36 0 25 1 0 1 1 0 8 0 ucredpl 96 2034 0 2025 1 0 1 1 0 8 0 zombiepl 144 1870 0 1870 2 1 1 1 0 8 1 processpl 896 1904 0 1870 4 0 4 4 0 8 0 procpl 632 5783 0 5736 8 4 4 5 0 8 0 srpgc 64 18 0 18 7 7 0 1 0 8 0 sosppl 128 52 0 51 9 8 1 1 0 8 0 sockpl 384 3800 0 3778 23 20 3 14 0 8 0 mcl64k 65536 403 0 0 50 16 34 34 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 14 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 16 0 0 2 0 2 2 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 176 0 0 20 1 19 20 0 8 0 mtagpl 80 28 0 0 1 0 1 1 0 8 0 mbufpl 256 501 0 0 30 0 30 30 0 8 0 bufpl 256 12653 0 5595 442 0 442 442 0 8 0 anonpl 16 275625 0 253903 162 56 106 106 0 124 14 amapchunkpl 152 14876 0 14696 42 33 9 15 0 158 0 amappl16 192 11817 0 10607 137 67 70 75 0 8 8 amappl15 184 16 0 16 1 1 0 1 0 8 0 amappl14 176 116 0 111 1 0 1 1 0 8 0 amappl13 168 306 0 304 2 1 1 1 0 8 0 amappl12 160 140 0 136 1 0 1 1 0 8 0 amappl11 152 448 0 433 1 0 1 1 0 8 0 amappl10 144 431 0 426 1 0 1 1 0 8 0 amappl9 136 867 0 862 1 0 1 1 0 8 0 amappl8 128 422 0 384 2 0 2 2 0 8 0 amappl7 120 491 0 485 1 0 1 1 0 8 0 amappl6 112 437 0 425 1 0 1 1 0 8 0 amappl5 104 357 0 341 1 0 1 1 0 8 0 amappl4 96 2226 0 2194 1 0 1 1 0 8 0 amappl3 88 344 0 337 1 0 1 1 0 8 0 amappl2 80 13691 0 13609 3 1 2 3 0 8 0 amappl1 72 52510 0 52033 26 16 10 20 0 8 0 amappl 80 6276 0 6207 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 133 0 4 3 0 3 3 0 8 0 uaddrrnd 24 1924 0 1869 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1924 0 1869 1 0 1 1 0 8 0 vmmpekpl 168 19551 0 19510 2 0 2 2 0 8 0 vmmpepl 168 250336 0 247750 235 101 134 155 0 357 21 vmsppl 368 1885 0 1869 2 0 2 2 0 8 0 pdppl 4096 3855 0 3782 11 1 10 10 0 8 0 pvpl 32 712930 0 689208 317 89 228 234 0 265 29 pmappl 232 1923 0 1875 4 1 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 712 0 52 20 0 20 20 0 8 0