panic: ip6_getpcbopt: unexpected option Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *293686 46438 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(ffff8000015f05c0,33,fffff58076058d00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800010fdcf28,29,33,fffff58076058d00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800010fdcf28,29,33,fffff58076058d00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002f0a1ca0,ffff80003c8dfdf0,ffff80003c8dfd40) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff80003c8dfdf0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8dfdf0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x981d6ab3a60, 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(ffff8000015f05c0,33,fffff58076058d00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800010fdcf28,29,33,fffff58076058d00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800010fdcf28,29,33,fffff58076058d00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002f0a1ca0,ffff80003c8dfdf0,ffff80003c8dfd40) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff80003c8dfdf0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8dfdf0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x981d6ab3a60, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c8dfa70 rbx 0xfffff5806b9e3900 rdx 0xffff8000015e5200 rcx 0 rax 0xffff80002f0a1ca0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x715775792a4a1605 r11 0x2e165faf5c4cc00b r12 0 r13 0xffff800010fdcf28 r14 0 r15 0x1 rip 0xffffffff829fcc95 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c8dfa60 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=293686 pid=46438 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=0xffff80002f0a14d8,0xffffffff83a76958 process=0xffff807fffff9698 user=0xffff80003c8da000, vmspace=0xfffff5804cc93468 estcpu=0, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 46438 126299 6331 0 2 0 syz-executor *46438 293686 6331 0 7 0x4000000 syz-executor 63069 269862 27878 0 2 0 syz-executor 63069 50066 27878 0 2 0x4000000 syz-executor 93175 372017 34781 0 2 0 syz-executor 93175 84071 34781 0 3 0x4000080 bpf syz-executor 35410 251385 10363 0 2 0 syz-executor 35410 403858 10363 0 3 0x4000080 fsleep syz-executor 87993 255854 73987 0 2 0 syz-executor 87993 303009 73987 0 3 0x4000080 fsleep syz-executor 85949 505960 53987 0 2 0x82000 syz-executor 85949 335611 53987 0 3 0x4002000 suspend syz-executor 28767 204811 30302 0 2 0 syz-executor 28767 53490 30302 0 3 0x4000080 fsleep syz-executor 33552 274096 33683 0 2 0 syz-executor 33552 19970 33683 0 3 0x4000080 fsleep syz-executor 53987 514313 25194 0 3 0x82 nanoslp syz-executor 73987 255046 25194 0 3 0x82 nanoslp syz-executor 6331 277511 25194 0 3 0x82 nanoslp syz-executor 34781 510562 25194 0 3 0x82 nanoslp syz-executor 30302 237722 25194 0 3 0x82 nanoslp syz-executor 10363 215391 25194 0 3 0x82 nanoslp syz-executor 33683 367511 25194 0 3 0x82 nanoslp syz-executor 27878 485930 25194 0 3 0x82 nanoslp syz-executor 25194 160427 1 0 3 0x82 kqread syz-executor 91169 522332 18048 0 3 0x98 kqread sshd-session 18048 22138 19433 0 3 0x92 kqread sshd-session 89088 242701 1 0 2 0x102803 getty 19433 281702 1 0 2 0x2808 sshd 45793 81300 89671 73 3 0x1100090 kqread syslogd 89671 96452 1 0 2 0x102802 syslogd 86579 20334 1 0 2 0x102800 resolvd 28783 371266 44732 77 3 0x100092 kqread dhcpleased 87477 90285 44732 77 3 0x100092 kqread dhcpleased 44732 351670 1 0 2 0x2800 dhcpleased 54419 291838 0 0 3 0x14200 bored smr 8449 167411 0 0 2 0x14200 zerothread 68790 518112 0 0 3 0x14200 aiodoned aiodoned 33365 169845 0 0 3 0x14200 syncer update 97392 75720 0 0 3 0x14200 cleaner cleaner 23456 38533 0 0 3 0x14200 reaper reaper 43911 512057 0 0 3 0x14200 pgdaemon pagedaemon 50642 450868 0 0 3 0x14200 bored viomb 7387 338212 0 0 3 0x40014200 acpi0 acpi0 87462 504598 0 0 3 0x14200 bored softnet0 35423 92444 0 0 3 0x14200 smrbar systqmp 84023 285914 0 0 3 0x14200 bored systq 2432 464548 0 0 3 0x40014200 tmoslp softclock 44773 89090 0 0 3 0x40014200 idle0 1 58897 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 11038 12177K 12177K 166960K 12128 0 pcb 18 12K 12K 166960K 18 0 rtable 221 6K 6K 166960K 367 0 pf 33 13K 14K 166960K 35 0 ifaddr 40 6K 7K 166960K 45 0 ifgroup 54 2K 2K 166960K 54 0 sysctl 1 1K 9K 166960K 5 0 counters 34 17K 17K 166960K 34 0 ioctlops 0 0K 4K 166960K 33 0 iov 0 0K 8K 166960K 2 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1291 81K 81K 166960K 1362 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 11 1K 1K 166960K 11 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 93K 166960K 160 0 proc 59 59K 108K 166960K 500 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 88 6K 7K 166960K 99 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 37 175K 175K 166960K 37 0 exec 0 0K 1K 166960K 368 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 224 144K 166K 166960K 3121 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 38 76K 94K 166960K 1260 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 1 0 NDP 26 1K 2K 166960K 28 0 temp 39 9138K 9141K 166960K 3630 0 kqueue 13 20K 20K 166960K 25 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 38 0 35 1 0 1 1 0 8 0 rtentry 136 111 0 12 4 0 4 4 0 8 0 unpcb 144 39 0 24 1 0 1 1 0 8 0 syncache 336 5 0 5 1 0 1 1 0 8 1 tcpcb 736 13 0 6 1 0 1 1 0 8 0 arp 96 18 0 2 1 0 1 1 0 8 0 ipq 40 1 0 1 1 0 1 1 0 8 1 ipqe 40 2 0 2 1 0 1 1 0 8 1 inpcb 328 66 0 53 2 0 2 2 0 8 0 nd6 112 24 0 3 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 pfstscr 40 2 0 0 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 2 0 0 1 0 1 1 0 8 0 pfstate 384 1 0 0 1 0 1 1 0 8 0 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 semupl 112 3 0 3 1 0 1 1 0 8 1 semapl 72 9 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1589 0 120 92 0 92 92 0 8 0 ffsino 256 1589 0 120 92 0 92 92 0 8 0 nchpl 144 1798 0 108 63 0 63 63 0 8 0 vnodes 216 1678 0 0 94 0 94 94 0 8 0 namei 1024 5270 0 5264 3 0 3 3 0 8 1 kstatmem 264 25 0 0 2 0 2 2 0 8 0 scxspl 216 6260 0 6260 4 0 4 4 1 8 4 plimitpl 152 29 0 13 1 0 1 1 0 8 0 sigapl 424 455 0 413 6 0 6 6 0 8 1 knotepl 120 2858 0 2811 2 0 2 2 0 8 0 kqueuepl 184 22 0 12 1 0 1 1 0 8 0 pipepl 304 123 0 96 3 0 3 3 0 8 0 fdescpl 448 442 0 413 5 0 5 5 0 8 1 filepl 120 1479 0 1264 7 0 7 7 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 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 93 0 77 1 0 1 1 0 8 0 zombiepl 144 413 0 413 1 0 1 1 0 8 1 processpl 1152 455 0 413 4 0 4 4 0 8 0 procpl 664 486 0 436 5 0 5 5 0 8 0 sockpl 552 143 0 112 3 0 3 3 0 8 0 mcl64k 65536 7 0 7 1 0 1 1 0 8 1 mcl16k 16384 4 0 4 1 0 1 1 0 8 1 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl9k128 9344 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 14 0 14 1 0 1 1 0 8 1 mcl4k 4096 2492 0 2437 14 0 14 14 0 8 6 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 130 0 130 1 0 1 1 0 8 1 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 4363 0 4225 10 0 10 10 0 8 0 bufpl 272 2429 0 102 156 0 156 156 0 8 0 anonpl 24 86309 0 83610 44 0 44 44 0 88 21 amapchunkpl 152 8640 0 8193 31 0 31 31 0 158 10 amappl16 200 1177 0 1157 4 0 4 4 0 8 2 amappl15 192 2 0 2 1 0 1 1 0 8 1 amappl14 184 440 0 440 1 0 1 1 0 8 1 amappl13 176 115 0 105 1 0 1 1 0 8 0 amappl12 168 684 0 655 2 0 2 2 0 8 0 amappl11 160 4 0 4 1 0 1 1 0 8 1 amappl10 152 59 0 49 1 0 1 1 0 8 0 amappl9 144 271 0 271 1 0 1 1 0 8 1 amappl8 136 92 0 91 1 0 1 1 0 8 0 amappl7 128 138 0 131 1 0 1 1 0 8 0 amappl6 120 150 0 149 1 0 1 1 0 8 0 amappl5 112 93 0 86 1 0 1 1 0 8 0 amappl4 104 266 0 251 1 0 1 1 0 8 0 amappl3 96 1537 0 1436 3 0 3 3 0 8 0 amappl2 88 521 0 485 2 0 2 2 0 8 0 amappl1 80 10185 0 9752 13 0 13 13 0 8 0 amappl 88 2404 0 2250 4 0 4 4 0 92 0 uvmvnodes 80 99 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 442 0 413 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 442 0 413 1 0 1 1 0 8 0 vmmpekpl 168 5526 0 5495 2 0 2 2 0 8 0 vmmpepl 168 37175 0 35554 79 0 79 79 0 357 2 vmsppl 368 441 0 413 4 0 4 4 0 8 1 rwobjpl 40 13702 0 12931 11 0 11 11 0 8 1 pdppl 4096 890 0 826 94 14 80 80 0 8 16 pvpl 32 213767 0 204866 114 0 114 114 0 265 34 pmappl 216 441 0 413 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 512 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(ffff8000015f05c0,33,fffff58076058d00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800010fdcf28,29,33,fffff58076058d00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800010fdcf28,29,33,fffff58076058d00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002f0a1ca0,ffff80003c8dfdf0,ffff80003c8dfd40) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff80003c8dfdf0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8dfdf0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x981d6ab3a60, 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(ffff8000015f05c0,33,fffff58076058d00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800010fdcf28,29,33,fffff58076058d00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800010fdcf28,29,33,fffff58076058d00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002f0a1ca0,ffff80003c8dfdf0,ffff80003c8dfd40) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff80003c8dfdf0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8dfdf0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x981d6ab3a60, count: -8