syzbot


assert "next != NULL && next->start <= entry->end" failed in uvm_fault.c (4)

Status: fixed on 2022/04/05 02:42
Reported-by: syzbot+e8310909e2910c9cca08@syzkaller.appspotmail.com
Fix commit: f77c87828076 Replace KASSERT in uvm_fault_unwire_locked() with code that handles the case where not all pages are wired. The KASSERT can be triggered in multi-threaded applications when a thread calling munmap(2) races another thread that invokes sysctl(2). Properly written code shouldn't do this, but making the kernel crash in this case is a bit harsh.
First crash: 256d, last: 242d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd assert "next != NULL && next->start <= entry->end" failed in uvm_fault.c C 2 1436d 1436d 3/3 fixed on 2019/01/11 00:09
openbsd assert "next != NULL && next->start <= entry->end" failed in uvm_fault.c (2) syz 2 353d 353d 0/3 closed as invalid on 2022/02/22 18:45
openbsd assert "next != NULL && next->start <= entry->end" failed in uvm_fault.c (3) syz 11 266d 281d 3/3 fixed on 2022/03/12 12:41

Sample crash report:
login: panic: kernel diagnostic assertion "next != NULL && next->start <= entry->end" failed: file "/syzkaller/managers/setuid/kernel/sys/uvm/uvm_fault.c", line 1643
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
 246003  50984      0           0  0x4000000    0  syz-executor2761855390
