syzbot


assert "rw_write_held(&map->lock)" failed in uvm_map.c

Status: auto-obsoleted due to no activity on 2024/03/06 21:25
Reported-by: syzbot+a1f3bca9ff3c4d8cec4c@syzkaller.appspotmail.com
First crash: 352d, last: 352d

Sample crash report:
ppanic: kernel diagnostic assertion "rw_write_held(&map->lock)" failed: file "/syzkaller/managers/setuid/kernel/sys/uvm/uvm_map.c", line 5405
Stopped at      db_enter+0x1c:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*501135  55833  32767        0x10  0x4000000    1K syz-executor.7
  67621  88606  32767        0x10          0    0  syz-executor.6
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff827ac36b) at panic+0x17b sys/kern/subr_prf.c:198
__assert(ffffffff8282a878,ffffffff828583e2,151d,ffffffff82868d94) at __assert+0x29 sys/kern/subr_prf.c:157
vm_map_busy_ln(fffffd806ba07cd0,fffffd807ba370b8,0) at vm_map_busy_ln+0xd6 sys/uvm/uvm_map.c:5406
uvm_map_pageable_wire(fffffd806ba07cd0,fffffd806be34258,fffffd807ba37010,ffff80002afeed50,40,0) at uvm_map_pageable_wire+0x1dd vm_map_unlock_ln sys/uvm/uvm_map.c:5379 [inline]
uvm_map_pageable_wire(fffffd806ba07cd0,fffffd806be34258,fffffd807ba37010,ffff80002afeed50,40,0) at uvm_map_pageable_wire+0x1dd sys/uvm/uvm_map.c:2181
sys_mlock(ffff80002afeed50,ffff80002e421560,ffff80002e4215b0) at sys_mlock+0x188 sys/uvm/uvm_mmap.c:825
syscall(ffff80002e421630) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline]
syscall(ffff80002e421630) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x34b3a66c370, 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
*cpu0: vop_generic_badop
 cpu1: kernel diagnostic assertion "rw_write_held(&map->lock)" failed: file "/syzkaller/managers/setuid/kernel/sys/uvm/uvm_map.c", line 5405
ddb{1}> trace
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff827ac36b) at panic+0x17b sys/kern/subr_prf.c:198
__assert(ffffffff8282a878,ffffffff828583e2,151d,ffffffff82868d94) at __assert+0x29 sys/kern/subr_prf.c:157
vm_map_busy_ln(fffffd806ba07cd0,fffffd807ba370b8,0) at vm_map_busy_ln+0xd6 sys/uvm/uvm_map.c:5406
uvm_map_pageable_wire(fffffd806ba07cd0,fffffd806be34258,fffffd807ba37010,ffff80002afeed50,40,0) at uvm_map_pageable_wire+0x1dd vm_map_unlock_ln sys/uvm/uvm_map.c:5379 [inline]
uvm_map_pageable_wire(fffffd806ba07cd0,fffffd806be34258,fffffd807ba37010,ffff80002afeed50,40,0) at uvm_map_pageable_wire+0x1dd sys/uvm/uvm_map.c:2181
sys_mlock(ffff80002afeed50,ffff80002e421560,ffff80002e4215b0) at sys_mlock+0x188 sys/uvm/uvm_mmap.c:825
syscall(ffff80002e421630) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline]
syscall(ffff80002e421630) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x34b3a66c370, count: -8
ddb{1}> show registers
rdi                                0
rsi                              0x1
rbp               0xffff80002e421330
rbx               0xffff800020d49ba7
rdx                                0
rcx               0xffff80002afeed50
rax               0xffff800020d48ff0
r8                 0x101010101010101
r9                0x8080808080808080
r10               0xabccb65344e8e8d6
r11               0xc2e24ff261fd9fa2
r12               0xffff800020d499a8
r13                                0
r14               0xffffffff82c5b9a8    cpu_info_full_primary+0x29a8
r15                              0x1
rip               0xffffffff8159bf2c    db_enter+0x1c
cs                               0x8
rflags                         0x246
rsp               0xffff80002e421320
ss                              0x10
db_enter+0x1c:  addq    $0x8,%rsp
ddb{1}> show proc
PROC (syz-executor.7) tid=501135 pid=55833 tcnt=4 stat=onproc
    flags process=10<SUGID> proc=4000000<THREAD>
    runpri=80, usrpri=80, slppri=32, nice=20
    wchan=0x0, wmesg=, ps_single=0x0
    forw=0xffffffffffffffff, list=0xffff80002afefa98,0xffffffff82c85530
    process=0xffff8000ffff4010 user=0xffff80002e41c000, vmspace=0xfffffd806ba07cd0
    estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 51144   11012  44761  32767  2        0x10                syz-executor.3
 85513  452443  50734  32767  3        0x90  nanoslp       syz-executor.5
 85513  118959  50734  32767  3   0x4000090  fsleep        syz-executor.5
 55833  251799  50830  32767  2        0x10                syz-executor.7
 55833  398904  50830  32767  3   0x4000090  fsleep        syz-executor.7
 55833  173664  50830  32767  3   0x4000090  fsleep        syz-executor.7
