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 9359 96855 0 0 0 0 syz-executor.1 *282514 96855 0 0 0x4000000 1K 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+0x40b kerntrap(ffff800023bb76e0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,136a,0,10,fffffd8068c4deec,14) at alltraps_kern_meltdown+0x7b 0(fffffd8068c4de00,0,fffffd806f6d7a48,20,0,fffffd806f6d79d8) at 0 rip_output(fffffd8068c4de00,fffffd806c937790,ffff800023bb7948,ffff800021152000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd806c937790,9,fffffd8068c4de00,0,0,ffff800020acec88) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd806c937790,0,ffff800023bb7ab0,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 sendit(ffff800020acec88,3,ffff800023bb7b90,0,ffff800023bb7c70) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020acec88,ffff800023bb7c28,ffff800023bb7c70) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800023bb7cf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bb7cf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd7,0,6,ae81a0e010) at Xsyscall+0x128 end of kernel end trace frame: 0xb0bc826eb0, count: 2 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(ffff800023bb76e0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,136a,0,10,fffffd8068c4deec,14) at alltraps_kern_meltdown+0x7b 0(fffffd8068c4de00,0,fffffd806f6d7a48,20,0,fffffd806f6d79d8) at 0 rip_output(fffffd8068c4de00,fffffd806c937790,ffff800023bb7948,ffff800021152000) at rip_output+0x252 sys/netinet/raw_ip.c:289 rip_usrreq(fffffd806c937790,9,fffffd8068c4de00,0,0,ffff800020acec88) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538 sosend(fffffd806c937790,0,ffff800023bb7ab0,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524 sendit(ffff800020acec88,3,ffff800023bb7b90,0,ffff800023bb7c70) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff800020acec88,ffff800023bb7c28,ffff800023bb7c70) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800023bb7cf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bb7cf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd7,0,6,ae81a0e010) at Xsyscall+0x128 end of kernel end trace frame: 0xb0bc826eb0, count: -13 ddb{1}> show registers rdi 0xffffffff814c4807 db_enter+0x17 rsi 0x233a __ALIGN_SIZE+0x133a rbp 0xffff800023bb7550 rbx 0xffff800023bb7600 rdx 0x233b __ALIGN_SIZE+0x133b rcx 0xffff800021152000 rax 0xffff800021152000 r8 0xffffffff8141f94f kprintf+0x16f r9 0x1 r10 0x25 r11 0x1f327e27ef5f1619 r12 0x3000000008 r13 0xffff800023bb7560 r14 0x100 r15 0x1 rip 0xffffffff814c4808 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023bb7540 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=282514 stat=onproc flags process=0 proc=4000000 pri=78, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800020acf3f0,0xffffffff8265b7c8 process=0xffff800020adc000 user=0xffff800023bb2000, vmspace=0xfffffd807f00a450 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 96855 9359 91881 0 7 0 syz-executor.1 *96855 282514 91881 0 7 0x4000000 syz-executor.1 5108 282463 48216 0 2 0 syz-executor.0 5108 477109 48216 0 3 0x4000080 netio syz-executor.0 91881 225561 49057 0 3 0x82 nanosleep syz-executor.1 48216 416330 49057 0 3 0x82 nanosleep syz-executor.0 97206 384476 1 0 3 0x100083 ttyin getty 78351 231022 0 0 3 0x14200 acct acct 68662 294722 0 0 3 0x14200 bored sosplice 49057 364027 86464 0 3 0x82 thrsleep syz-fuzzer 49057 105462 86464 0 3 0x4000082 nanosleep syz-fuzzer 49057 431805 86464 0 3 0x4000082 thrsleep syz-fuzzer 49057 515848 86464 0 3 0x4000082 thrsleep syz-fuzzer 49057 488297 86464 0 3 0x4000082 thrsleep syz-fuzzer 49057 278110 86464 0 3 0x4000082 thrsleep syz-fuzzer 49057 105224 86464 0 3 0x4000082 thrsleep syz-fuzzer 49057 99470 86464 0 3 0x4000082 kqread syz-fuzzer 49057 71096 86464 0 3 0x4000082 thrsleep syz-fuzzer 49057 18295 86464 0 3 0x4000082 nanosleep syz-fuzzer 86464 122132 91566 0 3 0x10008a pause ksh 91566 268475 3528 0 3 0x92 select sshd 3528 522756 1 0 3 0x80 select sshd 79673 140106 2832 74 3 0x100092 bpf pflogd 2832 502838 1 0 3 0x80 netio pflogd 34189 164406 30351 73 3 0x100090 kqread syslogd 30351 116921 1 0 3 0x100082 netio syslogd 68806 282604 1 77 3 0x100090 poll dhclient 44692 501371 1 0 3 0x80 poll dhclient 7472 137479 0 0 2 0x14200 zerothread 27313 108581 0 0 3 0x14200 aiodoned aiodoned 87412 458709 0 0 3 0x14200 syncer update 2783 396950 0 0 3 0x14200 cleaner cleaner 19688 173775 0 0 3 0x14200 reaper reaper 40342 147845 0 0 3 0x14200 pgdaemon pagedaemon 40995 1668 0 0 3 0x14200 bored crynlk 71783 41573 0 0 3 0x14200 bored crypto 86105 209824 0 0 3 0x40014200 acpi0 acpi0 22463 384438 0 0 3 0x40014200 idle1 22447 77887 0 0 3 0x14200 bored softnet 53277 173788 0 0 3 0x14200 bored systqmp 98445 147580 0 0 3 0x14200 bored systq 41172 109248 0 0 3 0x40014200 bored softclock 88680 370846 0 0 3 0x40014200 idle0 68998 175833 0 0 3 0x14200 bored smr 1 390648 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 96855 (syz-executor.1) thread 0xffff800020acec88 (282514) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82648ec0) #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 (0xffffffff824dc718) #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 sendit+0x52b sys/kern/uipc_syscalls.c:662 #4 sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 #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 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9629 7357K 8291K 78643K 33614 0 0 pcb 13 10K 12K 78643K 1864 0 0 rtable 167 16K 16K 78643K 3069 0 0 ifaddr 112 24K 25K 78643K 818 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1718 0 0 iov 0 0K 24K 78643K 738 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1232 77K 78K 78643K 8849 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 60 0 0 VM map 24 12K 12K 78643K 31 0 0 sem 11 1K 1K 78643K 11 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 5223 0 0 sigio 0 0K 0K 78643K 64 0 0 proc 61 63K 95K 78643K 2477 0 0 subproc 32 2K 2K 78643K 714 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 1656 0 0 in_multi 44 2K 3K 78643K 720 0 0 ether_multi 1 0K 0K 78643K 44 0 0 mrt 0 0K 0K 78643K 29 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 1111 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 194 189K 189K 78643K 19093 0 0 UVM aobj 130 6K 6K 78643K 133 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 774 0 0 NDP 24 0K 1K 78643K 279 0 0 temp 256 3561K 4201K 78643K 104622 0 0 kqueue 0 0K 0K 78643K 52 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 92 0 85 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 397 0 395 1 0 1 1 0 8 0 rtentry 112 612 0 546 2 0 2 2 0 8 0 unpcb 120 9125 0 9106 17 16 1 2 0 8 0 syncache 264 26 0 26 15 15 0 1 0 8 0 tcpqe 32 10 0 10 8 8 0 1 0 8 0 tcpcb 544 1543 0 1539 10 9 1 2 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 18180 0 18172 88 86 2 13 0 8 1 rttmr 72 9 0 9 3 3 0 1 0 8 0 nd6 48 100 0 96 1 0 1 1 0 8 0 pkpcb 40 17 0 17 7 7 0 1 0 8 0 ppxss 1128 93 0 93 39 39 0 1 0 8 0 pffrag 232 100 0 100 35 35 0 1 0 482 0 pffrnode 88 100 0 100 35 35 0 1 0 8 0 pffrent 40 3339 0 3339 35 35 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 357 0 343 1 0 1 1 0 8 0 pfstkey 112 357 0 343 2 0 2 2 0 8 0 pfstate 328 357 0 343 8 6 2 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 4 0 2 4 2 2 4 0 8 0 art_heap4 256 2605 0 2356 29 13 16 18 0 8 0 art_table 32 2609 0 2358 3 0 3 3 0 8 0 art_node 16 603 0 551 1 0 1 1 0 8 0 sysvmsgpl 40 21 0 2 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 8588 0 7181 46 0 46 46 0 8 0 ffsino 272 8588 0 7181 95 0 95 95 0 8 0 nchpl 144 18031 0 17549 63 41 22 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 70987 0 70987 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 22 0 0 3 0 3 3 0 8 0 vmpool 552 29 0 7 4 2 2 2 0 8 0 scsiplug 64 7 0 7 4 4 0 1 0 8 0 scxspl 192 49184 0 49184 32 31 1 6 0 8 1 plimitpl 152 310 0 301 1 0 1 1 0 8 0 sigapl 432 5302 0 5286 3 1 2 3 0 8 0 futexpl 56 174811 0 174811 1 0 1 1 0 8 1 knotepl 112 1090 0 1071 2 0 2 2 0 8 0 kqueuepl 104 1065 0 1063 1 0 1 1 0 8 0 pipepl 112 10250 0 10231 8 7 1 2 0 8 0 fdescpl 488 5303 0 5286 3 0 3 3 0 8 0 filepl 152 75945 0 75836 59 53 6 14 0 8 1 lockfpl 104 1366 0 1365 1 0 1 1 0 8 0 lockfspl 48 496 0 495 1 0 1 1 0 8 0 sessionpl 112 59 0 48 1 0 1 1 0 8 0 pgrppl 48 127 0 116 1 0 1 1 0 8 0 ucredpl 96 9123 0 9112 1 0 1 1 0 8 0 zombiepl 144 5286 0 5286 1 0 1 1 0 8 1 processpl 896 5320 0 5286 4 0 4 4 0 8 0 procpl 632 16300 0 16255 7 2 5 5 0 8 0 srpgc 64 63 0 63 22 22 0 1 0 8 0 sosppl 128 1635 0 1635 34 33 1 2 0 8 1 sockpl 384 28030 0 28001 137 131 6 23 0 8 1 mcl64k 65536 716 0 0 77 69 8 66 0 8 0 mcl16k 16384 46 0 0 5 2 3 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 64 0 0 4 2 2 3 0 8 0 mcl4k 4096 50 0 0 3 0 3 3 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 213 0 0 19 2 17 19 0 8 0 mtagpl 80 652 0 0 4 0 4 4 0 8 0 mbufpl 256 1335 0 0 40 0 40 40 0 8 0 bufpl 256 20175 0 13117 442 0 442 442 0 8 0 anonpl 16 641261 0 620489 224 127 97 99 0 124 0 amapchunkpl 152 38301 0 37872 74 56 18 18 0 158 0 amappl16 192 26272 0 25152 222 165 57 69 0 8 0 amappl15 184 1081 0 1077 4 3 1 1 0 8 0 amappl14 176 897 0 892 1 0 1 1 0 8 0 amappl13 168 345 0 343 1 0 1 1 0 8 0 amappl12 160 762 0 759 1 0 1 1 0 8 0 amappl11 152 1146 0 1131 1 0 1 1 0 8 0 amappl10 144 418 0 413 1 0 1 1 0 8 0 amappl9 136 1906 0 1903 1 0 1 1 0 8 0 amappl8 128 1461 0 1390 4 1 3 3 0 8 0 amappl7 120 554 0 545 1 0 1 1 0 8 0 amappl6 112 1042 0 1025 1 0 1 1 0 8 0 amappl5 104 3749 0 3736 1 0 1 1 0 8 0 amappl4 96 5775 0 5734 9 7 2 2 0 8 0 amappl3 88 634 0 629 1 0 1 1 0 8 0 amappl2 80 39711 0 39622 3 1 2 3 0 8 0 amappl1 72 128983 0 128527 26 16 10 20 0 8 0 amappl 80 17284 0 17218 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 132 0 3 3 0 3 3 0 8 0 uaddrrnd 24 5332 0 5286 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5332 0 5286 1 0 1 1 0 8 0 vmmpekpl 168 59465 0 59428 5 2 3 3 0 8 1 vmmpepl 168 689358 0 686874 766 610 156 156 0 357 40 vmsppl 368 5302 0 5286 2 0 2 2 0 8 0 pdppl 4096 10671 0 10608 9 0 9 9 0 8 1 pvpl 32 1699400 0 1679657 542 321 221 232 0 265 26 pmappl 232 5331 0 5293 9 6 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 748 0 103 20 0 20 20 0 8 0