syzbot


panic: poolWA_RcNacINhGe_: itSPemL_ NmOaTg iLc_OWcEhReEcDk : ONm buSYfSpClA LcL pu10 fr-2ee4 60li00st EmXoIdTi f0ie 9d

Status: closed as dup on 2020/03/10 14:25
Reported-by: syzbot+efa7381761e9c02efe19@syzkaller.appspotmail.com
First crash: 1717d, last: 1717d
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: panic: poolWA_RcNacINhGe_: itSPemL_ NmOaTg iLc_OWcEhReEcDk : ONm buSYfSpClA LcL pu10  fr-2ee4 60li00st  EmXoIdTi f0ie 9d
:
 Stopped at      savectx+0xb1:   movl    $0,%gs:0x530
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
 313248  75914      0           0  0x4000000    1  syz-executor.1
* 11365  26381      0         0x2          0    0  syz-executor.0
savectx() at savectx+0xb1
end of kernel
end trace frame: 0x7f7ffffc43c0, 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 0xfffffd806f2ada00+16 0x0!=0xd3dee1ff8ffdbd0e
ddb{0}> trace
savectx() at savectx+0xb1
end of kernel
end trace frame: 0x7f7ffffc43c0, count: -1
ddb{0}> show registers
rdi                                0
rsi                                0
rbp               0xffff800020b6bdc0
rbx                                0
rdx               0xffff800020a6c278
rcx                                0
rax                             0x38
r8                0xffffffff8113457f    kprintf+0x16f
r9                               0x1
r10                             0x25
r11               0x22534d7085712554
r12                                0
r13                                0
r14               0xffff800020a6c278
r15                                0
rip               0xffffffff8114c3f1    savectx+0xb1
cs                               0x8
rflags                          0x46
rsp               0xffff800020b6bd40
ss                              0x10
savectx+0xb1:   movl    $0,%gs:0x530
ddb{0}> show proc
PROC (syz-executor.0) pid=11365 stat=onproc
    flags process=2<EXEC> proc=0
    pri=32, usrpri=63, nice=20
    forw=0xffffffffffffffff, list=0xffff800020a6c008,0xffff800020ac7d68
    process=0xffff800020a812d0 user=0xffff800020b66000, vmspace=0xfffffd807efff8a0
    estcpu=36, cpticks=1, pctcpu=0.11
    user=0, sys=1, intr=0
ddb{0}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 75914  239533  96640      0  2           0                syz-executor.1
 75914  313248  96640      0  7   0x4000000                syz-executor.1
 97359  455774      0      0  3     0x14200  bored         sosplice
 96640  478654  41498      0  3        0x82  nanosleep     syz-executor.1
*26381   11365  41498      0  7         0x2                syz-executor.0
 41498  357742  19787      0  3        0x82  thrsleep      syz-fuzzer
 41498  220833  19787      0  3   0x4000082  nanosleep     syz-fuzzer
 41498  265850  19787      0  3   0x4000082  thrsleep      syz-fuzzer
 41498  419000  19787      0  3   0x4000082  thrsleep      syz-fuzzer
 41498  269078  19787      0  3   0x4000082  nanosleep     syz-fuzzer
 41498  111248  19787      0  3   0x4000082  thrsleep      syz-fuzzer
 41498  201505  19787      0  3   0x4000082  thrsleep      syz-fuzzer
 41498  418360  19787      0  3   0x4000082  thrsleep      syz-fuzzer
 41498  227546  19787      0  3   0x4000082  thrsleep      syz-fuzzer
 41498  515509  19787      0  2   0x4000082                syz-fuzzer
 19787  133558  34993      0  3    0x10008a  pause         ksh
 34993  365321  61928      0  3        0x92  select        sshd
 80035  383886      1      0  3    0x100083  ttyin         getty
 61928  522494      1      0  3        0x80  select        sshd
  4093  435170  92849     74  3    0x100092  bpf           pflogd
 92849  284422      1      0  3        0x80  netio         pflogd
 50529  489415   1653     73  3    0x100090  kqread        syslogd
  1653   26511      1      0  3    0x100082  netio         syslogd
 91131   95230      1     77  3    0x100090  poll          dhclient
 56531   75902      1      0  3        0x80  poll          dhclient
 97815  327862      0      0  3     0x14200  bored         smr
 91337  333798      0      0  2     0x14200                zerothread
    93  114900      0      0  3     0x14200  aiodoned      aiodoned
 67695  166621      0      0  3     0x14200  syncer        update
 42361    8268      0      0  3     0x14200  cleaner       cleaner
 50453  264856      0      0  3     0x14200  reaper        reaper
 16783   19745      0      0  3     0x14200  pgdaemon      pagedaemon
 79196  235130      0      0  3     0x14200  bored         crynlk
 21229  135883      0      0  3     0x14200  bored         crypto
 57947  152453      0      0  3  0x40014200  acpi0         acpi0
 60719  478022      0      0  3  0x40014200                idle1
   531  259164      0      0  2     0x14200                softnet
 74900  110875      0      0  3     0x14200  bored         systqmp
 67128  502024      0      0  3     0x14200  bored         systq
 31747  249899      0      0  3  0x40014200  bored         softclock
 12942  291195      0      0  3  0x40014200                idle0
     1   82705      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{0}> show all locks