*55833  501135  50830  32767  7   0x4000010                syz-executor.7
 66641   36065  35673  32767  3        0x90  nanoslp       syz-executor.2
 66641  414970  35673  32767  3   0x4000090  kqread        syz-executor.2
 44761  509018  49770  32767  3        0x90  nanoslp       syz-executor.3
 49770  143333  11404      0  3        0x82  wait          syz-executor.3
 50830  144278  32097  32767  3        0x90  nanoslp       syz-executor.7
 32097  101712  11404      0  3        0x82  wait          syz-executor.7
 35866  434307  70491  32767  3        0x10  biowait       syz-executor.1
 70491  467696  11404      0  3        0x82  wait          syz-executor.1
 50734  267537  57457  32767  3        0x90  nanoslp       syz-executor.5
 57457  307478  11404      0  3        0x82  wait          syz-executor.5
 88606   67621  39347  32767  7        0x10                syz-executor.6
 39347  175248  11404      0  3        0x82  wait          syz-executor.6
 44743  346185  42576  32767  3        0x10  biowait       syz-executor.0
 42576   57963  11404      0  3        0x82  wait          syz-executor.0
 35673  321464   9089  32767  3        0x90  nanoslp       syz-executor.2
  9089   67759  11404      0  3        0x82  wait          syz-executor.2
 80396   70368      0      0  3     0x14200  bored         sosplice
 11404  382137  84042      0  3   0x2000082  wait          syz-fuzzer
 11404   41281  84042      0  3   0x6000082  nanoslp       syz-fuzzer
 11404  483473  84042      0  3   0x6000082  wait          syz-fuzzer
 11404  403576  84042      0  3   0x6000082  thrsleep      syz-fuzzer
 11404  386262  84042      0  3   0x6000082  thrsleep      syz-fuzzer
 11404  113571  84042      0  3   0x6000082  thrsleep      syz-fuzzer
 11404  401911  84042      0  3   0x6000082  wait          syz-fuzzer
 11404   37217  84042      0  3   0x6000082  wait          syz-fuzzer
 11404  138969  84042      0  3   0x6000082  thrsleep      syz-fuzzer
 11404  172866  84042      0  3   0x6000082  thrsleep      syz-fuzzer
 11404  386927  84042      0  3   0x6000082  kqread        syz-fuzzer
 11404  219450  84042      0  3   0x6000082  thrsleep      syz-fuzzer
 11404  405854  84042      0  3   0x6000082  wait          syz-fuzzer
 11404  364615  84042      0  3   0x6000082  wait          syz-fuzzer
 11404   28086  84042      0  3   0x6000082  wait          syz-fuzzer
 11404  171692  84042      0  3   0x6000082  thrsleep      syz-fuzzer
 84042  154602  46078      0  3    0x10008a  sigsusp       ksh
 46078  295031  82470      0  3        0x9a  kqread        sshd
 17079  464361      1      0  3    0x100083  ttyin         getty
 82470  138995      1      0  3        0x88  kqread        sshd
 76412  485052  31249     73  3   0x1100090  kqread        syslogd
 31249  382813      1      0  3    0x100082  netio         syslogd
 65467  217821      1      0  3    0x100080  kqread        resolvd
 18763  455506  97069     77  3    0x100092  kqread        dhcpleased
 28460    6342  97069     77  3    0x100092  kqread        dhcpleased
 97069  389222      1      0  3        0x80  kqread        dhcpleased
 59687  129255      0      0  3     0x14200  bored         smr
 47399  289910      0      0  2     0x14200                zerothread
 95097  411083      0      0  3     0x14200  aiodoned      aiodoned
 84709  218472      0      0  3     0x14200  syncer        update
 68479  249022      0      0  3     0x14200  cleaner       cleaner
 53541  183188      0      0  3     0x14200  reaper        reaper
 95231  495636      0      0  3     0x14200  pgdaemon      pagedaemon
 20300  341841      0      0  3     0x14200  bored         viomb
 89512   88740      0      0  3  0x40014200  acpi0         acpi0
 14694  120646      0      0  3  0x40014200                idle1
 15447  255024      0      0  3     0x14200  bored         softnet3
 77018   24296      0      0  3     0x14200  bored         softnet2
 68601  419152      0      0  3     0x14200  bored         softnet1
 69756  187890      0      0  3     0x14200  bored         softnet0
 76934  187263      0      0  3     0x14200  bored         systqmp
 37091  244452      0      0  3     0x14200  bored         systq
 10822  324668      0      0  3     0x14200  tmoslp        softclockmp
 14412  211255      0      0  3  0x40014200  tmoslp        softclock
 50451  407264      0      0  3  0x40014200                idle0
     1  193285      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
