Skip to content

seccomp: fix broken stat 32-bit overflow initialization#123

Merged
Snaipe merged 3 commits intoaristanetworks:mainfrom
Snaipe:fix/seccomp-stat
Jan 16, 2026
Merged

seccomp: fix broken stat 32-bit overflow initialization#123
Snaipe merged 3 commits intoaristanetworks:mainfrom
Snaipe:fix/seccomp-stat

Conversation

@Snaipe
Copy link
Member

@Snaipe Snaipe commented Jan 16, 2026

This PR adds a couple of changes that I used during the debugging of this problem, as well as the real fix to the 32-bit overflow not being handled.

1a6e29b ("seccomp: disable mknod emulation by default") introduced a
regression by moving the seccomp syscall table initialization to the
process that installs the filter. This however is not the process in
which the supervisor runs in, meaning the syscall table was left empty,
and caused all of the custom logic to be skipped.
It's sometimes desirable to build bst statically, and usually
libdbus-1 ships as a shared library.
I'm not too happy about the form of this code, as it's only present when
calling stat on 32-bit processes.

Should we revisit this, it should be done on all stat syscalls
regardless of the architecture, orthogonally to fixing the 32-bit
overflows.
@Snaipe Snaipe merged commit 27eb144 into aristanetworks:main Jan 16, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants