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 176899 37833 0 0 0 1 syz-executor.0 *137330 37833 0 0 0x4000000 0K 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(ffff8000237c6f60) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,fffffd806f6d13b8,0,10,fffffd8066188e00,5dd) at alltraps_kern_meltdown+0x7b 0(fffffd806d29f000,0,fffffd806f6d13b8,0,0,fffffd806f6d1348) at 0 udp_output(fffffd806f6d1348,fffffd806d29f000,0,0) at udp_output+0x5af sys/netinet/udp_usrreq.c:1004 sosend(fffffd8065af21a0,0,ffff8000237c7410,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ab0508,3,ffff8000237c7410,0,ffff8000237c7500) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_writev(ffff800020ab0508,ffff8000237c74b8,ffff8000237c7500) at sys_writev+0xa7 sys/kern/sys_generic.c:311 syscall(ffff8000237c7580) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000237c7580) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,d,0,3,1e27c9ca010) at Xsyscall+0x128 end of kernel end trace frame: 0x1e491bf09a0, count: 3 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic attempt to execute user address 0x0 in supervisor mode ddb{0}> 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(ffff8000237c6f60) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,fffffd806f6d13b8,0,10,fffffd8066188e00,5dd) at alltraps_kern_meltdown+0x7b 0(fffffd806d29f000,0,fffffd806f6d13b8,0,0,fffffd806f6d1348) at 0 udp_output(fffffd806f6d1348,fffffd806d29f000,0,0) at udp_output+0x5af sys/netinet/udp_usrreq.c:1004 sosend(fffffd8065af21a0,0,ffff8000237c7410,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020ab0508,3,ffff8000237c7410,0,ffff8000237c7500) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_writev(ffff800020ab0508,ffff8000237c74b8,ffff8000237c7500) at sys_writev+0xa7 sys/kern/sys_generic.c:311 syscall(ffff8000237c7580) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000237c7580) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,d,0,3,1e27c9ca010) at Xsyscall+0x128 end of kernel end trace frame: 0x1e491bf09a0, count: -12 ddb{0}> show registers rdi 0xffffffff81194cb7 db_enter+0x17 rsi 0x1b7c __ALIGN_SIZE+0xb7c rbp 0xffff8000237c6dd0 rbx 0xffff8000237c6e80 rdx 0x1b7d __ALIGN_SIZE+0xb7d rcx 0xffff800023b84000 rax 0xffff800023b84000 r8 0xffffffff81f734ef kprintf+0x16f r9 0x1 r10 0x25 r11 0x1dcefb566e7996f1 r12 0x3000000008 r13 0xffff8000237c6de0 r14 0x100 r15 0x1 rip 0xffffffff81194cb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000237c6dc0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=137330 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0780,0xffffffff82645b50 process=0xffff800020adc380 user=0xffff8000237c2000, vmspace=0xfffffd807f00a8a0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 37833 176899 68370 0 7 0 syz-executor.0 *37833 137330 68370 0 7 0x4000000 syz-executor.0 70034 301896 30787 0 2 0x2 syz-executor.1 68370 314748 30787 0 3 0x82 nanosleep syz-executor.0 59048 267141 0 0 3 0x14200 bored sosplice 17295 513878 0 0 3 0x14200 acct acct 30787 101812 67917 0 3 0x82 thrsleep syz-fuzzer 30787 157021 67917 0 3 0x4000082 nanosleep syz-fuzzer 30787 282027 67917 0 3 0x4000082 thrsleep syz-fuzzer 30787 28204 67917 0 3 0x4000082 thrsleep syz-fuzzer 30787 506873 67917 0 3 0x4000082 thrsleep syz-fuzzer 30787 291221 67917 0 3 0x4000082 thrsleep syz-fuzzer 30787 94710 67917 0 3 0x4000082 thrsleep syz-fuzzer 30787 145398 67917 0 3 0x4000082 nanosleep syz-fuzzer 30787 3446 67917 0 3 0x4000082 kqread syz-fuzzer 30787 403117 67917 0 3 0x4000082 thrsleep syz-fuzzer 67917 276456 40354 0 3 0x10008a pause ksh 40354 71651 89797 0 3 0x92 select sshd 64373 494312 1 0 3 0x100083 ttyin getty 89797 426731 1 0 3 0x80 select sshd 58100 37745 22644 74 3 0x100092 bpf pflogd 22644 415901 1 0 3 0x80 netio pflogd 13984 102642 91978 73 3 0x100090 kqread syslogd 91978 109579 1 0 3 0x100082 netio syslogd 48366 30289 1 77 3 0x100090 poll dhclient 99528 52246 1 0 3 0x80 poll dhclient 44466 204645 0 0 3 0x14200 pgzero zerothread 52124 99850 0 0 3 0x14200 aiodoned aiodoned 50079 364714 0 0 3 0x14200 syncer update 32560 226244 0 0 3 0x14200 cleaner cleaner 26525 20804 0 0 3 0x14200 reaper reaper 8247 267739 0 0 3 0x14200 pgdaemon pagedaemon 46782 28000 0 0 3 0x14200 bored crynlk 24232 390087 0 0 3 0x14200 bored crypto 62067 3893 0 0 3 0x40014200 acpi0 acpi0 8363 197975 0 0 3 0x40014200 idle1 87016 323963 0 0 3 0x14200 bored softnet 64011 43938 0 0 3 0x14200 bored systqmp 84003 310527 0 0 3 0x14200 bored systq 1696 281582 0 0 3 0x40014200 bored softclock 95749 383662 0 0 3 0x40014200 idle0 77411 522554 0 0 3 0x14200 bored smr 1 404718 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 37833 (syz-executor.0) thread 0xffff800020ab0508 (137330) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8262a6d0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 pageflttrap+0x6f sys/arch/amd64/amd64/trap.c:162 #2 kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 #3 alltraps_kern_meltdown+0x7b 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 sosend+0x51b sys/kern/uipc_socket.c:512 #3 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #4 sys_writev+0xa7 sys/kern/sys_generic.c:311 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 Process 70034 (syz-executor.1) thread 0xffff800020ab1b40 (301896) exclusive rrwlock inode r = 0 (0xfffffd8061c1fb40) #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 vget+0x1c3 sys/kern/vfs_subr.c:672 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323 #8 ufs_lookup+0x14b4 sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:91 #10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568 #11 namei+0x63c sys/kern/vfs_lookup.c:249 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd80752485f8) #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 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #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 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9559 6559K 8210K 78643K 20226 0 0 pcb 13 8K 8K 78643K 1419 0 0 rtable 105 4K 4K 78643K 1113 0 0 ifaddr 76 16K 16K 78643K 256 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1719 0 0 iov 0 0K 16K 78643K 315 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1237 78K 78K 78643K 4086 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 80 0 0 VM map 18 9K 9K 78643K 19 0 0 sem 12 1K 1K 78643K 1372 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 2982 0 0 sigio 2 0K 0K 78643K 16 0 0 proc 61 63K 95K 78643K 909 0 0 subproc 32 2K 2K 78643K 187 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 408 0 0 in_multi 32 2K 2K 78643K 213 0 0 ether_multi 1 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 441 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 156 150K 166K 78643K 9512 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 247 0 0 NDP 18 0K 0K 78643K 83 0 0 temp 199 3560K 3640K 78643K 48540 0 0 kqueue 0 0K 0K 78643K 8 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 48 0 42 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 168 0 166 1 0 1 1 0 8 0 rtentry 112 247 0 206 2 0 2 2 0 8 0 unpcb 120 3054 0 3042 1 0 1 1 0 8 0 syncache 264 15 0 15 7 6 1 1 0 8 1 tcpqe 32 50 0 50 3 3 0 1 0 8 0 tcpcb 544 1864 0 1860 5 4 1 3 0 8 0 inpcb 280 20211 0 20203 11 9 2 5 0 8 1 nd6 48 30 0 27 1 0 1 1 0 8 0 pkpcb 40 46 0 46 4 3 1 1 0 8 1 ppxss 1128 23 0 23 6 5 1 1 0 8 1 pffrag 232 998 0 998 3 2 1 1 0 482 1 pffrnode 88 998 0 998 3 2 1 1 0 8 1 pffrent 40 2899 0 2899 3 2 1 1 0 8 1 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 127 0 69 1 0 1 1 0 8 0 pfstkey 112 127 0 69 2 0 2 2 0 8 0 pfstate 328 127 0 69 5 0 5 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 976 0 773 18 3 15 15 0 8 1 art_table 32 977 0 773 2 0 2 2 0 8 0 art_node 16 246 0 208 1 0 1 1 0 8 0 semupl 112 3 0 3 2 2 0 1 0 8 0 semapl 112 1370 0 1360 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 6036 0 4627 46 0 46 46 0 8 0 ffsino 272 6036 0 4627 95 0 95 95 0 8 0 nchpl 144 11732 0 10113 61 0 61 61 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 39007 0 39007 2 1 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 17 0 1 2 0 2 2 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 31495 0 31495 18 16 2 7 0 8 2 plimitpl 152 103 0 95 1 0 1 1 0 8 0 sigapl 432 3153 0 3138 3 1 2 3 0 8 0 futexpl 56 101920 0 101920 2 1 1 1 0 8 1 knotepl 112 1514 0 1495 4 3 1 3 0 8 0 kqueuepl 104 1508 0 1506 1 0 1 1 0 8 0 pipepl 112 6398 0 6379 6 5 1 2 0 8 0 fdescpl 488 3154 0 3138 3 0 3 3 0 8 0 filepl 152 49062 0 48961 12 7 5 8 0 8 1 lockfpl 104 441 0 440 1 0 1 1 0 8 0 lockfspl 48 161 0 160 1 0 1 1 0 8 0 sessionpl 112 27 0 16 1 0 1 1 0 8 0 pgrppl 48 32 0 21 1 0 1 1 0 8 0 ucredpl 96 8158 0 8149 1 0 1 1 0 8 0 zombiepl 144 3138 0 3138 2 1 1 1 0 8 1 processpl 896 3171 0 3138 4 0 4 4 0 8 0 procpl 632 8044 0 8001 7 2 5 5 0 8 1 srpgc 64 12 0 12 5 5 0 1 0 8 0 sosppl 128 25 0 25 4 4 0 1 0 8 0 sockpl 384 23771 0 23749 13 9 4 9 0 8 0 mcl64k 65536 286 0 0 35 1 34 34 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 18 0 0 2 0 2 2 0 8 0 mcl9k 9216 18 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 154 0 0 19 1 18 19 0 8 0 mtagpl 80 54 0 0 1 0 1 1 0 8 0 mbufpl 256 514 0 0 25 0 25 25 0 8 0 bufpl 256 12545 0 5487 442 0 442 442 0 8 0 anonpl 16 304759 0 289368 132 41 91 96 0 124 10 amapchunkpl 152 16605 0 16446 31 23 8 14 0 158 0 amappl16 192 15658 0 14567 89 31 58 67 0 8 3 amappl15 184 8 0 8 1 1 0 1 0 8 0 amappl14 176 857 0 850 1 0 1 1 0 8 0 amappl13 168 186 0 184 2 1 1 1 0 8 0 amappl12 160 11 0 10 1 0 1 1 0 8 0 amappl11 152 934 0 917 1 0 1 1 0 8 0 amappl10 144 1065 0 1059 1 0 1 1 0 8 0 amappl9 136 725 0 722 1 0 1 1 0 8 0 amappl8 128 296 0 253 2 0 2 2 0 8 0 amappl7 120 1122 0 1114 1 0 1 1 0 8 0 amappl6 112 888 0 872 1 0 1 1 0 8 0 amappl5 104 1347 0 1331 1 0 1 1 0 8 0 amappl4 96 3052 0 3020 1 0 1 1 0 8 0 amappl3 88 1406 0 1398 1 0 1 1 0 8 0 amappl2 80 24907 0 24830 3 1 2 3 0 8 0 amappl1 72 74057 0 73628 25 15 10 20 0 8 0 amappl 80 8472 0 8416 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 129 0 0 3 0 3 3 0 8 0 uaddrrnd 24 3171 0 3138 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3171 0 3138 1 0 1 1 0 8 0 vmmpekpl 168 34030 0 33990 3 1 2 3 0 8 0 vmmpepl 168 390606 0 388317 223 80 143 148 0 357 37 vmsppl 368 3153 0 3138 2 0 2 2 0 8 0 pdppl 4096 6349 0 6294 8 0 8 8 0 8 0 pvpl 32 831322 0 813248 276 62 214 219 0 265 29 pmappl 232 3170 0 3139 2 0 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 668 0 13 19 0 19 19 0 8 0