uvm_fault: in_pcbhash_insert

Status: upstream: reported on 2026/07/21 02:01
Reported-by: syzbot+a52c5bdbd489896eb29b@syzkaller.appspotmail.com
First crash: 122d, last: 44d

Sample crash report:
uvm_fault(0xffffee806a0c32f8, 0x798dd852, 0, 2) -> e
kernel: page fault trap, code=2
Stopped at      in_pcbhash_insert+0x252:        movq    %r13,0x20(%r12)
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*164037  63656      0           0  0x4000000    0  syz-executor
in_pcbhash_insert(ffffee8075ee6a40) at in_pcbhash_insert+0x252 sys/netinet/in_pcb.c:1108
in_pcballoc(ffff800010fdecf8,ffffffff83a137d0,1) at in_pcballoc+0x23a sys/netinet/in_pcb.c:269
rip6_attach(ffff800010fdecf8,0,1) at rip6_attach+0x11c sys/netinet6/raw_ip6.c:603
socreate(18,ffff80002a785310,3,0) at socreate+0x22f pru_attach sys/sys/protosw.h:275 [inline]
socreate(18,ffff80002a785310,3,0) at socreate+0x22f sys/kern/uipc_socket.c:220
sys_socket(ffff80003c9514e8,ffff80002a785450,ffff80002a7853a0) at sys_socket+0x124 sys/kern/uipc_syscalls.c:102
syscall(ffff80002a785450) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80002a785450) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xc00b9b02b90, count: 8
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(0xffffee806a0c32f8, 0x798dd852, 0, 2) -> e
ddb> show kasan
No such command
ddb> trace
in_pcbhash_insert(ffffee8075ee6a40) at in_pcbhash_insert+0x252 sys/netinet/in_pcb.c:1108
in_pcballoc(ffff800010fdecf8,ffffffff83a137d0,1) at in_pcballoc+0x23a sys/netinet/in_pcb.c:269
rip6_attach(ffff800010fdecf8,0,1) at rip6_attach+0x11c sys/netinet6/raw_ip6.c:603
socreate(18,ffff80002a785310,3,0) at socreate+0x22f pru_attach sys/sys/protosw.h:275 [inline]
socreate(18,ffff80002a785310,3,0) at socreate+0x22f sys/kern/uipc_socket.c:220
sys_socket(ffff80003c9514e8,ffff80002a785450,ffff80002a7853a0) at sys_socket+0x124 sys/kern/uipc_syscalls.c:102
syscall(ffff80002a785450) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80002a785450) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xc00b9b02b90, count: -7
ddb> show registers
rdi               0xffff8000380c4000
rsi                             0xfb
rbp               0xffff80002a7851b0
rbx                            0x100
rdx               0xffff8000380c4000
rcx                             0xfa
rax               0xffffffff829cfbc9    in_pcbhash_insert+0x249
r8                              0x30
r9                                 0
r10               0x714e768da4916ee5
r11               0xc1410dd8dc4a7ba7
r12                       0x798dd832
r13               0xffffee8075ee6a58
r14               0xffffee8075ee6a40
r15               0xffff800000c559b8
rip               0xffffffff829cfbd2    in_pcbhash_insert+0x252
cs                               0x8
rflags                       0x10246    __ALIGN_SIZE+0xf246
rsp               0xffff80002a785120
ss                              0x10
in_pcbhash_insert+0x252:        movq    %r13,0x20(%r12)
ddb> show proc
PROC (syz-executor) tid=164037 pid=63656 tcnt=2 stat=onproc
    flags process=0 proc=4000000<THREAD>
    runpri=32, usrpri=50, slppri=32, nice=20
    wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
    forw=0xffffffffffffffff, list=0xffff80003c950028,0xffff80003c950800
    process=0xffff80003c8de458 user=0xffff80002a780000, vmspace=0xffffee806a0c32f8
    estcpu=1, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID   UID  S      PRLAGS     PFLAGS WAIT      COMMAND
 17846   86804  33543     0  2           0          0           syz-executor
 17846   17856  33543     0  3           0  0x4000080 fsleep    syz-executor
 17846   16291  33543     0  3           0  0x4000080 fsleep    syz-executor
 17846  176111  33543     0  3           0  0x4000080 fsleep    syz-executor
 17846  242090  33543     0  3           0  0x4000080 fsleep    syz-executor
 17846   36515  33543     0  3           0  0x4000080 fsleep    syz-executor
 63656  258746  68155     0  2           0          0           syz-executor