CPU 0:
exclusive mutex &bq->bufq_mtx r = 0 (0xffff80000017ad68)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1164
#1  mtx_enter_try+0x102
#2  mtx_enter+0x4b sys/kern/kern_lock.c:266
#3  bufq_queue+0x28 sys/kern/kern_bufq.c:182
#4  sdstrategy+0x178 sys/scsi/sd.c:585
#5  spec_strategy+0x74 sys/kern/spec_vnops.c:468
#6  ufs_strategy+0x17c
#7  VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:711
#8  bwrite+0x1b9 sys/kern/vfs_bio.c:756
#9  ufs_dirremove+0x291
#10 ufs_remove+0x154 sys/ufs/ufs/ufs_vnops.c:611
#11 VOP_REMOVE+0x11f sys/kern/vfs_vops.c:378
#12 dounlinkat+0x195 sys/kern/vfs_syscalls.c:1896
#13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#14 Xsyscall+0x128
Process 75914 (syz-executor.1) thread 0xffff800020ac6c48 (313248)
exclusive rwlock netlock r = 0 (0xffffffff82531638)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1164
#1  solock+0x5a sys/kern/uipc_socket2.c:282
#2  sosend+0x559 sys/kern/uipc_socket.c:537
#3  sendit+0x52b sys/kern/uipc_syscalls.c:657
#4  sys_sendto+0x80 sys/kern/uipc_syscalls.c:522
#5  syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#5  syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#6  Xsyscall+0x128
Process 26381 (syz-executor.0) thread 0xffff800020a6c278 (11365)
exclusive rrwlock inode r = 0 (0xfffffd80638541b0)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1164
#1  rw_enter+0x453 sys/kern/kern_rwlock.c:311
#2  rrw_enter+0x88 sys/kern/kern_rwlock.c:462
#3  VOP_LOCK+0x4b sys/kern/vfs_vops.c:602
#4  vn_lock+0x81 sys/kern/vfs_vnops.c:575
#5  vget+0x1c8 sys/kern/vfs_subr.c:671
#6  ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119
#7  ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1329
#8  ufs_lookup+0x14b7 sys/ufs/ufs/ufs_lookup.c:487
#9  VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90
#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:1860
#13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#14 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd8063854f80)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1164
#1  rw_enter+0x453 sys/kern/kern_rwlock.c:311
#2  rrw_enter+0x88 sys/kern/kern_rwlock.c:462
#3  VOP_LOCK+0x4b sys/kern/vfs_vops.c:602
#4  vn_lock+0x81 sys/kern/vfs_vnops.c:575
#5  vget+0x1c8 sys/kern/vfs_subr.c:671
#6  cache_lookup+0x2bb sys/kern/vfs_cache.c:224
#7  ufs_lookup+0x1bc sys/ufs/ufs/ufs_lookup.c:162
#8  VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90
#9  vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568
#10 namei+0x63c sys/kern/vfs_lookup.c:249
#11 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1860
#12 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#12 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#13 Xsyscall+0x128
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82685300)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1164
#1  syscall+0x400 mi_syscall sys/sys/syscall_mi.h:93 [inline]
#1  syscall+0x400 sys/arch/amd64/amd64/trap.c:570
#2  Xsyscall+0x128
exclusive mutex &bq->bufq_mtx r = 0 (0xffff80000017ad68)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1164
#1  mtx_enter_try+0x102
#2  mtx_enter+0x4b sys/kern/kern_lock.c:266
#3  bufq_queue+0x28 sys/kern/kern_bufq.c:182
#4  sdstrategy+0x178 sys/scsi/sd.c:585
#5  spec_strategy+0x74 sys/kern/spec_vnops.c:468
#6  ufs_strategy+0x17c
#7  VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:711
#8  bwrite+0x1b9 sys/kern/vfs_bio.c:756
#9  ufs_dirremove+0x291
#10 ufs_remove+0x154 sys/ufs/ufs/ufs_vnops.c:611
#11 VOP_REMOVE+0x11f sys/kern/vfs_vops.c:378
#12 dounlinkat+0x195 sys/kern/vfs_syscalls.c:1896
#13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#14 Xsyscall+0x128
ddb{0}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf  9485   6402K    6601K  78643K     10701        0
            pcb    13      8K       8K  78643K        41        0
         rtable   105      3K       3K  78643K       208        0
         ifaddr    49     11K      11K  78643K        60        0
       counters    43     33K      34K  78643K        45        0
       ioctlops     0      0K       4K  78643K      1473        0
            iov     0      0K      12K  78643K        57        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1221     77K      77K  78643K      1263        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       5K  78643K         3        0
         VM map     2      1K       1K  78643K         2        0
            sem    12      0K       0K  78643K        34        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1809    196K     290K  78643K     12766        0
      file desc     5     13K      25K  78643K        96        0
          sigio     0      0K       0K  78643K         4        0
           proc    60     63K      95K  78643K       444        0
        subproc    32      2K       2K  78643K        34        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K        14        0
       in_multi    33      2K       2K  78643K        43        0
    ether_multi     1      0K       0K  78643K         3        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys    61    281K     281K  78643K        61        0
           exec     0      0K       1K  78643K       211        0
        pagedep     1      8K       8K  78643K         1        0
       inodedep     1     32K      32K  78643K         1        0
         newblk     1      0K       0K  78643K         1        0
        VM swap     7     26K      26K  78643K         7        0
       UVM amap   110     38K      47K  78643K      1242        0
       UVM aobj    20      2K       2K  78643K        20        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K        10        0
            NDP     7      0K       0K  78643K        12        0
           temp    81   3018K    3097K  78643K      2607        0
         kqueue     3      4K       4K  78643K         3        0
      SYN cache     2     16K      16K  78643K         2        0
