Skip to content

Commit 5c8a49a

Browse files
committed
tetragon: Set correct size in execParse error path
We need to set process size, not exec object. Signed-off-by: Jiri Olsa <[email protected]>
1 parent 0073c4f commit 5c8a49a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sensors/exec/exec_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func execParse(reader *bytes.Reader) (processapi.MsgProcess, bool, error) {
103103
size := exec.Size - processapi.MSG_SIZEOF_EXECVE
104104
if size > processapi.MSG_SIZEOF_BUFFER-processapi.MSG_SIZEOF_EXECVE {
105105
err := errors.New("msg exec size larger than argsbuffer")
106-
exec.Size = processapi.MSG_SIZEOF_EXECVE
106+
proc.Size = processapi.MSG_SIZEOF_EXECVE
107107
proc.Args = "enomem enomem"
108108
proc.Filename = "enomem"
109109
return proc, false, err

0 commit comments

Comments
 (0)