syzbot


panic: rw_enter: rtlck locking against myself

Status: fixed on 2023/01/28 14:49
Reported-by: syzbot+fbe3acb4886adeef31e0@syzkaller.appspotmail.com
Fix commit: aa5e72b7343d Revert the `rt_lock' rwlock(9) diff to fix the recursive rwlock(9) acquisition.
First crash: 664d, last: 663d

Sample crash report:
panic: rw_enter: rtlck locking against myself
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
 481281   7939      0         0x2          0    0  syz-executor.6
*227014  40876      0     0x14000      0x200    1  softnet
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff8279852b) at panic+0x177 sys/kern/subr_prf.c:198
rw_enter(ffffffff82b9b020,1) at rw_enter+0x482 rw_enter_diag sys/kern/kern_rwlock.c:183 [inline]
rw_enter(ffffffff82b9b020,1) at rw_enter+0x482 sys/kern/kern_rwlock.c:274
arpresolve(ffff8000001a02a8,fffffd806eeaa230,fffffd8068272000,ffff8000006c8cc0,ffff800021197798) at arpresolve+0x3ce sys/netinet/if_ether.c:423
ether_resolve(ffff8000001a02a8,fffffd8068272000,ffff8000006c8cc0,fffffd806eeaa230,ffff800021197798) at ether_resolve+0x215 sys/net/if_ethersubr.c:224
ether_output(ffff8000001a02a8,fffffd8068272000,ffff8000006c8cc0,fffffd806eeaa230) at ether_output+0x47 ether_encap sys/net/if_ethersubr.c:330 [inline]
ether_output(ffff8000001a02a8,fffffd8068272000,ffff8000006c8cc0,fffffd806eeaa230) at ether_output+0x47 sys/net/if_ethersubr.c:359
arpcache(ffff8000001a02a8,fffffd806d42381a,fffffd806eeaa230) at arpcache+0x2e8 sys/netinet/if_ether.c:734
in_arpinput(ffff8000001a02a8,fffffd80680abe00) at in_arpinput+0x4c1 sys/netinet/if_ether.c:615
arpintr() at arpintr+0x71 sys/netinet/if_ether.c:538
if_netisr(0) at if_netisr+0xcf sys/net/if.c:912
taskq_thread(ffff80000002c000) at taskq_thread+0xe5 sys/kern/kern_task.c:449
end trace frame: 0x0, count: 4
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: rw_enter: rtlck locking against myself
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff8279852b) at panic+0x177 sys/kern/subr_prf.c:198
rw_enter(ffffffff82b9b020,1) at rw_enter+0x482 rw_enter_diag sys/kern/kern_rwlock.c:183 [inline]
rw_enter(ffffffff82b9b020,1) at rw_enter+0x482 sys/kern/kern_rwlock.c:274
arpresolve(ffff8000001a02a8,fffffd806eeaa230,fffffd8068272000,ffff8000006c8cc0,ffff800021197798) at arpresolve+0x3ce sys/netinet/if_ether.c:423
ether_resolve(ffff8000001a02a8,fffffd8068272000,ffff8000006c8cc0,fffffd806eeaa230,ffff800021197798) at ether_resolve+0x215 sys/net/if_ethersubr.c:224
ether_output(ffff8000001a02a8,fffffd8068272000,ffff8000006c8cc0,fffffd806eeaa230) at ether_output+0x47 ether_encap sys/net/if_ethersubr.c:330 [inline]
ether_output(ffff8000001a02a8,fffffd8068272000,ffff8000006c8cc0,fffffd806eeaa230) at ether_output+0x47 sys/net/if_ethersubr.c:359
arpcache(ffff8000001a02a8,fffffd806d42381a,fffffd806eeaa230) at arpcache+0x2e8 sys/netinet/if_ether.c:734
in_arpinput(ffff8000001a02a8,fffffd80680abe00) at in_arpinput+0x4c1 sys/netinet/if_ether.c:615
arpintr() at arpintr+0x71 sys/netinet/if_ether.c:538
if_netisr(0) at if_netisr+0xcf sys/net/if.c:912
taskq_thread(ffff80000002c000) at taskq_thread+0xe5 sys/kern/kern_task.c:449
end trace frame: 0x0, count: -11
ddb{1}> show registers
rdi                                0
rsi                              0x1
rbp               0xffff8000211974d0
rbx               0xffff800020d69b8f
rdx                                0
rcx                                0
rax               0xffff8000211782b8
r8                 0x101010101010101
r9                0x8080808080808080
r10               0x996375af9dac3f2a
r11               0x2cb6e1639af58c28
r12               0xffff800020d69990
r13                                0
r14                                0
r15                              0x1
rip               0xffffffff8229d9e8    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff8000211974c0
ss                                 0
db_enter+0x18:  addq    $0x8,%rsp
ddb{1}> show proc
PROC (softnet) pid=227014 stat=onproc
    flags process=14000<NOZOMBIE,SYSTEM> proc=200<SYSTEM>
    pri=32, usrpri=50, nice=20
    forw=0xffffffffffffffff, list=0xffff800021178828,0xffff800021178010
    process=0xffff8000ffffc000 user=0xffff800021192000, vmspace=0xffffffff82bfa0e8
    estcpu=0, cpticks=0, pctcpu=0.0
    user=0, sys=0, intr=0
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
  5924  121146  22660      0  2           0                syz-executor.3
 53642  372277   9486      0  3        0x82  wait          syz-executor.7
 84388    5366   9486      0  3        0x82  piperd        syz-executor.0
 88007  109837   9486      0  3        0x82  wait          syz-executor.1
  7939  481281   9486      0  7         0x2                syz-executor.6
 98562  162502      1      0  3    0x100083  ttyin         getty
 82990   37937      0      0  3     0x14200  acct          acct
 11892  405419      0      0  3     0x14280  nfsidl        nfsio
 61390   85176      0      0  3     0x14280  nfsidl        nfsio
 14340  399924      0      0  3     0x14280  nfsidl        nfsio
 73271  103090      0      0  3     0x14280  nfsidl        nfsio
 63492  249592      0      0  3     0x14280  nfsidl        nfsio
 80404   49872      0      0  3     0x14280  nfsidl        nfsio
  9648  277771      0      0  3     0x14280  nfsidl        nfsio
 64926   27355      0      0  3     0x14280  nfsidl        nfsio
 78681   97398      0      0  3     0x14280  nfsidl        nfsio
 26181   28319      0      0  3     0x14280  nfsidl        nfsio
 49961  115116      0      0  3     0x14280  nfsidl        nfsio
 55958  276948      0      0  3     0x14280  nfsidl        nfsio
 90356   47026      0      0  3     0x14280  nfsidl        nfsio
 91354  376106      0      0  3     0x14280  nfsidl        nfsio
 16528  398476      0      0  3     0x14280  nfsidl        nfsio
 14566  203600      0      0  3     0x14280  nfsidl        nfsio
 90246  107533      0      0  3     0x14280  nfsidl        nfsio
 54698  107135      0      0  3     0x14280  nfsidl        nfsio
 37094  167477      0      0  3     0x14280  nfsidl        nfsio
 42840  291218      0      0  3     0x14280  nfsidl        nfsio
 59426  197494   9486      0  3        0x82  piperd        syz-executor.4
 93614  228280      0      0  3     0x14200  bored         sosplice
 94799  464701  49570      0  3    0x100082  netio         arp
 46600  495434   9486      0  3        0x82  piperd        syz-executor.5
 49570   81872      1      0  3    0x10008a  sigsusp       sh
 68263  203930   9486      0  3        0x82  piperd        syz-executor.2
 22660  286806   9486      0  3        0x82  nanoslp       syz-executor.3
  9486  446886  58725      0  3        0x82  thrsleep      syz-fuzzer
  9486  496199  58725      0  3   0x4000082  nanoslp       syz-fuzzer
  9486  445825  58725      0  2   0x4000002                syz-fuzzer
  9486  445563  58725      0  2   0x4000002                syz-fuzzer
  9486    9009  58725      0  3   0x4000082  thrsleep      syz-fuzzer
  9486  141669  58725      0  3   0x4000082  wait          syz-fuzzer
  9486  140419  58725      0  3   0x4000082  wait          syz-fuzzer
  9486   39185  58725      0  3   0x4000082  thrsleep      syz-fuzzer
  9486  412624  58725      0  3   0x4000082  thrsleep      syz-fuzzer
  9486  139423  58725      0  3   0x4000082  wait          syz-fuzzer
  9486  365333  58725      0  3   0x4000082  wait          syz-fuzzer
  9486  289971  58725      0  3   0x4000082  wait          syz-fuzzer
  9486   97551  58725      0  3   0x4000082  wait          syz-fuzzer
  9486  311027  58725      0  3   0x4000082  thrsleep      syz-fuzzer
  9486  438411  58725      0  3   0x4000082  wait          syz-fuzzer
  9486   63236  58725      0  3   0x4000082  wait          syz-fuzzer
 58725  115398  60743      0  3    0x10008a  sigsusp       ksh
 60743  298207  28007      0  3        0x9a  kqread        sshd
 28007  464162      1      0  3        0x88  kqread        sshd
 33768  251256   4501     74  3   0x1100092  bpf           pflogd
  4501  176115      1      0  3        0x80  netio         pflogd
   442  397046  94395     73  3   0x1100090  kqread        syslogd
 94395  270213      1      0  3    0x100082  netio         syslogd
  2388   10866      1      0  3    0x100080  kqread        resolvd
 58585  108447   6405     77  3    0x100092  kqread        dhcpleased
 97861  300232   6405     77  3    0x100092  kqread        dhcpleased
  6405  499874      1      0  3        0x80  kqread        dhcpleased
 26594  252780      0      0  3     0x14200  bored         smr
 29655  146476      0      0  3     0x14200  pgzero        zerothread
  3427  511950      0      0  3     0x14200  aiodoned      aiodoned
 38100   34059      0      0  3     0x14200  syncer        update
 13875  483137      0      0  3     0x14200  cleaner       cleaner
 49219  344938      0      0  3     0x14200  reaper        reaper
 20972  172960      0      0  3     0x14200  pgdaemon      pagedaemon
 44936  243765      0      0  3     0x14200  bored         viomb
 33134  251955      0      0  3  0x40014200  acpi0         acpi0
 37083   94475      0      0  3  0x40014200                idle1
 71651  470253      0      0  3     0x14200  bored         softnet
 64382  145764      0      0  3     0x14200  bored         softnet
 42811  372184      0      0  3     0x14200  bored         softnet
*40876  227014      0      0  7     0x14200                softnet
 23969  231385      0      0  3     0x14200  bored         systqmp
 44333  248913      0      0  3     0x14200  bored         systq
 68299  110541      0      0  3  0x40014200  bored         softclock
 89780  218802      0      0  3  0x40014200                idle0
     1  216117      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
ddb{1}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 10231   6490K    7007K  78643K     18082        0
            pcb    13     12K      14K  78643K       896        0
         rtable   241     16K      16K  78643K      1005        0
         ifaddr    97     29K      30K  78643K       351        0
         sysctl     2      0K       0K  78643K         2        0
       counters    60     35K      36K  78643K       196        0
       ioctlops     0      0K       4K  78643K      1810        0
            iov     0      0K      24K  78643K       475        0
          mount     1      1K       1K  78643K         1        0
            log     0      0K       0K  78643K         4        0
         vnodes  1631    102K     102K  78643K      7338        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       5K  78643K        33        0
         VM map     2      1K       1K  78643K         2        0
            sem    12      0K       1K  78643K       507        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1697    195K     286K  78643K     12548        0
      file desc    15     53K      97K  78643K      5074        0
          sigio     0      0K       0K  78643K        25        0
           proc    70     91K     128K  78643K      1052        0
        subproc   117      7K       8K  78643K       278        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K       323        0
       in_multi   106      7K       7K  78643K       339        0
    ether_multi     1      0K       0K  78643K        30        0
            mrt     1      0K       0K  78643K        20        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys   145    652K     652K  78643K       145        0
           exec     0      0K       1K  78643K       896        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   350     90K     100K  78643K     36355        0
       UVM aobj   131      4K       4K  78643K       137        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K        98        0
            NDP    15      0K       1K  78643K       110        0
           temp   145   5774K    6799K  78643K     46848        0
         kqueue    12     18K      24K  78643K       352        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      343    0      339     5     4     1     3     0     8    0
rtentry    112      335    0      229     5     1     4     4     0     8    0
unpcb      144     4085    0     4070    76    75     1     8     0     8    0
syncache   296       10    0       10     3     3     0     1     0     8    0
tcpqe       32      311    0      311     3     3     0     1     0     8    0
tcpcb      776     1532    0     1528    84    78     6     8     0     8    5
arp        120       45    0       26     1     0     1     1     0     8    0
inpcb      368     4124    0     4117   176   171     5     7     0     8    4
nd6         48       63    0       38     1     0     1     1     0     8    0
kcovpl      48       20    0       11     1     0     1     1     0     8    0
mppekey    1024       3    0        3     2     2     0     1     0     8    0
ppxss      1256      32    0       32    12    11     1     1     0     8    1
pppxif     1456      12    0       12     6     5     1     1     0     8    1
pfstscr     40       17    0       16     1     0     1     1     0     8    0
pffrag     232        6    0        6     4     4     0     1     0   482    0
pffrnode    88        6    0        6     4     4     0     1     0     8    0
pffrent     40       17    0       17     6     6     0     1     0     8    0
pfosfp      40     1428    0     1005     5     0     5     5     0     8    0
pfosfpen   112     1428    0      714    21     0    21    21     0     8    0
pfanchor   1280     918    0      480    53    11    42    42     0     8    0
pfstitem    24       53    0       49     1     0     1     1     0     8    0
pfstkey    128       75    0       71     1     0     1     1     0     8    0
pfstate    384       58    0       55     4     3     1     3     0     8    0
pfrule     1344      21    0       20     2     1     1     2     0     8    0
rttmr      136        2    0        2     1     1     0     1     0     8    0
art_heap8  4096       2    0        1     2     1     1     2     0     8    0
art_heap4  256     1437    0      965    46    15    31    31     0     8    1
art_table   32     1439    0      966     4     0     4     4     0     8    0
art_node    16      302    0      210     1     0     1     1     0     8    0
sysvmsgpl   40       46    0        6     1     0     1     1     0     8    0
semupl     112        1    0        1     1     1     0     1     0     8    0
semapl     112      503    0      493     1     0     1     1     0     8    0
shmpl      112      134    0        6     4     0     4     4     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256    10748    0     9297    91     0    91    91     0     8    0
ffsino     272    10748    0     9297    98     0    98    98     0     8    0
nchpl      144    17354    0    15717    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   65621    0    65620    19    18     1     2     0     8    0
percpumem   16      111    0       68     1     0     1     1     0     8    0
vmpool     696       18    0       18     6     6     0     1     0     8    0
kstatmem   264      134    0      104     9     6     3     3     0     8    1
scsiplug    72        9    0        9     5     5     0     1     0     8    0
scxspl     216    46577    0    46576    39    38     1     8     0     8    0
plimitpl   152      607    0      590     1     0     1     1     0     8    0
sigapl     424     5388    0     5321    12     3     9     9     0     8    0
futexpl     64    37040    0    37040    28    27     1     1     0     8    1
knotepl    120     1021    0        0    12     2    10    11     0     8    0
kqueuepl   216      942    0      934    25    24     1     5     0     8    0
pipepl     320     1488    0     1457    69    66     3     9     0     8    0
fdescpl    496     5349    0     5321     7     2     5     5     0     8    0
filepl     152    45352    0    45090   236   219    17    24     0     8    2
lockfpl    104     1540    0     1538     5     4     1     2     0     8    0
lockfspl    48      375    0      373     1     0     1     1     0     8    0
sessionpl  144       37    0       19     1     0     1     1     0     8    0
pgrppl      48       46    0       28     1     0     1     1     0     8    0
ucredpl    104    16614    0    16602     1     0     1     1     0     8    0
zombiepl   144     5323    0     5321     2     1     1     1     0     8    0
processpl  1072    5388    0     5321     5     0     5     5     0     8    0
procpl     696    14556    0    14474    25    15    10    11     0     8    0
srpgc       96       16    0       16     7     7     0     1     0     8    0
sosppl     168       44    0       44    12    12     0     1     0     8    0
sockpl     488     8555    0     8529   376   366    10    26     0     8    6
mcl64k     65536     32    0        0     3     0     3     3     0     8    0
mcl16k     16384     22    0        0     3     1     2     3     0     8    0
mcl12k     12288     25    0        0     2     0     2     2     0     8    0
mcl9k      9216      22    0        0     2     0     2     2     0     8    0
mcl8k      8192      73    0        0     9     6     3     6     0     8    0
mcl4k      4096      33    0        0     4     1     3     3     0     8    0
mcl2k2     2112       5    0        0     1     0     1     1     0     8    0
mcl2k      2048     519    0        0    51    25    26    51     0     8    0
mtagpl      96      344    0        0     7     1     6     7     0     8    0
mbufpl     256     1947    0        0    73     0    73    73     0     8    0
bufpl      288    11761    0     5436   452     0   452   452     0     8    0
anonpl      24  1068958    0  1050991   192    72   120   175     0   186    0
amapchunkpl 152  101649    0   100886    99    66    33    60     0   158    0
amappl16   200     9214    0     8659    56    26    30    35     0     8    0
amappl15   192       36    0       35     1     0     1     1     0     8    0
amappl14   184      235    0      217     3     1     2     2     0     8    0
amappl13   176       18    0       17     1     0     1     1     0     8    0
amappl12   168      575    0      569     1     0     1     1     0     8    0
amappl11   160       60    0       46     1     0     1     1     0     8    0
amappl10   152       54    0       41     1     0     1     1     0     8    0
amappl9    144      974    0      974     2     2     0     1     0     8    0
amappl8    136      294    0      214     3     0     3     3     0     8    0
amappl7    128      187    0      161     2     0     2     2     0     8    0
amappl6    120      238    0      222     1     0     1     1     0     8    0
amappl5    112      229    0      219     1     0     1     1     0     8    0
amappl4    104      659    0      624     3     1     2     2     0     8    0
amappl3     96    15400    0    15347     2     0     2     2     0     8    0
amappl2     88     5967    0     5884     4     1     3     3     0     8    0
amappl1     80   122038    0   121275    23     4    19    23     0     8    0
amappl      88    35582    0    35395     6     0     6     6     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      136    0        6     3     0     3     3     0     8    0
uaddrrnd    24     5367    0     5339     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     5367    0     5339     1     0     1     1     0     8    0
vmmpekpl   168    46022    0    45947     5     1     4     4     0     8    0
vmmpepl    168   490838    0   488105   380   241   139   160     0   357    0
vmsppl     368     5366    0     5339     7     4     3     4     0     8    0
rwobjpl     56   133738    0   125881   119     6   113   113     0     8    0
pdppl      4096   10741    0    10678   838   769    69    85     0     8    6
pvpl        32  2148230    0  2124477   468   259   209   309     0   265    0
pmappl     248     5366    0     5339     4     1     3     3     0     8    0
extentpl    40       56    0       38     1     0     1     1     0     8    0
phpool     112     1892    0     1026    26     0    26    26     0     8    0
ddb{1}> machine ddbcpu 0
Stopped at      x86_ipi_db+0x1a:        addq    $0x8,%rsp
x86_ipi_db(ffffffff82b8dff0) 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(ffffffff82dc73e0) at __mp_lock+0x28 sys/kern/kern_lock.c:137
__mp_acquire_count(ffffffff82dc73e0,1) at __mp_acquire_count+0x48 sys/kern/kern_lock.c:227
tsleep(fffffd8069f08258,11,ffffffff827cecbf,0) at tsleep+0x179
biowait(fffffd8069f08258) at biowait+0x91 sys/kern/vfs_bio.c:1268
bwrite(fffffd8069f08258) at bwrite+0x21b sys/kern/vfs_bio.c:769
ffs_update(fffffd8068390110,1) at ffs_update+0x27d sys/ufs/ffs/ffs_inode.c:113
ufs_mkdir(ffff80002a3df490) at ufs_mkdir+0x433 sys/ufs/ufs/ufs_vnops.c:1185
VOP_MKDIR(fffffd8061aa6798,ffff80002a3df5f0,ffff80002a3df620,ffff80002a3df520) at VOP_MKDIR+0xbf sys/kern/vfs_vops.c:388
domkdirat(ffff80002121c2d0,ffffff9c,7f7ffffe3090,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:3112
syscall(ffff80002a3df7a0) at syscall+0x555 mi_syscall sys/sys/syscall_mi.h:113 [inline]
syscall(ffff80002a3df7a0) at syscall+0x555 sys/arch/amd64/amd64/trap.c:626
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffe3100, count: 1
ddb{0}> trace
x86_ipi_db(ffffffff82b8dff0) 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(ffffffff82dc73e0) at __mp_lock+0x28 sys/kern/kern_lock.c:137
__mp_acquire_count(ffffffff82dc73e0,1) at __mp_acquire_count+0x48 sys/kern/kern_lock.c:227
tsleep(fffffd8069f08258,11,ffffffff827cecbf,0) at tsleep+0x179
biowait(fffffd8069f08258) at biowait+0x91 sys/kern/vfs_bio.c:1268
bwrite(fffffd8069f08258) at bwrite+0x21b sys/kern/vfs_bio.c:769
ffs_update(fffffd8068390110,1) at ffs_update+0x27d sys/ufs/ffs/ffs_inode.c:113
ufs_mkdir(ffff80002a3df490) at ufs_mkdir+0x433 sys/ufs/ufs/ufs_vnops.c:1185
VOP_MKDIR(fffffd8061aa6798,ffff80002a3df5f0,ffff80002a3df620,ffff80002a3df520) at VOP_MKDIR+0xbf sys/kern/vfs_vops.c:388
domkdirat(ffff80002121c2d0,ffffff9c,7f7ffffe3090,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:3112
syscall(ffff80002a3df7a0) at syscall+0x555 mi_syscall sys/sys/syscall_mi.h:113 [inline]
syscall(ffff80002a3df7a0) at syscall+0x555 sys/arch/amd64/amd64/trap.c:626
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffe3100, count: -14
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:437
panic(ffffffff8279852b) at panic+0x177 sys/kern/subr_prf.c:198
rw_enter(ffffffff82b9b020,1) at rw_enter+0x482 rw_enter_diag sys/kern/kern_rwlock.c:183 [inline]
rw_enter(ffffffff82b9b020,1) at rw_enter+0x482 sys/kern/kern_rwlock.c:274
arpresolve(ffff8000001a02a8,fffffd806eeaa230,fffffd8068272000,ffff8000006c8cc0,ffff800021197798) at arpresolve+0x3ce sys/netinet/if_ether.c:423
ether_resolve(ffff8000001a02a8,fffffd8068272000,ffff8000006c8cc0,fffffd806eeaa230,ffff800021197798) at ether_resolve+0x215 sys/net/if_ethersubr.c:224
ether_output(ffff8000001a02a8,fffffd8068272000,ffff8000006c8cc0,fffffd806eeaa230) at ether_output+0x47 ether_encap sys/net/if_ethersubr.c:330 [inline]
ether_output(ffff8000001a02a8,fffffd8068272000,ffff8000006c8cc0,fffffd806eeaa230) at ether_output+0x47 sys/net/if_ethersubr.c:359
arpcache(ffff8000001a02a8,fffffd806d42381a,fffffd806eeaa230) at arpcache+0x2e8 sys/netinet/if_ether.c:734
in_arpinput(ffff8000001a02a8,fffffd80680abe00) at in_arpinput+0x4c1 sys/netinet/if_ether.c:615
arpintr() at arpintr+0x71 sys/netinet/if_ether.c:538
if_netisr(0) at if_netisr+0xcf sys/net/if.c:912
taskq_thread(ffff80000002c000) at taskq_thread+0xe5 sys/kern/kern_task.c:449
end trace frame: 0x0, count: 4
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff8279852b) at panic+0x177 sys/kern/subr_prf.c:198
rw_enter(ffffffff82b9b020,1) at rw_enter+0x482 rw_enter_diag sys/kern/kern_rwlock.c:183 [inline]
rw_enter(ffffffff82b9b020,1) at rw_enter+0x482 sys/kern/kern_rwlock.c:274
arpresolve(ffff8000001a02a8,fffffd806eeaa230,fffffd8068272000,ffff8000006c8cc0,ffff800021197798) at arpresolve+0x3ce sys/netinet/if_ether.c:423
ether_resolve(ffff8000001a02a8,fffffd8068272000,ffff8000006c8cc0,fffffd806eeaa230,ffff800021197798) at ether_resolve+0x215 sys/net/if_ethersubr.c:224
ether_output(ffff8000001a02a8,fffffd8068272000,ffff8000006c8cc0,fffffd806eeaa230) at ether_output+0x47 ether_encap sys/net/if_ethersubr.c:330 [inline]
ether_output(ffff8000001a02a8,fffffd8068272000,ffff8000006c8cc0,fffffd806eeaa230) at ether_output+0x47 sys/net/if_ethersubr.c:359
arpcache(ffff8000001a02a8,fffffd806d42381a,fffffd806eeaa230) at arpcache+0x2e8 sys/netinet/if_ether.c:734
in_arpinput(ffff8000001a02a8,fffffd80680abe00) at in_arpinput+0x4c1 sys/netinet/if_ether.c:615
arpintr() at arpintr+0x71 sys/netinet/if_ether.c:538
if_netisr(0) at if_netisr+0xcf sys/net/if.c:912
taskq_thread(ffff80000002c000) at taskq_thread+0xe5 sys/kern/kern_task.c:449
end trace frame: 0x0, count: -11

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/28 00:26 openbsd 8ff74958d206 e5a31411 .config console log report ci-openbsd-multicore panic: rw_enter: rtlck locking against myself
2023/01/27 19:38 openbsd 8ff74958d206 e5a31411 .config console log report ci-openbsd-multicore panic: rw_enter: rtlck locking against myself
2023/01/27 18:57 openbsd 8ff74958d206 e5a31411 .config console log report ci-openbsd-multicore panic: rw_enter: rtlck locking against myself
2023/01/27 17:15 openbsd 8ff74958d206 e5a31411 .config console log report ci-openbsd-multicore panic: rw_enter: rtlck locking against myself
2023/01/27 16:14 openbsd 8ff74958d206 e5a31411 .config console log report ci-openbsd-multicore panic: rw_enter: rtlck locking against myself
* Struck through repros no longer work on HEAD.