MemCheck

Struct MemCheck 

Source
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: DataPattern

The expected data pattern to check against

Implementations§

Source§

impl MemCheck

Source

pub fn new( memory: ConsecBlocks, pattern: DataPattern, excluding: ExcludeFromInit, ) -> Self

Creates a new memory-checking victim.

§Arguments
  • memory - The memory region to monitor
  • pattern - Expected data pattern
  • excluding - Pages to exclude from initialization

Trait Implementations§

Source§

impl Serialize for MemCheck

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl VictimOrchestrator for MemCheck

Source§

fn start(&mut self) -> Result<(), HammerVictimError>

Starts the victim and allocates required resources. Read more
Source§

fn init(&mut self)

Initializes the victim state before a hammering round. Read more
Source§

fn check(&mut self) -> Result<VictimResult, HammerVictimError>

Checks if the hammering attack was successful. Read more
Source§

fn stop(&mut self)

Stops the victim and releases resources. Read more
Source§

fn serialize(&self) -> Option<Value>

Optionally serializes victim-specific data to JSON. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V