panic: ip6_getpcbopt: unexpected option Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *456812 58352 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834eb32a) at panic+0x1cf sys/kern/subr_prf.c:198 ip6_getpcbopt(0,33,fffffc806bc6da00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800010fe1c08,29,33,fffffc806bc6da00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800010fe1c08,29,33,fffffc806bc6da00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff8000318ad248,ffff80003c8e90d0,ffff80003c8e9020) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff80003c8e90d0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8e90d0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3553c4f01e0, 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(ffffffff834eb32a) at panic+0x1cf sys/kern/subr_prf.c:198 ip6_getpcbopt(0,33,fffffc806bc6da00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800010fe1c08,29,33,fffffc806bc6da00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800010fe1c08,29,33,fffffc806bc6da00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff8000318ad248,ffff80003c8e90d0,ffff80003c8e9020) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff80003c8e90d0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8e90d0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3553c4f01e0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c8e8d50 rbx 0xfffffc8073da4e18 rdx 0xffff8000015e5b00 rcx 0 rax 0xffff8000318ad248 r8 0x101010101010101 r9 0x8080808080808080 r10 0x2220db10426a01bb r11 0x4bac55c95287efca r12 0 r13 0xffff800010fe1c08 r14 0 r15 0x1 rip 0xffffffff829fcc95 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c8e8d40 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=456812 pid=58352 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=0xffff8000318acfb0,0xffff8000318ac030 process=0xffff8000318a9b18 user=0xffff80003c8e4000, vmspace=0xfffffc806be39010 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 68038 327634 68796 0 2 0 syz-executor 58352 121700 47762 0 2 0 syz-executor *58352 456812 47762 0 7 0x4000000 syz-executor 75309 399997 81686 0 2 0 syz-executor 75309 170224 81686 0 3 0x4000080 fsleep syz-executor 72271 239940 15382 0 2 0 syz-executor 72271 137819 15382 0 3 0x4000080 fsleep syz-executor 67643 92719 90140 0 2 0 syz-executor 67643 436406 90140 0 3 0x4000080 fsleep syz-executor 75968 251244 44083 0 2 0 syz-executor 75968 270318 44083 0 3 0x4000080 semwait syz-executor 33802 128665 56725 0 2 0xc80 syz-executor 33802 18263 56725 0 3 0x4000080 bell syz-executor 47762 124009 27639 0 3 0x82 nanoslp syz-executor 44083 453069 27639 0 2 0xc82 syz-executor 56725 428743 27639 0 3 0x82 nanoslp syz-executor 68796 386531 27639 0 3 0x82 nanoslp syz-executor 95528 188344 27639 0 2 0x2 syz-executor 15382 200664 27639 0 2 0xc82 syz-executor 81686 359184 27639 0 2 0xc82 syz-executor 90140 177389 27639 0 2 0xc82 syz-executor 27639 236246 15203 0 3 0x82 kqread syz-executor 15203 403938 81377 0 3 0x10008a sigsusp ksh 81377 228891 78428 0 3 0x98 kqread sshd-session 78428 191297 15775 0 3 0x92 kqread sshd-session 72359 69662 1 0 3 0x100083 ttyin getty 15775 320353 1 0 3 0x88 kqread sshd 27627 70335 20667 73 3 0x1100090 kqread syslogd 20667 448769 1 0 3 0x100082 sbwait syslogd 53004 487154 1 0 3 0x100080 kqread resolvd 17522 351582 39915 77 3 0x100092 kqread dhcpleased 33333 302820 39915 77 3 0x100092 kqread dhcpleased 39915 513648 1 0 3 0x80 kqread dhcpleased 96968 304141 0 0 3 0x14200 bored smr 44153 314420 0 0 2 0x14200 zerothread 71174 158906 0 0 3 0x14200 aiodoned aiodoned 52360 285232 0 0 3 0x14200 syncer update 52540 487801 0 0 3 0x14200 cleaner cleaner 24602 391021 0 0 3 0x14200 reaper reaper 22512 23197 0 0 3 0x14200 pgdaemon pagedaemon 57720 447352 0 0 3 0x14200 bored viomb 23491 458959 0 0 3 0x40014200 acpi0 acpi0 45758 42268 0 0 3 0x14200 bored softnet0 11746 42676 0 0 3 0x14200 bored systqmp 86841 73153 0 0 3 0x14200 bored systq 97987 109916 0 0 3 0x40014200 tmoslp softclock 86014 132236 0 0 3 0x40014200 idle0 1 223792 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 11026 12102K 12118K 166960K 12120 0 pcb 19 12K 12K 166960K 26 0 rtable 243 7K 7K 166960K 368 0 pf 30 12K 15K 166960K 33 0 ifaddr 42 7K 7K 166960K 45 0 ifgroup 50 2K 2K 166960K 54 0 sysctl 1 1K 9K 166960K 5 0 counters 33 17K 17K 166960K 34 0 ioctlops 0 0K 2K 166960K 33 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1291 81K 81K 166960K 1372 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 4 0K 0K 166960K 4 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 89K 166960K 214 0 proc 58 59K 100K 166960K 499 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 1 0 in_multi 99 7K 7K 166960K 99 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 31 148K 148K 166960K 31 0 exec 0 0K 1K 166960K 365 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 208 150K 159K 166960K 3454 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 38 76K 95K 166960K 1314 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 2 0 NDP 27 2K 2K 166960K 28 0 temp 35 9106K 9112K 166960K 3734 0 kqueue 13 20K 22K 166960K 26 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 39 0 36 1 0 1 1 0 8 0 rtentry 136 111 0 1 4 0 4 4 0 8 0 unpcb 144 42 0 27 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 17 0 13 1 0 1 1 0 8 0 arp 96 18 0 0 1 0 1 1 0 8 0 inpcb 328 79 0 69 2 0 2 2 0 8 1 nd6 112 24 0 0 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 pfstlim 224 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 452 0 0 29 0 29 29 0 8 0 art_table 40 453 0 0 5 0 5 5 0 8 0 art_node 32 111 0 11 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1 semapl 72 2 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1647 0 188 92 0 92 92 0 8 0 ffsino 256 1647 0 188 92 0 92 92 0 8 0 nchpl 144 1918 0 230 63 0 63 63 0 8 0 vnodes 216 1740 0 0 97 0 97 97 0 8 0 namei 1024 5507 0 5507 2 0 2 2 0 8 2 kstatmem 264 25 0 2 2 0 2 2 0 8 0 scxspl 216 6413 0 6413 5 0 5 5 1 8 5 plimitpl 152 29 0 13 1 0 1 1 0 8 0 sigapl 424 509 0 467 6 0 6 6 0 8 1 knotepl 120 4653 0 4606 2 0 2 2 0 8 0 kqueuepl 184 24 0 15 1 0 1 1 0 8 0 pipepl 304 122 0 95 3 0 3 3 0 8 0 fdescpl 448 496 0 467 5 0 5 5 0 8 1 filepl 120 1566 0 1358 7 0 7 7 0 8 0 lockfpl 104 12 0 10 1 0 1 1 0 8 0 lockfspl 48 7 0 5 1 0 1 1 0 8 0 sessionpl 144 23 0 15 1 0 1 1 0 8 0 pgrppl 48 31 0 15 1 0 1 1 0 8 0 ucredpl 104 85 0 74 1 0 1 1 0 8 0 zombiepl 144 467 0 467 1 0 1 1 0 8 1 processpl 1152 509 0 467 4 0 4 4 0 8 0 procpl 664 592 0 544 5 0 5 5 0 8 0 sockpl 552 163 0 135 3 0 3 3 0 8 1 mcl64k 65536 1 0 1 1 0 1 1 0 8 1 mcl16k 16384 9 0 9 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl9k128 9344 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 33 0 32 1 0 1 1 0 8 0 mcl4k 4096 2567 0 2516 14 0 14 14 0 8 7 mcl2k 2048 115 0 115 3 0 3 3 0 8 3 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 4964 0 4833 20 0 20 20 0 8 3 bufpl 272 2311 0 102 148 0 148 148 0 8 0 anonpl 24 84571 0 81683 20 0 20 20 0 88 1 amapchunkpl 152 9549 0 9118 18 0 18 18 0 158 1 amappl16 200 1167 0 1147 4 0 4 4 0 8 2 amappl15 192 1 0 1 1 0 1 1 0 8 1 amappl14 184 412 0 411 1 0 1 1 0 8 0 amappl13 176 115 0 105 1 0 1 1 0 8 0 amappl12 168 729 0 702 2 0 2 2 0 8 0 amappl11 160 20 0 20 1 0 1 1 0 8 1 amappl10 152 86 0 76 1 0 1 1 0 8 0 amappl9 144 383 0 383 1 0 1 1 0 8 1 amappl8 136 95 0 94 1 0 1 1 0 8 0 amappl7 128 175 0 164 1 0 1 1 0 8 0 amappl6 120 169 0 168 1 0 1 1 0 8 0 amappl5 112 92 0 85 1 0 1 1 0 8 0 amappl4 104 258 0 244 1 0 1 1 0 8 0 amappl3 96 1845 0 1744 3 0 3 3 0 8 0 amappl2 88 512 0 462 2 0 2 2 0 8 0 amappl1 80 10458 0 9911 14 0 14 14 0 8 2 amappl 88 2769 0 2622 4 0 4 4 0 92 0 uvmvnodes 80 97 0 0 2 0 2 2 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 496 0 467 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 496 0 467 1 0 1 1 0 8 0 vmmpekpl 168 5810 0 5782 2 0 2 2 0 8 0 vmmpepl 168 40089 0 38358 80 0 80 80 0 357 4 vmsppl 368 495 0 467 4 0 4 4 0 8 1 rwobjpl 40 14119 0 13207 11 0 11 11 0 8 0 pdppl 4096 998 0 934 92 14 78 78 0 8 14 pvpl 32 224148 0 216074 69 0 69 69 0 265 3 pmappl 216 495 0 467 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 513 0 14 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(ffffffff834eb32a) at panic+0x1cf sys/kern/subr_prf.c:198 ip6_getpcbopt(0,33,fffffc806bc6da00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800010fe1c08,29,33,fffffc806bc6da00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800010fe1c08,29,33,fffffc806bc6da00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff8000318ad248,ffff80003c8e90d0,ffff80003c8e9020) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff80003c8e90d0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8e90d0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3553c4f01e0, 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(ffffffff834eb32a) at panic+0x1cf sys/kern/subr_prf.c:198 ip6_getpcbopt(0,33,fffffc806bc6da00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800010fe1c08,29,33,fffffc806bc6da00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800010fe1c08,29,33,fffffc806bc6da00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff8000318ad248,ffff80003c8e90d0,ffff80003c8e9020) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff80003c8e90d0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8e90d0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3553c4f01e0, count: -8