From 2022204ed817a7ee728815f9dfd15936fa627780 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 30 Dec 2020 13:02:57 +0100 Subject: 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. --- pkg/host/features_linux.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/host/features_linux.go') 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. } -- cgit mrf-deployment