use std::time::Duration;
use crate::test_child::Console;
use crate::identity::{ProcessId, Resolved};
use crate::test_child::reaped_elsewhere::kill_own_child;
#[cfg(target_os = "linux")]
use crate::test_groups::cgroup;
use crate::test_groups::{stray_signal, Group};
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
enum Mechanism {
Group,
#[cfg(target_os = "macos")]
MarkerWithGroup,
#[cfg(target_os = "macos")]
MarkerWalk,
TreeWalk,
#[cfg(target_os = "linux")]
Cgroup,
}
impl Mechanism {
fn has_group(self) -> bool {
match self {
Mechanism::Group => true,
#[cfg(target_os = "macos")]
Mechanism::MarkerWithGroup => true,
#[cfg(target_os = "macos")]
Mechanism::MarkerWalk => false,
Mechanism::TreeWalk => false,
#[cfg(target_os = "linux")]
Mechanism::Cgroup => false,
}
}
fn walks(self) -> bool {
self.is_marker() || self == Mechanism::TreeWalk
}
fn is_marker(self) -> bool {
#[cfg(target_os = "macos")]
if matches!(self, Mechanism::MarkerWithGroup | Mechanism::MarkerWalk) {
return true;
}
false
}
fn is_cgroup(self) -> bool {
#[cfg(target_os = "linux")]
if self == Mechanism::Cgroup {
return true;
}
false
}
fn mode(self) -> crate::ContainMode {
match self {
Mechanism::Group => crate::ContainMode::Session,
#[cfg(target_os = "macos")]
Mechanism::MarkerWithGroup => crate::ContainMode::Session,
#[cfg(target_os = "macos")]
Mechanism::MarkerWalk => crate::ContainMode::TreeWalk,
Mechanism::TreeWalk => crate::ContainMode::TreeWalk,
#[cfg(target_os = "linux")]
Mechanism::Cgroup => crate::ContainMode::Strongest,
}
}
fn containment(self) -> crate::Containment {
match self {
Mechanism::Group => crate::Containment::Session,
#[cfg(target_os = "macos")]
Mechanism::MarkerWithGroup | Mechanism::MarkerWalk => crate::Containment::FdMarker,
Mechanism::TreeWalk => crate::Containment::TreeWalk,
#[cfg(target_os = "linux")]
Mechanism::Cgroup => crate::Containment::CgroupV2,
}
}
fn configure(self, cmd: &mut crate::Command) {
cmd.args(["sh", "-c", if self.is_cgroup() { TREE_SAYING_EOF } else { TREE }]);
cmd.contain_with(self.mode());
#[cfg(target_os = "macos")]
if matches!(self, Mechanism::Group | Mechanism::TreeWalk) {
cmd.suppress_fd_marker();
}
cmd.stdin(crate::Stdio::pipe_in()).expect("stdin pipe");
cmd.stdout(crate::Stdio::pipe_out()).expect("stdout pipe");
cmd.stderr(crate::Stdio::pipe_out()).expect("stderr pipe");
}
}
const TREE: &str = r#"exec 3<&0
sh -c 'trap "" TERM; echo $$; exec cat >/dev/null' <&3 3<&- &
exec 3<&-
exec cat >/dev/null"#;
const TREE_SAYING_EOF: &str = r#"exec 3<&0
sh -c 'trap "" TERM; exec 4<&0; cat >/dev/null <&4 4<&- & echo $!; wait $! && echo eof >&2' <&3 3<&- &
exec 3<&-
exec cat >/dev/null"#;
fn said_eof(stderr: &[u8]) -> bool {
String::from_utf8_lossy(stderr).lines().any(|line| line == "eof")
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
enum Reap {
None,
Waited,
Unanswered,
#[cfg(target_os = "macos")]
Unpinned,
ForeignFree,
ForeignReused,
ForeignSeen,
}
impl Reap {
const ALL: &[Reap] = &[
Reap::None,
Reap::Waited,
Reap::Unanswered,
#[cfg(target_os = "macos")]
Reap::Unpinned,
Reap::ForeignFree,
Reap::ForeignReused,
Reap::ForeignSeen,
];
fn pins_its_number(self) -> bool {
matches!(self, Reap::None | Reap::Waited)
}
fn reaped(self) -> bool {
match self {
Reap::None | Reap::Waited | Reap::Unanswered => false,
#[cfg(target_os = "macos")]
Reap::Unpinned => false,
_ => true,
}
}
fn applies_to(self, mechanism: Mechanism) -> bool {
#[cfg(target_os = "linux")]
if self == Reap::Unanswered {
return !mechanism.is_cgroup() && mechanism != Mechanism::TreeWalk;
}
let _ = mechanism;
true
}
fn read(self, root: ProcessId) -> Option<Resolved<ProcessId>> {
match self {
Reap::None | Reap::Waited | Reap::Unanswered => None,
#[cfg(target_os = "macos")]
Reap::Unpinned => None,
Reap::ForeignFree | Reap::ForeignSeen => Some(Resolved::Gone),
Reap::ForeignReused => Some(Resolved::Found(root.with_other_value())),
}
}
}
impl Reap {
fn script(self, child: &mut crate::Child) -> Option<crate::os_process::fake::FakeProcess> {
#[cfg(target_os = "linux")]
if self == Reap::Unanswered {
return Some(
child
.proc
.script_over(|f| f.peeks([Err(std::io::Error::other("forced peek failure"))])),
);
}
#[cfg(target_os = "macos")]
{
use crate::os_process::child::{Foreign, PeekOutcome};
use crate::os_process::fake::ReapAnswer;
match self {
Reap::Unanswered => {
return Some(child.proc.script_over(|f| {
f.peeks_always(|| Err(std::io::Error::other("forced peek failure")))
.reaps_always(ReapAnswer::Err(std::io::ErrorKind::Other))
}));
}
Reap::Unpinned => {
return Some(child.proc.script_over(|f| {
f.peeks_always(|| Ok(PeekOutcome::Foreign(Foreign::Orphaned)))
.reaps_always(ReapAnswer::Foreign(Foreign::Orphaned))
}));
}
_ => {}
}
}
let _ = child;
None
}
fn assert_script_used(self, script: Option<&crate::os_process::fake::FakeProcess>) {
#[cfg(target_os = "linux")]
if let Some(fake) = script {
fake.assert_peeks_exhausted();
}
#[cfg(target_os = "macos")]
if let Some(fake) = script {
assert!(fake.repeats() > 0, "{self:?}: no look took the repeated answer");
}
let _ = (self, script);
}
fn state_reads(self, child: &mut crate::Child) {
let id = child.id().expect(crate::test_child::IDENTITY_READ);
if let Some(read) = self.read(id) {
child.proc.number_reads_always(read);
}
}
fn lift(scripted: Option<&crate::os_process::fake::FakeProcess>) {
if let Some(fake) = scripted {
let lifted = fake.clone().peeks([]).reaps([]);
#[cfg(target_os = "macos")]
let lifted = lifted.no_repeats();
drop(lifted);
}
}
fn untrusted(self) -> bool {
!self.reaped() && !self.pins_its_number()
}
fn unpinned(self) -> bool {
#[cfg(target_os = "macos")]
if self == Reap::Unpinned {
return true;
}
false
}
fn lift_before_cleanup(self) -> bool {
cfg!(target_os = "macos") && self.untrusted()
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
enum Op {
Kill,
Terminate,
GracefulShutdown,
Drop,
FinishElevated,
}
impl Op {
const ALL: [Op; 5] = [
Op::Kill,
Op::Terminate,
Op::GracefulShutdown,
Op::Drop,
Op::FinishElevated,
];
fn tears_down(self) -> bool {
matches!(self, Op::Drop | Op::FinishElevated)
}
fn kills(self) -> bool {
self == Op::Kill || self.tears_down()
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
enum Api {
Sync,
#[cfg(feature = "tokio")]
Tokio,
}
impl Api {
#[cfg(not(feature = "tokio"))]
const ALL: &[Api] = &[Api::Sync];
#[cfg(feature = "tokio")]
const ALL: &[Api] = &[Api::Sync, Api::Tokio];
fn runs(self, op: Op) -> bool {
#[cfg(feature = "tokio")]
if self == Api::Tokio {
return op == Op::GracefulShutdown;
}
let _ = op;
true
}
}
#[derive(Debug, Default)]
struct Sent {
killpg: bool,
walk: bool,
by_pid: bool,
holder: Vec<nix::sys::signal::Signal>,
root_holder: Vec<nix::sys::signal::Signal>,
pidfd: bool,
backstop: bool,
member_term: bool,
cgroup_kill: bool,
survivor_ended_alone: bool,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
enum Want {
Yes,
No,
Any,
}
impl Want {
fn holds(self, sent: bool) -> bool {
match self {
Want::Yes => sent,
Want::No => !sent,
Want::Any => true,
}
}
}
struct Expected {
killpg: Want,
walk: Want,
by_pid: Want,
holder: Option<&'static [nix::sys::signal::Signal]>,
root_holder: Option<&'static [nix::sys::signal::Signal]>,
pidfd: Want,
backstop: Want,
member_term: Want,
cgroup_kill: Want,
survivor_ended_alone: Want,
}
fn expected(mechanism: Mechanism, reap: Reap, op: Op) -> Expected {
use nix::sys::signal::Signal::{SIGKILL, SIGTERM};
let reaped = reap.reaped();
let killpg = if mechanism.has_group() && reap.pins_its_number() {
Want::Yes
} else if cfg!(target_os = "linux") && mechanism.has_group() && reap == Reap::Unanswered && op == Op::FinishElevated
{
Want::Yes
} else {
Want::No
};
let walk = match (mechanism.walks(), reap) {
(true, Reap::None) => Want::Yes,
(true, Reap::Waited) => Want::Any,
_ => Want::No,
};
let by_pid = if mechanism.is_cgroup() && !op.kills() {
Want::No
} else if reap == Reap::Waited {
Want::No
} else if cfg!(target_os = "macos") && op.tears_down() && reap == Reap::Unanswered {
Want::Yes
} else if reaped || !reap.pins_its_number() {
Want::No
} else {
Want::Any
};
let sweep: &'static [nix::sys::signal::Signal] = match op {
Op::Kill | Op::Drop | Op::FinishElevated => &[SIGKILL],
Op::Terminate => &[SIGTERM],
Op::GracefulShutdown => &[SIGTERM, SIGKILL],
};
let holder: Option<&'static [nix::sys::signal::Signal]> = match (mechanism.is_marker(), reap.pins_its_number()) {
(true, false) => Some(sweep),
(true, true) if reap == Reap::Waited && !mechanism.has_group() => Some(sweep),
(true, true) => None,
(false, _) => Some(&[]),
};
let root_holder: Option<&'static [nix::sys::signal::Signal]> = if !(cfg!(target_os = "macos") && reap.untrusted()) {
None
} else if !mechanism.is_marker() || reap.unpinned() {
Some(&[])
} else {
match op {
Op::Kill | Op::Drop | Op::FinishElevated => Some(&[SIGKILL]),
Op::Terminate => Some(&[SIGTERM]),
Op::GracefulShutdown => None,
}
};
let pidfd = match (cfg!(target_os = "linux"), reaped, op) {
(false, _, _) => Want::No,
(true, true, _) => Want::Any,
(true, false, _) if reap == Reap::Waited => Want::No,
(true, false, _) if reap != Reap::None => Want::Yes,
(true, false, Op::Terminate) if mechanism.walks() => Want::Yes,
(true, false, Op::Terminate) => Want::No,
(true, false, _) => Want::Yes,
};
let backstop =
if cfg!(target_os = "linux") && mechanism == Mechanism::TreeWalk && reap == Reap::None && op == Op::Kill {
Want::Yes
} else if reap == Reap::Waited {
Want::No
} else {
Want::Any
};
let member_term = if mechanism.is_cgroup() && !op.kills() {
Want::Yes
} else {
Want::No
};
let cgroup_kill = if mechanism.is_cgroup() && op != Op::Terminate {
Want::Yes
} else {
Want::No
};
Expected {
killpg,
walk,
by_pid,
holder,
root_holder,
pidfd,
backstop,
member_term,
cgroup_kill,
survivor_ended_alone: if cgroup_kill == Want::Yes { Want::No } else { Want::Any },
}
}
fn mismatches(want: &Expected, sent: &Sent) -> Vec<String> {
let mut wrong = Vec::new();
let mut check = |name: &str, want: Want, sent: bool| {
if !want.holds(sent) {
wrong.push(format!("{name}: want {want:?}, sent {sent}"));
}
};
check("killpg", want.killpg, sent.killpg);
check("walk", want.walk, sent.walk);
check("by-pid", want.by_pid, sent.by_pid);
check("pidfd", want.pidfd, sent.pidfd);
check("backstop", want.backstop, sent.backstop);
check("member SIGTERM", want.member_term, sent.member_term);
check("cgroup.kill", want.cgroup_kill, sent.cgroup_kill);
check(
"survivor ended alone",
want.survivor_ended_alone,
sent.survivor_ended_alone,
);
if let Some(holder) = want.holder {
if sent.holder != holder {
wrong.push(format!("holder: want {holder:?}, sent {:?}", sent.holder));
}
}
if let Some(root) = want.root_holder {
if sent.root_holder != root {
wrong.push(format!("root holder: want {root:?}, sent {:?}", sent.root_holder));
}
}
wrong
}
struct Recorders {
groups: crate::containment::unix::fault::KillGroupRecorder,
terms: crate::containment::unix::fault::TermGroupRecorder,
walks: crate::containment::treewalk::fault::WalkRecorder,
sends: crate::send_log::Capture,
#[cfg(target_os = "macos")]
holders: crate::containment::fdmarker::fault::HolderKillRecorder,
}
impl Recorders {
fn start() -> Recorders {
#[cfg(target_os = "linux")]
{
crate::containment::cgroup::fault::record_leaf_steps();
crate::containment::cgroup::fault::take_member_terms();
}
Recorders {
groups: crate::containment::unix::fault::record_kill_group(),
terms: crate::containment::unix::fault::record_term_group(),
walks: crate::containment::treewalk::fault::record_walks(),
sends: crate::send_log::Capture::start(),
#[cfg(target_os = "macos")]
holders: crate::containment::fdmarker::fault::record_holder_kills(),
}
}
#[cfg_attr(
not(target_os = "macos"),
allow(unused_variables, reason = "only macOS has marker holders")
)]
fn sent(&self, root: u32, cat: u32) -> Sent {
use crate::send_log::Via;
let entries = self.sends.entries();
#[cfg(target_os = "linux")]
let (cgroup_kill, member_terms) = (
crate::containment::cgroup::fault::take_leaf_steps()
.iter()
.any(|step| step == "kill"),
crate::containment::cgroup::fault::take_member_terms(),
);
#[cfg(not(target_os = "linux"))]
let (cgroup_kill, member_terms): (bool, Vec<(Option<u32>, Via, i32)>) = (false, Vec::new());
Sent {
killpg: !self.groups.killed().is_empty() || !self.terms.termed().is_empty(),
walk: !self.walks.walked().is_empty(),
by_pid: member_terms.iter().any(|(_, via, _)| *via == Via::Pid)
|| entries.iter().any(|(_, _, via)| *via == Via::Identity),
member_term: member_terms.iter().any(|(_, via, _)| *via == Via::Pidfd),
#[cfg(target_os = "macos")]
holder: self.holders.signals_to(cat),
#[cfg(not(target_os = "macos"))]
holder: Vec::new(),
#[cfg(target_os = "macos")]
root_holder: self.holders.signals_to(root),
#[cfg(not(target_os = "macos"))]
root_holder: Vec::new(),
pidfd: entries.iter().any(|(pid, _, via)| *pid == root && *via == Via::Pidfd),
backstop: entries
.iter()
.filter(|(pid, sig, via)| *pid == root && *sig == crate::signal::Sig::Kill && *via == Via::Pidfd)
.count()
>= 2,
cgroup_kill,
survivor_ended_alone: false,
}
}
}
#[track_caller]
fn assert_echild<T: std::fmt::Debug>(waited: Result<T, crate::error::Error>) {
assert!(
matches!(&waited, Err(crate::error::Error::Io(e)) if e.raw_os_error() == Some(libc::ECHILD)),
"a try_wait after a foreign reap: {waited:?}"
);
}
fn cat_pid(line: &str) -> u32 {
line.trim().parse().expect("the cat's pid")
}
fn run_sync(mechanism: Mechanism, reap: Reap, op: Op) -> Sent {
use std::io::{BufRead as _, Read as _};
let mut cmd = crate::test_child::command(Console::Hidden);
mechanism.configure(&mut cmd);
let mut child = cmd.spawn().expect("spawn");
assert_eq!(child.containment(), mechanism.containment(), "{mechanism:?}");
let mut line = String::new();
std::io::BufReader::new(child.stdout().expect("stdout pipe"))
.read_line(&mut line)
.expect("read the cat's pid");
let cat = cat_pid(&line);
let stdin = std::rc::Rc::new(std::cell::Cell::new(Some(child.stdin().expect("stdin pipe"))));
let mut stderr = child.stderr().expect("stderr pipe");
let root = child.pid();
if reap == Reap::Waited {
kill_own_child(root);
child.wait().expect("the wait sees the root exit");
}
if reap.reaped() {
kill_own_child(root);
crate::test_child::reaped_elsewhere::reap_behind(root);
if reap == Reap::ForeignSeen {
assert_echild(child.try_wait());
}
}
let scripted = reap.script(&mut child);
reap.state_reads(&mut child);
let _released = release_when_the_drain_blocks(mechanism, &stdin);
#[cfg(target_os = "linux")]
let _released_at_the_root_wait = crate::child::spawn::fault::release_when_a_teardown_waits(&stdin);
let recorders = Recorders::start();
_ = match op {
Op::Kill => child.kill_tree(),
Op::Terminate => child.terminate_tree(),
Op::GracefulShutdown => child.graceful_shutdown_tree(Duration::ZERO).map(drop),
Op::Drop => {
drop(child);
return finish_teardown(reap, scripted, recorders, root, cat, stdin, stderr);
}
Op::FinishElevated => {
_ = crate::child::spawn::finish_elevated(child, failed_write());
return finish_teardown(reap, scripted, recorders, root, cat, stdin, stderr);
}
};
reap.assert_script_used(scripted.as_ref());
let mut sent = recorders.sent(root, cat);
if reap.lift_before_cleanup() {
Reap::lift(scripted.as_ref());
}
if !reap.reaped() {
drop(stdin.take());
child.wait().expect("reap the root");
}
drop(stdin.take());
let mut rest = Vec::new();
stderr
.read_to_end(&mut rest)
.expect("the root and the cat are gone, closing stderr");
sent.survivor_ended_alone = said_eof(&rest);
if mechanism.is_cgroup() {
child.wait_tree().expect("the leaf drains");
}
drop(child);
drop(recorders);
sent
}
fn failed_write() -> Result<(), crate::error::Error> {
Err(crate::error::Error::Io(std::io::Error::other(
"forced password-write failure",
)))
}
#[cfg(target_os = "linux")]
fn release_when_the_drain_blocks<T: 'static>(
mechanism: Mechanism,
stdin: &std::rc::Rc<std::cell::Cell<Option<T>>>,
) -> Option<crate::wait::block_probe::Armed> {
mechanism.is_cgroup().then(|| {
let stdin = std::rc::Rc::clone(stdin);
crate::wait::block_probe::on_drain_block(move || drop(stdin.take()))
})
}
#[cfg(not(target_os = "linux"))]
fn release_when_the_drain_blocks<T>(_: Mechanism, _: &std::rc::Rc<std::cell::Cell<Option<T>>>) -> Option<()> {
None
}
#[allow(clippy::too_many_arguments, reason = "one cell's state, passed through")]
fn finish_teardown(
reap: Reap,
scripted: Option<crate::os_process::fake::FakeProcess>,
recorders: Recorders,
root: u32,
cat: u32,
stdin: std::rc::Rc<std::cell::Cell<Option<crate::PipeWriter>>>,
mut stderr: crate::PipeReader,
) -> Sent {
use std::io::Read as _;
reap.assert_script_used(scripted.as_ref());
let mut sent = recorders.sent(root, cat);
drop(stdin.take());
let mut rest = Vec::new();
stderr
.read_to_end(&mut rest)
.expect("the root and the cat are gone, closing stderr");
sent.survivor_ended_alone = said_eof(&rest);
drop(recorders);
sent
}
#[cfg(feature = "tokio")]
async fn run_tokio(mechanism: Mechanism, reap: Reap) -> Sent {
use ::tokio::io::{AsyncBufReadExt as _, AsyncReadExt as _};
let mut cmd = crate::test_child::tokio_command(Console::Hidden);
mechanism.configure(cmd.as_sync_mut());
let mut child = cmd.spawn().await.expect("spawn");
assert_eq!(child.containment(), mechanism.containment(), "{mechanism:?}");
let mut line = String::new();
::tokio::io::BufReader::new(child.stdout().expect("stdout pipe"))
.read_line(&mut line)
.await
.expect("read the cat's pid");
let cat = cat_pid(&line);
let stdin = std::rc::Rc::new(std::cell::Cell::new(Some(child.stdin().expect("stdin pipe"))));
let mut stderr = child.stderr().expect("stderr pipe");
let root = child.pid();
if reap == Reap::Waited {
kill_own_child(root);
child.wait().await.expect("the wait sees the root exit");
}
if reap.reaped() {
kill_own_child(root);
crate::test_child::reaped_elsewhere::reap_behind(root);
if reap == Reap::ForeignSeen {
assert_echild(child.try_wait());
}
}
let scripted = reap.script(&mut child.inner);
reap.state_reads(&mut child.inner);
let _released = release_when_the_drain_blocks(mechanism, &stdin);
#[cfg(target_os = "linux")]
let _released_at_the_root_wait = crate::child::spawn::fault::release_when_a_teardown_waits(&stdin);
let recorders = Recorders::start();
_ = child.graceful_shutdown_tree(Duration::ZERO).await;
reap.assert_script_used(scripted.as_ref());
let mut sent = recorders.sent(root, cat);
if reap.lift_before_cleanup() {
Reap::lift(scripted.as_ref());
}
if !reap.reaped() {
drop(stdin.take());
child.wait().await.expect("reap the root");
}
drop(stdin.take());
let mut rest = Vec::new();
stderr
.read_to_end(&mut rest)
.await
.expect("the root and the cat are gone, closing stderr");
sent.survivor_ended_alone = said_eof(&rest);
if mechanism.is_cgroup() {
child.wait_tree().await.expect("the leaf drains");
}
drop(child);
drop(recorders);
sent
}
fn check_matrix(mechanisms: &[Mechanism]) {
#[cfg(feature = "tokio")]
let runtime = ::tokio::runtime::Builder::new_current_thread()
.enable_all()
.build()
.expect("build a current-thread runtime: the recorders are thread-local");
let mut rows = Vec::new();
let mut failed = 0;
for &mechanism in mechanisms {
for &reap in Reap::ALL.iter().filter(|reap| reap.applies_to(mechanism)) {
for op in Op::ALL {
for &api in Api::ALL.iter().filter(|api| api.runs(op)) {
let sent = match api {
Api::Sync => run_sync(mechanism, reap, op),
#[cfg(feature = "tokio")]
Api::Tokio => runtime.block_on(run_tokio(mechanism, reap)),
};
let want = expected(mechanism, reap, op);
let wrong = mismatches(&want, &sent);
let verdict = if wrong.is_empty() {
"ok".to_owned()
} else {
failed += 1;
format!("WRONG: {}", wrong.join("; "))
};
rows.push(format!(
"{mechanism:?} | {reap:?} | {op:?} | {api:?} | {sent:?} | {verdict}"
));
}
}
}
}
assert_eq!(
failed,
0,
"{failed} of {} cells are wrong:\n{}",
rows.len(),
rows.join("\n")
);
}
#[skuld::test]
fn tree_paths_send_nothing_by_the_root_number_after_a_reap(#[fixture(stray_signal)] _stray: &Group) {
#[cfg(target_os = "linux")]
let _old_kernel = crate::containment::unix::fault::refuse_pidfd_group_flag();
check_matrix(&[
Mechanism::Group,
Mechanism::TreeWalk,
#[cfg(target_os = "macos")]
Mechanism::MarkerWithGroup,
#[cfg(target_os = "macos")]
Mechanism::MarkerWalk,
]);
}
#[cfg(target_os = "linux")]
#[skuld::test]
fn cgroup_tree_paths_still_kill_through_the_cgroup_after_a_reap(#[fixture(cgroup)] _group: &Group) {
check_matrix(&[Mechanism::Cgroup]);
}