Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/modulefinder/sentry_modulefinder_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,13 @@ read_safely(void *dst, void *src, size_t size)
// See https://github.com/getsentry/sentry-native/issues/578).
// Also, the syscall is only available in Linux 3.2, meaning Android 17.
// In that case we get an `EINVAL`.
// Additionally, Kubernetes default seccomp profiles (RuntimeDefault) block
// `process_vm_readv` and return `ENOSYS`, causing all ELF module
// validations to fail and `debug_meta.images` to be absent from
// manually-captured events.
//
// In either of these cases, just fall back to an unsafe `memcpy`.
if (!rv && (errno == EPERM || errno == EINVAL)) {
// In any of these cases, just fall back to an unsafe `memcpy`.
if (!rv && (errno == EPERM || errno == EINVAL || errno == ENOSYS)) {
memcpy(dst, src, size);
rv = true;
}
Expand Down
Loading