uvm_fault: in_pcbhash_insert

Status: upstream: reported on 2026/07/21 02:01
Reported-by: syzbot+a52c5bdbd489896eb29b@syzkaller.appspotmail.com
First crash: 8d15h, last: 7d04h

Sample crash report:
uvm_fault(0xfffff2806bc95e78, 0x4030, 0, 2) -> e
kernel: page fault trap, code=2
Stopped at      in_pcbhash_insert+0x155:        movq    %rbx,0x30(%r13)
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*183252  26506      0           0  0x4000000    0  syz-executor
in_pcbhash_insert(fffff2807320fb88) at in_pcbhash_insert+0x155 sys/netinet/in_pcb.c:1096
in_pcballoc(ffff800001606460,ffffffff83a60aa8,1) at in_pcballoc+0x23a sys/netinet/in_pcb.c:269
rip_attach(ffff800001606460,2f,1) at rip_attach+0x117 sys/netinet/raw_ip.c:489
socreate(2,ffff80003c91d400,3,2f) at socreate+0x22f pru_attach sys/sys/protosw.h:275 [inline]
socreate(2,ffff80003c91d400,3,2f) at socreate+0x22f sys/kern/uipc_socket.c:220
sys_socket(ffff80002f0b1ca0,ffff80003c91d540,ffff80003c91d490) at sys_socket+0x124 sys/kern/uipc_syscalls.c:102
syscall(ffff80003c91d540) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80003c91d540) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xfca763f49c0, 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(0xfffff2806bc95e78, 0x4030, 0, 2) -> e
ddb> show kasan
No such command
ddb> trace
in_pcbhash_insert(fffff2807320fb88) at in_pcbhash_insert+0x155 sys/netinet/in_pcb.c:1096
in_pcballoc(ffff800001606460,ffffffff83a60aa8,1) at in_pcballoc+0x23a sys/netinet/in_pcb.c:269
rip_attach(ffff800001606460,2f,1) at rip_attach+0x117 sys/netinet/raw_ip.c:489
socreate(2,ffff80003c91d400,3,2f) at socreate+0x22f pru_attach sys/sys/protosw.h:275 [inline]
socreate(2,ffff80003c91d400,3,2f) at socreate+0x22f sys/kern/uipc_socket.c:220
sys_socket(ffff80002f0b1ca0,ffff80003c91d540,ffff80003c91d490) at sys_socket+0x124 sys/kern/uipc_syscalls.c:102
syscall(ffff80003c91d540) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80003c91d540) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xfca763f49c0, count: -7
ddb> show registers
rdi               0xffff8000320b8000
rsi                            0x41a
rbp               0xffff80003c91d2a0
rbx               0xfffff2807320fbb0
rdx               0xffff8000320b8000
rcx                            0x419
rax               0xffffffff820f667c    in_pcbhash_insert+0x14c
r8                              0x30
r9                                 0
r10               0x2d554d1d3728d544
r11               0x4366de92556ff687
r12               0xffff800000c57220
r13                           0x4000    __ALIGN_SIZE+0x3000
r14               0xfffff2807320fb88
r15               0xffffffff83a60aa8    rawcbtable
rip               0xffffffff820f6685    in_pcbhash_insert+0x155
cs                               0x8
rflags                       0x10246    __ALIGN_SIZE+0xf246
rsp               0xffff80003c91d210
ss                              0x10
in_pcbhash_insert+0x155:        movq    %rbx,0x30(%r13)
ddb> show proc
PROC (syz-executor) tid=183252 pid=26506 tcnt=2 stat=onproc
    flags process=0 proc=4000000<THREAD>
    runpri=50, usrpri=86, slppri=17, nice=20
    wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
    forw=0xffffffffffffffff, list=0xffff80002f0b14d8,0xffffffff839bd430
    process=0xffff800045ff9218 user=0xffff80003c918000, vmspace=0xfffff2806bc95e78
    estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID   UID  S      PRLAGS     PFLAGS WAIT      COMMAND
 26506  274934  38120     0  2           0          0           syz-executor
