pub struct MemCheck {
pub pattern: DataPattern,
/* private fields */
}Expand description
Memory-checking victim implementation.
Checks memory for bit flips by comparing against an expected data pattern.
Implements VictimOrchestrator to integrate with the Swage framework.
Fields§
§pattern: DataPatternThe expected data pattern to check against
Implementations§
Source§impl MemCheck
impl MemCheck
Sourcepub fn new(
memory: ConsecBlocks,
pattern: DataPattern,
excluding: ExcludeFromInit,
) -> Self
pub fn new( memory: ConsecBlocks, pattern: DataPattern, excluding: ExcludeFromInit, ) -> Self
Creates a new memory-checking victim.
§Arguments
memory- The memory region to monitorpattern- Expected data patternexcluding- Pages to exclude from initialization
Trait Implementations§
Source§impl VictimOrchestrator for MemCheck
impl VictimOrchestrator for MemCheck
Source§fn start(&mut self) -> Result<(), HammerVictimError>
fn start(&mut self) -> Result<(), HammerVictimError>
Starts the victim and allocates required resources. Read more
Source§fn check(&mut self) -> Result<VictimResult, HammerVictimError>
fn check(&mut self) -> Result<VictimResult, HammerVictimError>
Checks if the hammering attack was successful. Read more
Auto Trait Implementations§
impl Freeze for MemCheck
impl !RefUnwindSafe for MemCheck
impl !Send for MemCheck
impl !Sync for MemCheck
impl Unpin for MemCheck
impl UnwindSafe for MemCheck
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more