-
Notifications
You must be signed in to change notification settings - Fork 236
Watchdog failure stenotype abort after 2 minutes (Debian 10) #228
Comments
Did you install from the Debian buster package (if so, what version?) or did you build stenographer/stenotype yourself? |
Have tried both now. (Didn't realize there was a package in repo, thanks. The top of INSTALL.md leads one to think this is still a future thing). The original post was building myself. I've since retried the setup from the buster package and the result appears the same. Package versions:
Logging:
System is currently test environment under VMware ESXi. 8x Intel(R) Xeon(R) Platinum 8160 CPU @ 2.10GHz, 64 GB mem.
Capture interface:
|
Have you tried adding |
I had not tried that, and doing so seemingly resolves this. After restarting with the Flag set (
Probably moot now, but yes - a small trickle from a lab in this case. Would it be possible to document more information/guidance about the seccomp flag and its impact in Stenographer relating to cases like this? |
If the switch to Short description of what's going on: Seccomp allows a process to say "I'm only going to use the following N syscalls", to define the complete set of behaviors which the Linux kernel should expect and allow from the userspace process. Stenographer (specifically Stenotype) uses this to define boundaries it must abide by in case of compromise due to a maliciously crafted packet. However, unfortunately over time this set of syscalls tends to drift, via changes to glibc, the linux kernel, etc. The list at https://github.com/google/stenographer/blob/master/stenotype/stenotype.cc lines 294-399 are the currently blessed set. If we can, running
Or, you can look for the ENOSYS error in /tmp/strace_out and try to trace it back to the specific syscall being made. |
@gconnell Thanks for the input! I will capture the trace data. Is that by chance the same thing that the kernel is picking up in the audit logs here?
It repeatedly logged these syscall numbers:
|
This seems to have been the result:
Seems to be these, but attaching full output.
|
Ah, perfect. Given that, I expect this is actually the case of Debian being behind head. IIUC, 9c5b80d#diff-0ec2ed7e09c9fb335892ac49999a491e should be the fix necessary to support this. I don't personally handle rebuilding on Debian, and I'm actually not sure who/what does. But with the idea that maybe tagging head might cause a release to go out, I'm going to throw a new version tag up and see what happens. |
I'm the maintainer of stenographer in Debian, so thanks for the hint! Debian unstable (and also buster-backports) has a stenographer version from May 29, so an update will be in order. Will get it into unstable ASAP, and it will be uploading a backport for buster soon after it hits testing. Unfortunately there can be no updates to buster stable. |
v1.0.1 should be a good tag to build against. Thanks for Debian-ing! |
Likewise, thanks guys! And I got to learn a few things as well. |
Oh, I didn't realize there were tagged releases now! Even better, will switch to tracking those -- that would also give us notifications about new upstream releases. |
I am the worst release tagger known to man, which pretty much means that I tag a release whenever someone opens an Issue to ask me to do so. That said, I'll try to make this a thing that happens ;) |
Good to know! :) In unstable now, will migrate to testing in ~2 days if all goes well: https://tracker.debian.org/news/1174872/accepted-stenographer-101-1-source-into-unstable/ |
1.0.1 is now in testing and buster-backports. |
Using latest stenographer, can get through install and setup and systemd starts correctly, but seems to die (or be killed).
Unsure if related, but over course of execution the kernel log contains many of these:
The text was updated successfully, but these errors were encountered: