syzbot


panic:W ApRoNIolNG_c:a ScPheL _NOiTt emLO_WmaERgEicD_ OcNhe cSYk:SC mALbLu f2 pl1 0c9p45u 2f86re26e ElXisIT t 0m ao

Status: closed as dup on 2020/02/02 20:50
Reported-by: syzbot+0c7feb61d98155ac6693@syzkaller.appspotmail.com
First crash: 1754d, last: 1754d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
pool: cpu free list modified: mbufpl syz 15863 1570d 1856d

Sample crash report:
ò¬Ú‰×ok‘¶ÔAèqÏ|Ï®¥6~ÒuQ¼'äÖ‡eÇ7<´ž¤dd횤D=Û/kkiœeÿa¼‹ƒó¹¤èµ9������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������panic:W ApRoNIolNG_c:a ScPheL _NOiTt emLO_WmaERgEicD_ OcNhe cSYk:SC mALbLu f2 pl1 0c9p45u 2f86re26e  ElXisIT t 0m ao
di
fStopped at      savectx+0xb1:   movl    $0,%gs:0x530
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*185006  41206      0         0x2          0    0  syz-executor.1
 240575  64906      0     0x14000      0x200    1  softnet
savectx() at savectx+0xb1
end of kernel
end trace frame: 0x7f7ffffd9c30, 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 0xfffffd8063663b00+16 0x0!=0x8bec90e919ea12cc
ddb{0}> trace
savectx() at savectx+0xb1
end of kernel
end trace frame: 0x7f7ffffd9c30, count: -1
ddb{0}> show registers
rdi                                0
rsi                                0
rbp               0xffff800022db1c40
rbx                                0
rdx               0xffff800020ac3ae8
rcx                                0
rax                             0x3a
r8                0xffffffff81e3200f    kprintf+0x16f
r9                               0x1
r10                             0x25
r11               0xc8a25a784fd503f6
r12                                0
r13                                0
r14               0xffff800020ac3ae8
r15                                0
rip               0xffffffff81ce33f1    savectx+0xb1
cs                               0x8
rflags                          0x46
rsp               0xffff800022db1bc0
ss                              0x10
savectx+0xb1:   movl    $0,%gs:0x530
ddb{0}> show proc
PROC (syz-executor.1) pid=185006 stat=onproc
    flags process=2<EXEC> proc=0
    pri=17, usrpri=79, nice=20
    forw=0xffffffffffffffff, list=0xffff800020a7c4e8,0xffff800020ac3618
    process=0xffff800020a91690 user=0xffff800022dac000, vmspace=0xfffffd807f000b80
    estcpu=36, cpticks=2, pctcpu=1.26
    user=0, sys=1, intr=0
ddb{0}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 45261  381155  41206      0  2           0                syz-executor.1
 20857  290596      0      0  3     0x14200  bored         sosplice
 62274  317455  60642      0  3         0x2  biowait       syz-executor.0
 43976  174761      1      0  3    0x100083  ttyin         getty
*41206  185006  60642      0  7         0x2                syz-executor.1
 60642  460804  64348      0  3        0x82  nanosleep     syz-fuzzer
 60642  432964  64348      0  3   0x4000082  nanosleep     syz-fuzzer
 60642  369947  64348      0  3   0x4000082  thrsleep      syz-fuzzer
 60642  411016  64348      0  3   0x4000082  thrsleep      syz-fuzzer
 60642  154281  64348      0  3   0x4000082  thrsleep      syz-fuzzer
 60642  270618  64348      0  3   0x4000082  thrsleep      syz-fuzzer
 60642  378298  64348      0  3   0x4000082  thrsleep      syz-fuzzer
 60642  123097  64348      0  3   0x4000082  kqread        syz-fuzzer
 60642  119082  64348      0  3   0x4000082  thrsleep      syz-fuzzer
 60642  495257  64348      0  3   0x4000082  thrsleep      syz-fuzzer
 64348  240326  19730      0  3    0x10008a  pause         ksh
 19730  479818  44924      0  3        0x92  select        sshd
 44924  366322      1      0  3        0x80  select        sshd
 56543  312841   6608     74  3    0x100092  bpf           pflogd
  6608  469223      1      0  3        0x80  netio         pflogd
 31231   99383  51706     73  3    0x100090  kqread        syslogd
 51706  327586      1      0  3    0x100082  netio         syslogd
 53999  509818      1     77  3    0x100090  poll          dhclient
 30808  242752      1      0  3        0x80  poll          dhclient
 90787  123211      0      0  2     0x14200                zerothread
 53420  397401      0      0  3     0x14200  aiodoned      aiodoned
 29544  457209      0      0  3     0x14200  syncer        update
 18436  447425      0      0  3     0x14200  cleaner       cleaner
 22946  509169      0      0  3     0x14200  reaper        reaper
 79088  314213      0      0  3     0x14200  pgdaemon      pagedaemon
 60203  171196      0      0  3     0x14200  bored         crynlk
  9298   41335      0      0  3     0x14200  bored         crypto
 67327  291381      0      0  3  0x40014200  acpi0         acpi0
 99032  281737      0      0  3  0x40014200                idle1
 64906  240575      0      0  7     0x14200                softnet
 10176  114395      0      0  3     0x14200  bored         systqmp
 73220  124155      0      0  3     0x14200  bored         systq
 59870  274676      0      0  3  0x40014200  bored         softclock
 62372  499758      0      0  3  0x40014200                idle0
 52603   29714      0      0  3     0x14200  bored         smr
     1   93698      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{0}> show all locks
CPU 0:
exclusive mutex &(curpg)->mdpage.pv_mtx r = 0 (0xfffffd8006a7c218)
#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  pmap_enter+0x698 pmap_enter_pv sys/arch/amd64/amd64/pmap.c:1032 [inline]
#3  pmap_enter+0x698 sys/arch/amd64/amd64/pmap.c:2788
#4  uvm_km_kmemalloc_pla+0x355 sys/uvm/uvm_km.c:389
#5  uvm_uarea_alloc+0x51 sys/uvm/uvm_glue.c:274
#6  fork1+0x295 sys/kern/kern_fork.c:368
#7  syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#7  syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#8  Xsyscall+0x128
Process 62274 (syz-executor.0) thread 0xffff800020ac2eb8 (317455)
exclusive rrwlock inode r = 0 (0xfffffd806faa3c50)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1164
#1  rw_enter+0x453 sys/kern/kern_rwlock.c:309
#2  rrw_enter+0x88 sys/kern/kern_rwlock.c:453
#3  ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140
#4  ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1352
#5  ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392
#6  ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164
#7  VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450
#8  domkdirat+0x121 sys/kern/vfs_syscalls.c:3058
#9  syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#9  syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#10 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd806faa30a0)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1164
#1  rw_enter+0x453 sys/kern/kern_rwlock.c:309
#2  rrw_enter+0x88 sys/kern/kern_rwlock.c:453
#3  VOP_LOCK+0xf9 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  domkdirat+0x75 sys/kern/vfs_syscalls.c:3043
#8  syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#8  syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#9  Xsyscall+0x128
Process 41206 (syz-executor.1) thread 0xffff800020ac3ae8 (185006)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82647250)
#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 &(curpg)->mdpage.pv_mtx r = 0 (0xfffffd8006a7c218)
#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  pmap_enter+0x698 pmap_enter_pv sys/arch/amd64/amd64/pmap.c:1032 [inline]
#3  pmap_enter+0x698 sys/arch/amd64/amd64/pmap.c:2788
#4  uvm_km_kmemalloc_pla+0x355 sys/uvm/uvm_km.c:389
#5  uvm_uarea_alloc+0x51 sys/uvm/uvm_glue.c:274
#6  fork1+0x295 sys/kern/kern_fork.c:368
#7  syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#7  syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#8  Xsyscall+0x128
Process 64906 (softnet) thread 0xffff800020a28750 (240575)
shared rwlock netlock r = 0 (0xffffffff824fd6d8)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1164
#1  if_input_process+0x84 sys/net/if.c:941
#2  ifiq_process+0x80 sys/net/ifq.c:646
#3  taskq_thread+0x9c sys/kern/kern_task.c:369
#4  proc_trampoline+0x1c
shared rwlock softnet r = 0 (0xffff80000002b0e0)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1164
#1  taskq_thread+0x8f sys/kern/kern_task.c:368
#2  proc_trampoline+0x1c
ddb{0}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf  9529   6429K    7396K  78643K     11690        0
            pcb    13      8K       8K  78643K       289        0
         rtable   113      4K       4K  78643K       363        0
         ifaddr    86     17K      17K  78643K       138        0
       counters    43     33K      34K  78643K        55        0
       ioctlops     0      0K       4K  78643K      1500        0
            iov     0      0K      16K  78643K        76        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1230     77K      78K  78643K      1565        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       5K  78643K        14        0
         VM map     2      1K       1K  78643K         2        0
            sem    12      1K       1K  78643K        75        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1809    196K     290K  78643K     12766        0
      file desc     5     13K      25K  78643K       447        0
          sigio     0      0K       0K  78643K        11        0
           proc    63     63K      95K  78643K       558        0
        subproc    32      2K       2K  78643K        51        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K       227        0
       in_multi    76      3K       4K  78643K       144        0
    ether_multi     1      0K       0K  78643K        16        0
            mrt     0      0K       0K  78643K         4        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       278        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   125     54K      55K  78643K      2541        0
       UVM aobj    59      6K       6K  78643K        64        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K       178        0
            NDP    13      0K       0K  78643K        28        0
           temp   137   3022K    3102K  78643K     10161        0
         kqueue     3      4K       9K  78643K        47        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        9    0        2     1     0     1     1     0     8    0
