syzbot


assert "self->ci_proc_pmap == p->p_vmspace->vm_map.pmap" failed in pmap.c

Status: auto-obsoleted due to no activity on 2023/12/04 16:11
Reported-by: syzbot+629ba91e3d2bd27c0566@syzkaller.appspotmail.com
First crash: 443d, last: 443d
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/09/19 16:11 16m retest repro openbsd OK log

Sample crash report:
panic: kernel diagnostic assertion "self->ci_proc_pmap == p->p_vmspace->vm_map.pmap" failed: file "/syzkaller/managers/main/kernel/sys/arch/amd64/amd64/pmap.c", line 1496
Stopped at      db_enter+0x1c:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff8277fd7b) at panic+0x165 sys/kern/subr_prf.c:198
__assert(ffffffff827fb3f9,ffffffff827e0cde,5d8,ffffffff828087b1) at __assert+0x29 sys/kern/subr_prf.c:157
pmap_deactivate(ffff80002173c7e8) at pmap_deactivate+0xb4 sys/arch/amd64/amd64/pmap.c:1496
cpu_exit(ffff80002173c7e8) at cpu_exit+0x1d sys/arch/amd64/amd64/vm_machdep.c:129
exit1(ffff80002173c7e8,0,0,3) at exit1+0xa9e sys/kern/kern_exit.c:377
single_thread_check_locked(ffff80002173c7e8,0) at single_thread_check_locked+0x226 sys/kern/kern_sig.c:2016
userret(ffff80002173c7e8) at userret+0x72 single_thread_check sys/kern/kern_sig.c:2060 [inline]
userret(ffff80002173c7e8) at userret+0x72 sys/kern/kern_sig.c:1970
syscall(ffff800021850e80) at syscall+0x559 mi_syscall_return sys/sys/syscall_mi.h:137 [inline]
syscall(ffff800021850e80) at syscall+0x559 sys/arch/amd64/amd64/trap.c:644
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x415cdee5170, count: 5
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: kernel diagnostic assertion "self->ci_proc_pmap == p->p_vmspace->vm_map.pmap" failed: file "/syzkaller/managers/main/kernel/sys/arch/amd64/amd64/pmap.c", line 1496
ddb> trace
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff8277fd7b) at panic+0x165 sys/kern/subr_prf.c:198
__assert(ffffffff827fb3f9,ffffffff827e0cde,5d8,ffffffff828087b1) at __assert+0x29 sys/kern/subr_prf.c:157
pmap_deactivate(ffff80002173c7e8) at pmap_deactivate+0xb4 sys/arch/amd64/amd64/pmap.c:1496
cpu_exit(ffff80002173c7e8) at cpu_exit+0x1d sys/arch/amd64/amd64/vm_machdep.c:129
exit1(ffff80002173c7e8,0,0,3) at exit1+0xa9e sys/kern/kern_exit.c:377
single_thread_check_locked(ffff80002173c7e8,0) at single_thread_check_locked+0x226 sys/kern/kern_sig.c:2016
userret(ffff80002173c7e8) at userret+0x72 single_thread_check sys/kern/kern_sig.c:2060 [inline]
userret(ffff80002173c7e8) at userret+0x72 sys/kern/kern_sig.c:1970
syscall(ffff800021850e80) at syscall+0x559 mi_syscall_return sys/sys/syscall_mi.h:137 [inline]
syscall(ffff800021850e80) at syscall+0x559 sys/arch/amd64/amd64/trap.c:644
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x415cdee5170, count: -10
ddb> show registers
rdi                                0
rsi                              0x1
rbp               0xffff800021850b10
rbx               0xfffffd806f805390
rdx                            0x3fd
rcx                                0
rax                             0xab
r8                 0x101010101010101
r9                0x8080808080808080
r10               0xb2cbd9d5e5f80394
r11               0x114714a3ca086ee3
r12                                0
r13                       0x15036cc1
r14                                0
r15                              0x1
rip               0xffffffff8152775c    db_enter+0x1c
cs                               0x8
rflags                         0x246
rsp               0xffff800021850b00
ss                              0x10
db_enter+0x1c:  addq    $0x8,%rsp
ddb> show proc
PROC (syz-executor.0) pid=235922 stat=dead
    flags process=41008<EXITING,SINGLEEXIT,ZOMBIE> proc=4082000<WEXIT,SUSPSINGLE,THREAD>
    pri=69, usrpri=69, nice=20
    forw=0xffffffffffffffff, list=0xffffffffffffffff,0xffffffffffffffff
    process=0xffff8000216d8000 user=0xffff80002184b000, vmspace=0xfffffd8069a19180
    estcpu=19, cpticks=2, pctcpu=0.0
    user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 46936  430620  42482      0  2           0                syz-executor.5
 46936  451110  42482      0  3   0x4000080  fsleep        syz-executor.5
 21296  298365  27517      0  2           0                syz-executor.4
 21296  445735  27517      0  3   0x4000080  fsleep        syz-executor.4
 67351  406474  94507      0  2           0                syz-executor.7
 67351  345134  94507      0  3   0x4000080  fsleep        syz-executor.7
 94507  152841  87087      0  3        0x82  nanoslp       syz-executor.7
 47954  363040  87087      0  2         0x2                syz-executor.6
 27517  487906  87087      0  3        0x82  nanoslp       syz-executor.4
 42482   86747  87087      0  2       0x482                syz-executor.5
 54513  298110  87087      0  2         0x2                syz-executor.3
 78252  336303  87087      0  2       0x482                syz-executor.2
 78677  337538  87087      0  3        0x82  nanoslp       syz-executor.1
  1627   43495  87087      0  2         0x2                syz-executor.0
 87087  144639  30618      0  3   0x2000082  wait          syz-execprog
 87087  472386  30618      0  3   0x6000082  nanoslp       syz-execprog
 87087  209038  30618      0  3   0x6000082  wait          syz-execprog
 87087  380007  30618      0  3   0x6000082  wait          syz-execprog
 87087  115840  30618      0  3   0x6000082  wait          syz-execprog
 87087   49093  30618      0  3   0x6000082  wait          syz-execprog
 87087  341707  30618      0  3   0x6000082  thrsleep      syz-execprog
 87087  259371  30618      0  3   0x6000082  wait          syz-execprog
 87087  249759  30618      0  3   0x6000082  thrsleep      syz-execprog
 87087  269786  30618      0  3   0x6000082  wait          syz-execprog
 87087  251320  30618      0  3   0x6000082  thrsleep      syz-execprog
 87087  504791  30618      0  3   0x6000082  wait          syz-execprog
 87087  321431  30618      0  3   0x6000082  thrsleep      syz-execprog
 87087  423212  30618      0  3   0x6000082  kqread        syz-execprog
 30618  424853  77306      0  3    0x10008a  sigsusp       ksh
 77306  363819  79213      0  3        0x9a  kqread        sshd
 15707  133575      1      0  3    0x100083  ttyin         getty
 79213  186994      1      0  3        0x88  kqread        sshd
 97420  487441  41911     73  3   0x1100090  kqread        syslogd
 41911   18322      1      0  3    0x100082  netio         syslogd
 52976  115575      1      0  3    0x100080  kqread        resolvd
 38332  171720   5932     77  3    0x100092  kqread        dhcpleased
 36514  364903   5932     77  3    0x100092  kqread        dhcpleased
  5932  202997      1      0  3        0x80  kqread        dhcpleased
 24309  506349      0      0  3     0x14200  bored         smr
  9169   99320      0      0  2     0x14200                zerothread
 74472  356852      0      0  3     0x14200  aiodoned      aiodoned
 33468  276138      0      0  3     0x14200  syncer        update
 93062   28464      0      0  3     0x14200  cleaner       cleaner
 46401   57942      0      0  3     0x14200  reaper        reaper
 12939     126      0      0  3     0x14200  pgdaemon      pagedaemon
 46490   58282      0      0  3     0x14200  bored         viomb
 26986  382344      0      0  3  0x40014200  acpi0         acpi0
 97934  283154      0      0  3     0x14200  bored         softnet3
 33152  508778      0      0  3     0x14200  bored         softnet2
 77097  506979      0      0  3     0x14200  bored         softnet1
 16814  210863      0      0  3     0x14200  bored         softnet0
 58484   84886      0      0  3     0x14200  bored         systqmp
 79639  282619      0      0  3     0x14200  bored         systq
 32064  340736      0      0  3  0x40014200  bored         softclock
 75244  465507      0      0  3  0x40014200                idle0
     1  214555      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 10163   6400K    6413K  78643K     11241        0
            pcb    13      8K       8K  78643K        13        0
         rtable   234      6K       6K  78643K       350        0
             pf    29      8K       8K  78643K        29        0
         ifaddr    43     11K      11K  78643K        45        0
        ifgroup    50      2K       2K  78643K        50        0
       counters    28     17K      17K  78643K        28        0
       ioctlops     0      0K       2K  78643K        29        0
          mount     1      1K       1K  78643K         1        0
            log     0      0K       0K  78643K         4        0
         vnodes  1174     73K      74K  78643K      1187        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       1K  78643K         2        0
         VM map     2      1K       1K  78643K         2        0
            sem     2      0K       0K  78643K         2        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1697    195K     286K  78643K     12548        0
      file desc    13     45K      77K  78643K       168        0
           proc    55     58K      75K  78643K       470        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
       in_multi    99      7K       7K  78643K        99        0
    ether_multi     1      0K       0K  78643K         1        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys    25    122K     122K  78643K        25        0
           exec     0      0K       1K  78643K       364        0
            tdb     3      0K       0K  78643K         3        0
        pagedep     1      8K       8K  78643K         1        0
       inodedep     1     32K      32K  78643K         1        0
         newblk     1      0K       0K  78643K         1        0
        VM swap     8     62K      64K  78643K        10        0
       UVM amap   226     74K      75K  78643K      3579        0
       UVM aobj     3      2K       2K  78643K         3        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
            NDP    11      0K       2K  78643K        27        0
           temp     1   5896K    6024K  78643K      3977        0
         kqueue    12     18K      18K  78643K        25        0
      SYN cache     2     16K      16K  78643K         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    112      111    0        1     4     0     4     4     0     8    0