*63656  164037  68155     0  7           0  0x4000000           syz-executor
 60693  459026  96549     0  2           0          0           syz-executor
 60693  293690  96549     0  3           0  0x4000080 fsleep    syz-executor
 60693  343848  96549     0  3           0  0x4000080 fsleep    syz-executor
 60693  336861  96549     0  3           0  0x4000080 fsleep    syz-executor
 93662  196295  72857     0  2           0          0           syz-executor
 35729  395499  82557     0  2         0x2          0           syz-executor
 72546  338539    235     0  2           0          0           syz-executor
 91357  242874  82557     0  2         0x2          0           syz-executor
 72857  210876  82557     0  3         0x2       0x80 nanoslp   syz-executor
   235  372444  82557     0  3         0x2       0x80 nanoslp   syz-executor
 96549  414570  82557     0  3         0x2       0x80 nanoslp   syz-executor
 68155  183225  82557     0  3         0x2       0x80 nanoslp   syz-executor
 14569   49060      1     0  3    0x100003       0x80 ttyin     getty
 86595  344876  82557     0  3         0x2       0x80 wait      syz-executor
 33543  102045  82557     0  3         0x2       0x80 nanoslp   syz-executor
 82557   77955      1     0  3         0x2       0x80 kqread    syz-executor
 88969  502881      0     0  3     0x14000      0x200 bored     smr
 91287  253843      0     0  2     0x14000      0x200           zerothread
 17458  402442      0     0  3     0x14000      0x200 aiodoned  aiodoned
 61066   27125      0     0  3     0x14000      0x200 syncer    update
 32754   73262      0     0  3     0x14000      0x200 cleaner   cleaner
 34838  388565      0     0  3     0x14000      0x200 reaper    reaper
 91683   25428      0     0  3     0x14000      0x200 pgdaemon  pagedaemon
 35494  212700      0     0  3     0x14000      0x200 bored     viomb
 36930   68713      0     0  3     0x14000 0x40000200 acpi0     acpi0
 32372  519532      0     0  2     0x14000      0x200           softnet0
 67312  217314      0     0  3     0x14000      0x200 smrbar    systqmp
 63723  340599      0     0  3     0x14000      0x200 bored     systq
 15941  451810      0     0  3     0x14000 0x40000200 tmoslp    softclock
 28444  413374      0     0  3     0x14000 0x40000200           idle0
     1  471897      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 11028  12108K   12194K 166960K     12334        0
            pcb    18     12K      12K 166960K        42        0
         rtable   228      7K       8K 166960K       891        0
             pf    27     12K      15K 166960K        89        0
         ifaddr    39      7K       8K 166960K       127        0
        ifgroup    43      1K       2K 166960K       141        0
         sysctl     1      1K       9K 166960K         9        0
       counters    32     17K      18K 166960K        69        0
       ioctlops     0      0K       4K 166960K        76        0
            iov     0      0K       1K 166960K         3        0
          mount     1      1K       1K 166960K         1        0
            log     0      0K       0K 166960K         4        0
         vnodes  1330     84K      84K 166960K      1726        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     9      0K       0K 166960K        10        0
        dirhash    12      2K       2K 166960K        12        0
           ACPI  1692    195K     286K 166960K     12470        0
      file desc    15     57K      97K 166960K       504        0
          sigio     0      0K       0K 166960K         2        0
           proc    20     25K     124K 166960K      1007        0
        subproc    65      4K       4K 166960K       227        0
    NFS srvsock     1      0K       0K 166960K         1        0
     NFS daemon     1     16K      16K 166960K         1        0
    ip_moptions     1      0K       0K 166960K         6        0
       in_multi    88      5K       6K 166960K       289        0
    ether_multi     1      0K       0K 166960K         4        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    79    360K     360K 166960K        79        0
           exec     0      0K       1K 166960K       602        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   129     82K     165K 166960K      5447        0
       UVM aobj     7      2K       2K 166960K         7        0
     pinsyscall    18     36K      96K 166960K      2050        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    16      0K       2K 166960K        88        0
           temp    33   9106K    9170K 166960K     11982        0
         kqueue     1      2K      28K 166960K        53        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       83    0       83     1     0     1     1     0     8    1
