From 225e2d46b64d84aa08959036a1a6d03f1a22ef56 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sun, 8 Aug 2021 17:00:07 +0200 Subject: cargo fmt + fix comments --- src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 400b2d7..b82abdc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,4 @@ -use goblin::elf::{Elf, program_header::PT_LOAD}; +use goblin::elf::{program_header::PT_LOAD, Elf}; use std::convert::TryFrom; use vdso_proxy_poc::{Error, JmpPad, MapEntry, Mmap, VirtAddr}; @@ -113,7 +113,7 @@ fn main() -> Result<(), Error> { }; // As an example, install a trampoline for the `__vdso_gettimeofday` symbol. The trampoline is - // installed in the _old_ vdso pages, where the user code from the checkpoint image links to, + // installed in the _old_ vdso pages, where the user code from the checkpoint image binds to, // and forwards the calls into the _new_ vdso pages. let pad = JmpPad::to(orig_sym_addr); // SAFETY: copy_sym_addr is a valid virtual address as we got it from the symbol lookup. @@ -125,8 +125,7 @@ fn main() -> Result<(), Error> { }; unsafe { - // Mimic a call to `__vdso_gettimeofday` from user code which is still linked to the _old_ - // vdso. + // Mimic a call to `__vdso_gettimeofday` from user code which binds to the _old_ vdso. // SAFETY: copy_sym_addr is a valid virtual address pointing to the `__vdso_gettimeofday` // function. -- cgit v1.2.3