panic: ip6_getpcbopt: unexpected option Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *493526 42095 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(ffff8000015f7940,33,fffff50067c20b00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800010fe17b8,29,33,fffff50067c20b00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800010fe17b8,29,33,fffff50067c20b00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002a75b4d8,ffff80003c8efac0,ffff80003c8efa10) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff80003c8efac0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8efac0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa93fb7bd0f0, 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(ffff8000015f7940,33,fffff50067c20b00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800010fe17b8,29,33,fffff50067c20b00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800010fe17b8,29,33,fffff50067c20b00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002a75b4d8,ffff80003c8efac0,ffff80003c8efa10) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff80003c8efac0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8efac0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa93fb7bd0f0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003c8ef740 rbx 0xfffff50070807148 rdx 0xffff8000015aa640 rcx 0 rax 0xffff80002a75b4d8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x92a236b230e9e6fd r11 0xe8cfe38150785d1 r12 0 r13 0xffff800010fe17b8 r14 0 r15 0x1 rip 0xffffffff829fcc95 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c8ef730 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=493526 pid=42095 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a76da10,0xffff80002a75a558 process=0xffff8000384cba98 user=0xffff80003c8ea000, vmspace=0xfffff500700e2e78 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 89743 106640 8389 0 2 0 syz-executor 89743 437455 8389 0 2 0x4000000 syz-executor 42095 5002 95312 0 2 0 syz-executor *42095 493526 95312 0 7 0x4000000 syz-executor 43235 517540 20949 0 2 0 syz-executor 43235 437267 20949 0 3 0x4000080 fsleep syz-executor 51828 89621 66842 0 2 0 syz-executor 51828 296343 66842 0 3 0x4000080 fsleep syz-executor 89666 109479 1407 0 3 0x80 nanoslp syz-executor 89666 170126 1407 0 3 0x4000080 ttyopn syz-executor 89666 520228 1407 0 3 0x4000080 fsleep syz-executor 50105 519481 60447 0 2 0 syz-executor 50105 320115 60447 0 3 0x4000080 fsleep syz-executor 68933 107751 30222 0 2 0 syz-executor 68933 358680 30222 0 3 0x4000080 kqread syz-executor 68933 334604 30222 0 3 0x4000080 fsleep syz-executor 464 193387 46217 0 2 0x2 ifconfig 46217 335488 99202 0 3 0x10008a sigsusp sh 99202 182674 850 0 3 0x82 wait syz-executor 20949 210437 850 0 3 0x82 nanoslp syz-executor 66842 506872 850 0 3 0x82 nanoslp syz-executor 60447 68356 850 0 3 0x82 nanoslp syz-executor 8389 249382 850 0 3 0x82 nanoslp syz-executor 30222 118845 850 0 3 0x82 nanoslp syz-executor 1407 196868 850 0 3 0x82 nanoslp syz-executor 95312 430921 850 0 3 0x82 nanoslp syz-executor 850 147221 99512 0 3 0x82 kqread syz-executor 99512 70792 20388 0 3 0x10008a sigsusp ksh 20388 208910 75051 0 3 0x98 kqread sshd-session 75051 404379 66686 0 3 0x92 kqread sshd-session 1273 147632 1 0 3 0x100083 ttyin getty 66686 300042 1 0 3 0x88 kqread sshd 92580 401335 84880 73 3 0x1100090 kqread syslogd 84880 161072 1 0 3 0x100082 sbwait syslogd 11343 356779 1 0 3 0x100080 kqread resolvd 15012 13000 30004 77 3 0x100092 kqread dhcpleased 84212 513132 30004 77 3 0x100092 kqread dhcpleased 30004 319215 1 0 3 0x80 kqread dhcpleased 28189 308700 0 0 3 0x14200 bored smr 51141 449434 0 0 2 0x14200 zerothread 98064 177960 0 0 3 0x14200 aiodoned aiodoned 59109 436300 0 0 3 0x14200 syncer update 34951 290432 0 0 3 0x14200 cleaner cleaner 15163 291044 0 0 3 0x14200 reaper reaper 17943 518064 0 0 3 0x14200 pgdaemon pagedaemon 29736 474649 0 0 3 0x14200 bored viomb 20557 302930 0 0 3 0x40014200 acpi0 acpi0 21426 257156 0 0 3 0x14200 bored softnet0 30382 137517 0 0 3 0x14200 bored systqmp 37147 401665 0 0 3 0x14200 bored systq 82540 200350 0 0 3 0x40014200 tmoslp softclock 8333 31342 0 0 3 0x40014200 idle0 1 139504 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 11032 12104K 12176K 166960K 12133 0 pcb 18 12K 12K 166960K 26 0 rtable 215 6K 6K 166960K 361 0 pf 32 13K 14K 166960K 41 0 ifaddr 39 6K 7K 166960K 47 0 ifgroup 54 2K 2K 166960K 63 0 sysctl 1 1K 9K 166960K 5 0 counters 34 17K 18K 166960K 39 0 ioctlops 0 0K 4K 166960K 35 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1288 81K 81K 166960K 1364 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 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 19 69K 93K 166960K 159 0 sigio 0 0K 0K 166960K 1 0 proc 59 59K 91K 166960K 490 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 4 0 in_multi 79 5K 6K 166960K 92 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 43 201K 201K 166960K 43 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 213 143K 149K 166960K 2914 0 UVM aobj 5 2K 2K 166960K 5 0 pinsyscall 40 80K 93K 166960K 1264 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 3 0 NDP 24 1K 1K 166960K 29 0 temp 35 9106K 9112K 166960K 3654 0 kqueue 13 20K 24K 166960K 28 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 36 0 33 1 0 1 1 0 8 0 rtentry 136 107 0 13 4 0 4 4 0 8 0 unpcb 144 45 0 30 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 13 0 8 1 0 1 1 0 8 0 arp 96 18 0 2 1 0 1 1 0 8 0 inpcb 328 77 0 67 2 0 2 2 0 8 1 nd6 112 21 0 3 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 4 0 4 1 0 1 1 0 8 1 pfrule 1360 1 0 1 1 0 1 1 0 8 1 rttmr 136 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 418 0 44 27 0 27 27 0 8 0 art_table 40 420 0 44 5 0 5 5 0 8 0 art_node 32 107 0 21 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1591 0 132 92 0 92 92 0 8 0 ffsino 256 1591 0 132 92 0 92 92 0 8 0 nchpl 144 1814 0 125 63 0 63 63 0 8 0 rtmask 32 2 0 2 1 0 1 1 0 8 1 vnodes 216 1679 0 0 94 0 94 94 0 8 0 namei 1024 5296 0 5296 1 0 1 1 0 8 1 kstatmem 264 31 0 6 3 0 3 3 0 8 1 scxspl 216 6206 0 6206 3 0 3 3 1 8 3 plimitpl 152 29 0 13 1 0 1 1 0 8 0 sigapl 424 457 0 413 6 0 6 6 0 8 1 knotepl 120 3744 0 3697 10 0 10 10 0 8 8 kqueuepl 184 27 0 17 1 0 1 1 0 8 0 pipepl 304 123 0 96 3 0 3 3 0 8 0 fdescpl 448 444 0 413 5 0 5 5 0 8 1 filepl 120 1512 0 1300 7 0 7 7 0 8 0 lockfpl 104 10 0 6 1 0 1 1 0 8 0 lockfspl 48 7 0 3 1 0 1 1 0 8 0 sessionpl 144 24 0 16 1 0 1 1 0 8 0 pgrppl 48 32 0 16 1 0 1 1 0 8 0 ucredpl 104 97 0 86 1 0 1 1 0 8 0 zombiepl 144 413 0 413 1 0 1 1 0 8 1 processpl 1152 457 0 413 4 0 4 4 0 8 0 procpl 664 491 0 438 5 0 5 5 0 8 0 sockpl 552 158 0 130 3 0 3 3 0 8 1 mcl64k 65536 12 0 12 1 0 1 1 0 8 1 mcl16k 16384 5 0 5 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 9 0 9 1 0 1 1 0 8 1 mcl4k 4096 2514 0 2462 14 0 14 14 0 8 7 mcl2k 2048 130 0 130 1 0 1 1 0 8 1 mtagpl 96 8 0 8 1 0 1 1 0 8 1 mbufpl 256 4549 0 4425 13 0 13 13 0 8 4 bufpl 272 2325 0 102 149 0 149 149 0 8 0 anonpl 24 79782 0 76650 21 0 21 21 0 88 0 amapchunkpl 152 7955 0 7505 18 0 18 18 0 158 0 amappl16 200 1136 0 1118 4 0 4 4 0 8 2 amappl15 192 2 0 2 1 0 1 1 0 8 1 amappl14 184 409 0 407 1 0 1 1 0 8 0 amappl13 176 116 0 106 1 0 1 1 0 8 0 amappl12 168 685 0 656 2 0 2 2 0 8 0 amappl11 160 3 0 3 1 0 1 1 0 8 1 amappl10 152 58 0 47 1 0 1 1 0 8 0 amappl9 144 270 0 269 1 0 1 1 0 8 0 amappl8 136 95 0 94 1 0 1 1 0 8 0 amappl7 128 141 0 130 1 0 1 1 0 8 0 amappl6 120 145 0 142 1 0 1 1 0 8 0 amappl5 112 91 0 84 1 0 1 1 0 8 0 amappl4 104 262 0 248 1 0 1 1 0 8 0 amappl3 96 1529 0 1423 3 0 3 3 0 8 0 amappl2 88 524 0 472 2 0 2 2 0 8 0 amappl1 80 10215 0 9669 12 0 12 12 0 8 0 amappl 88 2222 0 2071 4 0 4 4 0 92 0 uvmvnodes 80 98 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 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 444 0 413 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 444 0 413 1 0 1 1 0 8 0 vmmpekpl 168 5501 0 5476 2 0 2 2 0 8 0 vmmpepl 168 36802 0 35036 79 0 79 79 0 357 2 vmsppl 368 443 0 413 4 0 4 4 0 8 1 rwobjpl 40 13528 0 12603 10 0 10 10 0 8 0 pdppl 4096 894 0 826 94 14 80 80 0 8 12 pvpl 32 206853 0 198191 78 0 78 78 0 265 4 pmappl 216 443 0 413 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 506 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(ffff8000015f7940,33,fffff50067c20b00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800010fe17b8,29,33,fffff50067c20b00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800010fe17b8,29,33,fffff50067c20b00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002a75b4d8,ffff80003c8efac0,ffff80003c8efa10) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff80003c8efac0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8efac0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa93fb7bd0f0, 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(ffff8000015f7940,33,fffff50067c20b00) at ip6_getpcbopt+0x3e3 ip6_ctloutput(0,ffff800010fe17b8,29,33,fffff50067c20b00) at ip6_ctloutput+0xfa9 sys/netinet6/ip6_output.c:1487 sogetopt(ffff800010fe17b8,29,33,fffff50067c20b00) at sogetopt+0x128 sys/kern/uipc_socket.c:2074 sys_getsockopt(ffff80002a75b4d8,ffff80003c8efac0,ffff80003c8efa10) at sys_getsockopt+0x1eb sys/kern/uipc_syscalls.c:1263 syscall(ffff80003c8efac0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8efac0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa93fb7bd0f0, count: -8