panic: ip6_getpcbopt: unexpected option Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *290334 85939 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,fffff7006cad3c00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800001602460,29,33,fffff7006cad3c00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800001602460,29,33,fffff7006cad3c00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002a76c7e0,ffff80003c8e9e80,ffff80003c8e9dd0) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff80003c8e9e80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8e9e80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbe63b7d1c70, 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,fffff7006cad3c00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800001602460,29,33,fffff7006cad3c00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800001602460,29,33,fffff7006cad3c00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002a76c7e0,ffff80003c8e9e80,ffff80003c8e9dd0) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff80003c8e9e80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8e9e80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbe63b7d1c70, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c8e9b00 rbx 0xfffff70067b22e40 rdx 0xffff8000015b59c0 rcx 0 rax 0xffff80002a76c7e0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x16b0dceecd4eb9e1 r11 0x741fa37039cda592 r12 0 r13 0xffff800001602460 r14 0 r15 0x1 rip 0xffffffff81ef9a45 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c8e9af0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=290334 pid=85939 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=0xffff80002a76c548,0xffff80002a76d4e8 process=0xffff807fffff8918 user=0xffff80003c8e4000, vmspace=0xfffff7006be07740 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 80976 244177 30006 0 2 0 syz-executor 80976 100881 30006 0 2 0x4000000 syz-executor 83006 87091 78654 0 2 0 syz-executor 85939 58405 19922 0 2 0 syz-executor *85939 290334 19922 0 7 0x4000000 syz-executor 95042 110176 11640 0 2 0 syz-executor 97996 462683 89999 0 2 0xc80 syz-executor 97996 415783 89999 0 3 0x4000080 fsleep syz-executor 97996 44210 89999 0 3 0x4000080 fsleep syz-executor 95524 228741 46148 0 2 0 syz-executor 95524 395108 46148 0 2 0x4000000 syz-executor 95524 509003 46148 0 3 0x4000000 inode syz-executor 95524 342794 46148 0 3 0x4000000 inode syz-executor 45118 508095 26115 0 2 0 syz-executor 45118 335665 26115 0 2 0x4000000 syz-executor 83819 293201 93140 0 2 0 syz-executor 83819 195661 93140 0 3 0x4000080 fsleep syz-executor 78654 491551 37985 0 3 0x82 nanoslp syz-executor 93140 387714 37985 0 3 0x82 nanoslp syz-executor 26115 84445 37985 0 3 0x82 nanoslp syz-executor 46148 329872 37985 0 3 0x82 nanoslp syz-executor 30006 257618 37985 0 3 0x82 nanoslp syz-executor 11640 303264 37985 0 3 0x82 nanoslp syz-executor 19922 20400 37985 0 3 0x82 nanoslp syz-executor 89999 229265 37985 0 2 0xc82 syz-executor 37985 190296 19580 0 3 0x82 kqread syz-executor 19580 350379 50975 0 3 0x10008a sigsusp ksh 50975 371212 87230 0 3 0x98 kqread sshd-session 87230 7410 60289 0 3 0x92 kqread sshd-session 59477 232248 1 0 3 0x100083 ttyin getty 60289 444308 1 0 3 0x88 kqread sshd 61210 522486 77883 73 3 0x1100090 kqread syslogd 77883 379471 1 0 3 0x100082 sbwait syslogd 70413 62279 1 0 3 0x100080 kqread resolvd 57338 466033 72401 77 3 0x100092 kqread dhcpleased 67846 211861 72401 77 3 0x100092 kqread dhcpleased 72401 248868 1 0 3 0x80 kqread dhcpleased 71661 207916 0 0 3 0x14200 bored smr 47730 247905 0 0 2 0x14200 zerothread 70233 446426 0 0 3 0x14200 aiodoned aiodoned 387 237131 0 0 3 0x14200 syncer update 24937 452260 0 0 3 0x14200 cleaner cleaner 16681 71302 0 0 3 0x14200 reaper reaper 43111 33415 0 0 3 0x14200 pgdaemon pagedaemon 93221 41641 0 0 3 0x14200 bored viomb 5232 173279 0 0 3 0x40014200 acpi0 acpi0 60403 135281 0 0 3 0x14200 bored softnet0 89731 397826 0 0 3 0x14200 bored systqmp 96183 494704 0 0 3 0x14200 bored systq 85569 457801 0 0 3 0x40014200 tmoslp softclock 12370 101564 0 0 3 0x40014200 idle0 1 131340 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 11034 12171K 13240K 166960K 12699 0 pcb 18 14K 15K 166960K 68 0 rtable 227 6K 7K 166960K 383 0 pf 31 13K 14K 166960K 37 0 ifaddr 43 7K 7K 166960K 49 0 ifgroup 50 2K 2K 166960K 57 0 sysctl 4 1K 9K 166960K 10 0 counters 33 17K 17K 166960K 36 0 ioctlops 0 0K 4K 166960K 57 0 iov 0 0K 8K 166960K 4 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1424 90K 90K 166960K 1600 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 80 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 236K 166960K 291 0 sigio 0 0K 0K 166960K 1 0 proc 60 59K 91K 166960K 509 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 18 0 in_multi 102 7K 7K 166960K 112 0 ether_multi 1 0K 0K 166960K 3 0 mrt 0 0K 0K 166960K 10 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 414 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 215 158K 166K 166960K 4167 0 UVM aobj 7 2K 2K 166960K 8 0 pinsyscall 39 78K 93K 166960K 1381 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 11 0K 2K 166960K 29 0 temp 38 9110K 9182K 166960K 7278 0 kqueue 13 20K 33K 166960K 52 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 47 0 44 1 0 1 1 0 8 0 rtentry 136 115 0 14 4 0 4 4 0 8 0 unpcb 144 107 0 92 1 0 1 1 0 8 0 syncache 336 6 0 6 1 1 0 1 0 8 0 tcpcb 736 100 0 96 7 0 7 7 0 8 6 arp 96 18 0 0 1 0 1 1 0 8 0 inpcb 328 335 0 326 11 1 10 10 0 8 8 ip6q 72 1 0 0 1 0 1 1 0 8 0 ip6af 40 1 0 0 1 0 1 1 0 8 0 nd6 112 24 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 2 0 2 1 1 0 1 0 8 0 pppxif 1416 1 0 1 1 1 0 1 0 8 0 pfstscr 40 4 0 4 1 0 1 1 0 8 1 pfstkey 128 4 0 4 1 0 1 1 0 8 1 pfstate 384 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 495 0 53 31 0 31 31 0 8 1 art_table 40 496 0 53 5 0 5 5 0 8 0 art_node 32 114 0 24 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 1 0 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 72 78 0 68 1 0 1 1 0 8 0 shmpl 112 5 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1818 0 358 92 0 92 92 0 8 0 ffsino 256 1818 0 358 92 0 92 92 0 8 0 nchpl 144 2202 0 506 64 0 64 64 0 8 0 vnodes 216 2092 0 0 117 0 117 117 0 8 0 namei 1024 7463 0 7460 3 2 1 2 0 8 0 kstatmem 264 27 0 4 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 1 0 1 0 8 0 scxspl 216 7461 0 7461 3 2 1 3 1 8 1 plimitpl 152 50 0 33 1 0 1 1 0 8 0 sigapl 424 569 0 526 6 1 5 6 0 8 0 knotepl 120 9206 0 9159 13 4 9 10 0 8 6 kqueuepl 184 71 0 62 1 0 1 1 0 8 0 pipepl 304 133 0 106 3 0 3 3 0 8 0 fdescpl 448 556 0 526 5 1 4 5 0 8 0 filepl 120 2819 0 2609 15 0 15 15 0 8 8 lockfpl 104 204 0 202 2 0 2 2 0 8 1 lockfspl 48 96 0 94 1 0 1 1 0 8 0 sessionpl 144 30 0 22 1 0 1 1 0 8 0 pgrppl 48 39 0 23 1 0 1 1 0 8 0 ucredpl 104 247 0 236 1 0 1 1 0 8 0 zombiepl 144 526 0 526 2 1 1 1 0 8 1 processpl 1152 569 0 526 4 0 4 4 0 8 0 procpl 664 780 0 728 5 0 5 5 0 8 0 sockpl 552 499 0 472 11 0 11 11 0 8 8 mcl64k 65536 11 0 11 2 1 1 1 0 8 1 mcl16k 16384 6 0 6 1 1 0 1 0 8 0 mcl9k128 9344 2 0 2 1 1 0 1 0 8 0 mcl8k 8192 5 0 4 2 1 1 1 0 8 0 mcl4k 4096 2675 0 2622 15 7 8 14 0 8 1 mcl2k 2048 237 0 237 2 1 1 1 0 8 1 mtagpl 96 10 0 9 2 1 1 1 0 8 0 mbufpl 256 5746 0 5592 14 1 13 13 0 8 2 bufpl 272 2649 0 103 170 0 170 170 0 8 0 anonpl 24 111191 0 107598 55 23 32 44 0 88 10 amapchunkpl 152 12563 0 12115 33 8 25 27 0 158 5 amappl16 200 2184 0 2126 16 12 4 14 0 8 0 amappl15 192 8 0 8 1 1 0 1 0 8 0 amappl14 184 415 0 414 1 0 1 1 0 8 0 amappl13 176 116 0 106 1 0 1 1 0 8 0 amappl12 168 793 0 766 2 0 2 2 0 8 0 amappl11 160 7 0 7 1 1 0 1 0 8 0 amappl10 152 71 0 61 1 0 1 1 0 8 0 amappl9 144 267 0 267 1 1 0 1 0 8 0 amappl8 136 97 0 95 1 0 1 1 0 8 0 amappl7 128 144 0 133 1 0 1 1 0 8 0 amappl6 120 152 0 151 1 0 1 1 0 8 0 amappl5 112 92 0 84 1 0 1 1 0 8 0 amappl4 104 262 0 247 1 0 1 1 0 8 0 amappl3 96 2298 0 2196 4 0 4 4 0 8 1 amappl2 88 548 0 495 2 0 2 2 0 8 0 amappl1 80 10708 0 10166 13 1 12 13 0 8 0 amappl 88 3448 0 3297 4 0 4 4 0 92 0 uvmvnodes 80 104 0 0 3 0 3 3 0 8 0 dma65536 65536 1 0 1 1 1 0 1 0 8 0 dma32768 32768 65 0 65 1 0 1 1 0 8 1 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 7 0 1 1 0 1 1 0 8 0 uaddrrnd 24 556 0 526 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 556 0 526 1 0 1 1 0 8 0 vmmpekpl 168 6296 0 6270 2 0 2 2 0 8 0 vmmpepl 168 44601 0 42786 91 10 81 88 0 357 0 vmsppl 368 555 0 526 4 1 3 4 0 8 0 rwobjpl 40 16017 0 15050 13 2 11 13 0 8 0 pdppl 4096 1118 0 1052 96 30 66 80 0 8 0 pvpl 32 270590 0 261670 122 29 93 105 0 265 16 pmappl 216 555 0 526 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 546 0 50 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,fffff7006cad3c00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800001602460,29,33,fffff7006cad3c00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800001602460,29,33,fffff7006cad3c00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002a76c7e0,ffff80003c8e9e80,ffff80003c8e9dd0) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff80003c8e9e80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8e9e80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbe63b7d1c70, 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,fffff7006cad3c00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800001602460,29,33,fffff7006cad3c00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800001602460,29,33,fffff7006cad3c00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002a76c7e0,ffff80003c8e9e80,ffff80003c8e9dd0) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff80003c8e9e80) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8e9e80) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbe63b7d1c70, count: -8