*403270  50984      0           0  0x4000000    1K syz-executor2761855390
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff8258ed9d) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff8260416c,ffffffff8255d97a,66b,ffffffff8256c874) at __assert+0x25 sys/kern/subr_prf.c:161
uvm_fault_unwire_locked(fffffd806ce0db90,20000000,20011000) at uvm_fault_unwire_locked+0x2eb sys/uvm/uvm_fault.c:1640
uvm_fault_unwire(fffffd806ce0db90,20000000,20011000) at uvm_fault_unwire+0x3f sys/uvm/uvm_fault.c:1601
sys_sysctl(ffff80002119d260,ffff800021245618,ffff800021245670) at sys_sysctl+0x229 sys/kern/kern_sysctl.c:254
syscall(ffff8000212456e0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000212456e0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x36121081db0, 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{1}> 
ddb{1}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> show panic
*cpu1: kernel diagnostic assertion "next != NULL && next->start <= entry->end" failed: file "/syzkaller/managers/setuid/kernel/sys/uvm/uvm_fault.c", line 1643
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff8258ed9d) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff8260416c,ffffffff8255d97a,66b,ffffffff8256c874) at __assert+0x25 sys/kern/subr_prf.c:161
uvm_fault_unwire_locked(fffffd806ce0db90,20000000,20011000) at uvm_fault_unwire_locked+0x2eb sys/uvm/uvm_fault.c:1640
uvm_fault_unwire(fffffd806ce0db90,20000000,20011000) at uvm_fault_unwire+0x3f sys/uvm/uvm_fault.c:1601
sys_sysctl(ffff80002119d260,ffff800021245618,ffff800021245670) at sys_sysctl+0x229 sys/kern/kern_sysctl.c:254
syscall(ffff8000212456e0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000212456e0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x36121081db0, count: -8
ddb{1}> show registers
rdi                                0
rsi                              0x1
rbp               0xffff8000212453a0
rbx               0xffff800020ce9bff
rdx                            0x3fd
rcx                                0
rax                             0x9f
r8                 0x101010101010101
r9                0x8080808080808080
r10               0xde3d8e0dafd86e73
r11               0xfdbe11d988032413
r12               0xffff800020ce9a00
r13                                0
r14                                0
r15                              0x1
rip               0xffffffff81f186c8    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff800021245390
ss                                 0
db_enter+0x18:  addq    $0x8,%rsp
ddb{1}> show proc
PROC (syz-executor2761855390) pid=403270 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=36, usrpri=86, nice=20
    forw=0xffffffffffffffff, list=0xffff800021142a88,0xffff80002119ca90
    process=0xffff8000ffff8430 user=0xffff800021240000, vmspace=0xfffffd806ce0db90
    estcpu=36, cpticks=2, pctcpu=0.0
    user=0, sys=1, intr=0
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 14511   81761  68554      0  2           0                syz-executor2761855390
 95571  270963  52824      0  2           0                syz-executor2761855390
 50984  508519  13703      0  2           0                syz-executor2761855390
 50984  246003  13703      0  7   0x4000000                syz-executor2761855390
*50984  403270  13703      0  7   0x4000000                syz-executor2761855390
  7321  511557  76422      0  2           0                syz-executor2761855390
  7321  315624  76422      0  3   0x4000080  fsleep        syz-executor2761855390
  7321  135117  76422      0  3   0x4000080  fsleep        syz-executor2761855390
 42824  228116  70205      0  2           0                syz-executor2761855390
 42824  373253  70205      0  2   0x4000000                syz-executor2761855390
 42824   35628  70205      0  2   0x4000000                syz-executor2761855390
 70205  351593  68963      0  3        0x80  nanoslp       syz-executor2761855390
 13703  374445  68963      0  3        0x80  nanoslp       syz-executor2761855390
 68554  455811  68963      0  3        0x80  nanoslp       syz-executor2761855390
 76422  230031  68963      0  3        0x80  nanoslp       syz-executor2761855390
 52824  288564  68963      0  3        0x80  nanoslp       syz-executor2761855390
  3933  391692  68963      0  3        0x80  nanoslp       syz-executor2761855390
 62972  405974  68963      0  3           0  biowait       syz-executor2761855390
 33012  446110  68963      0  3        0x80  nanoslp       syz-executor2761855390
 68963  374781  78520      0  3        0x82  nanoslp       syz-executor2761855390
 78520  471934  84764      0  3    0x10008a  sigsusp       ksh
 84764  331231  83994      0  3        0x9a  kqread        sshd
  3039  301515      1      0  3    0x100083  ttyin         getty
 83994  496002      1      0  3        0x88  kqread        sshd
 20448  220590  37350     73  3   0x1100090  kqread        syslogd
 37350  146404      1      0  3    0x100082  netio         syslogd
  1632  243858      1      0  3    0x100080  kqread        resolvd
 80977  154047  25423     77  3    0x100092  kqread        dhcpleased
 60417  443742  25423     77  3    0x100092  kqread        dhcpleased
 25423   81880      1      0  3        0x80  kqread        dhcpleased
  7420  101092      0      0  3     0x14200  bored         smr
 54876  450097      0      0  2     0x14200                zerothread
  1573  175049      0      0  3     0x14200  aiodoned      aiodoned
 97080  240872      0      0  3     0x14200  syncer        update
 30537   49411      0      0  3     0x14200  cleaner       cleaner
 14138  273664      0      0  3     0x14200  reaper        reaper
 40119  193304      0      0  3     0x14200  pgdaemon      pagedaemon
 78965  259517      0      0  3     0x14200  bored         viomb
 90076  278011      0      0  3  0x40014200  acpi0         acpi0
 20886  310096      0      0  3  0x40014200                idle1
 75634  105706      0      0  3     0x14200  bored         softnet
 81831  300244      0      0  3     0x14200  bored         systqmp
 18291   92867      0      0  3     0x14200  bored         systq
 81464  213391      0      0  3  0x40014200  bored         softclock
 26732  507230      0      0  3  0x40014200                idle0
     1  172351      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
Process 50984 (syz-executor2761855390) thread 0xffff800021142a88 (246003)
exclusive rwlock futex r = 0 (0xffffffff828fc810)
#0  witness_lock+0x44d
#1  sys_futex+0x5c sys/kern/sys_futex.c:108
#2  syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#2  syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#3  Xsyscall+0x128
Process 50984 (syz-executor2761855390) thread 0xffff80002119d260 (403270)
exclusive rwlock amaplk r = 0 (0xfffffd807ac87750)
#0  witness_lock+0x44d
#1  uvm_map_lock_entry+0x36 sys/uvm/uvm_map.c:508
#2  uvm_fault_unwire_locked+0x1e8 sys/uvm/uvm_fault.c:1655
#3  uvm_fault_unwire+0x3f sys/uvm/uvm_fault.c:1601
#4  sys_sysctl+0x229 sys/kern/kern_sysctl.c:254
#5  syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#5  syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#6  Xsyscall+0x128
shared rwlock vmmaplk r = 0 (0xfffffd806ce0dba8)
#0  witness_lock+0x44d
#1  uvm_fault_unwire+0x31 sys/uvm/uvm_fault.c:1600
#2  sys_sysctl+0x229 sys/kern/kern_sysctl.c:254
#3  syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#3  syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#4  Xsyscall+0x128
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff829fea58)
#0  witness_lock+0x44d
#1  __mp_acquire_count+0x48 sys/kern/kern_lock.c:227
#2  mi_switch+0x3d3 sys/kern/sched_bsd.c:416
#3  sleep_finish+0x198 sys/kern/kern_synch.c:437
#4  rw_enter+0x35a sys/kern/kern_rwlock.c:286
#5  uvmfault_lookup+0xd9 sys/uvm/uvm_fault.c:1758
#6  uvm_fault_check+0x3a sys/uvm/uvm_fault.c:674
#7  uvm_fault+0x102 sys/uvm/uvm_fault.c:602
#8  uvm_fault_wire+0x63 sys/uvm/uvm_fault.c:1580
#9  sys_sysctl+0x2d8 sys/kern/kern_sysctl.c:240
#10 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#10 syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#11 Xsyscall+0x128
exclusive rwlock sysctllk r = 0 (0xffffffff82981250)
#0  witness_lock+0x44d
#1  rw_enter+0x3e1 sys/kern/kern_rwlock.c:310
#2  sys_sysctl+0x1b3 sys/kern/kern_sysctl.c:233
#3  syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#3  syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#4  Xsyscall+0x128
Process 62972 (syz-executor2761855390) thread 0xffff8000ffff6a90 (405974)
exclusive rrwlock inode r = 0 (0xfffffd806cf132c8)
#0  witness_lock+0x44d
#1  rw_enter+0x3e1 sys/kern/kern_rwlock.c:310
#2  rrw_enter+0x8b sys/kern/kern_rwlock.c:461
#3  VOP_LOCK+0x87 sys/kern/vfs_vops.c:534
#4  vn_lock+0x84 sys/kern/vfs_vnops.c:579
#5  vget+0x1d3 sys/kern/vfs_subr.c:677
#6  ufs_ihashget+0x121 sys/ufs/ufs/ufs_ihash.c:119
#7  ffs_vget+0x7c sys/ufs/ffs/ffs_vfsops.c:1318
#8  ufs_lookup+0x13ba sys/ufs/ufs/ufs_lookup.c:487
#9  VOP_LOOKUP+0x58 sys/kern/vfs_vops.c:85
#10 vfs_lookup+0x6e5 sys/kern/vfs_lookup.c:561
#11 namei+0x36a sys/kern/vfs_lookup.c:245
#12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1850
#13 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#13 syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#14 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd806e424f80)
#0  witness_lock+0x44d
#1  rw_enter+0x3e1 sys/kern/kern_rwlock.c:310
#2  rrw_enter+0x8b sys/kern/kern_rwlock.c:461
#3  VOP_LOCK+0x87 sys/kern/vfs_vops.c:534
#4  vn_lock+0x84 sys/kern/vfs_vnops.c:579
#5  vfs_lookup+0xd1 sys/kern/vfs_lookup.c:413
#6  namei+0x36a sys/kern/vfs_lookup.c:245
#7  dounlinkat+0x99 sys/kern/vfs_syscalls.c:1850
#8  syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#8  syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#9  Xsyscall+0x128
ddb{1}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 10143   6388K    6419K  78643K     11233        0
            pcb    13      8K       8K  78643K        13        0
         rtable    62      2K       2K  78643K       108        0
         ifaddr    24      7K       7K  78643K        24        0
       counters    40     33K      33K  78643K        40        0
       ioctlops     0      0K       2K  78643K        25        0
          mount     1      1K       1K  78643K         1        0
            log     0      0K       0K  78643K         5        0
         vnodes  1166     73K      73K  78643K      1179        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     1      0K       0K  78643K         1        0
           proc    55     74K      75K  78643K       226        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
       in_multi    11      0K       0K  78643K        11        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       2K  78643K       391        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     7     26K      26K  78643K         7        0
       UVM amap   149      6K       7K  78643K    198243        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     3      0K       0K  78643K         3        0
           temp    19   4694K    4758K  78643K     35623        0
         kqueue    11     16K      18K  78643K        24        0
      SYN cache     2     16K      16K  78643K         2        0
