Skip to content

Commit

Permalink
fix(bpf): add CONFIG_COMPAT on ia32 syscalls
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo committed May 16, 2024
1 parent 65553ad commit e96c415
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions driver/bpf/fillers.h
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ static __always_inline int bpf_parse_readv_writev_bufs_64(struct filler_data *da
return res;
}

#ifdef CONFIG_COMPAT
static __always_inline int bpf_parse_readv_writev_bufs_ia32(struct filler_data *data,
const void __user *iovsrc,
unsigned long iovcnt,
Expand Down Expand Up @@ -775,6 +776,7 @@ static __always_inline int bpf_parse_readv_writev_bufs_ia32(struct filler_data *
}
return res;
}
#endif

static __always_inline int bpf_parse_readv_writev_bufs(struct filler_data *data,
const void __user *iovsrc,
Expand All @@ -790,7 +792,9 @@ static __always_inline int bpf_parse_readv_writev_bufs(struct filler_data *data,
}
else
{
#ifdef CONFIG_COMPAT
res = bpf_parse_readv_writev_bufs_ia32(data, iovsrc, iovcnt, retval, flags, &size);
#endif
}

if(flags & PRB_FLAG_PUSH_DATA && res == PPM_SUCCESS)
Expand Down

0 comments on commit e96c415

Please sign in to comment.