*26506  183252  38120     0  7           0  0x4000000           syz-executor
  3983  205541   1007     0  2           0          0           syz-executor
  3983  230540   1007     0  3           0  0x4000080 nanoslp   syz-executor
 52901  255814  74555     0  3           0       0x80 nanoslp   syz-executor
 52901  269639  74555     0  3           0  0x4000080 kqsel     syz-executor
 52901  116758  74555     0  3           0  0x4000080 fsleep    syz-executor
 52195  275307  83982     0  3           0       0x80 nanoslp   syz-executor
 52195  129241  83982     0  3           0  0x4000080 rest      syz-executor
 52195  353418  83982     0  3           0  0x4000080 fsleep    syz-executor
  4406  272127  38163     0  3   0x1000000       0x80 nanoslp   syz-executor
  4406   58707  38163     0  3   0x1000000  0x4000080 sbwait    syz-executor
  4406  173517  38163     0  3   0x1000000  0x4000080 fsleep    syz-executor
 59582  196270  12800     0  3           0       0x80 nanoslp   syz-executor
 59582  323359  12800     0  3           0  0x4000080 lockf     syz-executor
 59582  433888  12800     0  3           0  0x4000080 fsleep    syz-executor
 59582  317436  12800     0  3           0  0x4000080 fsleep    syz-executor
 18652  441054  72721     0  3           0       0x80 nanoslp   syz-executor
 18652  262991  72721     0  3           0  0x4000080 semwait   syz-executor
 18652  178854  72721     0  3           0  0x4000080 fsleep    syz-executor
 18652  362125  72721     0  3           0  0x4000080 fsleep    syz-executor
 72721  239130   3103     0  3         0x2       0x80 nanoslp   syz-executor
 44623   40168   3103     0  3         0x2       0x80 nanoslp   syz-executor
 83982  289209   3103     0  3         0x2       0x80 nanoslp   syz-executor
 38120  120581   3103     0  3         0x2       0x80 nanoslp   syz-executor
  1007  483513   3103     0  3         0x2       0x80 nanoslp   syz-executor
 38163  388248   3103     0  3         0x2       0x80 nanoslp   syz-executor
 12800  467784   3103     0  3         0x2       0x80 nanoslp   syz-executor
 74555  431433   3103     0  3         0x2       0x80 nanoslp   syz-executor
  3103  115076   8423     0  3         0x2       0x80 kqread    syz-executor
  8423  216935  51875     0  3    0x100002       0x88 sigsusp   ksh
 51875   29553  42233     0  3        0x10       0x88 kqread    sshd-session
 42233  174732  38904     0  3        0x12       0x80 kqread    sshd-session
 75328  244983      1     0  3    0x100003       0x80 ttyin     getty
 38904  494314      1     0  3           0       0x88 kqread    sshd
 41840  409439   9916    73  3   0x1100010       0x80 kqread    syslogd
  9916  112723      1     0  3    0x100002       0x80 sbwait    syslogd
 89054  448297      1     0  3    0x100000       0x80 kqread    resolvd
 52228   16509  35927    77  3    0x100012       0x80 kqread    dhcpleased
 22360  470423  35927    77  3    0x100012       0x80 kqread    dhcpleased
 35927  356955      1     0  3           0       0x80 kqread    dhcpleased
 36667  138520      0     0  3     0x14000      0x200 bored     smr
 77680  486544      0     0  2     0x14000      0x200           zerothread
 83706  204221      0     0  3     0x14000      0x200 aiodoned  aiodoned
 30120  376729      0     0  3     0x14000      0x200 syncer    update
 44361  393663      0     0  3     0x14000      0x200 cleaner   cleaner
 80425  295582      0     0  3     0x14000      0x200 reaper    reaper
  5299   96214      0     0  3     0x14000      0x200 pgdaemon  pagedaemon
 87404  142474      0     0  3     0x14000      0x200 bored     viomb
 73997  149707      0     0  3     0x14000 0x40000200 acpi0     acpi0
 82266  142228      0     0  3     0x14000      0x200 bored     softnet0
 15364   33197      0     0  3     0x14000      0x200 smrbar    systqmp
 70722  433873      0     0  3     0x14000      0x200 bored     systq
  6674  427963      0     0  3     0x14000 0x40000200 tmoslp    softclock
 45813  272500      0     0  3     0x14000 0x40000200           idle0
     1   25736      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 11037  12176K   12319K 166960K     12153        0
            pcb    17     12K      12K 166960K        26        0
         rtable   223      6K       6K 166960K       376        0
             pf    34     13K      19K 166960K        45        0
         ifaddr    41      6K       6K 166960K        46        0
        ifgroup    56      2K       2K 166960K        56        0
         sysctl     3      1K       9K 166960K         7        0
       counters    35     18K      18K 166960K        35        0
       ioctlops     0      0K       4K 166960K        37        0
            iov     0      0K      16K 166960K         6        0
          mount     1      1K       1K 166960K         1        0
            log     0      0K       0K 166960K         4        0
         vnodes  1328     84K      84K 166960K      1412        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     4      0K       0K 166960K         6        0
        dirhash    12      2K       2K 166960K        15        0
           ACPI  1734    201K     291K 166960K     11964        0
      file desc    18     65K      97K 166960K       173        0
           proc    59     59K     124K 166960K       501        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         7        0
       in_multi    88      6K       6K 166960K        99        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   237    159K     168K 166960K      3293        0
       UVM aobj     5      2K       2K 166960K         5        0
     pinsyscall    39     78K      96K 166960K      1283        0
        memdesc     1      4K       4K 166960K         1        0
    crypto data     1      1K       1K 166960K         1        0
    ip6_options     1      0K       0K 166960K         2        0
            NDP    27      1K       1K 166960K        29        0
           temp    36   9106K    9178K 166960K      3842        0
         kqueue    13     20K      22K 166960K        34        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       34     1     0     1     1     0     8    0
rtentry    136      114    0       14     4     0     4     4     0     8    0
unpcb      144       61    0       42     1     0     1     1     0     8    0
syncache   336        5    0        5     1     0     1     1     0     8    1
tcpcb      736       14    0        9     1     0     1     1     0     8    0
arp         96       18    0        2     1     0     1     1     0     8    0
ipq         40        2    0        0     1     0     1     1     0     8    0
ipqe        40        3    0        1     1     0     1     1     0     8    0
inpcb      328       89    0       80     2     0     2     2     0     8    1
nd6        112       25    0        3     1     0     1     1     0     8    0
kcovpl      48        8    0        0     1     0     1     1     0     8    0
ppxss      1072       1    0        0     1     0     1     1     0     8    0
pfanchor   1288       3    0        0     1     0     1     1     0     8    0
pfrule     1360       1    0        1     1     0     1     1     0     8    1
rttmr      136        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      467    0       44    29     0    29    29     0     8    2
art_table   40      468    0       44     5     0     5     5     0     8    0
art_node    32      114    0       20     1     0     1     1     0     8    0
semapl      72        1    0        0     1     0     1     1     0     8    0
shmpl      112        2    0        0     1     0     1     1     0     8    0
dirhash    1024      19    0        2     3     0     3     3     0     8    0
dino2pl    256     1615    0      152    92     0    92    92     0     8    0
ffsino     256     1615    0      152    92     0    92    92     0     8    0
nchpl      144     1851    0      157    63     0    63    63     0     8    0
vnodes     216     1743    0        0    97     0    97    97     0     8    0
namei      1024    5510    0     5510     2     0     2     2     0     8    2
kstatmem   264       27    0        0     2     0     2     2     0     8    0
scxspl     216     6215    0     6215     4     0     4     4     1     8    4
plimitpl   152       29    0       13     1     0     1     1     0     8    0
sigapl     424      471    0      428     6     0     6     6     0     8    1
knotepl    120     4588    0     4541    10     0    10    10     0     8    8
kqueuepl   184       33    0       23     1     0     1     1     0     8    0
pipepl     304      124    0       97     3     0     3     3     0     8    0
fdescpl    448      458    0      428     5     0     5     5     0     8    1
filepl     120     1632    0     1385     8     0     8     8     0     8    0
lockfpl    104       18    0       14     1     0     1     1     0     8    0
lockfspl    48        8    0        5     1     0     1     1     0     8    0
sessionpl  144       27    0       19     1     0     1     1     0     8    0
pgrppl      48       38    0       21     1     0     1     1     0     8    0
ucredpl    104      109    0       98     1     0     1     1     0     8    0
zombiepl   144      429    0      428     1     0     1     1     0     8    0
processpl  1152     471    0      428     4     0     4     4     0     8    0
procpl     664      533    0      476     6     0     6     6     0     8    1
sockpl     552      189    0      157     3     0     3     3     0     8    0
mcl64k     65536      7    0        7     1     0     1     1     0     8    1
mcl16k     16384      6    0        6     1     0     1     1     0     8    1
mcl9k128   9344       2    0        2     1     0     1     1     0     8    1
mcl8k      8192       5    0        5     1     0     1     1     0     8    1
mcl4k      4096    2524    0     2475    14     0    14    14     0     8    7
mcl2k      2048     149    0      144     1     0     1     1     0     8    0
mextrefs    64       60    0       56     1     0     1     1     0     8    0
mtagpl      96        4    0        4     1     0     1     1     0     8    1
mbufpl     256     4568    0     4417    10     0    10    10     0     8    0
bufpl      272     2280    0      103   146     0   146   146     0     8    0
anonpl      24    81929    0    78755    32     0    32    32     0   187   11
amapchunkpl 152    9060    0     8547    26     0    26    26     0   158    4
amappl16   200     1063    0     1043     4     0     4     4     0     8    2
amappl15   192        5    0        5     1     0     1     1     0     8    1
amappl14   184      417    0      416     1     0     1     1     0     8    0
amappl13   176      117    0      107     1     0     1     1     0     8    0
amappl12   168      710    0      681     2     0     2     2     0     8    0
amappl11   160        5    0        5     1     0     1     1     0     8    1
amappl10   152       86    0       76     1     0     1     1     0     8    0
amappl9    144      267    0      267     1     0     1     1     0     8    1
amappl8    136       94    0       93     1     0     1     1     0     8    0
amappl7    128      141    0      129     1     0     1     1     0     8    0
amappl6    120      146    0      145     1     0     1     1     0     8    0
amappl5    112       92    0       85     1     0     1     1     0     8    0
amappl4    104      262    0      247     1     0     1     1     0     8    0
amappl3     96     1614    0     1497     4     0     4     4     0     8    0
amappl2     88      534    0      479     2     0     2     2     0     8    0
amappl1     80    10325    0     9774    14     0    14    14     0     8    1
amappl      88     2589    0     2415     5     0     5     5     0    92    0
uvmvnodes   80       96    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      458    0      428     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      458    0      428     1     0     1     1     0     8    0
vmmpekpl   168     5618    0     5588     2     0     2     2     0     8    0
vmmpepl    168    38041    0    36225    81     0    81    81     0   357    1
vmsppl     368      457    0      428     4     0     4     4     0     8    1
rwobjpl     40    13854    0    12905    11     0    11    11     0     8    0
pdppl      4096     922    0      856    96    14    82    82     0     8   16
pvpl        32   213145    0   204596    91     0    91    91     0   265   19
pmappl     216      457    0      428     3     0     3     3     0     8    1
extentpl    40       46    0       28     1     0     1     1     0     8    0
phpool     112      504    0       14    14     0    14    14     0     8    0
ddb> machine ddbcpu 0
No such command
ddb> trace
in_pcbhash_insert(fffff2807320fb88) at in_pcbhash_insert+0x155 sys/netinet/in_pcb.c:1096
in_pcballoc(ffff800001606460,ffffffff83a60aa8,1) at in_pcballoc+0x23a sys/netinet/in_pcb.c:269
rip_attach(ffff800001606460,2f,1) at rip_attach+0x117 sys/netinet/raw_ip.c:489
socreate(2,ffff80003c91d400,3,2f) at socreate+0x22f pru_attach sys/sys/protosw.h:275 [inline]
socreate(2,ffff80003c91d400,3,2f) at socreate+0x22f sys/kern/uipc_socket.c:220
sys_socket(ffff80002f0b1ca0,ffff80003c91d540,ffff80003c91d490) at sys_socket+0x124 sys/kern/uipc_syscalls.c:102
syscall(ffff80003c91d540) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80003c91d540) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xfca763f49c0, count: -7
ddb> machine ddbcpu 1
No such command
ddb> trace
in_pcbhash_insert(fffff2807320fb88) at in_pcbhash_insert+0x155 sys/netinet/in_pcb.c:1096
in_pcballoc(ffff800001606460,ffffffff83a60aa8,1) at in_pcballoc+0x23a sys/netinet/in_pcb.c:269
rip_attach(ffff800001606460,2f,1) at rip_attach+0x117 sys/netinet/raw_ip.c:489
socreate(2,ffff80003c91d400,3,2f) at socreate+0x22f pru_attach sys/sys/protosw.h:275 [inline]
socreate(2,ffff80003c91d400,3,2f) at socreate+0x22f sys/kern/uipc_socket.c:220
sys_socket(ffff80002f0b1ca0,ffff80003c91d540,ffff80003c91d490) at sys_socket+0x124 sys/kern/uipc_syscalls.c:102
syscall(ffff80003c91d540) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80003c91d540) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xfca763f49c0, count: -7

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.