Skip to content

Commit

Permalink
Qemu native hooks refactoring (#2480)
Browse files Browse the repository at this point in the history
* qemu native hooks refactoring (companion patch of qemu-libafl-bridge#82)

* update stubs
  • Loading branch information
rmalmain authored Aug 13, 2024
1 parent 2287afc commit 00806b1
Show file tree
Hide file tree
Showing 6 changed files with 1,329 additions and 187 deletions.
16 changes: 15 additions & 1 deletion libafl_qemu/libafl_qemu_build/src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,24 @@ const WRAPPER_HEADER: &str = r#"
#include "qemu/plugin-memory.h"
#include "libafl/exit.h"
#include "libafl/hook.h"
#include "libafl/jit.h"
#include "libafl/utils.h"
#include "libafl/hook.h"
#include "libafl/hooks/tcg/backdoor.h"
#include "libafl/hooks/tcg/block.h"
#include "libafl/hooks/tcg/cmp.h"
#include "libafl/hooks/tcg/edge.h"
#include "libafl/hooks/tcg/instruction.h"
#include "libafl/hooks/tcg/read_write.h"
#include "libafl/hooks/cpu_run.h"
#ifdef CONFIG_USER_ONLY
#include "libafl/hooks/thread.h"
#include "libafl/hooks/syscall.h"
#endif
"#;

pub fn generate(
Expand Down
2 changes: 1 addition & 1 deletion libafl_qemu/libafl_qemu_build/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::cargo_add_rpath;

pub const QEMU_URL: &str = "https://github.com/AFLplusplus/qemu-libafl-bridge";
pub const QEMU_DIRNAME: &str = "qemu-libafl-bridge";
pub const QEMU_REVISION: &str = "24abc2a717226bedc047167f639aef0edc9ce92d";
pub const QEMU_REVISION: &str = "86d38fbfa7e632b3a4a14def14a11b9b9ba1642d";

#[allow(clippy::module_name_repetitions)]
pub struct BuildResult {
Expand Down
Loading

0 comments on commit 00806b1

Please sign in to comment.