Process 35866 (syz-executor.1) thread 0xffff80002613c2a8 (434307)
exclusive rrwlock inode r = 0 (0xfffffd805ca49d58)
#0  witness_lock+0x447
#1  rw_enter+0x3c8 sys/kern/kern_rwlock.c:309
#2  rrw_enter+0x8c sys/kern/kern_rwlock.c:464
#3  VOP_LOCK+0x8b sys/kern/vfs_vops.c:518
#4  vn_lock+0x84 sys/kern/vfs_vnops.c:564
#5  vget+0x200 sys/kern/vfs_subr.c:676
#6  ufs_ihashget+0x121 sys/ufs/ufs/ufs_ihash.c:119
#7  ffs_vget+0x7c sys/ufs/ffs/ffs_vfsops.c:1314
#8  ufs_lookup+0x13ba sys/ufs/ufs/ufs_lookup.c:487
#9  VOP_LOOKUP+0x5c sys/kern/vfs_vops.c:85
#10 vfs_lookup+0x6e2 sys/kern/vfs_lookup.c:566
#11 namei+0x55a sys/kern/vfs_lookup.c:250
#12 dounlinkat+0x9d sys/kern/vfs_syscalls.c:1847
#13 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline]
#13 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623
#14 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd805ca496f8)
#0  witness_lock+0x447
#1  rw_enter+0x3c8 sys/kern/kern_rwlock.c:309
#2  rrw_enter+0x8c sys/kern/kern_rwlock.c:464
#3  VOP_LOCK+0x8b sys/kern/vfs_vops.c:518
#4  vn_lock+0x84 sys/kern/vfs_vnops.c:564
#5  vfs_lookup+0xd5 sys/kern/vfs_lookup.c:418
#6  namei+0x55a sys/kern/vfs_lookup.c:250
#7  dounlinkat+0x9d sys/kern/vfs_syscalls.c:1847
#8  syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline]
#8  syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623
#9  Xsyscall+0x128
Process 88606 (syz-executor.6) thread 0xffff80002afefd40 (67621)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82d96900)
#0  witness_lock+0x447
#1  __mp_acquire_count+0x48 sys/kern/kern_lock.c:227
#2  mi_switch+0x46d sys/kern/sched_bsd.c:470
#3  sleep_finish+0x19b sys/kern/kern_synch.c:414
#4  biowait+0x91 sys/kern/vfs_bio.c:1278
#5  bwrite+0x21c sys/kern/vfs_bio.c:769
#6  ffs_update+0x281 sys/ufs/ffs/ffs_inode.c:113
#7  ufs_mkdir+0x672 sys/ufs/ufs/ufs_vnops.c:1219
#8  VOP_MKDIR+0xc3 sys/kern/vfs_vops.c:388
#9  domkdirat+0x125 sys/kern/vfs_syscalls.c:3073
#10 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline]
#10 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623
#11 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd8066736d60)
#0  witness_lock+0x447
#1  rw_enter+0x3c8 sys/kern/kern_rwlock.c:309
#2  rrw_enter+0x8c sys/kern/kern_rwlock.c:464
#3  VOP_LOCK+0x8b sys/kern/vfs_vops.c:518
#4  vn_lock+0x84 sys/kern/vfs_vnops.c:564
#5  vget+0x200 sys/kern/vfs_subr.c:676
#6  ufs_ihashget+0x121 sys/ufs/ufs/ufs_ihash.c:119
#7  ffs_vget+0x7c sys/ufs/ffs/ffs_vfsops.c:1314
#8  ffs_inode_alloc+0x1c2 sys/ufs/ffs/ffs_alloc.c:394
#9  ufs_mkdir+0xf8 sys/ufs/ufs/ufs_vnops.c:1149
#10 VOP_MKDIR+0xc3 sys/kern/vfs_vops.c:388
#11 domkdirat+0x125 sys/kern/vfs_syscalls.c:3073
#12 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline]
#12 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623
#13 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd80642942c8)
#0  witness_lock+0x447
#1  rw_enter+0x3c8 sys/kern/kern_rwlock.c:309
#2  rrw_enter+0x8c sys/kern/kern_rwlock.c:464
#3  VOP_LOCK+0x8b sys/kern/vfs_vops.c:518
#4  vn_lock+0x84 sys/kern/vfs_vnops.c:564
#5  vfs_lookup+0xd5 sys/kern/vfs_lookup.c:418
#6  namei+0x55a sys/kern/vfs_lookup.c:250
#7  domkdirat+0x79 sys/kern/vfs_syscalls.c:3058
#8  syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline]
#8  syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623
#9  Xsyscall+0x128
Process 44743 (syz-executor.0) thread 0xffff80002125a020 (346185)
exclusive rrwlock inode r = 0 (0xfffffd805ca493c8)
#0  witness_lock+0x447
#1  rw_enter+0x3c8 sys/kern/kern_rwlock.c:309
#2  rrw_enter+0x8c sys/kern/kern_rwlock.c:464
#3  VOP_LOCK+0x8b sys/kern/vfs_vops.c:518
#4  ufs_ihashins+0x46 sys/ufs/ufs/ufs_ihash.c:140
#5  ffs_vget+0x141 sys/ufs/ffs/ffs_vfsops.c:1343
#6  ffs_inode_alloc+0x1c2 sys/ufs/ffs/ffs_alloc.c:394
#7  ufs_mkdir+0xf8 sys/ufs/ufs/ufs_vnops.c:1149
#8  VOP_MKDIR+0xc3 sys/kern/vfs_vops.c:388
#9  domkdirat+0x125 sys/kern/vfs_syscalls.c:3073
#10 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline]
#10 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623
#11 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd806ecec0a0)
#0  witness_lock+0x447
#1  rw_enter+0x3c8 sys/kern/kern_rwlock.c:309
#2  rrw_enter+0x8c sys/kern/kern_rwlock.c:464
#3  VOP_LOCK+0x8b sys/kern/vfs_vops.c:518
#4  vn_lock+0x84 sys/kern/vfs_vnops.c:564
#5  vfs_lookup+0xd5 sys/kern/vfs_lookup.c:418
#6  namei+0x55a sys/kern/vfs_lookup.c:250
#7  domkdirat+0x79 sys/kern/vfs_syscalls.c:3058
#8  syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline]
#8  syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623
#9  Xsyscall+0x128
ddb{1}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 10220   6411K    6420K  78643K     11378        0
            pcb    13     10K      12K  78643K        15        0
         rtable   214      6K       7K  78643K      3238        0
             pf    27      8K       8K  78643K        79        0
         ifaddr    40     15K      15K  78643K       150        0
        ifgroup    46      2K       2K  78643K       150        0
         sysctl     3      0K       0K  78643K         3        0
       counters    58     35K      35K  78643K       110        0
       ioctlops     0      0K       2K  78643K       221        0
            iov     0      0K      24K  78643K       579        0
          mount     1      1K       1K  78643K         1        0
            log     0      0K       0K  78643K         4        0
         vnodes  1279     80K      80K  78643K      3032        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       9K  78643K       123        0
         VM map     2      1K       1K  78643K         2        0
            sem    12      0K       1K  78643K      1112        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1697    195K     286K  78643K     12548        0
      file desc    20     73K     117K  78643K      8239        0
          sigio     0      0K       0K  78643K      5661        0
           proc    56     78K     115K  78643K      1653        0
        subproc    91      5K       6K  78643K       429        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K       257        0
       in_multi    88      6K       7K  78643K       415        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   277   1235K    1235K  78643K       277        0
           exec     0      0K       1K  78643K      1478        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   388     80K     103K  78643K     82514        0
       UVM aobj   131      4K       4K  78643K       131        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K       259        0
            NDP    10      0K       2K  78643K       102        0
           temp    70   5919K    6048K  78643K     24587        0
         kqueue    13     20K      27K  78643K       577        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     3253    0     3250    14    13     1     5     0     8    0
