syzbot


assert "tname->un_flags & UNVEIL_USERSET" failed: file "/syzkaller/managerspanic: kernel diagnostic assertion "!_kernel_

Status: closed as dup on 2019/03/27 11:06
Reported-by: syzbot+a2a5e63485669beada13@syzkaller.appspotmail.com
First crash: 1235d, last: 1235d
Duplicate of (1):
Title Repro Cause bisect Fix bisect Count Last Reported
assert "tname->un_flags & UNVEIL_USERSET" failed in kern_unveil.c C 1447 1234d 1237d

Sample crash report:
panic: kernel diagnostic assertion "tname->un_flags & UNVEIL_USERSET" failed: file "/syzkaller/managerspanic: kernel diagnostic assertion "!_kernel_lock_held()" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_fork.c", line 689
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
 175166  29039      0           0  0x4000000    0  syz-executor.0
*442450  88474      0           0  0x4000000    1  syz-executor.1
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x174 sys/kern/subr_prf.c:208
__assert(ffffffff81f7eb2c,ffffffff81f6b8b7,2b1,ffffffff81f50acf) at __assert+0x2e sys/kern/subr_prf.c:155
proc_trampoline_mp() at proc_trampoline_mp+0x13b
end trace frame: 0x0, count: 11
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
kernel diagnostic assertion "tname->un_flags & UNVEIL_USERSET" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 879
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x174 sys/kern/subr_prf.c:208
__assert(ffffffff81f7eb2c,ffffffff81f6b8b7,2b1,ffffffff81f50acf) at __assert+0x2e sys/kern/subr_prf.c:155
proc_trampoline_mp() at proc_trampoline_mp+0x13b
end trace frame: 0x0, count: -4
ddb{1}> show registers
rdi                                0
rsi                              0x1
rbp               0xffff800020c69b80
rbx               0xffff800020c69c30
rdx               0xffffffff81f89e77    apollo_pio_rec+0x9e22
rcx                                0
rax                                0
r8                0xffffffff811c43a3    kprintf+0x183
r9                               0x1
r10                             0x25
r11               0xda9d9faa7e628ab1
r12                     0x3000000008
r13               0xffff800020c69b90
r14                            0x104
r15                              0x1
rip               0xffffffff81e2e758    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff800020c69b70
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb{1}> show proc
PROC (syz-executor.1) pid=442450 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=86, usrpri=86, nice=20
    forw=0xffffffffffffffff, list=0xffff800020b38978,0xffff800020b39c48
    process=0xffff800020b8d3c8 user=0xffff800020c64000, vmspace=0xfffffd807effe2d0
    estcpu=36, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 29039   14373  44836      0  2           0                syz-executor.0
 29039  175166  44836      0  7   0x4000000                syz-executor.0
 88474  441208  82719      0  2           0                syz-executor.1
 88474  274991  82719      0  3   0x4000080  ttyin         syz-executor.1
 88474  403617  82719      0  3   0x4000080  ttyout        syz-executor.1
*88474  442450  82719      0  7   0x4000000                syz-executor.1
 88474  462564  82719      0  2   0x4000000                syz-executor.1
 44836   82514  91975      0  3        0x82  nanosleep     syz-executor.0
 69301  377843      0      0  3     0x14200  bored         sosplice
 82719   55669  91975      0  3        0x82  nanosleep     syz-executor.1
 91975  409765   4968      0  3        0x82  thrsleep      syz-fuzzer
 91975  372651   4968      0  3   0x4000082  thrsleep      syz-fuzzer
 91975  483474   4968      0  3   0x4000082  thrsleep      syz-fuzzer
 91975  337238   4968      0  3   0x4000082  thrsleep      syz-fuzzer
 91975  403542   4968      0  3   0x4000082  thrsleep      syz-fuzzer
 91975  401478   4968      0  3   0x4000082  thrsleep      syz-fuzzer
 91975  296423   4968      0  3   0x4000082  thrsleep      syz-fuzzer
 91975  104070   4968      0  3   0x4000082  kqread        syz-fuzzer
 91975    6857   4968      0  3   0x4000082  thrsleep      syz-fuzzer
 91975  347094   4968      0  3   0x4000082  thrsleep      syz-fuzzer
  4968   80088  99414      0  3    0x10008a  pause         ksh
 99414  279682   7565      0  3        0x92  select        sshd
 82966  512380      1      0  3    0x100083  ttyin         getty
  7565   23575      1      0  3        0x80  select        sshd
 97205   73793    775     74  3    0x100092  bpf           pflogd
   775  507161      1      0  3        0x80  netio         pflogd
 44332  118314  23354     73  3    0x100090  kqread        syslogd
 23354  224085      1      0  3    0x100082  netio         syslogd
 17114  152265      1     77  3    0x100090  poll          dhclient
 66722  458341      1      0  3        0x80  poll          dhclient
 54122  234378      0      0  2     0x14200                zerothread
 80142  291394      0      0  3     0x14200  aiodoned      aiodoned
 93378  103641      0      0  3     0x14200  syncer        update
 99569  115002      0      0  3     0x14200  cleaner       cleaner
 48822  231192      0      0  3     0x14200  reaper        reaper
 87191  284938      0      0  3     0x14200  pgdaemon      pagedaemon
 43879  290325      0      0  3     0x14200  bored         crynlk
 93279  280495      0      0  3     0x14200  bored         crypto
 46402  422062      0      0  3  0x40014200  acpi0         acpi0
 68897  455091      0      0  3  0x40014200                idle1
 23290   93685      0      0  3     0x14200  bored         softnet
 63538  421608      0      0  3     0x14200  bored         systqmp
 36925    5735      0      0  3     0x14200  bored         systq
  3356  249348      0      0  3  0x40014200  bored         softclock
 10807  277481      0      0  3  0x40014200                idle0
 47045  384000      0      0  3     0x14200  bored         smr
     1   56534      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
