syzbot


uvm_fault: witness_checkorder (2)

Status: auto-closed as invalid on 2020/02/18 09:16
Reported-by: syzbot+24ad89e87d76a6d9eea6@syzkaller.appspotmail.com
First crash: 1753d, last: 1753d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd uvm_fault: witness_checkorder (3) C 212 361d 614d 0/3 auto-obsoleted due to no activity on 2023/11/01 12:30
openbsd uvm_fault: witness_checkorder syz 2 1785d 1785d 3/3 fixed on 2019/10/22 13:03
openbsd uvm_fault: witness_checkorder (4) 1 289d 289d 0/3 auto-obsoleted due to no activity on 2024/02/21 18:24
openbsd uvm_fault: witness_checkorder (5) 4 58d 166d 0/3 upstream: reported on 2024/03/25 02:45

Sample crash report:
uvm_fault(0xfffffd807f0082e0, 0x10, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at      witness_checkorder+0x44c:       movl    0x10(%r12),%ecx
ddb{0}> 
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
kernel page fault
uvm_fault(0xfffffd807f0082e0, 0x10, 0, 1) -> e
witness_checkorder(ffffffff8251a428,9,0) at witness_checkorder+0x44c witness_lock_order_check sys/kern/subr_witness.c:2442 [inline]
witness_checkorder(ffffffff8251a428,9,0) at witness_checkorder+0x44c sys/kern/subr_witness.c:872
end trace frame: 0xffff800023b73a10, count: 0
ddb{0}> trace
witness_checkorder(ffffffff8251a428,9,0) at witness_checkorder+0x44c witness_lock_order_check sys/kern/subr_witness.c:2442 [inline]
witness_checkorder(ffffffff8251a428,9,0) at witness_checkorder+0x44c sys/kern/subr_witness.c:872
rw_enter_write(ffffffff8251a418) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:125
sosplice(fffffd806184b930,ffffffff,0,0) at sosplice+0x5f sys/kern/uipc_socket.c:1128
sosetopt(fffffd806184b930,ffff,1023,0) at sosetopt+0x7f4
sys_setsockopt(ffff800020ab0ee8,ffff800023b73ba8,ffff800023b73bf0) at sys_setsockopt+0x216 sys/kern/uipc_syscalls.c:970
syscall(ffff800023b73c70) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800023b73c70) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xe12f72f85c0, count: -7
ddb{0}> show registers
rdi               0xffffffff81b20b27    witness_checkorder+0x3a7
rsi                           0x11dc    __ALIGN_SIZE+0x1dc
rbp               0xffff800023b739e0
rbx                       0xffffffff
rdx                           0x11dd    __ALIGN_SIZE+0x1dd
rcx                              0xc
rax               0xfffffd80029f8000
r8                0xffffffff8101132f    kprintf+0x16f
r9                               0x1
r10               0xffff800023b737c0
r11               0xae7dbb07599919d0
r12                                0
r13                                0
r14               0xfffffd80029d0300
r15               0xffffffff825a1238    w_locklistdata+0x42688
rip               0xffffffff81b20bcc    witness_checkorder+0x44c
cs                               0x8
rflags                       0x10286    __ALIGN_SIZE+0xf286
rsp               0xffff800023b73940
ss                              0x10
witness_checkorder+0x44c:       movl    0x10(%r12),%ecx
ddb{0}> show proc
PROC (syz-executor.1) pid=68733 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=86, usrpri=86, nice=20
    forw=0xffffffffffffffff, list=0xffff800020ab0290,0xffff800020ab0a08
    process=0xffff800020adc380 user=0xffff800023b6e000, vmspace=0xfffffd807f0082e0
    estcpu=36, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb{0}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 34118   23406  93168      0  2           0                syz-executor.0
 21825  208677  61006      0  2           0                syz-executor.1
