uvm_fault: ip6_freemoptions

Status: upstream: reported on 2026/07/17 06:37
Reported-by: syzbot+06aeb6036c2434fc1cd8@syzkaller.appspotmail.com
First crash: 34d, last: 2d11h

Sample crash report:
uvm_fault(0xffffffff83a0fac8, 0xffff800000002008, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at      ip6_freemoptions+0x65:  movq    0x8(%r15),%r13
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
ip6_freemoptions(ffff80000002e450) at ip6_freemoptions+0x65 sys/netinet6/ip6_output.c:2147
in_pcbdetach(fffffa006d9ca900) at in_pcbdetach+0x122 sys/netinet/in_pcb.c:608
udp_detach(ffff8000016399f8) at udp_detach+0x5a sys/netinet/udp_usrreq.c:1158
soclose(ffff8000016399f8,0) at soclose+0xad pru_detach sys/sys/protosw.h:281 [inline]
soclose(ffff8000016399f8,0) at soclose+0xad sys/kern/uipc_socket.c:403
soo_close(fffffa006d6a7448,ffff80003c8fb248) at soo_close+0x56 sys/kern/sys_socket.c:-1
fdrop(fffffa006d6a7448,ffff80003c8fb248) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(fffffa006d6a7448,ffff80003c8fb248) at closef+0x190 sys/kern/kern_descrip.c:1265
fdfree(ffff80003c8fb248) at fdfree+0x115 sys/kern/kern_descrip.c:1196
exit1(ffff80003c8fb248,0,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff80003c8fb248,ffff8000380e1ae0,ffff8000380e1a30) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff8000380e1ae0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff8000380e1ae0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x735e280a18c0, count: 3
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: uvm_fault(0xffffffff83a0fac8, 0xffff800000002008, 0, 1) -> e
ddb> show kasan
No such command
ddb> trace
ip6_freemoptions(ffff80000002e450) at ip6_freemoptions+0x65 sys/netinet6/ip6_output.c:2147
in_pcbdetach(fffffa006d9ca900) at in_pcbdetach+0x122 sys/netinet/in_pcb.c:608
udp_detach(ffff8000016399f8) at udp_detach+0x5a sys/netinet/udp_usrreq.c:1158
soclose(ffff8000016399f8,0) at soclose+0xad pru_detach sys/sys/protosw.h:281 [inline]
soclose(ffff8000016399f8,0) at soclose+0xad sys/kern/uipc_socket.c:403
soo_close(fffffa006d6a7448,ffff80003c8fb248) at soo_close+0x56 sys/kern/sys_socket.c:-1
fdrop(fffffa006d6a7448,ffff80003c8fb248) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(fffffa006d6a7448,ffff80003c8fb248) at closef+0x190 sys/kern/kern_descrip.c:1265
fdfree(ffff80003c8fb248) at fdfree+0x115 sys/kern/kern_descrip.c:1196
exit1(ffff80003c8fb248,0,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff80003c8fb248,ffff8000380e1ae0,ffff8000380e1a30) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff8000380e1ae0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff8000380e1ae0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x735e280a18c0, count: -12
ddb> show registers
rdi               0xffff80000002e450
rsi                            0x100
rbp               0xffff8000380e1750
rbx                              0x5
rdx                                0
rcx                              0x1
rax               0xffff80003c8fb248
r8                                 0
r9                                 0
r10                0x698a784befa9888
r11                0xfc7950a40498fbe
r12                                0
r13                            0x100
r14               0xffff80000002e450
r15               0xffff800000002000
rip               0xffffffff81d00425    ip6_freemoptions+0x65
cs                               0x8
rflags                       0x10286    __ALIGN_SIZE+0xf286
rsp               0xffff8000380e1710
ss                              0x10
ip6_freemoptions+0x65:  movq    0x8(%r15),%r13
ddb> show proc
PROC (syz-executor) tid=37042 pid=39867 tcnt=0 stat=onproc
    flags process=1008<EXITING,SINGLEEXIT> proc=2000<WEXIT>
    runpri=32, usrpri=57, slppri=32, nice=20
    wchan=0x0, wmesg=, ps_single=0xffff80003c8fb248 scnt=-1 ecnt=1
    forw=0xffffffffffffffff, list=0xffff80002a77c2b0,0xffffffff83aa5308
    process=0xffff800045ff8d98 user=0xffff8000380dc000, vmspace=0xfffffa006d0c25d8
    estcpu=7, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID   UID  S      PRLAGS     PFLAGS WAIT      COMMAND
 83124  255841  40590     0  3           0       0x80 fsleep    syz-executor
 83124  483015  40590     0  3           0  0x4000080 ttyin     syz-executor
 55638   15389  35210 60929  3        0x10       0x80 fsleep    syz-executor
 55638  320847  35210 60929  3        0x10  0x4000080 lockf     syz-executor
 19994    8903  63200     0  3           0       0x80 fsleep    syz-executor
 19994  355377  63200     0  3           0  0x4000080 lockf     syz-executor
 45245  177269  71433     0  3           0       0x80 fsleep    syz-executor
 45245  492251  71433     0  3           0  0x4000080 sbwait    syz-executor
 45245  181348  71433     0  3           0  0x4000080 fsleep    syz-executor
   763  413843  13767     0  3           0       0x80 fsleep    syz-executor
   763   81950  13767     0  3           0  0x4000080 kqread    syz-executor
 36115  380065  17878     0  3           0       0x80 fsleep    syz-executor
 36115   56253  17878     0  2           0  0x4000000           syz-executor
 99905  191596  90797     0  3         0x2       0x80 nanoslp   syz-executor
  5664  487899  90797     0  2         0x2          0           syz-executor
 17878  292104  90797     0  3         0x2       0x80 nanoslp   syz-executor
 13767  462567  90797     0  3         0x2       0x80 nanoslp   syz-executor
 71433  210468  90797     0  3         0x2       0x80 nanoslp   syz-executor
 35210  384987  90797     0  3         0x2       0x80 nanoslp   syz-executor
 63200  166784  90797     0  3         0x2       0x80 nanoslp   syz-executor
 40590  450779  90797     0  3         0x2       0x80 nanoslp   syz-executor
 90797  523579  26265     0  3         0x2       0x80 kqread    syz-executor
 26265  113625  63229     0  3    0x100002       0x88 sigsusp   ksh
 63229  260190  23968     0  3        0x10       0x88 kqread    sshd-session
 23968  441509  71996     0  3        0x12       0x80 kqread    sshd-session
 29887  385984      1     0  3    0x100003       0x80 ttyin     getty
 71996  221143      1     0  3           0       0x88 kqread    sshd
 12386  209411  80861    73  3   0x1100010       0x80 kqread    syslogd
 80861  301756      1     0  3    0x100002       0x80 sbwait    syslogd
 38090  424344      1     0  3    0x100000       0x80 kqread    resolvd
 65873  321981  68299    77  3    0x100012       0x80 kqread    dhcpleased
 13571  289896  68299    77  3    0x100012       0x80 kqread    dhcpleased
 68299  511817      1     0  3           0       0x80 kqread    dhcpleased
 80435  107798      0     0  3     0x14000      0x200 bored     smr
 95761  402879      0     0  2     0x14000      0x200           zerothread
 56772  429254      0     0  3     0x14000      0x200 aiodoned  aiodoned
 86553   64497      0     0  3     0x14000      0x200 syncer    update
 41261  137343      0     0  3     0x14000      0x200 cleaner   cleaner
   389  396647      0     0  3     0x14000      0x200 reaper    reaper
 62167  457820      0     0  3     0x14000      0x200 pgdaemon  pagedaemon
 48729  355238      0     0  3     0x14000      0x200 bored     viomb
 22681  228077      0     0  3     0x14000 0x40000200 acpi0     acpi0
 54892  291310      0     0  3     0x14000      0x200 bored     softnet0
 27902  511380      0     0  3     0x14000      0x200 bored     systqmp
 95649  331402      0     0  3     0x14000      0x200 bored     systq
 98520  236248      0     0  3     0x14000 0x40000200 tmoslp    softclock
 26701  430473      0     0  3     0x14000 0x40000200           idle0
     1  353118      0     0  3         0x2       0x80 wait      init
     0       0     -1     0  3     0x10000      0x200 scheduler swapper
ddb> show all locks
No such command
ddb> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 11043  12169K   12394K 166960K     12394        0
            pcb    20     12K      12K 166960K        38        0
         rtable   253      8K       8K 166960K       387        0
             pf    33     13K      19K 166960K        53        0
         ifaddr    44      7K       7K 166960K        46        0
        ifgroup    55      2K       2K 166960K        55        0
         sysctl     2      1K       9K 166960K         6        0
       counters    35     18K      18K 166960K        36        0
       ioctlops     0      0K       4K 166960K        49        0
            iov     0      0K      12K 166960K         4        0
          mount     1      1K       1K 166960K         1        0
            log     0      0K       0K 166960K         4        0
         vnodes  1294     81K      82K 166960K      1510        0
      UFS quota     1     32K      32K 166960K         1        0
      UFS mount     5     36K      36K 166960K         5        0
            shm     2      1K       5K 166960K         3        0
         VM map     2      1K       1K 166960K         2        0
            sem     9      0K       0K 166960K        11        0
        dirhash    12      2K       2K 166960K        18        0
           ACPI  1692    195K     286K 166960K     12470        0
      file desc    17     61K      97K 166960K       237        0
           proc    59     59K     100K 166960K       515        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     1      0K       0K 166960K         8        0
       in_multi   102      6K       6K 166960K       104        0
    ether_multi     1      0K       0K 166960K         1        0
            mrt     0      0K       0K 166960K        11        0
    ISOFS mount     1     32K      32K 166960K         1        0
  MSDOSFS mount     1     16K      16K 166960K         1        0
           ttys    73    334K     334K 166960K        73        0
           exec     0      0K       1K 166960K       373        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   224    159K     173K 166960K      3846        0
       UVM aobj     4      2K       3K 166960K         5        0
     pinsyscall    38     76K      96K 166960K      1347        0
        memdesc     1      4K       4K 166960K         1        0
    crypto data     1      1K       1K 166960K         1        0
    ip6_options     0      0K       0K 166960K         6        0
            NDP    12      0K       2K 166960K        28        0
           temp    35   9110K    9126K 166960K      4882        0
         kqueue    15     24K      28K 166960K        45        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       43    0       39     1     0     1     1     0     8    0
rtentry    136      116    0        2     4     0     4     4     0     8    0
unpcb      144       78    0       63     2     0     2     2     0     8    1
syncache   336        8    0        8     1     0     1     1     0     8    1
tcpqe       32        1    0        1     1     0     1     1     0     8    1
tcpcb      736       41    0       37     1     0     1     1     0     8    0
arp         96       21    0        0     1     0     1     1     0     8    0
ipq         40        2    0        0     1     0     1     1     0     8    0
ipqe        40       66    0       64     1     0     1     1     0     8    0
inpcb      328      124    0      113     2     0     2     2     0     8    0
nd6        112       24    0        0     1     0     1     1     0     8    0
pkpcb       40        2    0        2     1     0     1     1     0     8    1
kcovpl      48        8    0        0     1     0     1     1     0     8    0
ppxss      1072       2    0        1     1     0     1     1     0     8    0
pppxif     1416       2    0        1     1     0     1     1     0     8    0
pfrule     1360       2    0        2     1     0     1     1     0     8    1
art_heap8  4096       2    0        0     2     0     2     2     0     8    0
art_heap4  256      464    0        0    29     0    29    29     0     8    0
art_table   40      466    0        0     5     0     5     5     0     8    0
art_node    32      115    0       12     1     0     1     1     0     8    0
semupl     112        1    0        1     1     0     1     1     0     8    1
semapl      72        9    0        2     1     0     1     1     0     8    0
shmpl      112        2    0        1     1     0     1     1     0     8    0
dirhash    1024      21    0        4     3     0     3     3     0     8    0
dino2pl    256     1821    0      364    92     0    92    92     0     8    0
ffsino     256     1821    0      364    92     0    92    92     0     8    0
nchpl      144     2150    0      457    63     0    63    63     0     8    0
vnodes     216     1955    0        0   109     0   109   109     0     8    0
namei      1024    6568    0     6567     2     0     2     2     0     8    1
kstatmem   264       25    0        0     2     0     2     2     0     8    0
scxspl     216     7124    0     7124     4     0     4     4     1     8    4
plimitpl   152      109    0       91     1     0     1     1     0     8    0
sigapl     424      535    0      493     6     0     6     6     0     8    1
knotepl    120    13678    0    13596     9     0     9     9     0     8    6
kqueuepl   184       51    0       36     1     0     1     1     0     8    0
pipepl     304      132    0      105     3     0     3     3     0     8    0
fdescpl    448      522    0      493     5     0     5     5     0     8    1
filepl     120     2207    0     1979     9     0     9     9     0     8    2
lockfpl    104       58    0       51     1     0     1     1     0     8    0
lockfspl    48       26    0       21     1     0     1     1     0     8    0
sessionpl  144       29    0       21     1     0     1     1     0     8    0
pgrppl      48       38    0       22     1     0     1     1     0     8    0
ucredpl    104      394    0      382     1     0     1     1     0     8    0
zombiepl   144      494    0      493     1     0     1     1     0     8    0
processpl  1152     535    0      493     4     0     4     4     0     8    0
procpl     664      701    0      652     5     0     5     5     0     8    0
sockpl     552      252    0      220     4     0     4     4     0     8    1
mcl64k     65536      4    0        3     1     0     1     1     0     8    0
mcl16k     16384      2    0        2     1     0     1     1     0     8    1
mcl8k      8192       7    0        7     1     0     1     1     0     8    1
mcl4k      4096    2642    0     2592    14     0    14    14     0     8    7
mcl2k      2048     209    0      209     2     0     2     2     0     8    2
mextrefs    64       81    0       81     1     0     1     1     0     8    1
mtagpl      96        5    0        5     1     0     1     1     0     8    1
mbufpl     256     5487    0     5309    13     0    13    13     0     8    1
bufpl      272     2494    0      102   160     0   160   160     0     8    0
anonpl      24    93922    0    90778    44     0    44    44     0   187   21
amapchunkpl 152   11200    0    10710    27     0    27    27     0   158    6
amappl16   200     1526    0     1500    14     1    13    14     0     8   11
amappl15   192        7    0        7     1     0     1     1     0     8    1
amappl14   184      413    0      412     1     0     1     1     0     8    0
amappl13   176      117    0      107     1     0     1     1     0     8    0
amappl12   168      759    0      731     2     0     2     2     0     8    0
amappl11   160        4    0        4     1     0     1     1     0     8    1
amappl10   152      106    0       96     1     0     1     1     0     8    0
amappl9    144      276    0      276     1     0     1     1     0     8    1
amappl8    136      106    0      105     1     0     1     1     0     8    0
amappl7    128      143    0      132     1     0     1     1     0     8    0
amappl6    120      153    0      151     1     0     1     1     0     8    0
amappl5    112      110    0      102     1     0     1     1     0     8    0
amappl4    104      275    0      259     1     0     1     1     0     8    0
amappl3     96     1942    0     1845     3     0     3     3     0     8    0
amappl2     88      643    0      574     2     0     2     2     0     8    0
amappl1     80    10532    0     9986    13     0    13    13     0     8    1
amappl      88     3135    0     2974     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        4    0        1     1     0     1     1     0     8    0
uaddrrnd    24      522    0      493     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      522    0      493     1     0     1     1     0     8    0
vmmpekpl   168     6056    0     6024     2     0     2     2     0     8    0
vmmpepl    168    42221    0    40451    88     0    88    88     0   357    8
vmsppl     368      521    0      493     4     0     4     4     0     8    1
rwobjpl     40    14922    0    13979    12     0    12    12     0     8    2
pdppl      4096    1050    0      986    96    30    66    82     0     8    2
pvpl        32   240038    0   231417   117     0   117   117     0   265   36
pmappl     216      521    0      493     3     0     3     3     0     8    0
extentpl    40       45    0       27     1     0     1     1     0     8    0
phpool     112      523    0       30    15     0    15    15     0     8    0
ddb> machine ddbcpu 0
No such command
ddb> trace
ip6_freemoptions(ffff80000002e450) at ip6_freemoptions+0x65 sys/netinet6/ip6_output.c:2147
in_pcbdetach(fffffa006d9ca900) at in_pcbdetach+0x122 sys/netinet/in_pcb.c:608
udp_detach(ffff8000016399f8) at udp_detach+0x5a sys/netinet/udp_usrreq.c:1158
soclose(ffff8000016399f8,0) at soclose+0xad pru_detach sys/sys/protosw.h:281 [inline]
soclose(ffff8000016399f8,0) at soclose+0xad sys/kern/uipc_socket.c:403
soo_close(fffffa006d6a7448,ffff80003c8fb248) at soo_close+0x56 sys/kern/sys_socket.c:-1
fdrop(fffffa006d6a7448,ffff80003c8fb248) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(fffffa006d6a7448,ffff80003c8fb248) at closef+0x190 sys/kern/kern_descrip.c:1265
fdfree(ffff80003c8fb248) at fdfree+0x115 sys/kern/kern_descrip.c:1196
exit1(ffff80003c8fb248,0,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff80003c8fb248,ffff8000380e1ae0,ffff8000380e1a30) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff8000380e1ae0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff8000380e1ae0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x735e280a18c0, count: -12
ddb> machine ddbcpu 1
No such command
ddb> trace
ip6_freemoptions(ffff80000002e450) at ip6_freemoptions+0x65 sys/netinet6/ip6_output.c:2147
in_pcbdetach(fffffa006d9ca900) at in_pcbdetach+0x122 sys/netinet/in_pcb.c:608
udp_detach(ffff8000016399f8) at udp_detach+0x5a sys/netinet/udp_usrreq.c:1158
soclose(ffff8000016399f8,0) at soclose+0xad pru_detach sys/sys/protosw.h:281 [inline]
soclose(ffff8000016399f8,0) at soclose+0xad sys/kern/uipc_socket.c:403
soo_close(fffffa006d6a7448,ffff80003c8fb248) at soo_close+0x56 sys/kern/sys_socket.c:-1
fdrop(fffffa006d6a7448,ffff80003c8fb248) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(fffffa006d6a7448,ffff80003c8fb248) at closef+0x190 sys/kern/kern_descrip.c:1265
fdfree(ffff80003c8fb248) at fdfree+0x115 sys/kern/kern_descrip.c:1196
exit1(ffff80003c8fb248,0,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff80003c8fb248,ffff8000380e1ae0,ffff8000380e1a30) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff8000380e1ae0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff8000380e1ae0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x735e280a18c0, count: -12

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/18 15:13 openbsd c2844c6b7636 1e72964b .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main uvm_fault: ip6_freemoptions
2026/08/13 12:34 openbsd b8ee6bbd8ccb 4d118901 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid uvm_fault: ip6_freemoptions
2026/08/12 02:29 openbsd a47f863e5cb3 f8d35649 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main uvm_fault: ip6_freemoptions
2026/08/11 22:54 openbsd a47f863e5cb3 f8d35649 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid uvm_fault: ip6_freemoptions
2026/08/07 17:07 openbsd 03dd4c68d240 e4ef95d6 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid uvm_fault: ip6_freemoptions
2026/07/17 06:37 openbsd 5f0b8e1b9eb7 6ca2b51a .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main uvm_fault: ip6_freemoptions
* Struck through repros no longer work on HEAD.