Skip to content
Permalink
Browse files

sys/linux: use AT_FDCWD only for directories

Currently we use AT_FDCWD as a special value for all file descriptors,
but it does not make sense for almost all of them (sockets, bpf, etc).
Use it as a special value only for fd_dir.
  • Loading branch information...
dvyukov committed Jul 22, 2019
1 parent f3ad684 commit 6a786da97c822c3ad536290c412f472e58342c91
Showing with 792 additions and 792 deletions.
  1. +5 −5 executor/defs.h
  2. +157 −157 sys/linux/gen/386.go
  3. +157 −157 sys/linux/gen/amd64.go
  4. +157 −157 sys/linux/gen/arm.go
  5. +157 −157 sys/linux/gen/arm64.go
  6. +157 −157 sys/linux/gen/ppc64le.go
  7. +2 −2 sys/linux/sys.txt
@@ -70,7 +70,7 @@

#if GOARCH_386
#define GOARCH "386"
#define SYZ_REVISION "e434a9bc85298e5fffd4676e123f232b437c5ef2"
#define SYZ_REVISION "1bc0fa9f7861ff91d569dcf8ba650d737652afab"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@@ -80,7 +80,7 @@

#if GOARCH_amd64
#define GOARCH "amd64"
#define SYZ_REVISION "8e949a8b3ca08d1ffa44cee2a190d729a6f14635"
#define SYZ_REVISION "9ca635816b59c55b8f7d9aa6abe52088a4cc64ea"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@@ -90,7 +90,7 @@

#if GOARCH_arm
#define GOARCH "arm"
#define SYZ_REVISION "a3c92c0516c0d1b3539007b2d692027673758bca"
#define SYZ_REVISION "cff0433ff8043192fac9e969c584db0c17598e63"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@@ -100,7 +100,7 @@

#if GOARCH_arm64
#define GOARCH "arm64"
#define SYZ_REVISION "bd7daa592ae59c3b4ecadeb3555d51e510f4acfa"
#define SYZ_REVISION "b66ad52635de8aacc57393a6f483c52c32386027"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@@ -110,7 +110,7 @@

#if GOARCH_ppc64le
#define GOARCH "ppc64le"
#define SYZ_REVISION "5a5d071d07839c8760ac38ea12c8b84421d4e509"
#define SYZ_REVISION "e26f6705a451d4be0e383459b6c7950eed5820f9"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -53,8 +53,8 @@ include <uapi/linux/membarrier.h>
include <uapi/linux/capability.h>
include <uapi/linux/suspend_ioctls.h>

resource fd[int32]: -1, AT_FDCWD
resource fd_dir[fd]
resource fd[int32]: -1
resource fd_dir[fd]: AT_FDCWD

type signalno int32[0:65]

0 comments on commit 6a786da

Please sign in to comment.
You can’t perform that action at this time.