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 461398 92003 0 0 0 0 syz-executor.0 *299507 92003 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(ffff8000233d8f30) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff80002136c000,fffffd8076410e70,10,ffff800000025180,ffff8000233d9198) at alltraps_kern_meltdown+0x7b 0(b,ffff8000233d90f8,83,ffff8000233d9198,0,b) at 0 rt_clone(ffff8000233d9208,fffffd806f6d02b0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d02b0,fffffd8061b423f4,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d02b0,fffffd8061b423f4,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd8061b42300,0,fffffd806f6d02a0,20,0,fffffd806f6d0230) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd8061b41600,fffffd80744de950,ffff8000233d9418,ffff80002136c000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd80744de950,9,fffffd8061b41600,0,0,ffff800020a5e008) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd80744de950,0,ffff8000233d9638,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020a5e008,6,ffff8000233d9638,0,ffff8000233d9720) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020a5e008,ffff8000233d96d8,ffff8000233d9720) at sys_write+0x83 sys/kern/sys_generic.c:284 end trace frame: 0xffff8000233d9790, 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{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(ffff8000233d8f30) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff80002136c000,fffffd8076410e70,10,ffff800000025180,ffff8000233d9198) at alltraps_kern_meltdown+0x7b 0(b,ffff8000233d90f8,83,ffff8000233d9198,0,b) at 0 rt_clone(ffff8000233d9208,fffffd806f6d02b0,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d02b0,fffffd8061b423f4,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d02b0,fffffd8061b423f4,0) at rtalloc_mpath+0xba sys/net/route.c:359 ip_output(fffffd8061b42300,0,fffffd806f6d02a0,20,0,fffffd806f6d0230) at ip_output+0x4f2 sys/netinet/ip_output.c:204 rip_output(fffffd8061b41600,fffffd80744de950,ffff8000233d9418,ffff80002136c000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd80744de950,9,fffffd8061b41600,0,0,ffff800020a5e008) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd80744de950,0,ffff8000233d9638,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020a5e008,6,ffff8000233d9638,0,ffff8000233d9720) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_write(ffff800020a5e008,ffff8000233d96d8,ffff8000233d9720) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff8000233d97a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000233d97a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,11526839010) at Xsyscall+0x128 end of kernel end trace frame: 0x117f20c9320, count: -16 ddb{1}> show registers rdi 0xffffffff81194cb7 db_enter+0x17 rsi 0x26b7 __ALIGN_SIZE+0x16b7 rbp 0xffff8000233d8da0 rbx 0xffff8000233d8e50 rdx 0x26b8 __ALIGN_SIZE+0x16b8 rcx 0xffff80002136c000 rax 0xffff80002136c000 r8 0xffffffff81f734ef kprintf+0x16f r9 0x1 r10 0x25 r11 0xe1cc58925555328c r12 0x3000000008 r13 0xffff8000233d8db0 r14 0x100 r15 0x1 rip 0xffffffff81194cb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000233d8d90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=299507 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac0c68,0xffffffff82645b50 process=0xffff800020adc380 user=0xffff8000233d4000, vmspace=0xfffffd807f00a8a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 92003 461398 73873 0 7 0 syz-executor.0 *92003 299507 73873 0 7 0x4000000 syz-executor.0 88667 84027 89955 0 3 0x2 biowait syz-executor.1 73873 480724 89955 0 3 0x82 nanosleep syz-executor.0 88772 220419 0 0 3 0x14200 acct acct 35652 332442 1 0 3 0x100083 ttyin getty 1864 460694 0 0 3 0x14200 bored sosplice 89955 489833 21419 0 3 0x82 thrsleep syz-fuzzer 89955 373276 21419 0 3 0x4000082 nanosleep syz-fuzzer 89955 364275 21419 0 3 0x4000082 thrsleep syz-fuzzer 89955 395312 21419 0 3 0x4000082 thrsleep syz-fuzzer 89955 472078 21419 0 3 0x4000082 thrsleep syz-fuzzer 89955 148860 21419 0 3 0x4000082 thrsleep syz-fuzzer 89955 503519 21419 0 3 0x4000082 nanosleep syz-fuzzer 89955 389424 21419 0 3 0x4000082 thrsleep syz-fuzzer 89955 237116 21419 0 3 0x4000082 thrsleep syz-fuzzer 89955 208362 21419 0 3 0x4000082 kqread syz-fuzzer 21419 482634 26208 0 3 0x10008a pause ksh 26208 360233 61937 0 3 0x92 select sshd 61937 343406 1 0 3 0x80 select sshd 53219 387466 77933 74 3 0x100092 bpf pflogd 77933 380695 1 0 3 0x80 netio pflogd 88723 74122 20071 73 3 0x100090 kqread syslogd 20071 296151 1 0 3 0x100082 netio syslogd 57549 331426 1 77 3 0x100090 poll dhclient 36093 405705 1 0 3 0x80 poll dhclient 86013 480792 0 0 3 0x14200 pgzero zerothread 48984 131313 0 0 3 0x14200 aiodoned aiodoned 36887 398486 0 0 3 0x14200 syncer update 56301 325600 0 0 3 0x14200 cleaner cleaner 24681 419302 0 0 3 0x14200 reaper reaper 8430 218698 0 0 3 0x14200 pgdaemon pagedaemon 34006 238841 0 0 3 0x14200 bored crynlk 95465 474236 0 0 3 0x14200 bored crypto 14530 330789 0 0 3 0x40014200 acpi0 acpi0 24095 327732 0 0 3 0x40014200 idle1 27314 175367 0 0 3 0x14200 bored softnet 50465 286178 0 0 3 0x14200 bored systqmp 84978 193537 0 0 3 0x14200 bored systq 86146 402168 0 0 3 0x40014200 bored softclock 95001 291929 0 0 3 0x40014200 idle0 17054 507485 0 0 3 0x14200 bored smr 1 286953 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 92003 (syz-executor.0) thread 0xffff800020a5e008 (299507) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff8262a6d0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rt_clone+0x5c sys/net/route.c:266 #2 rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] #2 rtalloc_mpath+0xba sys/net/route.c:359 #3 ip_output+0x4f2 sys/netinet/ip_output.c:204 #4 rip_output+0x252 sys/netinet/raw_ip.c:289 #5 rip_usrreq+0x46a sys/netinet/raw_ip.c:538 #6 sosend+0x645 sys/kern/uipc_socket.c:524 #7 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #8 sys_write+0x83 sys/kern/sys_generic.c:284 #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 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_write+0x83 sys/kern/sys_generic.c:284 #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 88667 (syz-executor.1) thread 0xffff800020ab0c70 (84027) exclusive rrwlock inode r = 0 (0xfffffd805f6485f8) #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 (0xfffffd806fd0b928) #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 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9600 7102K 7877K 78643K 23193 0 0 pcb 13 8K 8K 78643K 734 0 0 rtable 160 15K 16K 78643K 2352 0 0 ifaddr 103 23K 24K 78643K 639 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1648 0 0 iov 0 0K 24K 78643K 2020 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1225 77K 77K 78643K 5198 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 3 5K 5K 78643K 35 0 0 VM map 54 27K 27K 78643K 63 0 0 sem 12 1K 1K 78643K 839 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 4202 0 0 sigio 0 0K 0K 78643K 44 0 0 proc 62 63K 95K 78643K 1713 0 0 subproc 32 2K 2K 78643K 401 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 321 0 0 in_multi 40 2K 2K 78643K 474 0 0 ether_multi 1 0K 0K 78643K 55 0 0 mrt 0 0K 0K 78643K 28 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 732 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 202 423K 423K 78643K 14814 0 0 UVM aobj 130 7K 7K 78643K 135 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 747 0 0 NDP 22 0K 0K 78643K 201 0 0 temp 245 3569K 4205K 78643K 109480 0 0 kqueue 0 0K 0K 78643K 15 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 72 0 66 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 329 0 327 1 0 1 1 0 8 0 rtentry 112 414 0 349 2 0 2 2 0 8 0 unpcb 120 3332 0 3320 7 5 2 2 0 8 1 syncache 264 28 0 28 12 12 0 1 0 8 0 tcpqe 32 73 0 73 6 6 0 1 0 8 0 tcpcb 544 4435 0 4429 16 14 2 4 0 8 1 inpcb 280 9870 0 9860 15 13 2 4 0 8 1 rttmr 72 7 0 7 6 5 1 1 0 8 1 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 2 0 2 1 1 0 1 0 8 0 nd6 48 58 0 54 1 0 1 1 0 8 0 pkpcb 40 16 0 16 4 3 1 1 0 8 1 ppxss 1128 78 0 78 11 11 0 1 0 8 0 pffrag 232 68 0 68 13 12 1 1 0 482 1 pffrnode 88 68 0 68 13 12 1 1 0 8 1 pffrent 40 2451 0 2451 13 12 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 266 0 217 1 0 1 1 0 8 0 pfstkey 112 266 0 217 3 0 3 3 0 8 0 pfstate 328 266 0 217 7 0 7 7 0 8 1 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 9 0 5 8 3 5 5 0 8 1 art_heap4 256 1760 0 1468 28 9 19 19 0 8 0 art_table 32 1769 0 1473 4 1 3 3 0 8 0 art_node 16 411 0 354 1 0 1 1 0 8 0 sysvmsgpl 40 80 0 40 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 833 0 823 1 0 1 1 0 8 0 shmpl 112 133 0 5 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7512 0 6082 47 0 47 47 0 8 0 ffsino 272 7512 0 6082 96 0 96 96 0 8 0 nchpl 144 16084 0 15612 62 42 20 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 50534 0 50533 1 0 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 52 0 0 7 0 7 7 0 8 0 vmpool 552 61 0 9 4 0 4 4 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 42863 0 42862 28 25 3 7 0 8 2 plimitpl 152 277 0 269 1 0 1 1 0 8 0 sigapl 432 4338 0 4323 3 1 2 3 0 8 0 futexpl 56 103099 0 103099 1 0 1 1 0 8 1 knotepl 112 1097 0 1076 3 2 1 2 0 8 0 kqueuepl 104 1690 0 1686 1 0 1 1 0 8 0 pipepl 112 2178 0 2159 5 4 1 2 0 8 0 fdescpl 488 4339 0 4323 3 0 3 3 0 8 0 filepl 152 41234 0 41130 23 16 7 8 0 8 3 lockfpl 104 1119 0 1118 1 0 1 1 0 8 0 lockfspl 48 379 0 378 1 0 1 1 0 8 0 sessionpl 112 40 0 29 1 0 1 1 0 8 0 pgrppl 48 64 0 53 1 0 1 1 0 8 0 ucredpl 96 4224 0 4215 1 0 1 1 0 8 0 zombiepl 144 4324 0 4324 1 0 1 1 0 8 1 processpl 896 4357 0 4324 4 0 4 4 0 8 0 procpl 632 12845 0 12802 8 3 5 5 0 8 1 srpgc 64 36 0 36 9 9 0 1 0 8 0 sosppl 128 67 0 67 11 11 0 1 0 8 0 sockpl 384 13595 0 13571 35 29 6 10 0 8 3 mcl64k 65536 520 0 0 65 14 51 65 0 8 1 mcl16k 16384 19 0 0 3 1 2 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 12 0 0 1 0 1 1 0 8 0 mcl8k 8192 18 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 190 0 0 21 1 20 21 0 8 0 mtagpl 80 283 0 0 6 0 6 6 0 8 0 mbufpl 256 932 0 0 55 0 55 55 0 8 0 bufpl 256 16885 0 9827 442 0 442 442 0 8 0 anonpl 16 486063 0 465308 158 60 98 106 0 124 2 amapchunkpl 152 29492 0 29301 52 41 11 22 0 158 1 amappl16 192 21461 0 20196 137 66 71 74 0 8 7 amappl15 184 818 0 815 4 3 1 1 0 8 0 amappl14 176 1083 0 1077 1 0 1 1 0 8 0 amappl13 168 275 0 274 1 0 1 1 0 8 0 amappl12 160 433 0 430 1 0 1 1 0 8 0 amappl11 152 645 0 630 1 0 1 1 0 8 0 amappl10 144 168 0 162 1 0 1 1 0 8 0 amappl9 136 1737 0 1734 1 0 1 1 0 8 0 amappl8 128 1333 0 1286 2 0 2 2 0 8 0 amappl7 120 295 0 284 1 0 1 1 0 8 0 amappl6 112 613 0 597 1 0 1 1 0 8 0 amappl5 104 1691 0 1677 1 0 1 1 0 8 0 amappl4 96 4314 0 4279 1 0 1 1 0 8 0 amappl3 88 1252 0 1241 1 0 1 1 0 8 0 amappl2 80 34340 0 34259 3 1 2 3 0 8 0 amappl1 72 105281 0 104839 25 15 10 20 0 8 0 amappl 80 13535 0 13461 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 134 0 5 3 0 3 3 0 8 0 uaddrrnd 24 4400 0 4323 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4400 0 4323 1 0 1 1 0 8 0 vmmpekpl 168 33094 0 33044 3 0 3 3 0 8 0 vmmpepl 168 553307 0 550673 273 113 160 160 0 357 39 vmsppl 368 4338 0 4323 2 0 2 2 0 8 0 pdppl 4096 8807 0 8716 12 0 12 12 0 8 0 pvpl 32 1284070 0 1262462 326 104 222 232 0 265 30 pmappl 232 4399 0 4332 5 0 5 5 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 762 0 45 21 0 21 21 0 8 0