panic: ip6_getpcbopt: unexpected option Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *454255 69918 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834ef738) at panic+0x1cf sys/kern/subr_prf.c:198 ip6_getpcbopt(0,33,fffffc004cce4e00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff8000016088b0,29,33,fffffc004cce4e00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff8000016088b0,29,33,fffffc004cce4e00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002cc994e8,ffff8000388cb000,ffff8000388caf50) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff8000388cb000) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000388cb000) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3175a1998d0, count: 7 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: ip6_getpcbopt: unexpected option ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834ef738) at panic+0x1cf sys/kern/subr_prf.c:198 ip6_getpcbopt(0,33,fffffc004cce4e00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff8000016088b0,29,33,fffffc004cce4e00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff8000016088b0,29,33,fffffc004cce4e00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002cc994e8,ffff8000388cb000,ffff8000388caf50) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff8000388cb000) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000388cb000) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3175a1998d0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000388cac80 rbx 0xfffffc00754887c8 rdx 0xffff8000015e2740 rcx 0 rax 0xffff80002cc994e8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x178f1c534cecce03 r11 0xfb44fbd04595aaee r12 0 r13 0xffff8000016088b0 r14 0 r15 0x1 rip 0xffffffff81ef9a45 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000388cac70 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=454255 pid=69918 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002cc98028,0xffffffff839ef538 process=0xffff807fffffa418 user=0xffff8000388c6000, vmspace=0xfffffc006bbe0d08 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 69918 265916 65374 0 2 0 syz-executor *69918 454255 65374 0 7 0x4000000 syz-executor 34031 442780 61789 0 2 0 syz-executor 34031 130564 61789 0 2 0x4000000 syz-executor 88671 69022 58722 0 3 0x80 nanoslp syz-executor 88671 357110 58722 0 3 0x4000080 sbwait syz-executor 88671 269489 58722 0 3 0x4000080 sbwait syz-executor 88671 417872 58722 0 3 0x4000080 fsleep syz-executor 62774 5072 78522 0 3 0x90 nanoslp syz-executor 62774 244867 78522 0 3 0x4000090 sbwait syz-executor 62774 425604 78522 0 3 0x4000090 fsleep syz-executor 54710 74428 44032 -1 3 0x90 nanoslp syz-executor 54710 201617 44032 -1 3 0x4000090 kqread syz-executor 54710 355977 44032 -1 3 0x4000090 fsleep syz-executor 68785 421492 31654 0 3 0x1000080 nanoslp syz-executor 68785 158148 31654 0 3 0x5000080 ttyin syz-executor 68785 6651 31654 0 3 0x5000000 inode syz-executor 68785 509733 31654 0 3 0x5000080 fsleep syz-executor 68785 279525 31654 0 3 0x5000080 fsleep syz-executor 68785 314862 31654 0 3 0x5000080 fsleep syz-executor 38278 518366 80314 0 3 0x80 nanoslp syz-executor 38278 162277 80314 0 3 0x4000080 ttyout syz-executor 38278 151387 80314 0 3 0x4000080 ttyout syz-executor 38278 461728 80314 0 3 0x4000080 ttyout syz-executor 38278 461766 80314 0 3 0x4000080 fsleep syz-executor 78522 270965 63075 0 3 0x82 nanoslp syz-executor 84411 64228 63075 0 3 0x82 wait syz-executor 31654 204879 63075 0 3 0x82 nanoslp syz-executor 58722 34084 63075 0 3 0x82 nanoslp syz-executor 61789 424046 63075 0 3 0x82 nanoslp syz-executor 65374 402246 63075 0 3 0x82 nanoslp syz-executor 44032 187133 63075 0 3 0x82 nanoslp syz-executor 80314 229207 63075 0 3 0x82 nanoslp syz-executor 63075 264852 87933 0 3 0x82 kqread syz-executor 87933 457637 92111 0 3 0x10008a sigsusp ksh 92111 168402 14189 0 3 0x98 kqread sshd-session 14189 460308 10990 0 3 0x92 kqread sshd-session 35622 480469 1 0 3 0x100083 ttyin getty 10990 188134 1 0 3 0x88 kqread sshd 62973 523065 31273 73 3 0x1100090 kqread syslogd 31273 298722 1 0 3 0x100082 sbwait syslogd 56051 174443 1 0 3 0x100080 kqread resolvd 95250 258239 29218 77 3 0x100092 kqread dhcpleased 37894 123934 29218 77 3 0x100092 kqread dhcpleased 29218 60809 1 0 3 0x80 kqread dhcpleased 94129 169856 0 0 3 0x14200 bored smr 7880 278415 0 0 2 0x14200 zerothread 4884 380593 0 0 3 0x14200 aiodoned aiodoned 71583 250288 0 0 3 0x14200 syncer update 76806 5371 0 0 3 0x14200 cleaner cleaner 74778 492560 0 0 3 0x14200 reaper reaper 50248 112175 0 0 3 0x14200 pgdaemon pagedaemon 87129 37419 0 0 3 0x14200 bored viomb 88148 166224 0 0 3 0x40014200 acpi0 acpi0 55006 279748 0 0 3 0x14200 bored softnet0 80285 270363 0 0 3 0x14200 bored systqmp 82089 172350 0 0 3 0x14200 bored systq 72258 263532 0 0 3 0x40014200 tmoslp softclock 37366 328237 0 0 3 0x40014200 idle0 1 304109 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11073 12234K 12347K 166960K 12457 0 pcb 20 12K 12K 166960K 62 0 rtable 245 8K 8K 166960K 415 0 pf 34 13K 19K 166960K 76 0 ifaddr 42 7K 8K 166960K 61 0 ifgroup 50 2K 2K 166960K 80 0 sysctl 4 1K 9K 166960K 12 0 counters 33 17K 18K 166960K 48 0 ioctlops 0 0K 4K 166960K 217 0 iov 2 0K 16K 166960K 94 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1334 84K 84K 166960K 1737 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 12 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 17 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 97K 166960K 411 0 sigio 0 0K 0K 166960K 3 0 proc 60 59K 116K 166960K 557 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 4 0K 0K 166960K 34 0 in_multi 99 7K 7K 166960K 118 0 ether_multi 1 0K 0K 166960K 3 0 mrt 0 0K 0K 166960K 17 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 247 1102K 1102K 166960K 247 0 exec 0 0K 1K 166960K 399 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 252 159K 173K 166960K 5191 0 UVM aobj 19 2K 2K 166960K 22 0 pinsyscall 39 78K 96K 166960K 1547 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 16 0 NDP 13 0K 2K 166960K 40 0 temp 79 9120K 9136K 166960K 14136 0 kqueue 14 22K 27K 166960K 66 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 58 0 53 1 0 1 1 0 8 0 rtentry 136 128 0 17 4 0 4 4 0 8 0 unpcb 144 161 0 144 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 134 0 128 4 0 4 4 0 8 3 arp 96 20 0 2 1 0 1 1 0 8 0 ipq 40 4 0 0 1 0 1 1 0 8 0 ipqe 40 4 0 0 1 0 1 1 0 8 0 inpcb 328 327 0 310 4 0 4 4 0 8 2 ip6q 72 2 0 1 1 0 1 1 0 8 0 ip6af 40 4 0 3 1 0 1 1 0 8 0 nd6 112 30 0 5 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 12 0 12 1 0 1 1 0 8 1 pppxif 1416 1 0 1 1 0 1 1 0 8 1 pfstscr 40 8 0 4 1 0 1 1 0 8 0 pfrktable 1344 2 0 1 1 0 1 1 0 8 0 pftag 88 1 0 1 1 0 1 1 0 8 1 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 8 0 4 1 0 1 1 0 8 0 pfstate 384 4 0 2 1 0 1 1 0 8 0 pfrule 1360 6 0 4 1 0 1 1 0 8 0 rttmr 136 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 581 0 125 31 0 31 31 0 8 2 art_table 40 582 0 125 5 0 5 5 0 8 0 art_node 32 128 0 27 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 1 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 72 13 0 3 1 0 1 1 0 8 0 shmpl 112 19 0 3 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2154 0 696 92 0 92 92 0 8 0 ffsino 256 2154 0 696 92 0 92 92 0 8 0 nchpl 144 2742 0 1040 64 0 64 64 0 8 0 rtmask 32 3 0 3 1 0 1 1 0 8 1 vnodes 216 2396 0 0 134 0 134 134 0 8 0 namei 1024 8975 0 8974 2 0 2 2 0 8 1 kstatmem 264 45 0 22 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 8613 0 8613 8 0 8 8 1 8 8 plimitpl 152 127 0 110 1 0 1 1 0 8 0 sigapl 424 707 0 664 6 0 6 6 0 8 1 knotepl 120 20236 0 20188 10 0 10 10 0 8 7 kqueuepl 184 179 0 169 6 0 6 6 0 8 5 pipepl 304 206 0 179 8 0 8 8 0 8 5 fdescpl 448 694 0 664 5 0 5 5 0 8 1 filepl 120 3985 0 3749 13 0 13 13 0 8 5 lockfpl 104 113 0 111 1 0 1 1 0 8 0 lockfspl 48 51 0 49 1 0 1 1 0 8 0 sessionpl 144 32 0 24 1 0 1 1 0 8 0 pgrppl 48 45 0 29 1 0 1 1 0 8 0 ucredpl 104 830 0 816 1 0 1 1 0 8 0 zombiepl 144 665 0 664 1 0 1 1 0 8 0 processpl 1152 707 0 664 4 0 4 4 0 8 0 procpl 664 1117 0 1056 6 0 6 6 0 8 0 sockpl 552 554 0 515 5 0 5 5 0 8 2 mcl64k 65536 59 0 56 1 0 1 1 0 8 0 mcl16k 16384 4 0 4 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 6 0 6 1 0 1 1 0 8 1 mcl4k 4096 2862 0 2809 14 0 14 14 0 8 6 mcl2k2 2112 4 0 4 1 0 1 1 0 8 1 mcl2k 2048 312 0 311 1 0 1 1 0 8 0 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 6925 0 6735 15 0 15 15 0 8 0 bufpl 272 2820 0 103 182 0 182 182 0 8 0 anonpl 24 115384 0 111939 44 0 44 44 0 88 22 amapchunkpl 152 15984 0 15414 29 0 29 29 0 158 7 amappl16 200 2154 0 2126 14 4 10 14 0 8 7 amappl15 192 7 0 7 1 0 1 1 0 8 1 amappl14 184 442 0 441 1 0 1 1 0 8 0 amappl13 176 123 0 113 1 0 1 1 0 8 0 amappl12 168 938 0 909 2 0 2 2 0 8 0 amappl11 160 20 0 20 1 0 1 1 0 8 1 amappl10 152 56 0 46 1 0 1 1 0 8 0 amappl9 144 273 0 273 1 0 1 1 0 8 1 amappl8 136 108 0 107 1 0 1 1 0 8 0 amappl7 128 145 0 134 1 0 1 1 0 8 0 amappl6 120 174 0 172 1 0 1 1 0 8 0 amappl5 112 95 0 87 1 0 1 1 0 8 0 amappl4 104 270 0 252 1 0 1 1 0 8 0 amappl3 96 3146 0 3017 4 0 4 4 0 8 0 amappl2 88 538 0 482 2 0 2 2 0 8 0 amappl1 80 11402 0 10848 13 0 13 13 0 8 1 amappl 88 4434 0 4246 5 0 5 5 0 92 0 uvmvnodes 80 108 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 21 0 3 1 0 1 1 0 8 0 uaddrrnd 24 694 0 664 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 694 0 664 1 0 1 1 0 8 0 vmmpekpl 168 7471 0 7433 2 0 2 2 0 8 0 vmmpepl 168 52427 0 50543 90 0 90 90 0 357 8 vmsppl 368 693 0 664 4 0 4 4 0 8 1 rwobjpl 40 17416 0 16394 12 0 12 12 0 8 1 pdppl 4096 1394 0 1328 100 32 68 82 0 8 2 pvpl 32 305908 0 296395 120 0 120 120 0 265 43 pmappl 216 693 0 664 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 554 0 32 15 0 15 15 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834ef738) at panic+0x1cf sys/kern/subr_prf.c:198 ip6_getpcbopt(0,33,fffffc004cce4e00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff8000016088b0,29,33,fffffc004cce4e00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff8000016088b0,29,33,fffffc004cce4e00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002cc994e8,ffff8000388cb000,ffff8000388caf50) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff8000388cb000) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000388cb000) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3175a1998d0, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834ef738) at panic+0x1cf sys/kern/subr_prf.c:198 ip6_getpcbopt(0,33,fffffc004cce4e00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff8000016088b0,29,33,fffffc004cce4e00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff8000016088b0,29,33,fffffc004cce4e00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002cc994e8,ffff8000388cb000,ffff8000388caf50) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff8000388cb000) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000388cb000) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3175a1998d0, count: -8