aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host/features_linux.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-12-30 13:02:57 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-12-30 14:08:16 +0100
commit2022204ed817a7ee728815f9dfd15936fa627780 (patch)
tree8bf239c3af3bce9d738c628684be39f9bd99afbc /pkg/host/features_linux.go
parentb01c2ac7af21c12f0fa8fb22bc985c0b7b197bf1 (diff)
pkg/host: fix kcov_remote_arg layout
kcov_remote_arg has padding on 32-bit arches. Account for it, otherwise kernel reads uninit garbage after the struct and the ioctl fails with EINVAL.
Diffstat (limited to 'pkg/host/features_linux.go')
-rw-r--r--pkg/host/features_linux.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/host/features_linux.go b/pkg/host/features_linux.go
index f3c358c2c..ab8c2fc48 100644
--- a/pkg/host/features_linux.go
+++ b/pkg/host/features_linux.go
@@ -129,6 +129,7 @@ type KcovRemoteArg struct {
TraceMode uint32
AreaSize uint32
NumHandles uint32
+ _ uint32
CommonHandle uint64
// Handles []uint64 goes here.
}