ddb{0}> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp         64        6    0        0     1     0     1     1     0     8    0
plcache    128       20    0        0     1     0     1     1     0     8    0
rtpcb       80       21    0       19     1     0     1     1     0     8    0
rtentry    112       45    0        1     2     0     2     2     0     8    0
unpcb      120      152    0      140     1     0     1     1     0     8    0
syncache   264        6    0        6     2     1     1     1     0     8    1
tcpqe       32      603    0      603     1     0     1     1     0     8    1
tcpcb      544       40    0       36     1     0     1     1     0     8    0
inpcb      280      140    0      132     1     0     1     1     0     8    0
nd6         48        6    0        0     1     0     1     1     0     8    0
pffrag     232        3    0        2     1     0     1     1     0   482    0
pffrnode    88        3    0        2     1     0     1     1     0     8    0
pffrent     40       68    0       47     1     0     1     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       22    0        1     1     0     1     1     0     8    0
pfstkey    112       22    0        1     1     0     1     1     0     8    0
pfstate    328       22    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      188    0        0    12     0    12    12     0     8    0
art_table   32      189    0        0     2     0     2     2     0     8    0
art_node    16       44    0        4     1     0     1     1     0     8    0
sysvmsgpl   40       22    0       12     1     0     1     1     0     8    0
semupl     112        9    0        9     1     0     1     1     0     8    1
semapl     112       28    0       18     1     0     1     1     0     8    0
shmpl      112       18    0        0     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     1516    0      106    46     0    46    46     0     8    0
ffsino     272     1516    0      106    95     0    95    95     0     8    0
nchpl      144     1877    0      258    61     0    61    61     0     8    0
uvmvnodes   72     1590    0        0    29     0    29    29     0     8    0
vnodes     208     1590    0        0    84     0    84    84     0     8    0
namei      1024    4936    0     4936     1     0     1     1     0     8    1
percpumem   16       33    0        1     1     0     1     1     0     8    0
vcpupl     1984       2    0        0     1     0     1     1     0     8    0
vmpool     560        2    0        0     1     0     1     1     0     8    0
scxspl     192     5900    0     5900     8     1     7     7     0     8    7
plimitpl   152       25    0       17     1     0     1     1     0     8    0
sigapl     424      312    0      280     4     0     4     4     0     8    0
futexpl     56     1662    0     1662     1     0     1     1     0     8    1
knotepl    112       53    0       34     1     0     1     1     0     8    0
kqueuepl   144        9    0        7     1     0     1     1     0     8    0
pipelkpl    48       93    0       83     1     0     1     1     0     8    0
pipepl     120      186    0      167     1     0     1     1     0     8    0
fdescpl    496      296    0      280     3     0     3     3     0     8    0
filepl     152     1813    0     1710     6     0     6     6     0     8    2
lockfpl    104       52    0       51     1     0     1     1     0     8    0
lockfspl    48       14    0       13     1     0     1     1     0     8    0
sessionpl  112       18    0        7     1     0     1     1     0     8    0
pgrppl      48       18    0        7     1     0     1     1     0     8    0
ucredpl     96      163    0      154     1     0     1     1     0     8    0
zombiepl   144      280    0      280     1     0     1     1     0     8    1
processpl  960      312    0      280     5     0     5     5     0     8    0
procpl     624      476    0      434     4     0     4     4     0     8    0
sosppl     128        3    0        3     1     0     1     1     0     8    1
sockpl     400      313    0      291     4     0     4     4     0     8    1
mcl64k     65536      4    0        0     1     0     1     1     0     8    0
mcl16k     16384      1    0        0     1     0     1     1     0     8    0
mcl12k     12288      3    0        0     1     0     1     1     0     8    0
mcl9k      9216       1    0        0     1     0     1     1     0     8    0
mcl8k      8192       2    0        0     1     0     1     1     0     8    0
mcl4k      4096       4    0        0     1     0     1     1     0     8    0
mcl2k2     2112       2    0        0     1     0     1     1     0     8    0
mcl2k      2048     199    0        0    24     0    24    24     0     8    0
mtagpl      80        7    0        0     1     0     1     1     0     8    0
mbufpl     256      265    0        0    17     0    17    17     0     8    0
bufpl      280     4515    0      174   311     0   311   311     0     8    0
anonpl      16    46252    0    29847    76     1    75    75     0   124    7
amapchunkpl 152    1583    0     1444    11     0    11    11     0   158    4
amappl16   192     1355    0      462    46     0    46    46     0     8    1
amappl15   184        1    0        1     1     1     0     1     0     8    0
amappl14   176       69    0       65     2     1     1     1     0     8    0
amappl13   168       26    0       24     1     0     1     1     0     8    0
amappl12   160        9    0        8     2     1     1     1     0     8    0
amappl11   152       72    0       54     1     0     1     1     0     8    0
amappl10   144       23    0       18     1     0     1     1     0     8    0
amappl9    136      390    0      386     1     0     1     1     0     8    0
amappl8    128      322    0      296     1     0     1     1     0     8    0
amappl7    120      120    0      109     1     0     1     1     0     8    0
amappl6    112       27    0       22     1     0     1     1     0     8    0
amappl5    104      202    0      186     1     0     1     1     0     8    0
amappl4     96      501    0      469     2     1     1     2     0     8    0
amappl3     88      109    0      104     1     0     1     1     0     8    0
amappl2     80     1448    0     1379     3     1     2     3     0     8    0
amappl1     72    16531    0    16082    26    14    12    20     0     8    2
amappl      80      730    0      684     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       19    0        0     1     0     1     1     0     8    0
uaddrrnd    24      298    0      280     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      298    0      280     1     0     1     1     0     8    0
vmmpekpl   168     6310    0     6280     2     0     2     2     0     8    0
vmmpepl    168    43447    0    41408   123     7   116   116     0   357   26
vmsppl     368      297    0      280     2     0     2     2     0     8    0
pdppl      4096     604    0      562     6     0     6     6     0     8    0
pvpl        32   153434    0   133921   180     0   180   180     0   265   18
pmappl     232      297    0      280     2     0     2     2     0     8    0
extentpl    40       46    0       29     1     0     1     1     0     8    0
phpool     112      178    0        3     5     0     5     5     0     8    0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/10 14:22 openbsd be43c06a7fc3 35f53e45 .config console log report ci-openbsd-multicore
* Struck through repros no longer work on HEAD.