uvm_fault(0xffffffff83a1a6a0, 0xffff800000002008, 0, 1) -> e kernel: page fault trap, code=0 Stopped at ip6_freemoptions+0x65: movq 0x8(%r15),%r13 TID PID UID PRFLAGS PFLAGS CPU COMMAND ip6_freemoptions(ffff800000c57690) at ip6_freemoptions+0x65 sys/netinet6/ip6_output.c:2147 in_pcbdetach(fffff28070f94b88) at in_pcbdetach+0x122 sys/netinet/in_pcb.c:608 udp_detach(ffff800001600460) at udp_detach+0x5a sys/netinet/udp_usrreq.c:1158 soclose(ffff800001600460,0) at soclose+0xad pru_detach sys/sys/protosw.h:281 [inline] soclose(ffff800001600460,0) at soclose+0xad sys/kern/uipc_socket.c:403 soo_close(fffff2807976b3d8,ffff80002a7942b0) at soo_close+0x56 sys/kern/sys_socket.c:-1 fdrop(fffff2807976b3d8,ffff80002a7942b0) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff2807976b3d8,ffff80002a7942b0) at closef+0x190 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a7942b0) at fdfree+0x115 sys/kern/kern_descrip.c:1196 exit1(ffff80002a7942b0,0,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a7942b0,ffff80002acab200,ffff80002acab150) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002acab200) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002acab200) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78e18b8b8610, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: uvm_fault(0xffffffff83a1a6a0, 0xffff800000002008, 0, 1) -> e ddb> show kasan No such command ddb> trace ip6_freemoptions(ffff800000c57690) at ip6_freemoptions+0x65 sys/netinet6/ip6_output.c:2147 in_pcbdetach(fffff28070f94b88) at in_pcbdetach+0x122 sys/netinet/in_pcb.c:608 udp_detach(ffff800001600460) at udp_detach+0x5a sys/netinet/udp_usrreq.c:1158 soclose(ffff800001600460,0) at soclose+0xad pru_detach sys/sys/protosw.h:281 [inline] soclose(ffff800001600460,0) at soclose+0xad sys/kern/uipc_socket.c:403 soo_close(fffff2807976b3d8,ffff80002a7942b0) at soo_close+0x56 sys/kern/sys_socket.c:-1 fdrop(fffff2807976b3d8,ffff80002a7942b0) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff2807976b3d8,ffff80002a7942b0) at closef+0x190 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a7942b0) at fdfree+0x115 sys/kern/kern_descrip.c:1196 exit1(ffff80002a7942b0,0,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a7942b0,ffff80002acab200,ffff80002acab150) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002acab200) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002acab200) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78e18b8b8610, count: -12 ddb> show registers rdi 0xffff800000c57690 rsi 0x100 rbp 0xffff80002acaae70 rbx 0xa rdx 0 rcx 0x1 rax 0xffff80002a7942b0 r8 0 r9 0 r10 0x53000d82a6ebdffb r11 0x6a91427c3647cc77 r12 0 r13 0x100 r14 0xffff800000c57690 r15 0xffff800000002000 rip 0xffffffff82841375 ip6_freemoptions+0x65 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff80002acaae30 ss 0x10 ip6_freemoptions+0x65: movq 0x8(%r15),%r13 ddb> show proc PROC (syz-executor) tid=393203 pid=22337 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a7942b0 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a794018,0xffffffff83a654b8 process=0xffff80002ad1a420 user=0xffff80002aca6000, vmspace=0xfffff2806d339b98 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 83547 406452 11100 0 2 0x2 0 ifconfig 11100 306775 49132 0 3 0x100002 0x88 sigsusp sh 15623 65570 41058 0 2 0 0 syz-executor 15623 322113 41058 0 2 0 0x4000000 syz-executor 86776 442133 0 0 3 0x14000 0x200 acct acct 88083 434205 15976 0 2 0 0 syz-executor 88083 411286 15976 0 3 0 0x4000080 fsleep syz-executor 49132 14876 60159 0 3 0x2 0x80 wait syz-executor 69892 387879 0 0 3 0x14000 0x280 nfsidl nfsio 94382 148406 0 0 3 0x14000 0x280 nfsidl nfsio 37623 175773 0 0 3 0x14000 0x280 nfsidl nfsio 42224 246749 0 0 3 0x14000 0x280 nfsidl nfsio 46978 228359 0 0 3 0x14000 0x280 nfsidl nfsio 68216 53440 0 0 3 0x14000 0x280 nfsidl nfsio 8417 362558 0 0 3 0x14000 0x280 nfsidl nfsio 79022 519050 0 0 3 0x14000 0x280 nfsidl nfsio 15981 56535 0 0 3 0x14000 0x280 nfsidl nfsio 78853 114042 0 0 3 0x14000 0x280 nfsidl nfsio 52865 509282 0 0 3 0x14000 0x280 nfsidl nfsio 21144 187988 0 0 3 0x14000 0x280 nfsidl nfsio 77677 13239 0 0 3 0x14000 0x280 nfsidl nfsio 12457 283688 0 0 3 0x14000 0x280 nfsidl nfsio 69037 312624 0 0 3 0x14000 0x280 nfsidl nfsio 47019 516221 0 0 3 0x14000 0x280 nfsidl nfsio 95495 57593 0 0 3 0x14000 0x280 nfsidl nfsio 42479 270150 0 0 3 0x14000 0x280 nfsidl nfsio 96610 11967 0 0 3 0x14000 0x280 nfsidl nfsio 52698 300 0 0 3 0x14000 0x280 nfsidl nfsio 20371 250989 60159 0 3 0x2 0x80 piperd syz-executor 26054 41096 60159 0 3 0x2 0x80 wait syz-executor 15976 431456 60159 0 3 0x2 0x80 nanoslp syz-executor 73056 332068 60159 0 3 0x2 0x80 piperd syz-executor 41058 368600 60159 0 3 0x2 0x80 nanoslp syz-executor 20102 295571 60159 0 3 0x2 0x80 nanoslp syz-executor 42520 508787 60159 0 3 0x2 0x80 piperd syz-executor 60159 446144 85780 0 2 0x2 0 syz-executor 85780 511061 53266 0 3 0x100002 0x88 sigsusp ksh 53266 74795 96442 0 3 0x10 0x88 kqread sshd-session 96442 242131 50487 0 3 0x12 0x80 kqread sshd-session 67399 421949 1 0 3 0x100003 0x80 ttyin getty 50487 335780 1 0 3 0 0x88 kqread sshd 22098 461601 60275 73 3 0x1100010 0x80 kqread syslogd 60275 491681 1 0 3 0x100002 0x80 sbwait syslogd 66151 98415 1 0 3 0x100000 0x80 kqread resolvd 90271 374115 75397 77 3 0x100012 0x80 kqread dhcpleased 46794 133083 75397 77 3 0x100012 0x80 kqread dhcpleased 75397 312325 1 0 3 0 0x80 kqread dhcpleased 116 193522 0 0 3 0x14000 0x200 bored smr 40531 240662 0 0 2 0x14000 0x200 zerothread 72729 418054 0 0 3 0x14000 0x200 aiodoned aiodoned 62252 52416 0 0 3 0x14000 0x200 syncer update 57468 346519 0 0 3 0x14000 0x200 cleaner cleaner 4373 69737 0 0 3 0x14000 0x200 reaper reaper 50586 80182 0 0 3 0x14000 0x200 pgdaemon pagedaemon 18142 478910 0 0 3 0x14000 0x200 bored viomb 72560 305984 0 0 3 0x14000 0x40000200 acpi0 acpi0 7533 455837 0 0 3 0x14000 0x200 bored softnet0 26654 308472 0 0 3 0x14000 0x200 smrbar systqmp 36301 242244 0 0 3 0x14000 0x200 bored systq 86127 439885 0 0 3 0x14000 0x40000200 tmoslp softclock 74193 409371 0 0 3 0x14000 0x40000200 idle0 1 436055 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11063 12183K 13230K 166960K 12648 0 pcb 17 13K 14K 166960K 104 0 rtable 229 7K 9K 166960K 513 0 pf 28 12K 19K 166960K 82 0 ifaddr 39 7K 7K 166960K 71 0 ifgroup 46 2K 2K 166960K 89 0 sysctl 4 1K 9K 166960K 10 0 counters 32 17K 18K 166960K 50 0 ioctlops 0 0K 4K 166960K 139 0 iov 0 0K 16K 166960K 10 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1358 85K 86K 166960K 1591 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 10 0K 0K 166960K 12 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 16 57K 93K 166960K 368 0 sigio 0 0K 0K 166960K 10 0 proc 60 59K 91K 166960K 641 0 subproc 72 4K 4K 166960K 117 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 24 0 in_multi 90 6K 6K 166960K 151 0 ether_multi 1 0K 0K 166960K 1 0 mrt 1 0K 0K 166960K 11 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 229 1023K 1023K 166960K 229 0 exec 0 0K 1K 166960K 506 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 191 151K 169K 166960K 4721 0 UVM aobj 3 2K 2K 166960K 4 0 pinsyscall 37 74K 95K 166960K 1576 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 5 0 NDP 10 0K 2K 166960K 46 0 temp 38 9110K 9174K 166960K 5889 0 kqueue 13 20K 28K 166960K 60 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 54 0 51 1 0 1 1 0 8 0 rtentry 136 165 0 62 4 0 4 4 0 8 0 unpcb 144 116 0 101 1 0 1 1 0 8 0 syncache 336 6 0 6 1 0 1 1 0 8 1 tcpcb 736 52 0 48 1 0 1 1 0 8 0 arp 96 28 0 11 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 1 0 0 1 0 1 1 0 8 0 inpcb 328 255 0 247 5 0 5 5 0 8 4 ip6q 80 1 0 1 1 0 1 1 0 8 1 ip6af 40 2 0 2 1 0 1 1 0 8 1 nd6 112 38 0 16 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 kcovpl 48 13 0 5 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1072 10 0 10 1 0 1 1 0 8 1 pppxif 1416 1 0 1 1 0 1 1 0 8 1 pfrktable 1344 3 0 3 1 0 1 1 0 8 1 pfanchor 1288 5 0 5 1 0 1 1 0 8 1 pfrule 1360 3 0 3 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 668 0 243 33 0 33 33 0 8 5 art_table 40 669 0 243 6 0 6 6 0 8 1 art_node 32 164 0 70 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 1 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 72 10 0 2 1 0 1 1 0 8 0 shmpl 112 1 0 1 1 0 1 1 0 8 1 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1858 0 392 92 0 92 92 0 8 0 ffsino 256 1858 0 392 92 0 92 92 0 8 0 nchpl 144 2304 0 599 64 0 64 64 0 8 0 rtmask 32 3 0 3 1 0 1 1 0 8 1 vnodes 216 2126 0 0 119 0 119 119 0 8 0 namei 1024 8257 0 8257 2 0 2 2 0 8 2 pfiaddrpl 120 1 0 1 1 0 1 1 0 8 1 kstatmem 264 45 0 24 2 0 2 2 0 8 0 scxspl 216 8320 0 8320 3 0 3 3 1 8 3 plimitpl 152 126 0 110 1 0 1 1 0 8 0 sigapl 424 674 0 612 8 0 8 8 0 8 0 knotepl 120 8262 0 8215 10 0 10 10 0 8 8 kqueuepl 184 67 0 58 1 0 1 1 0 8 0 pipepl 304 148 0 121 3 0 3 3 0 8 0 fdescpl 448 640 0 612 5 0 5 5 0 8 1 filepl 120 3030 0 2824 11 0 11 11 0 8 3 lockfpl 104 143 0 141 2 0 2 2 0 8 1 lockfspl 48 35 0 33 1 0 1 1 0 8 0 sessionpl 144 31 0 23 1 0 1 1 0 8 0 pgrppl 48 45 0 29 1 0 1 1 0 8 0 ucredpl 104 525 0 514 1 0 1 1 0 8 0 zombiepl 144 614 0 612 1 0 1 1 0 8 0 processpl 1152 674 0 612 5 0 5 5 0 8 0 procpl 664 943 0 879 7 0 7 7 0 8 1 sockpl 552 439 0 413 5 0 5 5 0 8 2 mcl64k 65536 114 0 114 1 0 1 1 0 8 1 mcl16k 16384 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 9 0 9 1 0 1 1 0 8 1 mcl4k 4096 2760 0 2704 16 1 15 16 0 8 7 mcl2k 2048 345 0 344 2 0 2 2 0 8 1 mextrefs 64 146 0 146 1 0 1 1 0 8 1 mtagpl 96 8 0 8 1 0 1 1 0 8 1 mbufpl 256 6649 0 6482 13 0 13 13 0 8 0 bufpl 272 3064 0 102 198 0 198 198 0 8 0 anonpl 24 119218 0 116256 57 0 57 57 0 187 33 amapchunkpl 152 14297 0 13917 28 0 28 28 0 158 10 amappl16 200 2076 0 2056 11 0 11 11 0 8 8 amappl15 192 6 0 6 1 0 1 1 0 8 1 amappl14 184 459 0 457 1 0 1 1 0 8 0 amappl13 176 126 0 116 1 0 1 1 0 8 0 amappl12 168 938 0 912 2 0 2 2 0 8 0 amappl11 160 24 0 24 1 0 1 1 0 8 1 amappl10 152 70 0 60 1 0 1 1 0 8 0 amappl9 144 271 0 271 1 0 1 1 0 8 1 amappl8 136 124 0 123 1 0 1 1 0 8 0 amappl7 128 153 0 142 1 0 1 1 0 8 0 amappl6 120 192 0 189 1 0 1 1 0 8 0 amappl5 112 110 0 102 1 0 1 1 0 8 0 amappl4 104 272 0 257 1 0 1 1 0 8 0 amappl3 96 2467 0 2390 3 0 3 3 0 8 0 amappl2 88 739 0 669 2 0 2 2 0 8 0 amappl1 80 11351 0 10813 13 0 13 13 0 8 1 amappl 88 3928 0 3800 5 0 5 5 0 92 1 uvmvnodes 80 100 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 3 0 1 1 0 1 1 0 8 0 uaddrrnd 24 640 0 612 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 640 0 612 1 0 1 1 0 8 0 vmmpekpl 168 6922 0 6882 3 0 3 3 0 8 0 vmmpepl 168 49530 0 47908 88 0 88 88 0 357 12 vmsppl 368 639 0 612 4 0 4 4 0 8 1 rwobjpl 40 16951 0 16044 12 0 12 12 0 8 1 pdppl 4096 1286 0 1224 110 42 68 80 0 8 6 pvpl 32 299036 0 290596 126 0 126 126 0 265 44 pmappl 216 639 0 612 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 581 0 43 16 0 16 16 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace ip6_freemoptions(ffff800000c57690) at ip6_freemoptions+0x65 sys/netinet6/ip6_output.c:2147 in_pcbdetach(fffff28070f94b88) at in_pcbdetach+0x122 sys/netinet/in_pcb.c:608 udp_detach(ffff800001600460) at udp_detach+0x5a sys/netinet/udp_usrreq.c:1158 soclose(ffff800001600460,0) at soclose+0xad pru_detach sys/sys/protosw.h:281 [inline] soclose(ffff800001600460,0) at soclose+0xad sys/kern/uipc_socket.c:403 soo_close(fffff2807976b3d8,ffff80002a7942b0) at soo_close+0x56 sys/kern/sys_socket.c:-1 fdrop(fffff2807976b3d8,ffff80002a7942b0) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff2807976b3d8,ffff80002a7942b0) at closef+0x190 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a7942b0) at fdfree+0x115 sys/kern/kern_descrip.c:1196 exit1(ffff80002a7942b0,0,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a7942b0,ffff80002acab200,ffff80002acab150) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002acab200) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002acab200) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78e18b8b8610, count: -12 ddb> machine ddbcpu 1 No such command ddb> trace ip6_freemoptions(ffff800000c57690) at ip6_freemoptions+0x65 sys/netinet6/ip6_output.c:2147 in_pcbdetach(fffff28070f94b88) at in_pcbdetach+0x122 sys/netinet/in_pcb.c:608 udp_detach(ffff800001600460) at udp_detach+0x5a sys/netinet/udp_usrreq.c:1158 soclose(ffff800001600460,0) at soclose+0xad pru_detach sys/sys/protosw.h:281 [inline] soclose(ffff800001600460,0) at soclose+0xad sys/kern/uipc_socket.c:403 soo_close(fffff2807976b3d8,ffff80002a7942b0) at soo_close+0x56 sys/kern/sys_socket.c:-1 fdrop(fffff2807976b3d8,ffff80002a7942b0) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff2807976b3d8,ffff80002a7942b0) at closef+0x190 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a7942b0) at fdfree+0x115 sys/kern/kern_descrip.c:1196 exit1(ffff80002a7942b0,0,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a7942b0,ffff80002acab200,ffff80002acab150) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002acab200) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002acab200) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78e18b8b8610, count: -12