plcache    128       20    0        0     1     0     1     1     0     8    0
rtpcb       80       57    0       55     1     0     1     1     0     8    0
rtentry    112       75    0       30     2     0     2     2     0     8    0
unpcb      120      341    0      331     1     0     1     1     0     8    0
syncache   264        7    0        7     3     2     1     1     0     8    1
tcpqe       32      129    0      129     2     2     0     1     0     8    0
tcpcb      544      394    0      390     2     0     2     2     0     8    1
inpcb      280     1364    0     1357     2     0     2     2     0     8    1
rttmr       72        2    0        2     2     1     1     1     0     8    1
nd6         48        9    0        6     1     0     1     1     0     8    0
ppxss      1128       1    0        1     1     1     0     1     0     8    0
pffrag     232        5    0        5     2     1     1     1     0   482    1
pffrnode    88        5    0        5     2     1     1     1     0     8    1
pffrent     40      225    0      225     2     1     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       53    0        7     1     0     1     1     0     8    0
pfstkey    112       53    0        7     2     0     2     2     0     8    0
pfstate    328       53    0        7     4     0     4     4     0     8    0
pfrule     1360      21    0       16     2     1     1     2     0     8    0
art_heap8  4096       2    0        0     2     0     2     2     0     8    0
art_heap4  256      340    0      130    15     1    14    15     0     8    0
art_table   32      342    0      130     2     0     2     2     0     8    0
art_node    16       72    0       31     1     0     1     1     0     8    0
sysvmsgpl   40       33    0       16     1     0     1     1     0     8    0
semupl     112        2    0        2     1     1     0     1     0     8    0
semapl     112       69    0       59     1     0     1     1     0     8    0
shmpl      112       62    0        5     2     0     2     2     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     2015    0      608    46     0    46    46     0     8    0
ffsino     272     2015    0      608    95     0    95    95     0     8    0
nchpl      144     2833    0     1229    61     0    61    61     0     8    0
uvmvnodes   72     2349    0        0    43     0    43    43     0     8    0
vnodes     208     2349    0        0   124     0   124   124     0     8    0
namei      1024    8389    0     8388     1     0     1     1     0     8    0
percpumem   16       38    0        6     1     0     1     1     0     8    0
vcpupl     1984       5    0        0     1     0     1     1     0     8    0
vmpool     560        9    0        4     1     0     1     1     0     8    0
scsiplug    64        1    0        1     1     1     0     1     0     8    0
scxspl     192     8468    0     8467     7     6     1     6     0     8    0
plimitpl   152       53    0       45     1     0     1     1     0     8    0
sigapl     432      644    0      629     3     1     2     3     0     8    0
futexpl     56     9441    0     9441     1     0     1     1     0     8    1
knotepl    112      126    0      107     1     0     1     1     0     8    0
kqueuepl   104       67    0       65     1     0     1     1     0     8    0
pipelkpl    48      221    0      211     1     0     1     1     0     8    0
pipepl     120      442    0      423     2     1     1     2     0     8    0
fdescpl    496      645    0      629     3     0     3     3     0     8    0
filepl     152     5085    0     4985     7     1     6     6     0     8    2
lockfpl    104       86    0       85     1     0     1     1     0     8    0
lockfspl    48       33    0       32     1     0     1     1     0     8    0
sessionpl  112       20    0        9     1     0     1     1     0     8    0
pgrppl      48       52    0       41     1     0     1     1     0     8    0
ucredpl     96      475    0      466     1     0     1     1     0     8    0
zombiepl   144      631    0      631     1     0     1     1     0     8    1
processpl  960      663    0      631     5     0     5     5     0     8    0
procpl     624     1678    0     1637     5     1     4     5     0     8    0
sosppl     128        6    0        6     1     0     1     1     0     8    1
sockpl     400     1776    0     1757     6     2     4     6     0     8    2
mcl64k     65536     16    0        0     2     0     2     2     0     8    0
mcl16k     16384      5    0        0     1     0     1     1     0     8    0
mcl12k     12288      7    0        0     1     0     1     1     0     8    0
mcl9k      9216       2    0        0     1     0     1     1     0     8    0
mcl8k      8192       4    0        0     1     0     1     1     0     8    0
mcl4k      4096      12    0        0     2     0     2     2     0     8    0
mcl2k2     2112       2    0        0     1     0     1     1     0     8    0
mcl2k      2048     169    0        0    21     0    21    21     0     8    0
mtagpl      80       47    0        0     1     0     1     1     0     8    0
mbufpl     256      356    0        0    21     0    21    21     0     8    0
bufpl      280     5009    0      196   344     0   344   344     0     8    0
anonpl      16    70814    0    53924    70     1    69    69     0   125    0
amapchunkpl 152    5471    0     5335    26    10    16    20     0   158    9
amappl16   192     2751    0     1830    48     1    47    47     0     8    0
amappl15   184      196    0      192     1     0     1     1     0     8    0
amappl14   176      301    0      297     1     0     1     1     0     8    0
amappl12   160        4    0        3     1     0     1     1     0     8    0
amappl11   152       62    0       47     1     0     1     1     0     8    0
amappl10   144       10    0        7     1     0     1     1     0     8    0
amappl9    136      617    0      613     1     0     1     1     0     8    0
amappl8    128      147    0      118     2     0     2     2     0     8    0
amappl7    120      119    0      106     1     0     1     1     0     8    0
amappl6    112       61    0       53     1     0     1     1     0     8    0
amappl5    104      157    0      143     1     0     1     1     0     8    0
amappl4     96      911    0      879     1     0     1     1     0     8    0
amappl3     88      330    0      322     1     0     1     1     0     8    0
amappl2     80     4336    0     4266     3     1     2     3     0     8    0
amappl1     72    24295    0    23861    25    15    10    20     0     8    0
amappl      80     1958    0     1913     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       63    0        5     1     0     1     1     0     8    0
uaddrrnd    24      654    0      633     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      654    0      633     1     0     1     1     0     8    0
vmmpekpl   168     9195    0     9163     2     0     2     2     0     8    0
vmmpepl    168    86265    0    84182   136    21   115   125     0   357   18
vmsppl     368      653    0      633     2     0     2     2     0     8    0
pdppl      4096    1315    0     1271     6     0     6     6     0     8    0
pvpl        32   230323    0   210292   169     0   169   169     0   265    4
pmappl     232      653    0      633     2     0     2     2     0     8    0
extentpl    40       46    0       29     1     0     1     1     0     8    0
phpool     112      189    0        7     6     0     6     6     0     8    0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/02 20:10 openbsd c88ab7ef5f5d 93e5e335 .config console log report ci-openbsd-multicore
* Struck through repros no longer work on HEAD.