ddb{1}> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache    128       22    0        0     1     0     1     1     0     8    0
rtpcb      120       17    0       14     1     0     1     1     0     8    0
rtentry    112       23    0        1     1     0     1     1     0     8    0
unpcb      136       33    0       20     1     0     1     1     0     8    0
syncache   296        5    0        5     2     2     0     1     0     8    0
tcpcb      736        8    0        5     1     0     1     1     0     8    0
arp        120        2    0        0     1     0     1     1     0     8    0
inpcb      312       25    0       19     1     0     1     1     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256       97    0        0     7     0     7     7     0     8    0
art_table   32       98    0        0     1     0     1     1     0     8    0
art_node    16       22    0        2     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256    17699    0    16306    88     0    88    88     0     8    0
ffsino     272    17699    0    16306    93     0    93    93     0     8    0
nchpl      144    34149    0    32592    58     0    58    58     0     8    0
uvmvnodes   80     5926    0        0   121     0   121   121     0     8    0
vnodes     224     5926    0        0   349     0   349   349     0     8    0
namei      1024   69244    0    69244     3     2     1     2     0     8    1
percpumem   16       32    0        0     1     0     1     1     0     8    0
scxspl     216   101707    0   101706    20    19     1     8     0     8    0
plimitpl   152       15    0        9     1     0     1     1     0     8    0
sigapl     424    16576    0    16534     5     0     5     5     0     8    0
futexpl     64    39174    0    39171     1     0     1     1     0     8    0
knotepl    120       42    0        0     2     0     2     2     0     8    0
kqueuepl   216       20    0       13     1     0     1     1     0     8    0
pipepl     336       79    0       76     2     1     1     1     0     8    0
fdescpl    496    16562    0    16536     5     1     4     4     0     8    0
filepl     152    17279    0    17226     3     0     3     3     0     8    0
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       17    0        9     1     0     1     1     0     8    0
pgrppl      48       17    0        9     1     0     1     1     0     8    0
ucredpl     96       64    0       54     1     0     1     1     0     8    0
zombiepl   144    16536    0    16534     2     1     1     1     0     8    0
processpl  1064   16576    0    16534     3     0     3     3     0     8    0
procpl     672    48833    0    48785     5     0     5     5     0     8    1
sockpl     480       75    0       53     4     1     3     4     0     8    0
mcl8k      8192       2    0        0     1     0     1     1     0     8    0
mcl4k      4096       2    0        0     1     0     1     1     0     8    0
mcl2k      2048      70    0        0     8     0     8     8     0     8    0
mtagpl      96        3    0        0     1     0     1     1     0     8    0
mbufpl     256      114    0        0     7     0     7     7     0     8    0
bufpl      288    18234    0    12014   445     0   445   445     0     8    0
anonpl      24  3103013    0  3099509    33     7    26    28     0   186    2
amapchunkpl 152  432863    0   432585    23     8    15    16     0   158    1
amappl16   200     7062    0     7052     3     2     1     2     0     8    0
amappl15   192       59    0       56     1     0     1     1     0     8    0
amappl14   184        2    0        1     1     0     1     1     0     8    0
amappl13   176       32    0       31     2     1     1     1     0     8    0
amappl12   168        8    0        8     2     2     0     1     0     8    0
amappl11   160       38    0       28     1     0     1     1     0     8    0
amappl10   152        3    0        3     1     1     0     1     0     8    0
amappl9    144      456    0      454     1     0     1     1     0     8    0
amappl8    136      360    0      348     1     0     1     1     0     8    0
amappl7    128       60    0       57     1     0     1     1     0     8    0
amappl6    120      107    0       94     1     0     1     1     0     8    0
amappl5    112      173    0      165     1     0     1     1     0     8    0
amappl4    104    16845    0    16821     1     0     1     1     0     8    0
amappl3     96    29028    0    29015     1     0     1     1     0     8    0
amappl2     88      336    0      300     1     0     1     1     0     8    0
amappl1     80   244527    0   244090    13     2    11    11     0     8    0
amappl      88   194352    0   194227     6     2     4     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    16562    0    16536     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24    16562    0    16536     1     0     1     1     0     8    0
vmmpekpl   168   118427    0   118408     2     0     2     2     0     8    0
vmmpepl    168  1111414    0  1110163    81    17    64    68     0   357    6
vmsppl     368    16561    0    16536     3     0     3     3     0     8    0
rwobjpl     56   297005    0   290468    95     2    93    94     0     8    0
pdppl      4096   33131    0    33072    87    22    65    65     0     8    6
pvpl        32  4868857    0  4863012    76    21    55    59     0   265    3
pmappl     248    16561    0    16536     3     1     2     2     0     8    0
extentpl    40       58    0       38     1     0     1     1     0     8    0
phpool     112      754    0       27    21     0    21    21     0     8    0
ddb{1}> machine ddbcpu 0
Stopped at      x86_ipi_db+0x1a:        addq    $0x8,%rsp
x86_ipi_db(ffffffff829afff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393
x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
__mp_lock(ffffffff829fe850) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff829fe850) at __mp_lock+0x122 sys/kern/kern_lock.c:147
intr_handler(ffff800021209440,ffff80000004ad00) at intr_handler+0x5e sys/arch/amd64/amd64/intr.c:532
Xintr_ioapic_edge21_untramp() at Xintr_ioapic_edge21_untramp+0x18f
__mp_lock(ffffffff829fe850) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff829fe850) at __mp_lock+0x122 sys/kern/kern_lock.c:147
sleep_setup(ffff8000212095d0,ffff800021142a88,120,ffffffff82583965,0) at sleep_setup+0xd3 sys/kern/kern_synch.c:374
rwsleep(ffff800021142a88,ffffffff828fc800,120,ffffffff82583965,0) at rwsleep+0xc0 sys/kern/kern_synch.c:315
futex_wait(361cb3cd2a0,1,0,2) at futex_wait+0x13c sys/kern/sys_futex.c:260
sys_futex(ffff800021142a88,ffff800021209760,ffff8000212097c0) at sys_futex+0xf8 sys/kern/sys_futex.c:111
syscall(ffff800021209830) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800021209830) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x3610e0cfcb0, count: 2
ddb{0}> trace
x86_ipi_db(ffffffff829afff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393
x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
__mp_lock(ffffffff829fe850) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff829fe850) at __mp_lock+0x122 sys/kern/kern_lock.c:147
intr_handler(ffff800021209440,ffff80000004ad00) at intr_handler+0x5e sys/arch/amd64/amd64/intr.c:532
Xintr_ioapic_edge21_untramp() at Xintr_ioapic_edge21_untramp+0x18f
__mp_lock(ffffffff829fe850) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff829fe850) at __mp_lock+0x122 sys/kern/kern_lock.c:147
sleep_setup(ffff8000212095d0,ffff800021142a88,120,ffffffff82583965,0) at sleep_setup+0xd3 sys/kern/kern_synch.c:374
rwsleep(ffff800021142a88,ffffffff828fc800,120,ffffffff82583965,0) at rwsleep+0xc0 sys/kern/kern_synch.c:315
futex_wait(361cb3cd2a0,1,0,2) at futex_wait+0x13c sys/kern/sys_futex.c:260
sys_futex(ffff800021142a88,ffff800021209760,ffff8000212097c0) at sys_futex+0xf8 sys/kern/sys_futex.c:111
syscall(ffff800021209830) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800021209830) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x3610e0cfcb0, count: -13
ddb{0}> machine ddbcpu 1
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff8258ed9d) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff8260416c,ffffffff8255d97a,66b,ffffffff8256c874) at __assert+0x25 sys/kern/subr_prf.c:161
uvm_fault_unwire_locked(fffffd806ce0db90,20000000,20011000) at uvm_fault_unwire_locked+0x2eb sys/uvm/uvm_fault.c:1640
uvm_fault_unwire(fffffd806ce0db90,20000000,20011000) at uvm_fault_unwire+0x3f sys/uvm/uvm_fault.c:1601
sys_sysctl(ffff80002119d260,ffff800021245618,ffff800021245670) at sys_sysctl+0x229 sys/kern/kern_sysctl.c:254
syscall(ffff8000212456e0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000212456e0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x36121081db0, count: 7
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff8258ed9d) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff8260416c,ffffffff8255d97a,66b,ffffffff8256c874) at __assert+0x25 sys/kern/subr_prf.c:161
uvm_fault_unwire_locked(fffffd806ce0db90,20000000,20011000) at uvm_fault_unwire_locked+0x2eb sys/uvm/uvm_fault.c:1640
uvm_fault_unwire(fffffd806ce0db90,20000000,20011000) at uvm_fault_unwire+0x3f sys/uvm/uvm_fault.c:1601
sys_sysctl(ffff80002119d260,ffff800021245618,ffff800021245670) at sys_sysctl+0x229 sys/kern/kern_sysctl.c:254
syscall(ffff8000212456e0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000212456e0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x36121081db0, count: -8
ddb{1}> 

Crashes (9):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-openbsd-setuid 2022/03/26 17:23 openbsd 0425cdae7daf 89bc8608 .config log report syz C assert "next != NULL && next->start <= entry->end" failed in uvm_fault.c
ci-openbsd-setuid 2022/03/21 18:34 openbsd 627096b67f0b e2d91b1d .config log report syz assert "next != NULL && next->start <= entry->end" failed in uvm_fault.c
ci-openbsd-setuid 2022/04/04 04:36 openbsd 573411a3dbe7 79a2a8fc .config log report assert "next != NULL && next->start <= entry->end" failed in uvm_fault.c
ci-openbsd-setuid 2022/04/03 23:45 openbsd 573411a3dbe7 79a2a8fc .config log report assert "next != NULL && next->start <= entry->end" failed in uvm_fault.c
ci-openbsd-setuid 2022/04/02 05:08 openbsd 0a039610e5c4 79a2a8fc .config log report assert "next != NULL && next->start <= entry->end" failed in uvm_fault.c
ci-openbsd-setuid 2022/04/01 06:42 openbsd cea9f55fc51e 68fc921a .config log report assert "next != NULL && next->start <= entry->end" failed in uvm_fault.c
ci-openbsd-setuid 2022/03/26 19:04 openbsd 0425cdae7daf 89bc8608 .config log report assert "next != NULL && next->start <= entry->end" failed in uvm_fault.c
ci-openbsd-setuid 2022/03/26 16:34 openbsd 0425cdae7daf 89bc8608 .config log report assert "next != NULL && next->start <= entry->end" failed in uvm_fault.c
ci-openbsd-setuid 2022/03/21 17:50 openbsd 627096b67f0b e2d91b1d .config log report assert "next != NULL && next->start <= entry->end" failed in uvm_fault.c
* Struck through repros no longer work on HEAD.