unpcb      144       33    0       20     1     0     1     1     0     8    0
syncache   304        5    0        5     1     1     0     1     0     8    0
tcpqe       32      136    0      136     1     1     0     1     0     8    0
tcpcb      808        8    0        5     1     0     1     1     0     8    0
arp         88       18    0        0     1     0     1     1     0     8    0
inpcb      336       58    0       52     1     0     1     1     0     8    0
nd6        104       24    0        0     1     0     1     1     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256      452    0        0    29     0    29    29     0     8    0
art_table   32      453    0        0     4     0     4     4     0     8    0
art_node    16      110    0       10     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256     1523    0       84    90     0    90    90     0     8    0
ffsino     240     1523    0       84    85     0    85    85     0     8    0
nchpl      144     1812    0      135    63     0    63    63     0     8    0
uvmvnodes   80     1532    0        0    32     0    32    32     0     8    0
vnodes     216     1532    0        0    86     0    86    86     0     8    0
namei      1024    6199    0     6198     7     5     2     4     0     8    1
kstatmem   264       22    0        0     2     0     2     2     0     8    0
scxspl     216     6400    0     6400     3     2     1     3     1     8    1
plimitpl   152       34    0       19     1     0     1     1     0     8    0
sigapl     424      468    0      426     6     0     6     6     0     8    0
futexpl     64       98    0       95     1     0     1     1     0     8    0
knotepl    120     3657    0     3579     3     0     3     3     0     8    0
kqueuepl   184       21    0       13     1     0     1     1     0     8    0
pipepl     288      139    0      111     3     1     2     3     0     8    0
fdescpl    432      452    0      428     4     0     4     4     0     8    1
filepl     120     1640    0     1512     5     0     5     5     0     8    1
lockfpl    104        6    0        4     1     0     1     1     0     8    0
lockfspl    48        4    0        2     1     0     1     1     0     8    0
sessionpl  144       25    0        9     1     0     1     1     0     8    0
pgrppl      48       25    0        9     1     0     1     1     0     8    0
ucredpl    104       66    0       56     1     0     1     1     0     8    0
zombiepl   144      474    0      472     2     1     1     1     0     8    0
pool(zombiepl): free list modified: page 0xfffffd8069993000; item ordinal 2; addr 0xfffffd8069993878 (p 0xfffffd8069993000); offset 0x10=0x274
processpl  1008     469    0      426     9     2     7     8     0     8    1
procpl     680      531    0      471     6     0     6     6     0     8    0
sockpl     456      127    0      105     5     1     4     4     0     8    1
mcl8k      8192       9    0        9     1     1     0     1     0     8    0
mcl4k      4096       5    0        5     1     1     0     1     0     8    0
mcl2k      2048   11910    0    11867    32    26     6    29     0     8    0
mtagpl      96        4    0        4     1     1     0     1     0     8    0
mbufpl     256    19479    0    19338    18     9     9    15     0     8    0
bufpl      288     4151    0      143   288     1   287   287     0     8    0
anonpl      24   194513    0   190278    58    30    28    56     0   188    0
amapchunkpl 152   12124    0    11587    31     6    25    27     0   158    0
amappl16   200     5205    0     5137     5     1     4     5     0     8    0
amappl15   192       22    0       22     1     1     0     1     0     8    0
amappl14   184      152    0      141     2     1     1     2     0     8    0
amappl13   176       15    0       14     1     0     1     1     0     8    0
amappl12   168     1095    0     1070     2     0     2     2     0     8    0
amappl11   160       56    0       45     1     0     1     1     0     8    0
amappl10   152       63    0       54     1     0     1     1     0     8    0
amappl9    144      191    0      191     1     1     0     1     0     8    0
amappl8    136      134    0      105     2     1     1     2     0     8    0
amappl7    128       46    0       41     1     0     1     1     0     8    0
amappl6    120      238    0      222     2     1     1     2     0     8    0
amappl5    112      225    0      217     1     0     1     1     0     8    0
amappl4    104      557    0      522     3     1     2     3     0     8    0
amappl3     96     2919    0     2856     4     1     3     3     0     8    1
amappl2     88      694    0      633     3     1     2     3     0     8    0
amappl1     80    10942    0    10449    22     9    13    22     0     8    0
amappl      88     3098    0     2945     5     0     5     5     0    92    0
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        2    0        0     1     0     1     1     0     8    0
uaddrrnd    24      452    0      428     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      452    0      428     1     0     1     1     0     8    0
vmmpekpl   168     9981    0     9942     2     0     2     2     0     8    0
vmmpepl    168    48850    0    47339   115    40    75   111     0   357    3
vmsppl     368      451    0      428     3     0     3     3     0     8    0
rwobjpl     24    21980    0    19512    20     1    19    20     0     8    0
pdppl      4096     910    0      856    85    22    63    69     0     8    9
pvpl        32   406484    0   397463   364   283    81   360     0   265    3
pmappl     216      451    0      428     2     0     2     2     0     8    0
extentpl    40       56    0       38     1     0     1     1     0     8    0
phpool     112      657    0       68    18     0    18    18     0     8    1
ddb> machine ddbcpu 0
No such command
ddb> trace
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff8277fd7b) at panic+0x165 sys/kern/subr_prf.c:198
__assert(ffffffff827fb3f9,ffffffff827e0cde,5d8,ffffffff828087b1) at __assert+0x29 sys/kern/subr_prf.c:157
pmap_deactivate(ffff80002173c7e8) at pmap_deactivate+0xb4 sys/arch/amd64/amd64/pmap.c:1496
cpu_exit(ffff80002173c7e8) at cpu_exit+0x1d sys/arch/amd64/amd64/vm_machdep.c:129
exit1(ffff80002173c7e8,0,0,3) at exit1+0xa9e sys/kern/kern_exit.c:377
single_thread_check_locked(ffff80002173c7e8,0) at single_thread_check_locked+0x226 sys/kern/kern_sig.c:2016
userret(ffff80002173c7e8) at userret+0x72 single_thread_check sys/kern/kern_sig.c:2060 [inline]
userret(ffff80002173c7e8) at userret+0x72 sys/kern/kern_sig.c:1970
syscall(ffff800021850e80) at syscall+0x559 mi_syscall_return sys/sys/syscall_mi.h:137 [inline]
syscall(ffff800021850e80) at syscall+0x559 sys/arch/amd64/amd64/trap.c:644
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x415cdee5170, count: -10
ddb> machine ddbcpu 1
No such command
ddb> trace
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff8277fd7b) at panic+0x165 sys/kern/subr_prf.c:198
__assert(ffffffff827fb3f9,ffffffff827e0cde,5d8,ffffffff828087b1) at __assert+0x29 sys/kern/subr_prf.c:157
pmap_deactivate(ffff80002173c7e8) at pmap_deactivate+0xb4 sys/arch/amd64/amd64/pmap.c:1496
cpu_exit(ffff80002173c7e8) at cpu_exit+0x1d sys/arch/amd64/amd64/vm_machdep.c:129
exit1(ffff80002173c7e8,0,0,3) at exit1+0xa9e sys/kern/kern_exit.c:377
single_thread_check_locked(ffff80002173c7e8,0) at single_thread_check_locked+0x226 sys/kern/kern_sig.c:2016
userret(ffff80002173c7e8) at userret+0x72 single_thread_check sys/kern/kern_sig.c:2060 [inline]
userret(ffff80002173c7e8) at userret+0x72 sys/kern/kern_sig.c:1970
syscall(ffff800021850e80) at syscall+0x559 mi_syscall_return sys/sys/syscall_mi.h:137 [inline]
syscall(ffff800021850e80) at syscall+0x559 sys/arch/amd64/amd64/trap.c:644
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x415cdee5170, count: -10
ddb> 

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/05 16:11 openbsd b3774972aa78 0b6286dc .config console log report syz [disk image] [bsd.gdb] [kernel image] ci-openbsd-main assert "self->ci_proc_pmap == p->p_vmspace->vm_map.pmap" failed in pmap.c
2023/09/05 15:35 openbsd b3774972aa78 0b6286dc .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main assert "self->ci_proc_pmap == p->p_vmspace->vm_map.pmap" failed in pmap.c
* Struck through repros no longer work on HEAD.