*21825   68733  61006      0  7   0x4000000                syz-executor.1
 51740  461422      1      0  3    0x100083  ttyin         getty
 93168  364231  23514      0  2         0x2                syz-executor.0
 61006   27047  23514      0  7       0x482                syz-executor.1
 23514  273428  88564      0  3        0x82  thrsleep      syz-fuzzer
 23514  296016  88564      0  3   0x4000082  nanosleep     syz-fuzzer
 23514  491214  88564      0  3   0x4000082  thrsleep      syz-fuzzer
 23514  454268  88564      0  3   0x4000082  thrsleep      syz-fuzzer
 23514  131402  88564      0  3   0x4000082  thrsleep      syz-fuzzer
 23514  171501  88564      0  3   0x4000082  thrsleep      syz-fuzzer
 23514   13969  88564      0  3   0x4000082  thrsleep      syz-fuzzer
 23514  303577  88564      0  3   0x4000082  thrsleep      syz-fuzzer
 23514  488486  88564      0  3   0x4000082  nanosleep     syz-fuzzer
 23514   31624  88564      0  3   0x4000082  kqread        syz-fuzzer
 88564  328618  96688      0  3    0x10008a  pause         ksh
 96688   42588  18300      0  3        0x92  select        sshd
 18300  313486      1      0  3        0x80  select        sshd
 30230  101051  53096     74  3    0x100092  bpf           pflogd
 53096  349732      1      0  3        0x80  netio         pflogd
 78030  405580  87555     73  3    0x100090  kqread        syslogd
 87555   90798      1      0  3    0x100082  netio         syslogd
 97520  386115      1     77  3    0x100090  poll          dhclient
 72398  216646      1      0  3        0x80  poll          dhclient
 54107    6756      0      0  2     0x14200                zerothread
 22105  441933      0      0  3     0x14200  aiodoned      aiodoned
 56659  420582      0      0  3     0x14200  syncer        update
 39534  498381      0      0  3     0x14200  cleaner       cleaner
 67332   97073      0      0  3     0x14200  reaper        reaper
 63407  327125      0      0  3     0x14200  pgdaemon      pagedaemon
 55849  448357      0      0  3     0x14200  bored         crynlk
 23403  431572      0      0  3     0x14200  bored         crypto
 48813  502732      0      0  3  0x40014200  acpi0         acpi0
 62370  325980      0      0  3  0x40014200                idle1
 15887  430637      0      0  3     0x14200  bored         softnet
 28572  128918      0      0  3     0x14200  bored         systqmp
 89596   21098      0      0  3     0x14200  bored         systq
 59420  130057      0      0  3  0x40014200  bored         softclock
 46848  267543      0      0  3  0x40014200                idle0
 41481  366466      0      0  3     0x14200  bored         smr
     1  231952      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{0}> show all locks
Process 21825 (syz-executor.1) thread 0xffff800020ab0ee8 (68733)
ddb{0}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim Kern Lim
         devbuf  9496   6414K    7368K  78643K     11540        0        0
            pcb    13      8K       8K  78643K       267        0        0
         rtable    95      4K       4K  78643K      1159        0        0
         ifaddr    55     11K      11K  78643K        94        0        0
       counters    39     33K      33K  78643K        39        0        0
       ioctlops     0      0K       4K  78643K      1488        0        0
            iov     0      0K      16K  78643K      1005        0        0
          mount     1      1K       1K  78643K         1        0        0
         vnodes  1225     77K      77K  78643K      3285        0        0
      UFS quota     1     32K      32K  78643K         1        0        0
      UFS mount     5     36K      36K  78643K         5        0        0
            shm     2      1K       5K  78643K        19        0        0
         VM map     4      2K       2K  78643K         4        0        0
            sem    12      1K       1K  78643K        12        0        0
        dirhash    12      2K       2K  78643K        12        0        0
           ACPI  1809    196K     290K  78643K     12766        0        0
      file desc     6     17K      25K  78643K      3811        0        0
          sigio     0      0K       0K  78643K      1630        0        0
           proc    61     75K      95K  78643K      6778        0        0
        subproc    32      2K       2K  78643K        68        0        0
    NFS srvsock     1      0K       0K  78643K         1        0        0
     NFS daemon     1     16K      16K  78643K         1        0        0
    ip_moptions     0      0K       0K  78643K         6        0        0
       in_multi    23      1K       2K  78643K        62        0        0
    ether_multi     1      0K       0K  78643K         1        0        0
            mrt     0      0K       0K  78643K        90        0        0
    ISOFS mount     1     32K      32K  78643K         1        0        0
  MSDOSFS mount     1     16K      16K  78643K         1        0        0
           ttys    54    238K     238K  78643K        54        0        0
           exec     0      0K       1K  78643K      2163        0        0
        pagedep     1      8K       8K  78643K         1        0        0
       inodedep     1     32K      32K  78643K         1        0        0
         newblk     1      0K       0K  78643K         1        0        0
        VM swap     7     26K      26K  78643K         7        0        0
       UVM amap   123     39K      39K  78643K     10403        0        0
       UVM aobj    43      2K       2K  78643K        43        0        0
        memdesc     1      4K       4K  78643K         1        0        0
    crypto data     1      1K       1K  78643K         1        0        0
    ip6_options     0      0K       0K  78643K        23        0        0
            NDP     9      0K       0K  78643K        23        0        0
           temp   123   3554K    3650K  78643K     12545        0        0
      SYN cache     2     16K      16K  78643K         2        0        0
