Skip to content

Commit 5cf6525

Browse files
committed
add restart_syscall(2) to seccomp allowlist
This syscall is issued transparently by the linux kernel when timing-related syscalls (such as nanosleep) get interrupted, for example because of SIGSTOP. Signed-off-by: Patrick Roy <[email protected]>
1 parent d1badbb commit 5cf6525

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

resources/seccomp/aarch64-unknown-linux-musl.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,10 @@
444444
{
445445
"syscall": "recvmsg",
446446
"comment": "Used by vhost-user frontend to read response from the backend"
447+
},
448+
{
449+
"syscall": "restart_syscall",
450+
"comment": "automatically issued by the kernel when specific timing-related syscalls (e.g. nanosleep) get interrupted by SIGSTOP"
447451
}
448452
]
449453
},
@@ -726,6 +730,10 @@
726730
{
727731
"syscall": "sched_yield",
728732
"comment": "Used by the rust standard library in std::sync::mpmc. Firecracker uses mpsc channels from this module for inter-thread communication"
733+
},
734+
{
735+
"syscall": "restart_syscall",
736+
"comment": "automatically issued by the kernel when specific timing-related syscalls (e.g. nanosleep) get interrupted by SIGSTOP"
729737
}
730738
]
731739
},
@@ -1009,6 +1017,10 @@
10091017
{
10101018
"syscall": "sendmsg",
10111019
"comment": "Used by vhost-user frontend to communicate with the backend"
1020+
},
1021+
{
1022+
"syscall": "restart_syscall",
1023+
"comment": "automatically issued by the kernel when specific timing-related syscalls (e.g. nanosleep) get interrupted by SIGSTOP"
10121024
}
10131025
]
10141026
}

resources/seccomp/x86_64-unknown-linux-musl.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,10 @@
452452
{
453453
"syscall": "recvmsg",
454454
"comment": "Used by vhost-user frontend to read response from the backend"
455+
},
456+
{
457+
"syscall": "restart_syscall",
458+
"comment": "automatically issued by the kernel when specific timing-related syscalls (e.g. nanosleep) get interrupted by SIGSTOP"
455459
}
456460
]
457461
},
@@ -734,6 +738,10 @@
734738
{
735739
"syscall": "sched_yield",
736740
"comment": "Used by the rust standard library in std::sync::mpmc. Firecracker uses mpsc channels from this module for inter-thread communication"
741+
},
742+
{
743+
"syscall": "restart_syscall",
744+
"comment": "automatically issued by the kernel when specific timing-related syscalls (e.g. nanosleep) get interrupted by SIGSTOP"
737745
}
738746
]
739747
},
@@ -1125,6 +1133,10 @@
11251133
{
11261134
"syscall": "sendmsg",
11271135
"comment": "Used by vhost-user frontend to communicate with the backend"
1136+
},
1137+
{
1138+
"syscall": "restart_syscall",
1139+
"comment": "automatically issued by the kernel when specific timing-related syscalls (e.g. nanosleep) get interrupted by SIGSTOP"
11281140
}
11291141
]
11301142
}

0 commit comments

Comments
 (0)