syzbot


panic: pWoAoRlN_IcNacGhe: _SiPtLe mN_mOTa giLOcWE_RcEhDe cOkN: SmbYSuCfApLlL cp1u37 fr-ee5 1l6i4st8 EmoXIdTif 0ie d9

Status: closed as dup on 2019/11/24 09:08
Reported-by: syzbot+9874b043b0f4e41ada40@syzkaller.appspotmail.com
First crash: 1825d, last: 1825d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
pool: cpu free list modified: mbufpl syz 15863 1570d 1856d

Sample crash report:
login: oLoLpanic: pWoAoRlN_IcNacGhe: _SiPtLe mN_mOTa giLOcWE_RcEhDe cOkN:  SmbYSuCfApLlL  cp1u37  fr-ee5 1l6i4st8  EmoXIdTif 0ie d9
:
 iStopped at      savectx+0xb1:   movl    $0,%gs:0x530
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*288908  71305      0         0x2          0    0  syz-executor.0
 266454  59823      0     0x14000      0x200    1  softnet
savectx() at savectx+0xb1
end of kernel
end trace frame: 0x7f7fffff3630, count: 14
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{0}> 
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd807f028e00+16 0x0!=0x23a117b19461a9f
ddb{0}> trace
savectx() at savectx+0xb1
end of kernel
end trace frame: 0x7f7fffff3630, count: -1
ddb{0}> show registers
rdi                                0
rsi                                0
rbp               0xffff800020b63d50
rbx                                0
rdx               0xffff800020ab0290
rcx                                0
rax                             0x38
r8                0xffffffff81bcb87f    kprintf+0x16f
r9                               0x1
r10                             0x25
r11               0xa154fd809b049f63
r12                                0
r13                                0
r14               0xffff800020ab0290
r15                                0
rip               0xffffffff8119f3f1    savectx+0xb1
cs                               0x8
rflags                          0x46
rsp               0xffff800020b63cd0
ss                                 0
savectx+0xb1:   movl    $0,%gs:0x530
ddb{0}> show proc
PROC (syz-executor.0) pid=288908 stat=onproc
    flags process=2<EXEC> proc=0
    pri=86, usrpri=86, nice=20
    forw=0xffffffffffffffff, list=0xffff800020ab0018,0xffff800020ab0790
    process=0xffff800020add500 user=0xffff800020b5e000, vmspace=0xfffffd807f0085c0
    estcpu=36, cpticks=1, pctcpu=0.4
    user=0, sys=1, intr=0
ddb{0}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 23937  317612      0      0  3     0x14200  bored         sosplice
 65448  388480  23239      0  3        0x82  piperd        syz-executor.1
*71305  288908  23239      0  7         0x2                syz-executor.0
 23239  418456  65721      0  3        0x82  nanosleep     syz-fuzzer
 23239  184287  65721      0  3   0x4000082  nanosleep     syz-fuzzer
 23239  169733  65721      0  2   0x4000002                syz-fuzzer
 23239  212810  65721      0  3   0x4000082  thrsleep      syz-fuzzer
 23239  483748  65721      0  3   0x4000082  thrsleep      syz-fuzzer
 23239  500490  65721      0  3   0x4000082  thrsleep      syz-fuzzer
 23239  153281  65721      0  3   0x4000082  thrsleep      syz-fuzzer
 23239   91401  65721      0  3   0x4000082  thrsleep      syz-fuzzer
 23239  514689  65721      0  3   0x4000082  kqread        syz-fuzzer
 23239  163984  65721      0  3   0x4000082  thrsleep      syz-fuzzer
 65721   54433  76989      0  3    0x10008a  pause         ksh
 76989  394278  99576      0  2        0x12                sshd
 48695   80324      1      0  3    0x100083  ttyin         getty
 99576   87432      1      0  3        0x80  select        sshd
 52677  253107  13145     74  3    0x100092  bpf           pflogd
 13145  310200      1      0  3        0x80  netio         pflogd
   118   22881  57910     73  3    0x100090  kqread        syslogd
 57910  193698      1      0  3    0x100082  netio         syslogd
 49882   12664      1     77  3    0x100090  poll          dhclient
 14513  414699      1      0  3        0x80  poll          dhclient
 68942  455860      0      0  2     0x14200                zerothread
 31331   68272      0      0  3     0x14200  aiodoned      aiodoned
 57831  330322      0      0  3     0x14200  syncer        update
 25720  445460      0      0  3     0x14200  cleaner       cleaner
 77474  118629      0      0  3     0x14200  reaper        reaper
 46573  213865      0      0  3     0x14200  pgdaemon      pagedaemon
 26110  492944      0      0  3     0x14200  bored         crynlk
  4487  147975      0      0  3     0x14200  bored         crypto
  4203   73311      0      0  3  0x40014200  acpi0         acpi0
 15914  413450      0      0  3  0x40014200                idle1
 59823  266454      0      0  7     0x14200                softnet
 91417  315026      0      0  3     0x14200  bored         systqmp
 29603  247473      0      0  3     0x14200  bored         systq
 85003  391989      0      0  3  0x40014200  bored         softclock
 99298  207568      0      0  3  0x40014200                idle0
 63528  341123      0      0  3     0x14200  bored         smr
     1   31447      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{0}> show all locks
CPU 0:
exclusive mutex &diskp->dk_mtx r = 0 (0xffff800000172898)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  mtx_enter_try+0x102
#2  mtx_enter+0x4b sys/kern/kern_lock.c:266
#3  disk_busy+0x21 sys/kern/subr_disk.c:1235
#4  sdstart+0x3dc sys/scsi/sd.c:711
#5  scsi_iopool_run+0x129 scsi_ioh_pending sys/scsi/scsi_base.c:394 [inline]
#5  scsi_iopool_run+0x129 sys/scsi/scsi_base.c:410
#6  scsi_xsh_runqueue+0x210 sys/scsi/scsi_base.c:586
#7  scsi_xsh_add+0xc9 sys/scsi/scsi_base.c:525
#8  sdstrategy+0x187 sys/scsi/sd.c:582
#9  spec_strategy+0x74 sys/kern/spec_vnops.c:468
#10 VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727
#11 bwrite+0x1b9 sys/kern/vfs_bio.c:738
#12 ffs_update+0x2c2 sys/ufs/ffs/ffs_inode.c:113
#13 ffs_truncate+0xc76
#14 ufs_rmdir+0x3af sys/ufs/ufs/ufs_vnops.c:1357
#15 VOP_RMDIR+0xf8 sys/kern/vfs_vops.c:474
#16 dounlinkat+0x14c sys/kern/vfs_syscalls.c:1818
#17 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#17 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#18 Xsyscall+0x128
Process 71305 (syz-executor.0) thread 0xffff800020ab0290 (288908)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff826346d0)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  __mp_acquire_count+0x51 sys/kern/kern_lock.c:227
#2  mi_switch+0x392 sys/kern/sched_bsd.c:434
#3  sleep_finish+0x113 sys/kern/kern_synch.c:374
#4  sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:403 [inline]
#4  sleep_finish_all+0x32 sys/kern/kern_synch.c:183
#5  tsleep+0x1cf sys/kern/kern_synch.c:153
#6  biowait+0xa1 sys/kern/vfs_bio.c:1231
#7  bwrite+0x1e4 sys/kern/vfs_bio.c:747
#8  ufs_dirremove+0x291
#9  ufs_rmdir+0x247 sys/ufs/ufs/ufs_vnops.c:1330
#10 VOP_RMDIR+0xf8 sys/kern/vfs_vops.c:474
#11 dounlinkat+0x14c sys/kern/vfs_syscalls.c:1818
#12 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#12 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#13 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd806e7845e8)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  rw_enter+0x447 sys/kern/kern_rwlock.c:306
#2  rrw_enter+0x4f sys/kern/kern_rwlock.c:451
#3  VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615
#4  vn_lock+0x81 sys/kern/vfs_vnops.c:571
#5  vget+0x1c3 sys/kern/vfs_subr.c:672
#6  ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119
#7  ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323
#8  ufs_lookup+0x14b4 sys/ufs/ufs/ufs_lookup.c:487
#9  VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:91
#10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568
#11 namei+0x63c sys/kern/vfs_lookup.c:249
#12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785
#13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#14 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd80691c11a8)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  rw_enter+0x447 sys/kern/kern_rwlock.c:306
#2  rrw_enter+0x4f sys/kern/kern_rwlock.c:451
#3  VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615
#4  vn_lock+0x81 sys/kern/vfs_vnops.c:571
#5  vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419
#6  namei+0x63c sys/kern/vfs_lookup.c:249
#7  dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785
#8  syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#8  syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#9  Xsyscall+0x128
exclusive mutex &diskp->dk_mtx r = 0 (0xffff800000172898)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  mtx_enter_try+0x102
#2  mtx_enter+0x4b sys/kern/kern_lock.c:266
#3  disk_busy+0x21 sys/kern/subr_disk.c:1235
#4  sdstart+0x3dc sys/scsi/sd.c:711
#5  scsi_iopool_run+0x129 scsi_ioh_pending sys/scsi/scsi_base.c:394 [inline]
#5  scsi_iopool_run+0x129 sys/scsi/scsi_base.c:410
#6  scsi_xsh_runqueue+0x210 sys/scsi/scsi_base.c:586
#7  scsi_xsh_add+0xc9 sys/scsi/scsi_base.c:525
#8  sdstrategy+0x187 sys/scsi/sd.c:582
#9  spec_strategy+0x74 sys/kern/spec_vnops.c:468
#10 VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727
#11 bwrite+0x1b9 sys/kern/vfs_bio.c:738
#12 ffs_update+0x2c2 sys/ufs/ffs/ffs_inode.c:113
#13 ffs_truncate+0xc76
#14 ufs_rmdir+0x3af sys/ufs/ufs/ufs_vnops.c:1357
#15 VOP_RMDIR+0xf8 sys/kern/vfs_vops.c:474
#16 dounlinkat+0x14c sys/kern/vfs_syscalls.c:1818
#17 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#17 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#18 Xsyscall+0x128
Process 59823 (softnet) thread 0xffff800020a10000 (266454)
shared rwlock netlock r = 0 (0xffffffff8250a038)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  if_input_process+0x84 sys/net/if.c:942
#2  ifiq_process+0x80 sys/net/ifq.c:607
#3  taskq_thread+0x9c sys/kern/kern_task.c:368
#4  proc_trampoline+0x1c
shared rwlock softnet r = 0 (0xffff8000000230e0)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  taskq_thread+0x8f sys/kern/kern_task.c:367
#2  proc_trampoline+0x1c
ddb{0}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim Kern Lim
         devbuf  9503   6417K    7055K  78643K     10919        0        0
            pcb    13      8K       8K  78643K        44        0        0
         rtable   105      4K       4K  78643K       290        0        0
         ifaddr    62     12K      13K  78643K        90        0        0
       counters    39     33K      33K  78643K        39        0        0
       ioctlops     0      0K       4K  78643K      1473        0        0
            iov     0      0K      16K  78643K        27        0        0
          mount     1      1K       1K  78643K         1        0        0
         vnodes  1221     77K      77K  78643K      1337        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         4        0        0
         VM map     2      1K       1K  78643K         2        0        0
            sem    12      0K       1K  78643K        74        0        0
        dirhash    12      2K       2K  78643K        12        0        0
           ACPI  1809    196K     290K  78643K     12766        0        0
      file desc     4      9K      25K  78643K       151        0        0
          sigio     0      0K       0K  78643K         8        0        0
           proc    60     63K      83K  78643K       446        0        0
        subproc    32      2K       2K  78643K        34        0        0
    NFS srvsock     1      0K       0K  78643K         1        0        0
     NFS daemon     1     16K      16K  78643K         1        0        0
       in_multi    36      2K       2K  78643K        52        0        0
    ether_multi     1      0K       0K  78643K         1        0        0
    ISOFS mount     1     32K      32K  78643K         1        0        0
  MSDOSFS mount     1     16K      16K  78643K         1        0        0
           ttys    42    185K     185K  78643K        42        0        0
           exec     0      0K       1K  78643K       224        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   106     21K      24K  78643K      1453        0        0
       UVM aobj    30      2K       2K  78643K        30        0        0
        memdesc     1      4K       4K  78643K         1        0        0
    crypto data     1      1K       1K  78643K         1        0        0
    ip6_options     0      0K       1K  78643K        49        0        0
            NDP    10      0K       0K  78643K        19        0        0
           temp   114   3551K    3617K  78643K      4023        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        9    0        3     1     0     1     1     0     8    0
plcache    128       20    0        0     1     0     1     1     0     8    0
rtpcb       80       29    0       27     1     0     1     1     0     8    0
rtentry    112       62    0       21     2     0     2     2     0     8    0
unpcb      120      123    0      113     1     0     1     1     0     8    0
syncache   264        4    0        4     1     1     0     1     0     8    0
tcpqe       32       16    0       16     1     1     0     1     0     8    0
tcpcb      544       57    0       53     1     0     1     1     0     8    0
inpcb      280      442    0      435     3     0     3     3     0     8    2
nd6         48        7    0        4     1     0     1     1     0     8    0
pkpcb       40        2    0        2     1     0     1     1     0     8    1
ppxss      1128       3    0        3     1     0     1     1     0     8    1
pffrag     232        5    0        5     1     0     1     1     0   482    1
pffrnode    88        5    0        5     1     0     1     1     0     8    1
pffrent     40      141    0      141     1     0     1     1     0     8    1
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       20    0        0     1     0     1     1     0     8    0
pfstkey    112       20    0        0     1     0     1     1     0     8    0
pfstate    328       20    0        0     2     0     2     2     0     8    0
pfrule     1360      21    0       16     2     1     1     2     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256      270    0       69    14     1    13    14     0     8    0
art_table   32      271    0       69     2     0     2     2     0     8    0
art_node    16       60    0       23     1     0     1     1     0     8    0
sysvmsgpl   40       51    0       38     1     0     1     1     0     8    0
semupl     112        3    0        3     1     1     0     1     0     8    0
semapl     112       72    0       62     1     0     1     1     0     8    0
shmpl      112       28    0        0     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     1634    0      231    46     0    46    46     0     8    0
ffsino     272     1634    0      231    94     0    94    94     0     8    0
nchpl      144     2055    0      443    61     0    61    61     0     8    0
uvmvnodes   72     1754    0        0    32     0    32    32     0     8    0
vnodes     208     1754    0        0    93     0    93    93     0     8    0
namei      1024    6193    0     6193     1     0     1     1     0     8    1
percpumem   16       30    0        0     1     0     1     1     0     8    0
scxspl     192     6083    0     6083     8     1     7     7     0     8    7
plimitpl   152       33    0       25     1     0     1     1     0     8    0
sigapl     432      349    0      335     3     1     2     3     0     8    0
futexpl     56     3596    0     3596     1     0     1     1     0     8    1
knotepl    112       66    0       47     1     0     1     1     0     8    0
kqueuepl   104       28    0       26     1     0     1     1     0     8    0
pipepl     160      252    0      233     2     0     2     2     0     8    1
fdescpl    488      350    0      335     3     0     3     3     0     8    0
filepl     152     2590    0     2490     6     0     6     6     0     8    2
lockfpl    104       41    0       40     1     0     1     1     0     8    0
lockfspl    48       17    0       16     1     0     1     1     0     8    0
sessionpl  112       18    0        7     1     0     1     1     0     8    0
pgrppl      48       26    0       15     1     0     1     1     0     8    0
ucredpl     96      399    0      390     1     0     1     1     0     8    0
zombiepl   144      335    0      335     1     0     1     1     0     8    1
processpl  896      366    0      335     4     0     4     4     0     8    0
procpl     632      685    0      645     5     0     5     5     0     8    1
sosppl     128       53    0       53     1     0     1     1     0     8    1
sockpl     384      609    0      590     5     0     5     5     0     8    3
mcl64k     65536      9    0        0     2     0     2     2     0     8    0
mcl16k     16384      1    0        0     1     0     1     1     0     8    0
mcl12k     12288      6    0        0     1     0     1     1     0     8    0
mcl9k      9216       2    0        0     1     0     1     1     0     8    0
mcl8k      8192       3    0        0     1     0     1     1     0     8    0
mcl4k      4096       8    0        0     1     0     1     1     0     8    0
mcl2k      2048     137    0        0    18     0    18    18     0     8    1
mtagpl      80       14    0        0     1     0     1     1     0     8    0
mbufpl     256      282    0        0    18     0    18    18     0     8    0
bufpl      256     6844    0     1312   346     0   346   346     0     8    0
anonpl      16    51522    0    31182    84     1    83    83     0   124    0
amapchunkpl 152    2193    0     2041    14     0    14    14     0   158    6
amappl16   192     1749    0      624    57     0    57    57     0     8    0
amappl14   176      112    0      105     1     0     1     1     0     8    0
amappl13   168        1    0        1     1     0     1     1     0     8    1
amappl12   160       63    0       60     1     0     1     1     0     8    0
amappl11   152       55    0       40     1     0     1     1     0     8    0
amappl10   144       31    0       23     1     0     1     1     0     8    0
amappl9    136      603    0      599     1     0     1     1     0     8    0
amappl8    128      170    0      145     1     0     1     1     0     8    0
amappl7    120       38    0       34     1     0     1     1     0     8    0
amappl6    112       60    0       49     1     0     1     1     0     8    0
amappl5    104      193    0      179     1     0     1     1     0     8    0
amappl4     96      597    0      570     1     0     1     1     0     8    0
amappl3     88      180    0      173     1     0     1     1     0     8    0
amappl2     80     1887    0     1821     3     1     2     3     0     8    0
amappl1     72    17484    0    17063    26    16    10    20     0     8    0
amappl      80      943    0      899     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       29    0        0     1     0     1     1     0     8    0
uaddrrnd    24      350    0      335     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      350    0      335     1     0     1     1     0     8    0
vmmpekpl   168     6911    0     6879     2     0     2     2     0     8    0
vmmpepl    168    50510    0    48341   144    11   133   137     0   357   32
vmsppl     368      349    0      335     2     0     2     2     0     8    0
pdppl      4096     707    0      670     6     0     6     6     0     8    1
pvpl        32   170503    0   147026   196     0   196   196     0   265    3
pmappl     232      349    0      335     2     1     1     2     0     8    0
extentpl    40       46    0       29     1     0     1     1     0     8    0
phpool     112      513    0        4    15     0    15    15     0     8    0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/24 00:59 openbsd 254679ff52b1 598ca6c8 .config console log report ci-openbsd-multicore
* Struck through repros no longer work on HEAD.