rtentry    136      300    0      200     4     0     4     4     0     8    0
unpcb      144       96    0       96     1     0     1     1     0     8    1
syncache   336        8    0        8     1     0     1     1     0     8    1
tcpqe       32        2    0        2     1     0     1     1     0     8    1
tcpcb      736       50    0       47     1     0     1     1     0     8    0
arp         96       52    0       36     1     0     1     1     0     8    0
inpcb      328      227    0      222     2     0     2     2     0     8    1
ip6q        80        1    0        0     1     0     1     1     0     8    0
ip6af       40        1    0        0     1     0     1     1     0     8    0
nd6        112       75    0       54     1     0     1     1     0     8    0
pkpcb       40        1    0        1     1     0     1     1     0     8    1
kcovpl      48       25    0       18     1     0     1     1     0     8    0
ppxss      1072      18    0       18     1     0     1     1     0     8    1
pppxif     1416       1    0        1     1     0     1     1     0     8    1
pftag       88        1    0        0     1     0     1     1     0     8    0
pfqueue    320        1    0        1     1     0     1     1     0     8    1
pfrule     1360       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     1215    0      801    32     0    32    32     0     8    5
art_table   40     1216    0      801     6     0     6     6     0     8    0
art_node    32      299    0      206     1     0     1     1     0     8    0
semapl      72        8    0        1     1     0     1     1     0     8    0
shmpl      120        4    0        0     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256     1860    0      362    94     0    94    94     0     8    0
ffsino     256     1860    0      362    94     0    94    94     0     8    0
nchpl      144     2216    0      462    66     0    66    66     0     8    0
vnodes     216     2201    0        0   123     0   123   123     0     8    0
namei      1024    9439    0     9438     3     0     3     3     0     8    2
kstatmem   264       77    0       56     2     0     2     2     0     8    0
scxspl     216     6958    0     6958     4     0     4     4     1     8    4
plimitpl   152       54    0       44     1     0     1     1     0     8    0
sigapl     424      764    0      733     6     0     6     6     0     8    2
knotepl    120     6214    0     6197    10     0    10    10     0     8    8
kqueuepl   184       80    0       79     1     0     1     1     0     8    0
pipepl     304      182    0      155     3     0     3     3     0     8    0
fdescpl    448      751    0      733     5     0     5     5     0     8    2
filepl     120     2838    0     2685     8     0     8     8     0     8    1
lockfpl    104       60    0       59     1     0     1     1     0     8    0
lockfspl    48       24    0       23     1     0     1     1     0     8    0
sessionpl  144       49    0       46     1     0     1     1     0     8    0
pgrppl      48       76    0       65     1     0     1     1     0     8    0
ucredpl    104      422    0      418     1     0     1     1     0     8    0
zombiepl   144      734    0      733     1     0     1     1     0     8    0
processpl  1160     764    0      733     4     0     4     4     0     8    0
procpl     664     1016    0      976     6     0     6     6     0     8    2
sockpl     552      413    0      408     3     0     3     3     0     8    2
mcl64k     65536     11    0       10     1     0     1     1     0     8    0
mcl16k     16384      3    0        3     1     0     1     1     0     8    1
mcl12k     12288      1    0        1     1     0     1     1     0     8    1
mcl8k      8192       5    0        5     1     0     1     1     0     8    1
mcl4k      4096    2639    0     2588    16     1    15    16     0     8    7
mcl2k      2048     247    0      247     2     0     2     2     0     8    2
mextrefs    64      110    0      110     1     0     1     1     0     8    1
mtagpl      96        5    0        5     1     0     1     1     0     8    1
mbufpl     256     5961    0     5823    12     0    12    12     0     8    0
bufpl      272     2482    0      104   159     0   159   159     0     8    0
anonpl      24   102654    0   101256    32     0    32    32     0   187   17
amapchunkpl 152   27411    0    27059    36     0    36    36     0   158   21
amappl16   200     1094    0     1083     4     0     4     4     0     8    2
amappl15   192       47    0       47     1     0     1     1     0     8    1
amappl14   184      612    0      612     1     0     1     1     0     8    1
amappl13   176      157    0      156     1     0     1     1     0     8    0
amappl12   168     1065    0     1048     2     0     2     2     0     8    0
amappl11   160        4    0        4     1     0     1     1     0     8    1
amappl10   152       80    0       80     1     0     1     1     0     8    1
amappl9    144      285    0      285     1     0     1     1     0     8    1
amappl8    136      175    0      175     1     0     1     1     0     8    1
amappl7    128      173    0      171     1     0     1     1     0     8    0
amappl6    120      319    0      319     1     0     1     1     0     8    1
amappl5    112       89    0       89     1     0     1     1     0     8    1
amappl4    104      316    0      313     1     0     1     1     0     8    0
amappl3     96     2729    0     2669     3     0     3     3     0     8    1
amappl2     88      806    0      785     2     0     2     2     0     8    0
amappl1     80    12839    0    12725    13     1    12    13     0     8    8
amappl      88     4443    0     4328     5     0     5     5     0    92    0
uvmvnodes   80      102    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        6    0        0     1     0     1     1     0     8    0
uaddrrnd    24      751    0      733     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      751    0      733     1     0     1     1     0     8    0
vmmpekpl   168     7796    0     7750     3     0     3     3     0     8    0
vmmpepl    168    56489    0    55721    81     0    81    81     0   357   45
vmsppl     368      750    0      733     4     0     4     4     0     8    2
rwobjpl     40    18484    0    18083    11     0    11    11     0     8    1
pdppl      4096    1508    0     1466   112    66    46    82     0     8    4
pvpl        32   298924    0   295212    96     0    96    96     0   265   55
pmappl     216      750    0      733     3     0     3     3     0     8    1
extentpl    40       45    0       27     1     0     1     1     0     8    0
phpool     112      546    0       67    14     0    14    14     0     8    0
ddb> machine ddbcpu 0
No such command
ddb> trace
in_pcbhash_insert(ffffee8075ee6a40) at in_pcbhash_insert+0x252 sys/netinet/in_pcb.c:1108
in_pcballoc(ffff800010fdecf8,ffffffff83a137d0,1) at in_pcballoc+0x23a sys/netinet/in_pcb.c:269
rip6_attach(ffff800010fdecf8,0,1) at rip6_attach+0x11c sys/netinet6/raw_ip6.c:603
socreate(18,ffff80002a785310,3,0) at socreate+0x22f pru_attach sys/sys/protosw.h:275 [inline]
socreate(18,ffff80002a785310,3,0) at socreate+0x22f sys/kern/uipc_socket.c:220
sys_socket(ffff80003c9514e8,ffff80002a785450,ffff80002a7853a0) at sys_socket+0x124 sys/kern/uipc_syscalls.c:102
syscall(ffff80002a785450) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80002a785450) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xc00b9b02b90, count: -7
ddb> machine ddbcpu 1
No such command
ddb> 

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/06 02:20 openbsd d3d189e09133 f7710056 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main uvm_fault: in_pcbhash_insert
2026/09/08 15:05 openbsd 90a01398013e 351387c4 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore uvm_fault: in_pcbhash_insert
2026/08/26 18:37 openbsd 9c51b1274871 a2b77b9e .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main uvm_fault: in_pcbhash_insert
2026/08/22 23:02 openbsd 37e4cd13f45d 1e72964b .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main uvm_fault: in_pcbhash_insert
2026/08/15 14:01 openbsd b903a0834f41 746171ee .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main uvm_fault: in_pcbhash_insert
2026/08/02 13:18 openbsd f8480ad0276a e611ffe1 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main uvm_fault: in_pcbhash_insert
2026/07/22 12:52 openbsd 9107f2bc3d03 4a865b71 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main uvm_fault: in_pcbhash_insert
2026/07/21 02:01 openbsd d55fd7dd01df de6a700d .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main uvm_fault: in_pcbhash_insert
* Struck through repros no longer work on HEAD.