Skip to content

Commit 2fbbd9e

Browse files
roypatdianpopa
authored andcommitted
chore: Update seccomp filters to include sched_yield
With rust 1.67.0, the implementation for std::sync::mpmc (which we transitively use through using mpsc channels) got switched out for crossbeam's implementation, which includes a `sched_yield` syscall [1]. [1]: https://github.com/rust-lang/rust/blame/cf32b9de1e8f66526c36ad2927458558d2e81093/library/std/src/sync/mpmc/utils.rs#L130 Signed-off-by: Patrick Roy <[email protected]>
1 parent 7843fa9 commit 2fbbd9e

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
@@ -429,6 +429,10 @@
429429
"comment": "KVM_GET_DEVICE_ATTR"
430430
}
431431
]
432+
},
433+
{
434+
"syscall": "sched_yield",
435+
"comment": "Used by the rust standard library in std::sync::mpmc. Firecracker uses mpsc channels from this module for inter-thread communication"
432436
}
433437
]
434438
},
@@ -690,6 +694,10 @@
690694
"comment": "FIONBIO"
691695
}
692696
]
697+
},
698+
{
699+
"syscall": "sched_yield",
700+
"comment": "Used by the rust standard library in std::sync::mpmc. Firecracker uses mpsc channels from this module for inter-thread communication"
693701
}
694702
]
695703
},
@@ -968,6 +976,10 @@
968976
"comment": "KVM_GET_REG_LIST"
969977
}
970978
]
979+
},
980+
{
981+
"syscall": "sched_yield",
982+
"comment": "Used by the rust standard library in std::sync::mpmc. Firecracker uses mpsc channels from this module for inter-thread communication"
971983
}
972984
]
973985
}

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,10 @@
441441
"comment": "KVM_GET_PIT2"
442442
}
443443
]
444+
},
445+
{
446+
"syscall": "sched_yield",
447+
"comment": "Used by the rust standard library in std::sync::mpmc. Firecracker uses mpsc channels from this module for inter-thread communication"
444448
}
445449
]
446450
},
@@ -702,6 +706,10 @@
702706
"comment": "FIONBIO"
703707
}
704708
]
709+
},
710+
{
711+
"syscall": "sched_yield",
712+
"comment": "Used by the rust standard library in std::sync::mpmc. Firecracker uses mpsc channels from this module for inter-thread communication"
705713
}
706714
]
707715
},
@@ -1172,6 +1180,10 @@
11721180
"comment": "KVM_GET_TSC_KHZ"
11731181
}
11741182
]
1183+
},
1184+
{
1185+
"syscall": "sched_yield",
1186+
"comment": "Used by the rust standard library in std::sync::mpmc. Firecracker uses mpsc channels from this module for inter-thread communication"
11751187
}
11761188
]
11771189
}

0 commit comments

Comments
 (0)