Process 29039 (syz-executor.0) thread 0xffff800020b38978 (175166)
exclusive rrwlock inode r = 0 (0xfffffd806e3965f8) locked @ /syzkaller/managers/multicore/kernel/sys/ufs/ufs/ufs_vnops.c:1547
#0  witness_lock+0x594 sys/kern/subr_witness.c:1201
#1  _rw_enter+0x45d sys/kern/kern_rwlock.c:280
#2  _rrw_enter+0x60 sys/kern/kern_rwlock.c:410
#3  VOP_LOCK+0x57 sys/kern/vfs_vops.c:602
#4  vn_lock+0x6e sys/kern/vfs_vnops.c:549
#5  vfs_lookup+0xf5 sys/kern/vfs_lookup.c:387
#6  namei+0x4b2 sys/kern/vfs_lookup.c:224
#7  domknodat+0xa1 sys/kern/vfs_syscalls.c:1405
#8  syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline]
#8  syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574
#9  Xsyscall+0x128
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8234a3d0) locked @ /syzkaller/managers/multicore/kernel/sys/sys/syscall_mi.h:90
#0  witness_lock+0x594 sys/kern/subr_witness.c:1201
#1  syscall+0x48b mi_syscall sys/sys/syscall_mi.h:91 [inline]
#1  syscall+0x48b sys/arch/amd64/amd64/trap.c:574
#2  Xsyscall+0x128
ddb{1}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim Kern Lim
         devbuf  9528   6417K    6419K  78643K     10699        0        0
            pcb    25      9K      10K  78643K       128        0        0
         rtable   100      3K       4K  78643K       274        0        0
         ifaddr    62     13K      13K  78643K       100        0        0
       counters    39     33K      33K  78643K        39        0        0
       ioctlops     0      0K       4K  78643K      1472        0        0
            iov     0      0K      16K  78643K        29        0        0
          mount     1      1K       1K  78643K         1        0        0
         vnodes  1205     75K      76K  78643K      1339        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         6        0        0
         VM map     2      1K       1K  78643K         2        0        0
            sem    12      0K       0K  78643K        22        0        0
        dirhash    12      2K       2K  78643K        12        0        0
           ACPI  1808    196K     290K  78643K     12628        0        0
      file desc     6     17K      21K  78643K       219        0        0
           proc    56     63K      71K  78643K       382        0        0
        subproc    64  65538K   67586K  78643K       102        0        0
    NFS srvsock     1      0K       0K  78643K         1        0        0
     NFS daemon     1     16K      16K  78643K         1        0        0
    ip_moptions     0      0K       0K  78643K        28        0        0
       in_multi    33      2K       2K  78643K        59        0        0
    ether_multi     1      0K       0K  78643K         4        0        0
    ISOFS mount     1     32K      32K  78643K         1        0        0
  MSDOSFS mount     1     16K      16K  78643K         1        0        0
           ttys    72    318K     318K  78643K        72        0        0
           exec     0      0K       1K  78643K       209        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    85     20K      29K  78643K      1534        0        0
       UVM aobj    10      2K       2K  78643K        10        0        0
        memdesc     1      4K       4K  78643K         1        0        0
    crypto data     1      1K       1K  78643K         1        0        0
    ip6_options     0      0K       0K  78643K        17        0        0
            NDP    13      0K       0K  78643K        28        0        0
           temp   140   2366K    2433K  78643K      3830        0        0
      SYN cache     2     16K      16K  78643K         2        0        0
