From 9a5c7758645d534a95ec944f2efb6d4e9b7aafbe Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Thu, 11 Jun 2020 00:14:29 +0200 Subject: sys/linux: rename 9p.txt to fs_9p.txt --- sys/linux/9p.txt | 292 ----------------------------------------- sys/linux/9p.txt.warn | 8 -- sys/linux/9p_386.const | 81 ------------ sys/linux/9p_amd64.const | 81 ------------ sys/linux/9p_arm.const | 81 ------------ sys/linux/9p_arm64.const | 81 ------------ sys/linux/9p_mips64le.const | 81 ------------ sys/linux/9p_ppc64le.const | 81 ------------ sys/linux/fs_9p.txt | 292 +++++++++++++++++++++++++++++++++++++++++ sys/linux/fs_9p.txt.warn | 8 ++ sys/linux/fs_9p_386.const | 81 ++++++++++++ sys/linux/fs_9p_amd64.const | 81 ++++++++++++ sys/linux/fs_9p_arm.const | 81 ++++++++++++ sys/linux/fs_9p_arm64.const | 81 ++++++++++++ sys/linux/fs_9p_mips64le.const | 81 ++++++++++++ sys/linux/fs_9p_ppc64le.const | 81 ++++++++++++ 16 files changed, 786 insertions(+), 786 deletions(-) delete mode 100644 sys/linux/9p.txt delete mode 100644 sys/linux/9p.txt.warn delete mode 100644 sys/linux/9p_386.const delete mode 100644 sys/linux/9p_amd64.const delete mode 100644 sys/linux/9p_arm.const delete mode 100644 sys/linux/9p_arm64.const delete mode 100644 sys/linux/9p_mips64le.const delete mode 100644 sys/linux/9p_ppc64le.const create mode 100644 sys/linux/fs_9p.txt create mode 100644 sys/linux/fs_9p.txt.warn create mode 100644 sys/linux/fs_9p_386.const create mode 100644 sys/linux/fs_9p_amd64.const create mode 100644 sys/linux/fs_9p_arm.const create mode 100644 sys/linux/fs_9p_arm64.const create mode 100644 sys/linux/fs_9p_mips64le.const create mode 100644 sys/linux/fs_9p_ppc64le.const (limited to 'sys') diff --git a/sys/linux/9p.txt b/sys/linux/9p.txt deleted file mode 100644 index 4295be1b3..000000000 --- a/sys/linux/9p.txt +++ /dev/null @@ -1,292 +0,0 @@ -# Copyright 2018 syzkaller project authors. All rights reserved. -# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. - -# 9p2000 mount/server descriptions. For protocol description see: -# http://knusbaum.com/useful/rfc9p2000 -# http://ericvh.github.io/9p-rfc/rfc9p2000.html -# http://ericvh.github.io/9p-rfc/rfc9p2000.u.html -# https://github.com/chaos/diod/blob/master/protocol.md - -include -include - -resource rfd9p[fd] -resource wfd9p[fd] - -mount$9p_fd(src const[0], dst ptr[in, filename], type ptr[in, string["9p"]], flags flags[mount_flags], opts ptr[in, p9_options_fd]) -mount$9p_tcp(src ptr[in, string["127.0.0.1"]], dst ptr[in, filename], type ptr[in, string["9p"]], flags flags[mount_flags], opts ptr[in, p9_options_tcp]) -mount$9p_unix(src ptr[in, filename], dst ptr[in, filename], type ptr[in, string["9p"]], flags flags[mount_flags], opts ptr[in, p9_options_unix]) -mount$9p_rdma(src ptr[in, string["127.0.0.1"]], dst ptr[in, filename], type ptr[in, string["9p"]], flags flags[mount_flags], opts ptr[in, p9_options_rdma]) -mount$9p_virtio(src ptr[in, string["syz"]], dst ptr[in, filename], type ptr[in, string["9p"]], flags flags[mount_flags], opts ptr[in, p9_options_virtio]) -mount$9p_xen(src ptr[in, string["syz"]], dst ptr[in, filename], type ptr[in, string["9p"]], flags flags[mount_flags], opts ptr[in, p9_options_xen]) - -pipe2$9p(pipefd ptr[out, pipe_9p], flags flags[pipe_flags]) - -pipe_9p { - rfd rfd9p - wfd wfd9p -} - -write$9p(fd wfd9p, data ptr[in, array[int8]], size bytesize[data]) - -write$P9_RLERROR(fd wfd9p, data ptr[in, p9_msg[P9_RLERROR, p9_rerror]], size bytesize[data]) -write$P9_RLERRORu(fd wfd9p, data ptr[in, p9_msg[P9_RLERROR, p9_rerroru]], size bytesize[data]) -write$P9_RVERSION(fd wfd9p, data ptr[in, p9_rversion], size bytesize[data]) -write$P9_RAUTH(fd wfd9p, data ptr[in, p9_msg[P9_RAUTH, p9_qid]], size bytesize[data]) -write$P9_RFLUSH(fd wfd9p, data ptr[in, p9_msg[P9_RFLUSH, void]], size bytesize[data]) -write$P9_RATTACH(fd wfd9p, data ptr[in, p9_msg[P9_RATTACH, p9_qid]], size bytesize[data]) -write$P9_RWALK(fd wfd9p, data ptr[in, p9_msg[P9_RWALK, p9_rwalk]], size bytesize[data]) -write$P9_ROPEN(fd wfd9p, data ptr[in, p9_msg[P9_ROPEN, p9_ropen]], size bytesize[data]) -write$P9_RCREATE(fd wfd9p, data ptr[in, p9_msg[P9_RCREATE, p9_ropen]], size bytesize[data]) -write$P9_RREAD(fd wfd9p, data ptr[in, p9_msg[P9_RREAD, p9_rread]], size bytesize[data]) -write$P9_RWRITE(fd wfd9p, data ptr[in, p9_msg[P9_RWRITE, int32]], size bytesize[data]) -write$P9_RCLUNK(fd wfd9p, data ptr[in, p9_msg[P9_RCLUNK, void]], size bytesize[data]) -write$P9_RREMOVE(fd wfd9p, data ptr[in, p9_msg[P9_RREMOVE, void]], size bytesize[data]) -write$P9_RWSTAT(fd wfd9p, data ptr[in, p9_msg[P9_RWSTAT, void]], size bytesize[data]) -write$P9_RSTAT(fd wfd9p, data ptr[in, p9_msg[P9_RSTAT, p9_rstat]], size bytesize[data]) -write$P9_RSTATu(fd wfd9p, data ptr[in, p9_msg[P9_RSTAT, p9_rstatu]], size bytesize[data]) -write$P9_RSTATFS(fd wfd9p, data ptr[in, p9_msg[P9_RSTATFS, p9_rstatfs]], size bytesize[data]) -write$P9_RLOPEN(fd wfd9p, data ptr[in, p9_msg[P9_RLOPEN, p9_ropen]], size bytesize[data]) -write$P9_RLCREATE(fd wfd9p, data ptr[in, p9_msg[P9_RLCREATE, p9_ropen]], size bytesize[data]) -write$P9_RSYMLINK(fd wfd9p, data ptr[in, p9_msg[P9_RSYMLINK, p9_qid]], size bytesize[data]) -write$P9_RMKNOD(fd wfd9p, data ptr[in, p9_msg[P9_RMKNOD, p9_qid]], size bytesize[data]) -write$P9_RRENAME(fd wfd9p, data ptr[in, p9_msg[P9_RRENAME, void]], size bytesize[data]) -write$P9_RREADLINK(fd wfd9p, data ptr[in, p9_msg[P9_RREADLINK, p9_rreadlink]], size bytesize[data]) -write$P9_RGETATTR(fd wfd9p, data ptr[in, p9_msg[P9_RGETATTR, p9_rgetattr]], size bytesize[data]) -write$P9_RSETATTR(fd wfd9p, data ptr[in, p9_msg[P9_RSETATTR, void]], size bytesize[data]) -write$P9_RXATTRWALK(fd wfd9p, data ptr[in, p9_msg[P9_RXATTRWALK, int64]], size bytesize[data]) -write$P9_RXATTRCREATE(fd wfd9p, data ptr[in, p9_msg[P9_RXATTRCREATE, void]], size bytesize[data]) -write$P9_RREADDIR(fd wfd9p, data ptr[in, p9_msg[P9_RREADDIR, p9_rreaddir]], size bytesize[data]) -write$P9_RFSYNC(fd wfd9p, data ptr[in, p9_msg[P9_RFSYNC, void]], size bytesize[data]) -write$P9_RLOCK(fd wfd9p, data ptr[in, p9_msg[P9_RLOCK, flags[p9_lock_status, int8]]], size bytesize[data]) -write$P9_RGETLOCK(fd wfd9p, data ptr[in, p9_msg[P9_RGETLOCK, p9_rgetlock]], size bytesize[data]) -write$P9_RLINK(fd wfd9p, data ptr[in, p9_msg[P9_RLINK, void]], size bytesize[data]) -write$P9_RMKDIR(fd wfd9p, data ptr[in, p9_msg[P9_RMKDIR, p9_qid]], size bytesize[data]) -write$P9_RRENAMEAT(fd wfd9p, data ptr[in, p9_msg[P9_RRENAMEAT, void]], size bytesize[data]) -write$P9_RUNLINKAT(fd wfd9p, data ptr[in, p9_msg[P9_RUNLINKAT, void]], size bytesize[data]) - -type p9_msg[MSG, PAYLOAD] { - size bytesize[parent, int32] - type const[MSG, int8] - tag int16[1:2] - payload PAYLOAD -} [packed] - -p9_rerror { - ename_len len[ename, int16] - ename stringnoz -} [packed] - -p9_rerroru { - error p9_rerror - errno int32 -} [packed] - -p9_rversion { - size bytesize[parent, int32] - type const[P9_RVERSION, int8] - tag const[0xffff, int16] - msize int32 - version_len len[version, int16] - version stringnoz[p9_versions] -} [packed] - -p9_versions = "9P2000", "9P2000.u", "9P2000.L" - -p9_qid { - type flags[p9_qid_types, int8] - version int32[0:4] - path int64[0:8] -} [packed] - -p9_qid_types = P9_QTDIR, P9_QTAPPEND, P9_QTEXCL, P9_QTMOUNT, P9_QTAUTH, P9_QTTMP, P9_QTSYMLINK, P9_QTLINK, P9_QTFILE - -p9_rwalk { - nwqid len[wqid, int16] - wqid array[p9_qid] -} [packed] - -p9_ropen { - qid p9_qid - iounit int32 -} [packed] - -p9_rread { - count bytesize[data, int32] - data array[int8] -} [packed] - -p9_rstat { -# I can't find this in any protocol descriptions, but linux seems to expect another int16 field here. - ignored const[0, int16] - size bytesize[parent, int16] - type int16 - dev int32 - qid p9_qid - mode flags[p9_perm_t, int32] - atime int32 - mtime int32 - length int64 - name_len len[name, int16] - name stringnoz - uid_len len[uid, int16] - uid stringnoz - gid_len len[gid, int16] - gid stringnoz - muid_len len[muid, int16] - muid stringnoz -} [packed] - -p9_rstatu { - rstat p9_rstat - extension_len len[extension, int16] - extension stringnoz - n_uid uid - n_gid gid - n_muid uid -} [packed] - -p9_perm_t = P9_DMDIR, P9_DMAPPEND, P9_DMEXCL, P9_DMMOUNT, P9_DMAUTH, P9_DMTMP, P9_DMSYMLINK, P9_DMLINK, P9_DMDEVICE, P9_DMNAMEDPIPE, P9_DMSOCKET, P9_DMSETUID, P9_DMSETGID, P9_DMSETVTX - -p9_rreadlink { - target_len len[target, int16] - target stringnoz[filename] -} [packed] - -p9_rstatfs { - type int32 - bsize int32 - blocks int64 - bfree int64 - bavail int64 - files int64 - ffree int64 - fsid int64 - namelen int32 -} [packed] - -p9_rgetattr { - valid flags[p8_stats_valid, int64] - qid p9_qid - mode flags[open_mode, int32] - uid uid - gid gid - nlink int64 - rdev int64 - size int64 - blksize int64 - blocks int64 - atime_sec int64 - atime_nsec int64 - mtime_sec int64 - mtime_nsec int64 - ctime_sec int64 - ctime_nsec int64 - btime_sec int64 - btime_nsec int64 - gen int64 - data_version int64 -} [packed] - -p8_stats_valid = P9_STATS_MODE, P9_STATS_NLINK, P9_STATS_UID, P9_STATS_GID, P9_STATS_RDEV, P9_STATS_ATIME, P9_STATS_MTIME, P9_STATS_CTIME, P9_STATS_INO, P9_STATS_SIZE, P9_STATS_BLOCKS, P9_STATS_BTIME, P9_STATS_GEN, P9_STATS_DATA_VERSION - -p9_lock_status = P9_LOCK_SUCCESS, P9_LOCK_BLOCKED, P9_LOCK_ERROR, P9_LOCK_GRACE -p9_lock_type = P9_LOCK_TYPE_RDLCK, P9_LOCK_TYPE_WRLCK, P9_LOCK_TYPE_UNLCK - -p9_rreaddir { - count int32 - entries array[p9_dir] -} [packed] - -p9_dir { - qid p9_qid - offset int64 - type int8 - name_len len[name, int16] - name stringnoz[filename] -} [packed] - -p9_rgetlock { - type flags[p9_lock_type, int8] - start int64 - length int64 - proc_id pid - client_id_len len[client_id, int16] - client_id stringnoz -} [packed] - -# Mount options. - -p9_options_fd { - trans stringnoz["trans=fd,"] - rfdno fs_opt_hex["rfdno", rfd9p] - comma0 const[',', int8] - wfdno fs_opt_hex["wfdno", fd] - comma1 const[',', int8] - opts fs_options[p9_options] -} [packed] - -p9_options_tcp { - trans stringnoz["trans=tcp,"] - port fs_opt_hex["port", sock_port] - comma0 const[',', int8] - opts fs_options[p9_options] -} [packed] - -p9_options_unix { - name stringnoz["trans=unix,"] - opts fs_options[p9_options] -} [packed] - -p9_options_rdma { - trans stringnoz["trans=rdma,"] - port fs_opt_hex["port", sock_port] - comma0 const[',', int8] - opts fs_options[p9_options_rdma_opt] -} [packed] - -p9_options_rdma_opt [ - common p9_options - timeout fs_opt_hex["timeout", intptr] - sq fs_opt_hex["sq", intptr] - rq fs_opt_hex["rq", intptr] -] [varlen] - -p9_options_virtio { - trans stringnoz["trans=virtio,"] - opts fs_options[p9_options] -} [packed] - -p9_options_xen { - trans stringnoz["trans=xen,"] - opts fs_options[p9_options] -} [packed] - -p9_options [ - uname fs_opt_str["uname"] - aname fs_opt_str["aname"] - cache_none stringnoz["cache=none"] - cache_loose stringnoz["cache=loose"] - cache_fscache stringnoz["cache=fscache"] - cache_mmap stringnoz["cache=mmap"] - debug fs_opt_hex["debug", int64] - noextend stringnoz["noextend"] - nodevmap stringnoz["nodevmap"] - version_9p2000 stringnoz["version=9p2000"] - version_u stringnoz["version=9p2000.u"] - version_L stringnoz["version=9p2000.L"] - cachetag fs_opt_str["cachetag"] - loose stringnoz["loose"] - fscache stringnoz["fscache"] - mmap stringnoz["mmap"] - posixacl stringnoz["posixacl"] - privport stringnoz["privport"] - msize fs_opt_hex["msize", int32] - dfltuid fs_opt_hex["dfltuid", uid] - dfltgid fs_opt_hex["dfltgid", gid] - afid fs_opt_hex["afid", int32] - access_user stringnoz["access=user"] - access_any stringnoz["access=any"] - access_client stringnoz["access=client"] - access_uid fs_opt_dec["access", uid] -] [varlen] diff --git a/sys/linux/9p.txt.warn b/sys/linux/9p.txt.warn deleted file mode 100644 index 1ed5d7f3b..000000000 --- a/sys/linux/9p.txt.warn +++ /dev/null @@ -1,8 +0,0 @@ -no-such-struct: pipe_9p -no-such-struct: p9_msg -bad-struct-size: p9_qid: syz=13 kernel=16 -bad-field-offset: p9_qid.version: syz=1 kernel=4 -bad-field-offset: p9_qid.path: syz=5 kernel=8 -no-such-struct: p9_ropen -bad-struct-size: p9_rstatfs: syz=60 kernel=64 [amd64,arm,arm64] -no-such-struct: p9_rgetattr diff --git a/sys/linux/9p_386.const b/sys/linux/9p_386.const deleted file mode 100644 index f2dc375c3..000000000 --- a/sys/linux/9p_386.const +++ /dev/null @@ -1,81 +0,0 @@ -# AUTOGENERATED FILE -P9_DMAPPEND = 1073741824 -P9_DMAUTH = 134217728 -P9_DMDEVICE = 8388608 -P9_DMDIR = 2147483648 -P9_DMEXCL = 536870912 -P9_DMLINK = 16777216 -P9_DMMOUNT = 268435456 -P9_DMNAMEDPIPE = 2097152 -P9_DMSETGID = 262144 -P9_DMSETUID = 524288 -P9_DMSETVTX = 65536 -P9_DMSOCKET = 1048576 -P9_DMSYMLINK = 33554432 -P9_DMTMP = 67108864 -P9_LOCK_BLOCKED = 1 -P9_LOCK_ERROR = 2 -P9_LOCK_GRACE = 3 -P9_LOCK_SUCCESS = 0 -P9_LOCK_TYPE_RDLCK = 0 -P9_LOCK_TYPE_UNLCK = 2 -P9_LOCK_TYPE_WRLCK = 1 -P9_QTAPPEND = 64 -P9_QTAUTH = 8 -P9_QTDIR = 128 -P9_QTEXCL = 32 -P9_QTFILE = 0 -P9_QTLINK = 1 -P9_QTMOUNT = 16 -P9_QTSYMLINK = 2 -P9_QTTMP = 4 -P9_RATTACH = 105 -P9_RAUTH = 103 -P9_RCLUNK = 121 -P9_RCREATE = 115 -P9_RFLUSH = 109 -P9_RFSYNC = 51 -P9_RGETATTR = 25 -P9_RGETLOCK = 55 -P9_RLCREATE = 15 -P9_RLERROR = 7 -P9_RLINK = 71 -P9_RLOCK = 53 -P9_RLOPEN = 13 -P9_RMKDIR = 73 -P9_RMKNOD = 19 -P9_ROPEN = 113 -P9_RREAD = 117 -P9_RREADDIR = 41 -P9_RREADLINK = 23 -P9_RREMOVE = 123 -P9_RRENAME = 21 -P9_RRENAMEAT = 75 -P9_RSETATTR = 27 -P9_RSTAT = 125 -P9_RSTATFS = 9 -P9_RSYMLINK = 17 -P9_RUNLINKAT = 77 -P9_RVERSION = 101 -P9_RWALK = 111 -P9_RWRITE = 119 -P9_RWSTAT = 127 -P9_RXATTRCREATE = 33 -P9_RXATTRWALK = 31 -P9_STATS_ATIME = 32 -P9_STATS_BLOCKS = 1024 -P9_STATS_BTIME = 2048 -P9_STATS_CTIME = 128 -P9_STATS_DATA_VERSION = 8192 -P9_STATS_GEN = 4096 -P9_STATS_GID = 8 -P9_STATS_INO = 256 -P9_STATS_MODE = 1 -P9_STATS_MTIME = 64 -P9_STATS_NLINK = 2 -P9_STATS_RDEV = 16 -P9_STATS_SIZE = 512 -P9_STATS_UID = 4 -__NR_mount = 21 -__NR_pipe2 = 331 -__NR_write = 4 diff --git a/sys/linux/9p_amd64.const b/sys/linux/9p_amd64.const deleted file mode 100644 index 10a3a28aa..000000000 --- a/sys/linux/9p_amd64.const +++ /dev/null @@ -1,81 +0,0 @@ -# AUTOGENERATED FILE -P9_DMAPPEND = 1073741824 -P9_DMAUTH = 134217728 -P9_DMDEVICE = 8388608 -P9_DMDIR = 2147483648 -P9_DMEXCL = 536870912 -P9_DMLINK = 16777216 -P9_DMMOUNT = 268435456 -P9_DMNAMEDPIPE = 2097152 -P9_DMSETGID = 262144 -P9_DMSETUID = 524288 -P9_DMSETVTX = 65536 -P9_DMSOCKET = 1048576 -P9_DMSYMLINK = 33554432 -P9_DMTMP = 67108864 -P9_LOCK_BLOCKED = 1 -P9_LOCK_ERROR = 2 -P9_LOCK_GRACE = 3 -P9_LOCK_SUCCESS = 0 -P9_LOCK_TYPE_RDLCK = 0 -P9_LOCK_TYPE_UNLCK = 2 -P9_LOCK_TYPE_WRLCK = 1 -P9_QTAPPEND = 64 -P9_QTAUTH = 8 -P9_QTDIR = 128 -P9_QTEXCL = 32 -P9_QTFILE = 0 -P9_QTLINK = 1 -P9_QTMOUNT = 16 -P9_QTSYMLINK = 2 -P9_QTTMP = 4 -P9_RATTACH = 105 -P9_RAUTH = 103 -P9_RCLUNK = 121 -P9_RCREATE = 115 -P9_RFLUSH = 109 -P9_RFSYNC = 51 -P9_RGETATTR = 25 -P9_RGETLOCK = 55 -P9_RLCREATE = 15 -P9_RLERROR = 7 -P9_RLINK = 71 -P9_RLOCK = 53 -P9_RLOPEN = 13 -P9_RMKDIR = 73 -P9_RMKNOD = 19 -P9_ROPEN = 113 -P9_RREAD = 117 -P9_RREADDIR = 41 -P9_RREADLINK = 23 -P9_RREMOVE = 123 -P9_RRENAME = 21 -P9_RRENAMEAT = 75 -P9_RSETATTR = 27 -P9_RSTAT = 125 -P9_RSTATFS = 9 -P9_RSYMLINK = 17 -P9_RUNLINKAT = 77 -P9_RVERSION = 101 -P9_RWALK = 111 -P9_RWRITE = 119 -P9_RWSTAT = 127 -P9_RXATTRCREATE = 33 -P9_RXATTRWALK = 31 -P9_STATS_ATIME = 32 -P9_STATS_BLOCKS = 1024 -P9_STATS_BTIME = 2048 -P9_STATS_CTIME = 128 -P9_STATS_DATA_VERSION = 8192 -P9_STATS_GEN = 4096 -P9_STATS_GID = 8 -P9_STATS_INO = 256 -P9_STATS_MODE = 1 -P9_STATS_MTIME = 64 -P9_STATS_NLINK = 2 -P9_STATS_RDEV = 16 -P9_STATS_SIZE = 512 -P9_STATS_UID = 4 -__NR_mount = 165 -__NR_pipe2 = 293 -__NR_write = 1 diff --git a/sys/linux/9p_arm.const b/sys/linux/9p_arm.const deleted file mode 100644 index 5303369a7..000000000 --- a/sys/linux/9p_arm.const +++ /dev/null @@ -1,81 +0,0 @@ -# AUTOGENERATED FILE -P9_DMAPPEND = 1073741824 -P9_DMAUTH = 134217728 -P9_DMDEVICE = 8388608 -P9_DMDIR = 2147483648 -P9_DMEXCL = 536870912 -P9_DMLINK = 16777216 -P9_DMMOUNT = 268435456 -P9_DMNAMEDPIPE = 2097152 -P9_DMSETGID = 262144 -P9_DMSETUID = 524288 -P9_DMSETVTX = 65536 -P9_DMSOCKET = 1048576 -P9_DMSYMLINK = 33554432 -P9_DMTMP = 67108864 -P9_LOCK_BLOCKED = 1 -P9_LOCK_ERROR = 2 -P9_LOCK_GRACE = 3 -P9_LOCK_SUCCESS = 0 -P9_LOCK_TYPE_RDLCK = 0 -P9_LOCK_TYPE_UNLCK = 2 -P9_LOCK_TYPE_WRLCK = 1 -P9_QTAPPEND = 64 -P9_QTAUTH = 8 -P9_QTDIR = 128 -P9_QTEXCL = 32 -P9_QTFILE = 0 -P9_QTLINK = 1 -P9_QTMOUNT = 16 -P9_QTSYMLINK = 2 -P9_QTTMP = 4 -P9_RATTACH = 105 -P9_RAUTH = 103 -P9_RCLUNK = 121 -P9_RCREATE = 115 -P9_RFLUSH = 109 -P9_RFSYNC = 51 -P9_RGETATTR = 25 -P9_RGETLOCK = 55 -P9_RLCREATE = 15 -P9_RLERROR = 7 -P9_RLINK = 71 -P9_RLOCK = 53 -P9_RLOPEN = 13 -P9_RMKDIR = 73 -P9_RMKNOD = 19 -P9_ROPEN = 113 -P9_RREAD = 117 -P9_RREADDIR = 41 -P9_RREADLINK = 23 -P9_RREMOVE = 123 -P9_RRENAME = 21 -P9_RRENAMEAT = 75 -P9_RSETATTR = 27 -P9_RSTAT = 125 -P9_RSTATFS = 9 -P9_RSYMLINK = 17 -P9_RUNLINKAT = 77 -P9_RVERSION = 101 -P9_RWALK = 111 -P9_RWRITE = 119 -P9_RWSTAT = 127 -P9_RXATTRCREATE = 33 -P9_RXATTRWALK = 31 -P9_STATS_ATIME = 32 -P9_STATS_BLOCKS = 1024 -P9_STATS_BTIME = 2048 -P9_STATS_CTIME = 128 -P9_STATS_DATA_VERSION = 8192 -P9_STATS_GEN = 4096 -P9_STATS_GID = 8 -P9_STATS_INO = 256 -P9_STATS_MODE = 1 -P9_STATS_MTIME = 64 -P9_STATS_NLINK = 2 -P9_STATS_RDEV = 16 -P9_STATS_SIZE = 512 -P9_STATS_UID = 4 -__NR_mount = 21 -__NR_pipe2 = 359 -__NR_write = 4 diff --git a/sys/linux/9p_arm64.const b/sys/linux/9p_arm64.const deleted file mode 100644 index 68720a9ae..000000000 --- a/sys/linux/9p_arm64.const +++ /dev/null @@ -1,81 +0,0 @@ -# AUTOGENERATED FILE -P9_DMAPPEND = 1073741824 -P9_DMAUTH = 134217728 -P9_DMDEVICE = 8388608 -P9_DMDIR = 2147483648 -P9_DMEXCL = 536870912 -P9_DMLINK = 16777216 -P9_DMMOUNT = 268435456 -P9_DMNAMEDPIPE = 2097152 -P9_DMSETGID = 262144 -P9_DMSETUID = 524288 -P9_DMSETVTX = 65536 -P9_DMSOCKET = 1048576 -P9_DMSYMLINK = 33554432 -P9_DMTMP = 67108864 -P9_LOCK_BLOCKED = 1 -P9_LOCK_ERROR = 2 -P9_LOCK_GRACE = 3 -P9_LOCK_SUCCESS = 0 -P9_LOCK_TYPE_RDLCK = 0 -P9_LOCK_TYPE_UNLCK = 2 -P9_LOCK_TYPE_WRLCK = 1 -P9_QTAPPEND = 64 -P9_QTAUTH = 8 -P9_QTDIR = 128 -P9_QTEXCL = 32 -P9_QTFILE = 0 -P9_QTLINK = 1 -P9_QTMOUNT = 16 -P9_QTSYMLINK = 2 -P9_QTTMP = 4 -P9_RATTACH = 105 -P9_RAUTH = 103 -P9_RCLUNK = 121 -P9_RCREATE = 115 -P9_RFLUSH = 109 -P9_RFSYNC = 51 -P9_RGETATTR = 25 -P9_RGETLOCK = 55 -P9_RLCREATE = 15 -P9_RLERROR = 7 -P9_RLINK = 71 -P9_RLOCK = 53 -P9_RLOPEN = 13 -P9_RMKDIR = 73 -P9_RMKNOD = 19 -P9_ROPEN = 113 -P9_RREAD = 117 -P9_RREADDIR = 41 -P9_RREADLINK = 23 -P9_RREMOVE = 123 -P9_RRENAME = 21 -P9_RRENAMEAT = 75 -P9_RSETATTR = 27 -P9_RSTAT = 125 -P9_RSTATFS = 9 -P9_RSYMLINK = 17 -P9_RUNLINKAT = 77 -P9_RVERSION = 101 -P9_RWALK = 111 -P9_RWRITE = 119 -P9_RWSTAT = 127 -P9_RXATTRCREATE = 33 -P9_RXATTRWALK = 31 -P9_STATS_ATIME = 32 -P9_STATS_BLOCKS = 1024 -P9_STATS_BTIME = 2048 -P9_STATS_CTIME = 128 -P9_STATS_DATA_VERSION = 8192 -P9_STATS_GEN = 4096 -P9_STATS_GID = 8 -P9_STATS_INO = 256 -P9_STATS_MODE = 1 -P9_STATS_MTIME = 64 -P9_STATS_NLINK = 2 -P9_STATS_RDEV = 16 -P9_STATS_SIZE = 512 -P9_STATS_UID = 4 -__NR_mount = 40 -__NR_pipe2 = 59 -__NR_write = 64 diff --git a/sys/linux/9p_mips64le.const b/sys/linux/9p_mips64le.const deleted file mode 100644 index 87303183a..000000000 --- a/sys/linux/9p_mips64le.const +++ /dev/null @@ -1,81 +0,0 @@ -# AUTOGENERATED FILE -P9_DMAPPEND = 1073741824 -P9_DMAUTH = 134217728 -P9_DMDEVICE = 8388608 -P9_DMDIR = 2147483648 -P9_DMEXCL = 536870912 -P9_DMLINK = 16777216 -P9_DMMOUNT = 268435456 -P9_DMNAMEDPIPE = 2097152 -P9_DMSETGID = 262144 -P9_DMSETUID = 524288 -P9_DMSETVTX = 65536 -P9_DMSOCKET = 1048576 -P9_DMSYMLINK = 33554432 -P9_DMTMP = 67108864 -P9_LOCK_BLOCKED = 1 -P9_LOCK_ERROR = 2 -P9_LOCK_GRACE = 3 -P9_LOCK_SUCCESS = 0 -P9_LOCK_TYPE_RDLCK = 0 -P9_LOCK_TYPE_UNLCK = 2 -P9_LOCK_TYPE_WRLCK = 1 -P9_QTAPPEND = 64 -P9_QTAUTH = 8 -P9_QTDIR = 128 -P9_QTEXCL = 32 -P9_QTFILE = 0 -P9_QTLINK = 1 -P9_QTMOUNT = 16 -P9_QTSYMLINK = 2 -P9_QTTMP = 4 -P9_RATTACH = 105 -P9_RAUTH = 103 -P9_RCLUNK = 121 -P9_RCREATE = 115 -P9_RFLUSH = 109 -P9_RFSYNC = 51 -P9_RGETATTR = 25 -P9_RGETLOCK = 55 -P9_RLCREATE = 15 -P9_RLERROR = 7 -P9_RLINK = 71 -P9_RLOCK = 53 -P9_RLOPEN = 13 -P9_RMKDIR = 73 -P9_RMKNOD = 19 -P9_ROPEN = 113 -P9_RREAD = 117 -P9_RREADDIR = 41 -P9_RREADLINK = 23 -P9_RREMOVE = 123 -P9_RRENAME = 21 -P9_RRENAMEAT = 75 -P9_RSETATTR = 27 -P9_RSTAT = 125 -P9_RSTATFS = 9 -P9_RSYMLINK = 17 -P9_RUNLINKAT = 77 -P9_RVERSION = 101 -P9_RWALK = 111 -P9_RWRITE = 119 -P9_RWSTAT = 127 -P9_RXATTRCREATE = 33 -P9_RXATTRWALK = 31 -P9_STATS_ATIME = 32 -P9_STATS_BLOCKS = 1024 -P9_STATS_BTIME = 2048 -P9_STATS_CTIME = 128 -P9_STATS_DATA_VERSION = 8192 -P9_STATS_GEN = 4096 -P9_STATS_GID = 8 -P9_STATS_INO = 256 -P9_STATS_MODE = 1 -P9_STATS_MTIME = 64 -P9_STATS_NLINK = 2 -P9_STATS_RDEV = 16 -P9_STATS_SIZE = 512 -P9_STATS_UID = 4 -__NR_mount = 5160 -__NR_pipe2 = 5287 -__NR_write = 5001 diff --git a/sys/linux/9p_ppc64le.const b/sys/linux/9p_ppc64le.const deleted file mode 100644 index 68fefe419..000000000 --- a/sys/linux/9p_ppc64le.const +++ /dev/null @@ -1,81 +0,0 @@ -# AUTOGENERATED FILE -P9_DMAPPEND = 1073741824 -P9_DMAUTH = 134217728 -P9_DMDEVICE = 8388608 -P9_DMDIR = 2147483648 -P9_DMEXCL = 536870912 -P9_DMLINK = 16777216 -P9_DMMOUNT = 268435456 -P9_DMNAMEDPIPE = 2097152 -P9_DMSETGID = 262144 -P9_DMSETUID = 524288 -P9_DMSETVTX = 65536 -P9_DMSOCKET = 1048576 -P9_DMSYMLINK = 33554432 -P9_DMTMP = 67108864 -P9_LOCK_BLOCKED = 1 -P9_LOCK_ERROR = 2 -P9_LOCK_GRACE = 3 -P9_LOCK_SUCCESS = 0 -P9_LOCK_TYPE_RDLCK = 0 -P9_LOCK_TYPE_UNLCK = 2 -P9_LOCK_TYPE_WRLCK = 1 -P9_QTAPPEND = 64 -P9_QTAUTH = 8 -P9_QTDIR = 128 -P9_QTEXCL = 32 -P9_QTFILE = 0 -P9_QTLINK = 1 -P9_QTMOUNT = 16 -P9_QTSYMLINK = 2 -P9_QTTMP = 4 -P9_RATTACH = 105 -P9_RAUTH = 103 -P9_RCLUNK = 121 -P9_RCREATE = 115 -P9_RFLUSH = 109 -P9_RFSYNC = 51 -P9_RGETATTR = 25 -P9_RGETLOCK = 55 -P9_RLCREATE = 15 -P9_RLERROR = 7 -P9_RLINK = 71 -P9_RLOCK = 53 -P9_RLOPEN = 13 -P9_RMKDIR = 73 -P9_RMKNOD = 19 -P9_ROPEN = 113 -P9_RREAD = 117 -P9_RREADDIR = 41 -P9_RREADLINK = 23 -P9_RREMOVE = 123 -P9_RRENAME = 21 -P9_RRENAMEAT = 75 -P9_RSETATTR = 27 -P9_RSTAT = 125 -P9_RSTATFS = 9 -P9_RSYMLINK = 17 -P9_RUNLINKAT = 77 -P9_RVERSION = 101 -P9_RWALK = 111 -P9_RWRITE = 119 -P9_RWSTAT = 127 -P9_RXATTRCREATE = 33 -P9_RXATTRWALK = 31 -P9_STATS_ATIME = 32 -P9_STATS_BLOCKS = 1024 -P9_STATS_BTIME = 2048 -P9_STATS_CTIME = 128 -P9_STATS_DATA_VERSION = 8192 -P9_STATS_GEN = 4096 -P9_STATS_GID = 8 -P9_STATS_INO = 256 -P9_STATS_MODE = 1 -P9_STATS_MTIME = 64 -P9_STATS_NLINK = 2 -P9_STATS_RDEV = 16 -P9_STATS_SIZE = 512 -P9_STATS_UID = 4 -__NR_mount = 21 -__NR_pipe2 = 317 -__NR_write = 4 diff --git a/sys/linux/fs_9p.txt b/sys/linux/fs_9p.txt new file mode 100644 index 000000000..4295be1b3 --- /dev/null +++ b/sys/linux/fs_9p.txt @@ -0,0 +1,292 @@ +# Copyright 2018 syzkaller project authors. All rights reserved. +# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +# 9p2000 mount/server descriptions. For protocol description see: +# http://knusbaum.com/useful/rfc9p2000 +# http://ericvh.github.io/9p-rfc/rfc9p2000.html +# http://ericvh.github.io/9p-rfc/rfc9p2000.u.html +# https://github.com/chaos/diod/blob/master/protocol.md + +include +include + +resource rfd9p[fd] +resource wfd9p[fd] + +mount$9p_fd(src const[0], dst ptr[in, filename], type ptr[in, string["9p"]], flags flags[mount_flags], opts ptr[in, p9_options_fd]) +mount$9p_tcp(src ptr[in, string["127.0.0.1"]], dst ptr[in, filename], type ptr[in, string["9p"]], flags flags[mount_flags], opts ptr[in, p9_options_tcp]) +mount$9p_unix(src ptr[in, filename], dst ptr[in, filename], type ptr[in, string["9p"]], flags flags[mount_flags], opts ptr[in, p9_options_unix]) +mount$9p_rdma(src ptr[in, string["127.0.0.1"]], dst ptr[in, filename], type ptr[in, string["9p"]], flags flags[mount_flags], opts ptr[in, p9_options_rdma]) +mount$9p_virtio(src ptr[in, string["syz"]], dst ptr[in, filename], type ptr[in, string["9p"]], flags flags[mount_flags], opts ptr[in, p9_options_virtio]) +mount$9p_xen(src ptr[in, string["syz"]], dst ptr[in, filename], type ptr[in, string["9p"]], flags flags[mount_flags], opts ptr[in, p9_options_xen]) + +pipe2$9p(pipefd ptr[out, pipe_9p], flags flags[pipe_flags]) + +pipe_9p { + rfd rfd9p + wfd wfd9p +} + +write$9p(fd wfd9p, data ptr[in, array[int8]], size bytesize[data]) + +write$P9_RLERROR(fd wfd9p, data ptr[in, p9_msg[P9_RLERROR, p9_rerror]], size bytesize[data]) +write$P9_RLERRORu(fd wfd9p, data ptr[in, p9_msg[P9_RLERROR, p9_rerroru]], size bytesize[data]) +write$P9_RVERSION(fd wfd9p, data ptr[in, p9_rversion], size bytesize[data]) +write$P9_RAUTH(fd wfd9p, data ptr[in, p9_msg[P9_RAUTH, p9_qid]], size bytesize[data]) +write$P9_RFLUSH(fd wfd9p, data ptr[in, p9_msg[P9_RFLUSH, void]], size bytesize[data]) +write$P9_RATTACH(fd wfd9p, data ptr[in, p9_msg[P9_RATTACH, p9_qid]], size bytesize[data]) +write$P9_RWALK(fd wfd9p, data ptr[in, p9_msg[P9_RWALK, p9_rwalk]], size bytesize[data]) +write$P9_ROPEN(fd wfd9p, data ptr[in, p9_msg[P9_ROPEN, p9_ropen]], size bytesize[data]) +write$P9_RCREATE(fd wfd9p, data ptr[in, p9_msg[P9_RCREATE, p9_ropen]], size bytesize[data]) +write$P9_RREAD(fd wfd9p, data ptr[in, p9_msg[P9_RREAD, p9_rread]], size bytesize[data]) +write$P9_RWRITE(fd wfd9p, data ptr[in, p9_msg[P9_RWRITE, int32]], size bytesize[data]) +write$P9_RCLUNK(fd wfd9p, data ptr[in, p9_msg[P9_RCLUNK, void]], size bytesize[data]) +write$P9_RREMOVE(fd wfd9p, data ptr[in, p9_msg[P9_RREMOVE, void]], size bytesize[data]) +write$P9_RWSTAT(fd wfd9p, data ptr[in, p9_msg[P9_RWSTAT, void]], size bytesize[data]) +write$P9_RSTAT(fd wfd9p, data ptr[in, p9_msg[P9_RSTAT, p9_rstat]], size bytesize[data]) +write$P9_RSTATu(fd wfd9p, data ptr[in, p9_msg[P9_RSTAT, p9_rstatu]], size bytesize[data]) +write$P9_RSTATFS(fd wfd9p, data ptr[in, p9_msg[P9_RSTATFS, p9_rstatfs]], size bytesize[data]) +write$P9_RLOPEN(fd wfd9p, data ptr[in, p9_msg[P9_RLOPEN, p9_ropen]], size bytesize[data]) +write$P9_RLCREATE(fd wfd9p, data ptr[in, p9_msg[P9_RLCREATE, p9_ropen]], size bytesize[data]) +write$P9_RSYMLINK(fd wfd9p, data ptr[in, p9_msg[P9_RSYMLINK, p9_qid]], size bytesize[data]) +write$P9_RMKNOD(fd wfd9p, data ptr[in, p9_msg[P9_RMKNOD, p9_qid]], size bytesize[data]) +write$P9_RRENAME(fd wfd9p, data ptr[in, p9_msg[P9_RRENAME, void]], size bytesize[data]) +write$P9_RREADLINK(fd wfd9p, data ptr[in, p9_msg[P9_RREADLINK, p9_rreadlink]], size bytesize[data]) +write$P9_RGETATTR(fd wfd9p, data ptr[in, p9_msg[P9_RGETATTR, p9_rgetattr]], size bytesize[data]) +write$P9_RSETATTR(fd wfd9p, data ptr[in, p9_msg[P9_RSETATTR, void]], size bytesize[data]) +write$P9_RXATTRWALK(fd wfd9p, data ptr[in, p9_msg[P9_RXATTRWALK, int64]], size bytesize[data]) +write$P9_RXATTRCREATE(fd wfd9p, data ptr[in, p9_msg[P9_RXATTRCREATE, void]], size bytesize[data]) +write$P9_RREADDIR(fd wfd9p, data ptr[in, p9_msg[P9_RREADDIR, p9_rreaddir]], size bytesize[data]) +write$P9_RFSYNC(fd wfd9p, data ptr[in, p9_msg[P9_RFSYNC, void]], size bytesize[data]) +write$P9_RLOCK(fd wfd9p, data ptr[in, p9_msg[P9_RLOCK, flags[p9_lock_status, int8]]], size bytesize[data]) +write$P9_RGETLOCK(fd wfd9p, data ptr[in, p9_msg[P9_RGETLOCK, p9_rgetlock]], size bytesize[data]) +write$P9_RLINK(fd wfd9p, data ptr[in, p9_msg[P9_RLINK, void]], size bytesize[data]) +write$P9_RMKDIR(fd wfd9p, data ptr[in, p9_msg[P9_RMKDIR, p9_qid]], size bytesize[data]) +write$P9_RRENAMEAT(fd wfd9p, data ptr[in, p9_msg[P9_RRENAMEAT, void]], size bytesize[data]) +write$P9_RUNLINKAT(fd wfd9p, data ptr[in, p9_msg[P9_RUNLINKAT, void]], size bytesize[data]) + +type p9_msg[MSG, PAYLOAD] { + size bytesize[parent, int32] + type const[MSG, int8] + tag int16[1:2] + payload PAYLOAD +} [packed] + +p9_rerror { + ename_len len[ename, int16] + ename stringnoz +} [packed] + +p9_rerroru { + error p9_rerror + errno int32 +} [packed] + +p9_rversion { + size bytesize[parent, int32] + type const[P9_RVERSION, int8] + tag const[0xffff, int16] + msize int32 + version_len len[version, int16] + version stringnoz[p9_versions] +} [packed] + +p9_versions = "9P2000", "9P2000.u", "9P2000.L" + +p9_qid { + type flags[p9_qid_types, int8] + version int32[0:4] + path int64[0:8] +} [packed] + +p9_qid_types = P9_QTDIR, P9_QTAPPEND, P9_QTEXCL, P9_QTMOUNT, P9_QTAUTH, P9_QTTMP, P9_QTSYMLINK, P9_QTLINK, P9_QTFILE + +p9_rwalk { + nwqid len[wqid, int16] + wqid array[p9_qid] +} [packed] + +p9_ropen { + qid p9_qid + iounit int32 +} [packed] + +p9_rread { + count bytesize[data, int32] + data array[int8] +} [packed] + +p9_rstat { +# I can't find this in any protocol descriptions, but linux seems to expect another int16 field here. + ignored const[0, int16] + size bytesize[parent, int16] + type int16 + dev int32 + qid p9_qid + mode flags[p9_perm_t, int32] + atime int32 + mtime int32 + length int64 + name_len len[name, int16] + name stringnoz + uid_len len[uid, int16] + uid stringnoz + gid_len len[gid, int16] + gid stringnoz + muid_len len[muid, int16] + muid stringnoz +} [packed] + +p9_rstatu { + rstat p9_rstat + extension_len len[extension, int16] + extension stringnoz + n_uid uid + n_gid gid + n_muid uid +} [packed] + +p9_perm_t = P9_DMDIR, P9_DMAPPEND, P9_DMEXCL, P9_DMMOUNT, P9_DMAUTH, P9_DMTMP, P9_DMSYMLINK, P9_DMLINK, P9_DMDEVICE, P9_DMNAMEDPIPE, P9_DMSOCKET, P9_DMSETUID, P9_DMSETGID, P9_DMSETVTX + +p9_rreadlink { + target_len len[target, int16] + target stringnoz[filename] +} [packed] + +p9_rstatfs { + type int32 + bsize int32 + blocks int64 + bfree int64 + bavail int64 + files int64 + ffree int64 + fsid int64 + namelen int32 +} [packed] + +p9_rgetattr { + valid flags[p8_stats_valid, int64] + qid p9_qid + mode flags[open_mode, int32] + uid uid + gid gid + nlink int64 + rdev int64 + size int64 + blksize int64 + blocks int64 + atime_sec int64 + atime_nsec int64 + mtime_sec int64 + mtime_nsec int64 + ctime_sec int64 + ctime_nsec int64 + btime_sec int64 + btime_nsec int64 + gen int64 + data_version int64 +} [packed] + +p8_stats_valid = P9_STATS_MODE, P9_STATS_NLINK, P9_STATS_UID, P9_STATS_GID, P9_STATS_RDEV, P9_STATS_ATIME, P9_STATS_MTIME, P9_STATS_CTIME, P9_STATS_INO, P9_STATS_SIZE, P9_STATS_BLOCKS, P9_STATS_BTIME, P9_STATS_GEN, P9_STATS_DATA_VERSION + +p9_lock_status = P9_LOCK_SUCCESS, P9_LOCK_BLOCKED, P9_LOCK_ERROR, P9_LOCK_GRACE +p9_lock_type = P9_LOCK_TYPE_RDLCK, P9_LOCK_TYPE_WRLCK, P9_LOCK_TYPE_UNLCK + +p9_rreaddir { + count int32 + entries array[p9_dir] +} [packed] + +p9_dir { + qid p9_qid + offset int64 + type int8 + name_len len[name, int16] + name stringnoz[filename] +} [packed] + +p9_rgetlock { + type flags[p9_lock_type, int8] + start int64 + length int64 + proc_id pid + client_id_len len[client_id, int16] + client_id stringnoz +} [packed] + +# Mount options. + +p9_options_fd { + trans stringnoz["trans=fd,"] + rfdno fs_opt_hex["rfdno", rfd9p] + comma0 const[',', int8] + wfdno fs_opt_hex["wfdno", fd] + comma1 const[',', int8] + opts fs_options[p9_options] +} [packed] + +p9_options_tcp { + trans stringnoz["trans=tcp,"] + port fs_opt_hex["port", sock_port] + comma0 const[',', int8] + opts fs_options[p9_options] +} [packed] + +p9_options_unix { + name stringnoz["trans=unix,"] + opts fs_options[p9_options] +} [packed] + +p9_options_rdma { + trans stringnoz["trans=rdma,"] + port fs_opt_hex["port", sock_port] + comma0 const[',', int8] + opts fs_options[p9_options_rdma_opt] +} [packed] + +p9_options_rdma_opt [ + common p9_options + timeout fs_opt_hex["timeout", intptr] + sq fs_opt_hex["sq", intptr] + rq fs_opt_hex["rq", intptr] +] [varlen] + +p9_options_virtio { + trans stringnoz["trans=virtio,"] + opts fs_options[p9_options] +} [packed] + +p9_options_xen { + trans stringnoz["trans=xen,"] + opts fs_options[p9_options] +} [packed] + +p9_options [ + uname fs_opt_str["uname"] + aname fs_opt_str["aname"] + cache_none stringnoz["cache=none"] + cache_loose stringnoz["cache=loose"] + cache_fscache stringnoz["cache=fscache"] + cache_mmap stringnoz["cache=mmap"] + debug fs_opt_hex["debug", int64] + noextend stringnoz["noextend"] + nodevmap stringnoz["nodevmap"] + version_9p2000 stringnoz["version=9p2000"] + version_u stringnoz["version=9p2000.u"] + version_L stringnoz["version=9p2000.L"] + cachetag fs_opt_str["cachetag"] + loose stringnoz["loose"] + fscache stringnoz["fscache"] + mmap stringnoz["mmap"] + posixacl stringnoz["posixacl"] + privport stringnoz["privport"] + msize fs_opt_hex["msize", int32] + dfltuid fs_opt_hex["dfltuid", uid] + dfltgid fs_opt_hex["dfltgid", gid] + afid fs_opt_hex["afid", int32] + access_user stringnoz["access=user"] + access_any stringnoz["access=any"] + access_client stringnoz["access=client"] + access_uid fs_opt_dec["access", uid] +] [varlen] diff --git a/sys/linux/fs_9p.txt.warn b/sys/linux/fs_9p.txt.warn new file mode 100644 index 000000000..1ed5d7f3b --- /dev/null +++ b/sys/linux/fs_9p.txt.warn @@ -0,0 +1,8 @@ +no-such-struct: pipe_9p +no-such-struct: p9_msg +bad-struct-size: p9_qid: syz=13 kernel=16 +bad-field-offset: p9_qid.version: syz=1 kernel=4 +bad-field-offset: p9_qid.path: syz=5 kernel=8 +no-such-struct: p9_ropen +bad-struct-size: p9_rstatfs: syz=60 kernel=64 [amd64,arm,arm64] +no-such-struct: p9_rgetattr diff --git a/sys/linux/fs_9p_386.const b/sys/linux/fs_9p_386.const new file mode 100644 index 000000000..f2dc375c3 --- /dev/null +++ b/sys/linux/fs_9p_386.const @@ -0,0 +1,81 @@ +# AUTOGENERATED FILE +P9_DMAPPEND = 1073741824 +P9_DMAUTH = 134217728 +P9_DMDEVICE = 8388608 +P9_DMDIR = 2147483648 +P9_DMEXCL = 536870912 +P9_DMLINK = 16777216 +P9_DMMOUNT = 268435456 +P9_DMNAMEDPIPE = 2097152 +P9_DMSETGID = 262144 +P9_DMSETUID = 524288 +P9_DMSETVTX = 65536 +P9_DMSOCKET = 1048576 +P9_DMSYMLINK = 33554432 +P9_DMTMP = 67108864 +P9_LOCK_BLOCKED = 1 +P9_LOCK_ERROR = 2 +P9_LOCK_GRACE = 3 +P9_LOCK_SUCCESS = 0 +P9_LOCK_TYPE_RDLCK = 0 +P9_LOCK_TYPE_UNLCK = 2 +P9_LOCK_TYPE_WRLCK = 1 +P9_QTAPPEND = 64 +P9_QTAUTH = 8 +P9_QTDIR = 128 +P9_QTEXCL = 32 +P9_QTFILE = 0 +P9_QTLINK = 1 +P9_QTMOUNT = 16 +P9_QTSYMLINK = 2 +P9_QTTMP = 4 +P9_RATTACH = 105 +P9_RAUTH = 103 +P9_RCLUNK = 121 +P9_RCREATE = 115 +P9_RFLUSH = 109 +P9_RFSYNC = 51 +P9_RGETATTR = 25 +P9_RGETLOCK = 55 +P9_RLCREATE = 15 +P9_RLERROR = 7 +P9_RLINK = 71 +P9_RLOCK = 53 +P9_RLOPEN = 13 +P9_RMKDIR = 73 +P9_RMKNOD = 19 +P9_ROPEN = 113 +P9_RREAD = 117 +P9_RREADDIR = 41 +P9_RREADLINK = 23 +P9_RREMOVE = 123 +P9_RRENAME = 21 +P9_RRENAMEAT = 75 +P9_RSETATTR = 27 +P9_RSTAT = 125 +P9_RSTATFS = 9 +P9_RSYMLINK = 17 +P9_RUNLINKAT = 77 +P9_RVERSION = 101 +P9_RWALK = 111 +P9_RWRITE = 119 +P9_RWSTAT = 127 +P9_RXATTRCREATE = 33 +P9_RXATTRWALK = 31 +P9_STATS_ATIME = 32 +P9_STATS_BLOCKS = 1024 +P9_STATS_BTIME = 2048 +P9_STATS_CTIME = 128 +P9_STATS_DATA_VERSION = 8192 +P9_STATS_GEN = 4096 +P9_STATS_GID = 8 +P9_STATS_INO = 256 +P9_STATS_MODE = 1 +P9_STATS_MTIME = 64 +P9_STATS_NLINK = 2 +P9_STATS_RDEV = 16 +P9_STATS_SIZE = 512 +P9_STATS_UID = 4 +__NR_mount = 21 +__NR_pipe2 = 331 +__NR_write = 4 diff --git a/sys/linux/fs_9p_amd64.const b/sys/linux/fs_9p_amd64.const new file mode 100644 index 000000000..10a3a28aa --- /dev/null +++ b/sys/linux/fs_9p_amd64.const @@ -0,0 +1,81 @@ +# AUTOGENERATED FILE +P9_DMAPPEND = 1073741824 +P9_DMAUTH = 134217728 +P9_DMDEVICE = 8388608 +P9_DMDIR = 2147483648 +P9_DMEXCL = 536870912 +P9_DMLINK = 16777216 +P9_DMMOUNT = 268435456 +P9_DMNAMEDPIPE = 2097152 +P9_DMSETGID = 262144 +P9_DMSETUID = 524288 +P9_DMSETVTX = 65536 +P9_DMSOCKET = 1048576 +P9_DMSYMLINK = 33554432 +P9_DMTMP = 67108864 +P9_LOCK_BLOCKED = 1 +P9_LOCK_ERROR = 2 +P9_LOCK_GRACE = 3 +P9_LOCK_SUCCESS = 0 +P9_LOCK_TYPE_RDLCK = 0 +P9_LOCK_TYPE_UNLCK = 2 +P9_LOCK_TYPE_WRLCK = 1 +P9_QTAPPEND = 64 +P9_QTAUTH = 8 +P9_QTDIR = 128 +P9_QTEXCL = 32 +P9_QTFILE = 0 +P9_QTLINK = 1 +P9_QTMOUNT = 16 +P9_QTSYMLINK = 2 +P9_QTTMP = 4 +P9_RATTACH = 105 +P9_RAUTH = 103 +P9_RCLUNK = 121 +P9_RCREATE = 115 +P9_RFLUSH = 109 +P9_RFSYNC = 51 +P9_RGETATTR = 25 +P9_RGETLOCK = 55 +P9_RLCREATE = 15 +P9_RLERROR = 7 +P9_RLINK = 71 +P9_RLOCK = 53 +P9_RLOPEN = 13 +P9_RMKDIR = 73 +P9_RMKNOD = 19 +P9_ROPEN = 113 +P9_RREAD = 117 +P9_RREADDIR = 41 +P9_RREADLINK = 23 +P9_RREMOVE = 123 +P9_RRENAME = 21 +P9_RRENAMEAT = 75 +P9_RSETATTR = 27 +P9_RSTAT = 125 +P9_RSTATFS = 9 +P9_RSYMLINK = 17 +P9_RUNLINKAT = 77 +P9_RVERSION = 101 +P9_RWALK = 111 +P9_RWRITE = 119 +P9_RWSTAT = 127 +P9_RXATTRCREATE = 33 +P9_RXATTRWALK = 31 +P9_STATS_ATIME = 32 +P9_STATS_BLOCKS = 1024 +P9_STATS_BTIME = 2048 +P9_STATS_CTIME = 128 +P9_STATS_DATA_VERSION = 8192 +P9_STATS_GEN = 4096 +P9_STATS_GID = 8 +P9_STATS_INO = 256 +P9_STATS_MODE = 1 +P9_STATS_MTIME = 64 +P9_STATS_NLINK = 2 +P9_STATS_RDEV = 16 +P9_STATS_SIZE = 512 +P9_STATS_UID = 4 +__NR_mount = 165 +__NR_pipe2 = 293 +__NR_write = 1 diff --git a/sys/linux/fs_9p_arm.const b/sys/linux/fs_9p_arm.const new file mode 100644 index 000000000..5303369a7 --- /dev/null +++ b/sys/linux/fs_9p_arm.const @@ -0,0 +1,81 @@ +# AUTOGENERATED FILE +P9_DMAPPEND = 1073741824 +P9_DMAUTH = 134217728 +P9_DMDEVICE = 8388608 +P9_DMDIR = 2147483648 +P9_DMEXCL = 536870912 +P9_DMLINK = 16777216 +P9_DMMOUNT = 268435456 +P9_DMNAMEDPIPE = 2097152 +P9_DMSETGID = 262144 +P9_DMSETUID = 524288 +P9_DMSETVTX = 65536 +P9_DMSOCKET = 1048576 +P9_DMSYMLINK = 33554432 +P9_DMTMP = 67108864 +P9_LOCK_BLOCKED = 1 +P9_LOCK_ERROR = 2 +P9_LOCK_GRACE = 3 +P9_LOCK_SUCCESS = 0 +P9_LOCK_TYPE_RDLCK = 0 +P9_LOCK_TYPE_UNLCK = 2 +P9_LOCK_TYPE_WRLCK = 1 +P9_QTAPPEND = 64 +P9_QTAUTH = 8 +P9_QTDIR = 128 +P9_QTEXCL = 32 +P9_QTFILE = 0 +P9_QTLINK = 1 +P9_QTMOUNT = 16 +P9_QTSYMLINK = 2 +P9_QTTMP = 4 +P9_RATTACH = 105 +P9_RAUTH = 103 +P9_RCLUNK = 121 +P9_RCREATE = 115 +P9_RFLUSH = 109 +P9_RFSYNC = 51 +P9_RGETATTR = 25 +P9_RGETLOCK = 55 +P9_RLCREATE = 15 +P9_RLERROR = 7 +P9_RLINK = 71 +P9_RLOCK = 53 +P9_RLOPEN = 13 +P9_RMKDIR = 73 +P9_RMKNOD = 19 +P9_ROPEN = 113 +P9_RREAD = 117 +P9_RREADDIR = 41 +P9_RREADLINK = 23 +P9_RREMOVE = 123 +P9_RRENAME = 21 +P9_RRENAMEAT = 75 +P9_RSETATTR = 27 +P9_RSTAT = 125 +P9_RSTATFS = 9 +P9_RSYMLINK = 17 +P9_RUNLINKAT = 77 +P9_RVERSION = 101 +P9_RWALK = 111 +P9_RWRITE = 119 +P9_RWSTAT = 127 +P9_RXATTRCREATE = 33 +P9_RXATTRWALK = 31 +P9_STATS_ATIME = 32 +P9_STATS_BLOCKS = 1024 +P9_STATS_BTIME = 2048 +P9_STATS_CTIME = 128 +P9_STATS_DATA_VERSION = 8192 +P9_STATS_GEN = 4096 +P9_STATS_GID = 8 +P9_STATS_INO = 256 +P9_STATS_MODE = 1 +P9_STATS_MTIME = 64 +P9_STATS_NLINK = 2 +P9_STATS_RDEV = 16 +P9_STATS_SIZE = 512 +P9_STATS_UID = 4 +__NR_mount = 21 +__NR_pipe2 = 359 +__NR_write = 4 diff --git a/sys/linux/fs_9p_arm64.const b/sys/linux/fs_9p_arm64.const new file mode 100644 index 000000000..68720a9ae --- /dev/null +++ b/sys/linux/fs_9p_arm64.const @@ -0,0 +1,81 @@ +# AUTOGENERATED FILE +P9_DMAPPEND = 1073741824 +P9_DMAUTH = 134217728 +P9_DMDEVICE = 8388608 +P9_DMDIR = 2147483648 +P9_DMEXCL = 536870912 +P9_DMLINK = 16777216 +P9_DMMOUNT = 268435456 +P9_DMNAMEDPIPE = 2097152 +P9_DMSETGID = 262144 +P9_DMSETUID = 524288 +P9_DMSETVTX = 65536 +P9_DMSOCKET = 1048576 +P9_DMSYMLINK = 33554432 +P9_DMTMP = 67108864 +P9_LOCK_BLOCKED = 1 +P9_LOCK_ERROR = 2 +P9_LOCK_GRACE = 3 +P9_LOCK_SUCCESS = 0 +P9_LOCK_TYPE_RDLCK = 0 +P9_LOCK_TYPE_UNLCK = 2 +P9_LOCK_TYPE_WRLCK = 1 +P9_QTAPPEND = 64 +P9_QTAUTH = 8 +P9_QTDIR = 128 +P9_QTEXCL = 32 +P9_QTFILE = 0 +P9_QTLINK = 1 +P9_QTMOUNT = 16 +P9_QTSYMLINK = 2 +P9_QTTMP = 4 +P9_RATTACH = 105 +P9_RAUTH = 103 +P9_RCLUNK = 121 +P9_RCREATE = 115 +P9_RFLUSH = 109 +P9_RFSYNC = 51 +P9_RGETATTR = 25 +P9_RGETLOCK = 55 +P9_RLCREATE = 15 +P9_RLERROR = 7 +P9_RLINK = 71 +P9_RLOCK = 53 +P9_RLOPEN = 13 +P9_RMKDIR = 73 +P9_RMKNOD = 19 +P9_ROPEN = 113 +P9_RREAD = 117 +P9_RREADDIR = 41 +P9_RREADLINK = 23 +P9_RREMOVE = 123 +P9_RRENAME = 21 +P9_RRENAMEAT = 75 +P9_RSETATTR = 27 +P9_RSTAT = 125 +P9_RSTATFS = 9 +P9_RSYMLINK = 17 +P9_RUNLINKAT = 77 +P9_RVERSION = 101 +P9_RWALK = 111 +P9_RWRITE = 119 +P9_RWSTAT = 127 +P9_RXATTRCREATE = 33 +P9_RXATTRWALK = 31 +P9_STATS_ATIME = 32 +P9_STATS_BLOCKS = 1024 +P9_STATS_BTIME = 2048 +P9_STATS_CTIME = 128 +P9_STATS_DATA_VERSION = 8192 +P9_STATS_GEN = 4096 +P9_STATS_GID = 8 +P9_STATS_INO = 256 +P9_STATS_MODE = 1 +P9_STATS_MTIME = 64 +P9_STATS_NLINK = 2 +P9_STATS_RDEV = 16 +P9_STATS_SIZE = 512 +P9_STATS_UID = 4 +__NR_mount = 40 +__NR_pipe2 = 59 +__NR_write = 64 diff --git a/sys/linux/fs_9p_mips64le.const b/sys/linux/fs_9p_mips64le.const new file mode 100644 index 000000000..87303183a --- /dev/null +++ b/sys/linux/fs_9p_mips64le.const @@ -0,0 +1,81 @@ +# AUTOGENERATED FILE +P9_DMAPPEND = 1073741824 +P9_DMAUTH = 134217728 +P9_DMDEVICE = 8388608 +P9_DMDIR = 2147483648 +P9_DMEXCL = 536870912 +P9_DMLINK = 16777216 +P9_DMMOUNT = 268435456 +P9_DMNAMEDPIPE = 2097152 +P9_DMSETGID = 262144 +P9_DMSETUID = 524288 +P9_DMSETVTX = 65536 +P9_DMSOCKET = 1048576 +P9_DMSYMLINK = 33554432 +P9_DMTMP = 67108864 +P9_LOCK_BLOCKED = 1 +P9_LOCK_ERROR = 2 +P9_LOCK_GRACE = 3 +P9_LOCK_SUCCESS = 0 +P9_LOCK_TYPE_RDLCK = 0 +P9_LOCK_TYPE_UNLCK = 2 +P9_LOCK_TYPE_WRLCK = 1 +P9_QTAPPEND = 64 +P9_QTAUTH = 8 +P9_QTDIR = 128 +P9_QTEXCL = 32 +P9_QTFILE = 0 +P9_QTLINK = 1 +P9_QTMOUNT = 16 +P9_QTSYMLINK = 2 +P9_QTTMP = 4 +P9_RATTACH = 105 +P9_RAUTH = 103 +P9_RCLUNK = 121 +P9_RCREATE = 115 +P9_RFLUSH = 109 +P9_RFSYNC = 51 +P9_RGETATTR = 25 +P9_RGETLOCK = 55 +P9_RLCREATE = 15 +P9_RLERROR = 7 +P9_RLINK = 71 +P9_RLOCK = 53 +P9_RLOPEN = 13 +P9_RMKDIR = 73 +P9_RMKNOD = 19 +P9_ROPEN = 113 +P9_RREAD = 117 +P9_RREADDIR = 41 +P9_RREADLINK = 23 +P9_RREMOVE = 123 +P9_RRENAME = 21 +P9_RRENAMEAT = 75 +P9_RSETATTR = 27 +P9_RSTAT = 125 +P9_RSTATFS = 9 +P9_RSYMLINK = 17 +P9_RUNLINKAT = 77 +P9_RVERSION = 101 +P9_RWALK = 111 +P9_RWRITE = 119 +P9_RWSTAT = 127 +P9_RXATTRCREATE = 33 +P9_RXATTRWALK = 31 +P9_STATS_ATIME = 32 +P9_STATS_BLOCKS = 1024 +P9_STATS_BTIME = 2048 +P9_STATS_CTIME = 128 +P9_STATS_DATA_VERSION = 8192 +P9_STATS_GEN = 4096 +P9_STATS_GID = 8 +P9_STATS_INO = 256 +P9_STATS_MODE = 1 +P9_STATS_MTIME = 64 +P9_STATS_NLINK = 2 +P9_STATS_RDEV = 16 +P9_STATS_SIZE = 512 +P9_STATS_UID = 4 +__NR_mount = 5160 +__NR_pipe2 = 5287 +__NR_write = 5001 diff --git a/sys/linux/fs_9p_ppc64le.const b/sys/linux/fs_9p_ppc64le.const new file mode 100644 index 000000000..68fefe419 --- /dev/null +++ b/sys/linux/fs_9p_ppc64le.const @@ -0,0 +1,81 @@ +# AUTOGENERATED FILE +P9_DMAPPEND = 1073741824 +P9_DMAUTH = 134217728 +P9_DMDEVICE = 8388608 +P9_DMDIR = 2147483648 +P9_DMEXCL = 536870912 +P9_DMLINK = 16777216 +P9_DMMOUNT = 268435456 +P9_DMNAMEDPIPE = 2097152 +P9_DMSETGID = 262144 +P9_DMSETUID = 524288 +P9_DMSETVTX = 65536 +P9_DMSOCKET = 1048576 +P9_DMSYMLINK = 33554432 +P9_DMTMP = 67108864 +P9_LOCK_BLOCKED = 1 +P9_LOCK_ERROR = 2 +P9_LOCK_GRACE = 3 +P9_LOCK_SUCCESS = 0 +P9_LOCK_TYPE_RDLCK = 0 +P9_LOCK_TYPE_UNLCK = 2 +P9_LOCK_TYPE_WRLCK = 1 +P9_QTAPPEND = 64 +P9_QTAUTH = 8 +P9_QTDIR = 128 +P9_QTEXCL = 32 +P9_QTFILE = 0 +P9_QTLINK = 1 +P9_QTMOUNT = 16 +P9_QTSYMLINK = 2 +P9_QTTMP = 4 +P9_RATTACH = 105 +P9_RAUTH = 103 +P9_RCLUNK = 121 +P9_RCREATE = 115 +P9_RFLUSH = 109 +P9_RFSYNC = 51 +P9_RGETATTR = 25 +P9_RGETLOCK = 55 +P9_RLCREATE = 15 +P9_RLERROR = 7 +P9_RLINK = 71 +P9_RLOCK = 53 +P9_RLOPEN = 13 +P9_RMKDIR = 73 +P9_RMKNOD = 19 +P9_ROPEN = 113 +P9_RREAD = 117 +P9_RREADDIR = 41 +P9_RREADLINK = 23 +P9_RREMOVE = 123 +P9_RRENAME = 21 +P9_RRENAMEAT = 75 +P9_RSETATTR = 27 +P9_RSTAT = 125 +P9_RSTATFS = 9 +P9_RSYMLINK = 17 +P9_RUNLINKAT = 77 +P9_RVERSION = 101 +P9_RWALK = 111 +P9_RWRITE = 119 +P9_RWSTAT = 127 +P9_RXATTRCREATE = 33 +P9_RXATTRWALK = 31 +P9_STATS_ATIME = 32 +P9_STATS_BLOCKS = 1024 +P9_STATS_BTIME = 2048 +P9_STATS_CTIME = 128 +P9_STATS_DATA_VERSION = 8192 +P9_STATS_GEN = 4096 +P9_STATS_GID = 8 +P9_STATS_INO = 256 +P9_STATS_MODE = 1 +P9_STATS_MTIME = 64 +P9_STATS_NLINK = 2 +P9_STATS_RDEV = 16 +P9_STATS_SIZE = 512 +P9_STATS_UID = 4 +__NR_mount = 21 +__NR_pipe2 = 317 +__NR_write = 4 -- cgit mrf-deployment