ddb{0}> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp         64       17    0       13     1     0     1     1     0     8    0
plcache    128       20    0        0     1     0     1     1     0     8    0
rtpcb       80       50    0       48     1     0     1     1     0     8    0
rtentry    112      355    0      319     2     0     2     2     0     8    0
unpcb      120     4801    0     4790     3     2     1     2     0     8    0
syncache   264        5    0        5     2     2     0     1     0     8    0
tcpqe       32       19    0       19     2     2     0     1     0     8    0
tcpcb      544       80    0       74     1     0     1     1     0     8    0
inpcb      280     3306    0     3297     9     6     3     3     0     8    2
nd6         48       10    0        8     1     0     1     1     0     8    0
ppxss      1128       1    0        1     1     1     0     1     0     8    0
pffrag     232        3    0        3     2     2     0     1     0   482    0
pffrnode    88        3    0        3     2     2     0     1     0     8    0
pffrent     40       49    0       49     2     2     0     1     0     8    0
pfosfp      40      846    0      423     5     0     5     5     0     8    0
pfosfpen   112     1428    0      714    21     0    21    21     0     8    0
pfstitem    24     1062    0      284     6     0     6     6     0     8    0
pfstkey    112     1062    0      284    25     0    25    25     0     8    0
pfstate    328     1062    0      284    73     0    73    73     0     8    0
pfrule     1360      21    0       16     2     1     1     2     0     8    0
art_heap8  4096     136    0      134     3     0     3     3     0     8    1
art_heap4  256     1175    0      995    15     2    13    14     0     8    0
art_table   32     1311    0     1129     2     0     2     2     0     8    0
art_node    16      354    0      321     1     0     1     1     0     8    0
sysvmsgpl   40        5    0        0     1     0     1     1     0     8    0
semupl     112       10    0       10     1     1     0     1     0     8    0
semapl     112       10    0        0     1     0     1     1     0     8    0
shmpl      112       41    0        0     2     0     2     2     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     8682    0     7279    46     0    46    46     0     8    0
ffsino     272     8682    0     7279    94     0    94    94     0     8    0
nchpl      144    13663    0    12062    60     0    60    60     0     8    0
uvmvnodes   72     5926    0        0   108     0   108   108     0     8    0
vnodes     208     5926    0        0   312     0   312   312     0     8    0
namei      1024   51319    0    51319     1     0     1     1     0     8    1
percpumem   16       30    0        0     1     0     1     1     0     8    0
vcpupl     1984       2    0        0     1     0     1     1     0     8    0
vmpool     552        2    0        0     1     0     1     1     0     8    0
scxspl     192    34754    0    34754     8     7     1     7     0     8    1
plimitpl   152      300    0      292     1     0     1     1     0     8    0
sigapl     432     4005    0     3989     3     1     2     3     0     8    0
futexpl     56    91344    0    91344     1     0     1     1     0     8    1
knotepl    112      506    0      487     1     0     1     1     0     8    0
kqueuepl   104      810    0      808     1     0     1     1     0     8    0
pipepl     160     4292    0     4273     5     4     1     2     0     8    0
fdescpl    488     4006    0     3989     3     0     3     3     0     8    0
filepl     152    40109    0    40008    13     7     6     8     0     8    1
lockfpl    104      178    0      177     1     0     1     1     0     8    0
lockfspl    48       79    0       78     1     0     1     1     0     8    0
sessionpl  112       22    0       11     1     0     1     1     0     8    0
pgrppl      48       30    0       19     1     0     1     1     0     8    0
ucredpl     96      955    0      946     1     0     1     1     0     8    0
zombiepl   144     3989    0     3989     1     0     1     1     0     8    1
processpl  896     4021    0     3989     4     0     4     4     0     8    0
procpl     632     9535    0     9493     6     1     5     5     0     8    1
srpgc       64        4    0        4     2     2     0     1     0     8    0
sockpl     384     8170    0     8148    16    10     6     9     0     8    3
mcl64k     65536     17    0        0     3     0     3     3     0     8    0
mcl16k     16384     14    0        0     2     0     2     2     0     8    0
mcl12k     12288     13    0        0     2     0     2     2     0     8    0
mcl9k      9216       4    0        0     1     0     1     1     0     8    0
mcl8k      8192      17    0        0     3     0     3     3     0     8    0
mcl4k      4096      17    0        0     3     0     3     3     0     8    0
mcl2k2     2112       2    0        0     1     0     1     1     0     8    0
mcl2k      2048     166    0        0    20     0    20    20     0     8    0
mtagpl      80       43    0        0     1     0     1     1     0     8    0
mbufpl     256      266    0        0    16     0    16    16     0     8    0
bufpl      256    10211    0     3153   442     0   442   442     0     8    0
anonpl      16   280383    0   259503    88     3    85    86     0   124    0
amapchunkpl 152   16202    0    16044     8     1     7     8     0   158    0
amappl16   192    15827    0    14682    59     1    58    59     0     8    0
amappl15   184        1    0        1     1     1     0     1     0     8    0
amappl14   176     1605    0     1597     1     0     1     1     0     8    0
amappl13   168      332    0      332     2     2     0     1     0     8    0
amappl12   160        7    0        7     1     1     0     1     0     8    0
amappl11   152       69    0       53     1     0     1     1     0     8    0
amappl10   144       18    0       12     1     0     1     1     0     8    0
amappl9    136     2522    0     2518     1     0     1     1     0     8    0
amappl8    128     2104    0     2065     2     0     2     2     0     8    0
amappl7    120       47    0       41     1     0     1     1     0     8    0
amappl6    112       65    0       53     1     0     1     1     0     8    0
amappl5    104     1701    0     1686     1     0     1     1     0     8    0
amappl4     96     2882    0     2851     1     0     1     1     0     8    0
amappl3     88     3182    0     3173     1     0     1     1     0     8    0
amappl2     80    31682    0    31609     3     1     2     3     0     8    0
amappl1     72    82754    0    82320    25    15    10    20     0     8    0
amappl      80     9819    0     9771     2     0     2     2     0    84    0
dma4096    4096       1    0        1     1     1     0     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      64       42    0        0     1     0     1     1     0     8    0
uaddrrnd    24     4008    0     3989     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     4008    0     3989     1     0     1     1     0     8    0
vmmpekpl   168    32253    0    32222     3     1     2     2     0     8    0
vmmpepl    168   465906    0   463535   177    71   106   145     0   357    2
vmsppl     368     4005    0     3989     2     0     2     2     0     8    0
pdppl      4096    8023    0     7980     6     0     6     6     0     8    0
pvpl        32   812188    0   788001   214    13   201   203     0   265    5
pmappl     232     4007    0     3989     3     1     2     2     0     8    0
extentpl    40       46    0       29     1     0     1     1     0     8    0
phpool     112      618    0        5    18     0    18    18     0     8    0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/20 09:15 openbsd 039d6aae052b 12be8ffc .config console log report ci-openbsd-multicore
* Struck through repros no longer work on HEAD.