rtentry    112      393    0      293     4     0     4     4     0     8    0
unpcb      144     4039    0     4025    45    44     1     8     0     8    0
syncache   312      128    0      128    13    12     1     1     0     8    1
tcpqe       32      271    0      271    12    12     0     1     0     8    0
tcpcb      808     3482    0     3450    83    73    10    13     0     8    4
arp        120       69    0       53     1     0     1     1     0     8    0
ipq         40       10    0       10     4     4     0     1     0     8    0
ipqe        40       36    0       36     4     4     0     1     0     8    0
inpcb      368     6450    0     6413    75    66     9    14     0     8    3
nd6        136      105    0       83     1     0     1     1     0     8    0
kcovpl      48       33    0       26     1     0     1     1     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256     1574    0     1157    29     0    29    29     0     8    2
art_table   32     1575    0     1157     4     0     4     4     0     8    0
art_node    16      392    0      301     1     0     1     1     0     8    0
sysvmsgpl   40        1    0        0     1     0     1     1     0     8    0
semupl     112        1    0        1     1     1     0     1     0     8    0
semapl     112     1110    0     1100     1     0     1     1     0     8    0
shmpl      112      128    0        0     4     0     4     4     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256    11715    0    10271    91     0    91    91     0     8    0
ffsino     272    11715    0    10271    97     0    97    97     0     8    0
nchpl      144    22109    0    20477    63     0    63    63     0     8    0
uvmvnodes   80     5926    0        0   121     0   121   121     0     8    0
vnodes     216     5926    0        0   330     0   330   330     0     8    0
namei      1024   73656    0    73654     5     4     1     2     0     8    0
percpumem   16       68    0       26     1     0     1     1     0     8    0
kstatmem   264       72    0       52     2     0     2     2     0     8    0
scxspl     216    72950    0    72948    24    21     3     8     1     8    2
plimitpl   152     1355    0     1334    14    12     2     2     0     8    1
sigapl     424     8476    0     8426     7     0     7     7     0     8    0
futexpl     64    75647    0    75644     5     4     1     1     0     8    0
knotepl    120      576    0        0    11     1    10    10     0     8    0
kqueuepl   216     1467    0     1458    32    31     1     6     0     8    0
pipepl     320    15879    0    15852   109    98    11    17     0     8    8
fdescpl    496     8457    0     8426     7     2     5     6     0     8    0
filepl     152    78098    0    77870   136   119    17    22     0     8    7
lockfpl    104     1696    0     1694     3     2     1     2     0     8    0
lockfspl    48      471    0      469     1     0     1     1     0     8    0
sessionpl  144       48    0       33     1     0     1     1     0     8    0
pgrppl      48       73    0       58     1     0     1     1     0     8    0
ucredpl    104     7893    0     7876     1     0     1     1     0     8    0
zombiepl   144     8426    0     8426     1     0     1     1     0     8    1
processpl  1072    8476    0     8426     5     1     4     5     0     8    0
procpl     680    23072    0    23002    20    12     8     9     0     8    1
sosppl     168      109    0      109    10     9     1     1     0     8    1
sockpl     488    14038    0    13984   207   192    15    32     0     8    4
mcl64k     65536     25    0        0     3     0     3     3     0     8    0
mcl16k     16384     17    0        0     3     0     3     3     0     8    0
mcl12k     12288     22    0        0     2     0     2     2     0     8    0
mcl9k      9216      17    0        0     2     0     2     2     0     8    0
mcl8k      8192      17    0        0     3     0     3     3     0     8    0
mcl4k      4096      25    0        0     3     0     3     3     0     8    0
mcl2k2     2112      10    0        0     1     0     1     1     0     8    0
mcl2k      2048     366    0        0    42    11    31    42     0     8    0
mtagpl      96        3    0        0     1     0     1     1     0     8    0
mbufpl     256    12301    0        0   762     1   761   761     0     8    0
bufpl      288    17569    0    11248   452     0   452   452     0     8    0
anonpl      24   915841    0   906037   151    66    85    99     0   186    0
amapchunkpl 152  262152    0   261346    99    60    39    50     0   158    3
amappl16   200    18865    0    18518    97    76    21    32     0     8    0
amappl15   192       15    0       15     1     1     0     1     0     8    0
amappl14   184      219    0      207     2     1     1     2     0     8    0
amappl13   176       27    0       26     1     0     1     1     0     8    0
amappl12   168     9459    0     9422     3     0     3     3     0     8    0
amappl11   160       52    0       41     1     0     1     1     0     8    0
amappl10   152       67    0       55     1     0     1     1     0     8    0
amappl9    144      339    0      338     2     1     1     1     0     8    0
amappl8    136      663    0      539     5     0     5     5     0     8    0
amappl7    128      267    0      242     2     0     2     2     0     8    0
amappl6    120      716    0      701     1     0     1     1     0     8    0
amappl5    112      268    0      259     1     0     1     1     0     8    0
amappl4    104      761    0      733     2     1     1     2     0     8    0
amappl3     96    50318    0    50231     7     3     4     4     0     8    1
amappl2     88     9308    0     9224     5     2     3     3     0     8    1
amappl1     80    39310    0    38795    22     9    13    22     0     8    1
amappl      88    81520    0    81295     7     0     7     7     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      130    0        0     3     0     3     3     0     8    0
uaddrrnd    24     8457    0     8426     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     8457    0     8426     1     0     1     1     0     8    0
vmmpekpl   168   130077    0   130015     6     2     4     5     0     8    0
vmmpepl    168   511319    0   509008   194    78   116   129     0   357    1
vmsppl     464     8456    0     8426     7     2     5     6     0     8    0
rwobjpl     56   133368    0   125913   118     9   109   110     0     8    0
pdppl      4096   16921    0    16852   414   335    79    91     0     8   10
pvpl        32  2579488    0  2563697   461   303   158   363     0   265    0
pmappl     248     8456    0     8426     4     1     3     3     0     8    0
extentpl    40       56    0       38     1     0     1     1     0     8    0
phpool     112     2102    0      516    46     0    46    46     0     8    0
ddb{1}> machine ddbcpu 0
Stopped at      x86_ipi_db+0x1e:        addq    $0x8,%rsp
x86_ipi_db(ffffffff82c5aff0) at x86_ipi_db+0x1e 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+0x27
__mp_lock(ffffffff82d966f8) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff82d966f8) at __mp_lock+0x122 sys/kern/kern_lock.c:147
intr_handler(ffff800024afe620,ffff80000007bd80) at intr_handler+0x62 sys/arch/amd64/amd64/intr.c:532
Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f
Xspllower() at Xspllower+0x1d
cnputc(70) at cnputc+0x4f sys/dev/cons.c:218
db_putchar(70) at db_putchar+0x3fc sys/ddb/db_output.c:155
kprintf() at kprintf+0x6bc sys/kern/subr_prf.c:724
db_printf(ffffffff8282e8cb) at db_printf+0x89 sys/kern/subr_prf.c:498
panic(ffffffff8279ef96) at panic+0xdb sys/kern/subr_prf.c:216
vop_generic_badop(ffff800024afea48) at vop_generic_badop+0x1f sys/kern/vfs_default.c:133
VOP_STRATEGY(fffffd80660050e0,fffffd8067814a20) at VOP_STRATEGY+0x9f sys/kern/vfs_vops.c:628
end trace frame: 0xffff800024afeaf0, count: 0
ddb{0}> trace
x86_ipi_db(ffffffff82c5aff0) at x86_ipi_db+0x1e 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+0x27
__mp_lock(ffffffff82d966f8) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff82d966f8) at __mp_lock+0x122 sys/kern/kern_lock.c:147
intr_handler(ffff800024afe620,ffff80000007bd80) at intr_handler+0x62 sys/arch/amd64/amd64/intr.c:532
Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f
Xspllower() at Xspllower+0x1d
cnputc(70) at cnputc+0x4f sys/dev/cons.c:218
db_putchar(70) at db_putchar+0x3fc sys/ddb/db_output.c:155
kprintf() at kprintf+0x6bc sys/kern/subr_prf.c:724
db_printf(ffffffff8282e8cb) at db_printf+0x89 sys/kern/subr_prf.c:498
panic(ffffffff8279ef96) at panic+0xdb sys/kern/subr_prf.c:216
vop_generic_badop(ffff800024afea48) at vop_generic_badop+0x1f sys/kern/vfs_default.c:133
VOP_STRATEGY(fffffd80660050e0,fffffd8067814a20) at VOP_STRATEGY+0x9f sys/kern/vfs_vops.c:628
bwrite(fffffd8067814a20) at bwrite+0x1f1 sys/kern/vfs_bio.c:760
VOP_BWRITE(fffffd8067814a20) at VOP_BWRITE+0x4e sys/kern/vfs_vops.c:640
ufs_mkdir(ffff800024afece0) at ufs_mkdir+0x6c4 sys/ufs/ufs/ufs_vnops.c:1235
VOP_MKDIR(fffffd806a2b1a48,ffff800024afee40,ffff800024afee70,ffff800024afed70) at VOP_MKDIR+0xc3 sys/kern/vfs_vops.c:388
domkdirat(ffff80002afefd40,ffffff9c,72e2a0643820,1ff) at domkdirat+0x125 sys/kern/vfs_syscalls.c:3073
syscall(ffff800024afeff0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline]
syscall(ffff800024afeff0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x72e2a0643890, count: -21
ddb{0}> machine ddbcpu 1
Stopped at      db_enter+0x1c:  addq    $0x8,%rsp
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff827ac36b) at panic+0x17b sys/kern/subr_prf.c:198
__assert(ffffffff8282a878,ffffffff828583e2,151d,ffffffff82868d94) at __assert+0x29 sys/kern/subr_prf.c:157
vm_map_busy_ln(fffffd806ba07cd0,fffffd807ba370b8,0) at vm_map_busy_ln+0xd6 sys/uvm/uvm_map.c:5406
uvm_map_pageable_wire(fffffd806ba07cd0,fffffd806be34258,fffffd807ba37010,ffff80002afeed50,40,0) at uvm_map_pageable_wire+0x1dd vm_map_unlock_ln sys/uvm/uvm_map.c:5379 [inline]
uvm_map_pageable_wire(fffffd806ba07cd0,fffffd806be34258,fffffd807ba37010,ffff80002afeed50,40,0) at uvm_map_pageable_wire+0x1dd sys/uvm/uvm_map.c:2181
sys_mlock(ffff80002afeed50,ffff80002e421560,ffff80002e4215b0) at sys_mlock+0x188 sys/uvm/uvm_mmap.c:825
syscall(ffff80002e421630) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline]
syscall(ffff80002e421630) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x34b3a66c370, count: 7
ddb{1}> trace
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff827ac36b) at panic+0x17b sys/kern/subr_prf.c:198
__assert(ffffffff8282a878,ffffffff828583e2,151d,ffffffff82868d94) at __assert+0x29 sys/kern/subr_prf.c:157
vm_map_busy_ln(fffffd806ba07cd0,fffffd807ba370b8,0) at vm_map_busy_ln+0xd6 sys/uvm/uvm_map.c:5406
uvm_map_pageable_wire(fffffd806ba07cd0,fffffd806be34258,fffffd807ba37010,ffff80002afeed50,40,0) at uvm_map_pageable_wire+0x1dd vm_map_unlock_ln sys/uvm/uvm_map.c:5379 [inline]
uvm_map_pageable_wire(fffffd806ba07cd0,fffffd806be34258,fffffd807ba37010,ffff80002afeed50,40,0) at uvm_map_pageable_wire+0x1dd sys/uvm/uvm_map.c:2181
sys_mlock(ffff80002afeed50,ffff80002e421560,ffff80002e4215b0) at sys_mlock+0x188 sys/uvm/uvm_mmap.c:825
syscall(ffff80002e421630) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline]
syscall(ffff80002e421630) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x34b3a66c370, count: -8

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/07 21:24 openbsd 0d0a919f69d9 28b24332 .config console log report ci-openbsd-setuid assert "rw_write_held(&map->lock)" failed in uvm_map.c
* Struck through repros no longer work on HEAD.