ddb{1}> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp         64        5    0        1     1     0     1     1     0     8    0
inpcbpl    280      154    0      147     1     0     1     1     0     8    0
plimitpl   152       25    0       17     1     0     1     1     0     8    0
plcache    128       20    0        0     1     0     1     1     0     8    0
rtentry    112       50    0       10     2     0     2     2     0     8    0
syncache   264        4    0        4     2     2     0     1     0     8    0
tcpcb      544       50    0       46     1     0     1     1     0     8    0
nd6         48        6    0        2     1     0     1     1     0     8    0
ppxss      1128       6    0        6     3     2     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       13    0        3     1     0     1     1     0     8    0
pfstkey    112       13    0        3     1     0     1     1     0     8    0
pfstate    328       13    0        3     1     0     1     1     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      229    0       41    12     0    12    12     0     8    0
art_table   32      230    0       41     2     0     2     2     0     8    0
art_node    16       49    0       15     1     0     1     1     0     8    0
semupl     112        1    0        1     1     0     1     1     0     8    1
semapl     112       20    0       10     1     0     1     1     0     8    0
shmpl      112        8    0        0     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     1803    0      381    46     0    46    46     0     8    0
ffsino     272     1803    0      381    96     0    96    96     0     8    1
nchpl      144     2313    0      679    61     0    61    61     0     8    0
uvmvnodes   72     1891    0        0    35     0    35    35     0     8    0
vnodes     200     1891    0        0   100     0   100   100     0     8    0
namei      1024    6322    0     6321     3     2     1     1     0     8    0
percpumem   16       30    0        0     1     0     1     1     0     8    0
scxspl     192     5974    0     5974     8     7     1     6     0     8    1
sigapl     432      415    0      399     2     0     2     2     0     8    0
futexpl     56     1992    0     1992     1     0     1     1     0     8    1
knotepl    112      109    0       90     1     0     1     1     0     8    0
kqueuepl   104       43    0       41     1     0     1     1     0     8    0
pipepl     112      278    0      259     3     2     1     1     0     8    0
fdescpl    488      416    0      399     3     0     3     3     0     8    0
filepl     152     2250    0     2148     5     0     5     5     0     8    1
lockfpl    104       57    0       57     2     1     1     1     0     8    1
lockfspl    32       86    0       86     2     1     1     1     0     8    1
sessionpl  112       19    0        8     1     0     1     1     0     8    0
pgrppl      48       21    0       10     1     0     1     1     0     8    0
ucredpl     96      359    0      350     1     0     1     1     0     8    0
zombiepl   144      399    0      399     3     2     1     1     0     8    1
processpl  840      432    0      399     4     0     4     4     0     8    0
procpl     600      852    0      805     5     0     5     5     0     8    1
srpgc       64        6    0        6     1     0     1     1     0     8    1
sosppl     128        2    0        2     1     1     0     1     0     8    0
sockpl     384      250    0      231     3     0     3     3     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
mcl9k      9216       2    0        0     1     0     1     1     0     8    0
mcl8k      8192       1    0        0     1     0     1     1     0     8    0
mcl4k      4096       4    0        0     1     0     1     1     0     8    0
mcl2k2     2112       1    0        0     1     0     1     1     0     8    0
mcl2k      2048     127    0        0    14     0    14    14     0     8    0
mtagpl      80        1    0        0     1     0     1     1     0     8    0
mbufpl     256      147    0        0     8     0     8     8     0     8    0
bufpl      256     6064    0     1143   308     0   308   308     0     8    0
anonpl      16    56163    0    48232    54     7    47    51     0   125   12
amapchunkpl 152    2549    0     2446    13     1    12    12     0   158    6
amappl16   192     1822    0     1387    34     8    26    34     0     8    4
amappl15   184       59    0       54     1     0     1     1     0     8    0
amappl14   176      125    0      120     3     2     1     1     0     8    0
amappl13   168       26    0       23     1     0     1     1     0     8    0
amappl12   160       15    0       14     2     1     1     1     0     8    0
amappl11   152       23    0        8     1     0     1     1     0     8    0
amappl10   144       67    0       63     1     0     1     1     0     8    0
amappl9    136      653    0      650     1     0     1     1     0     8    0
amappl8    128      211    0      197     1     0     1     1     0     8    0
amappl7    120       33    0       28     1     0     1     1     0     8    0
amappl6    112       59    0       50     1     0     1     1     0     8    0
amappl5    104      116    0      102     1     0     1     1     0     8    0
amappl4     96      635    0      603     2     1     1     2     0     8    0
amappl3     88      202    0      196     1     0     1     1     0     8    0
amappl2     80     2439    0     2371     2     0     2     2     0     8    0
amappl1     72    18464    0    18009    25    15    10    20     0     8    0
amappl      72     1105    0     1065     1     0     1     1     0    75    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
dma64       64      259    0      259     1     1     0     1     0     8    0
dma32       32        7    0        7     1     1     0     1     0     8    0
dma16       16       17    0       17     1     1     0     1     0     8    0
aobjpl      64        9    0        0     1     0     1     1     0     8    0
uaddrrnd    24      416    0      399     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      416    0      399     1     0     1     1     0     8    0
vmmpekpl   168     7389    0     7365     2     0     2     2     0     8    0
vmmpepl    168    51338    0    49807    89    11    78    78     0   357   11
vmsppl     360      415    0      399     2     0     2     2     0     8    0
pdppl      4096     840    0      798     6     0     6     6     0     8    0
pvpl        32   176545    0   165292   144    16   128   132     0   265   33
pmappl     224      415    0      399     2     1     1     2     0     8    0
extentpl    40       39    0       25     1     0     1     1     0     8    0
phpool     112      460    0        5    13     0    13    13     0     8    0

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-openbsd-multicore 2019/03/26 21:25 openbsd ad597a5fc5a3 55684ce1 .config log report