Skip to content

Releases: unicorn-engine/unicorn

Version 2.1.4

09 Sep 17:21
8028ec4
Compare
Choose a tag to compare

Hello everyone. It has been a while since last release and we are releasing Unicorn 2.1.4. Though it is a patch release, there are some highlights worth mentioning.

The very first thing is that, Unicorn (finally!) offers consistent PC guarantee in all cases. Well, it might sound weird that why it was not. Generally QEMU is not designed to keep PC synced in all cases for performance and Unicorn once put necessary hacks but those hacks were too hard to maintain. Now we have architecture agnostic mechanism to offer the PC guarantee.

In addition, we offer a standalone unicorn Rust crate unicorn-engine-sys to allows users to build their own bindings since v2.1.4 (actually v2.1.5 because of the mess of releasing new crates). There are also lots of bindings improvements contained in this release.

We also fix the building and distribution issues for macos ARM and distribute wheels again. Our friend @patryk4815 from pwndbg helps sort this out. Kudos to him!

For 2.2.0, personally I wish I could work it out before the end of this year, by merging lots of pending big PRs but my time budget is relatively limited recently. Please aware that 2.2.0 would probably bump QEMU version to 5.1.0 or even higher so semantics could be changed. Any help is highly welcome and please contact @wtdcode if you are keen.

Lastly, I would like to express my deep gratitude to all contributors that help make this release happen, specifically @Evian-Zhang for Rust improvements and unicornafl integration, @Antelox for constant contributions on our workflows, @amaanq for various huge work, reviews and Rust bindings split, @PhilippTakacs for PR reviews and fix. Again, thanks for every contributor!

Below goes the auto generated release notes. Starting from this tag, the release note will switch to a short passage plus Github generated contents because this makes it easier to follow big changes.

What's Changed

New Contributors

Full Changelog: v2.1.3...v2.1.4

Version v2.1.3

07 Mar 14:28
803fe5a
Compare
Choose a tag to compare

2.1.3 includes a few fixes for distribution and stability issues. We urge users to update their versions as previous version contains security vulnerabilities.

Fix & Improvements

  • Several security issues fixes. @PhilippTakacs
  • Add alpine workflow and fix several distribution issues. @Antelox @disconnect3d
  • Introduce importlib_resources for py3.8 (EOL already) @Arusekk @Antelox
  • Mips64 improvements. @OBarronCS
  • MIPS related fixes and implement a few registers.
  • x86 default CPU model is changed to UC_CPU_X86_HASWELL and remove a few quirks.
  • Fix CR4 implementation.
  • Fix python bindings break changes by adding back ctl_tlb_mode. @Antelox

New Contributors

Full Changelog: 2.1.2...2.1.3

As usual, thanks to all contributors and sorry if I missed your name here (please tell me @wtdcode !).

Version v2.1.2

13 Feb 15:32
e2915c9
Compare
Choose a tag to compare

2.1.2 is a patch release to mainly resolve the stability issue of the 2.1.0 release series and fix a few distribution issues. All users of Unicorn are expected to upgrade.

Highlights

  • macOS arm64 no longer provides binary wheels due to a feature missing from Github Action runners.
  • py3.8 support is brought back, python2 wheels are built and test as well and we migrate to cibuildwheel! @Antelox
  • Several polish to python bindings and implement new API. @elicn @droe
  • Revert previous break changes that return UC_ERR_ARG for non-existing registers. Now this prints a warning. We urge all users relying on this behavior to fix code as soon as possible.
  • Fix several segment faults, including a few long-standing random segfault issues.
  • Revive previous unicorn 1 test suite and related refactoring. @elicn @Antelox
  • Optimize memory handling and notdirty writes for faster memory access and snapshots, especially useful for fuzzing. @PhilippTakacs
  • RISC-V API updates. @apparentlymart
  • fix UC_HOOK_MEM_READ on aarch64. @glennsec
  • Support UC_TCG_OP_FLAG_CMP for ARM @dotCirill
  • An alternative tag prefixed with "v" is added for golang compatibility.

Fix & Improvements

  • Implement UC_ARM64_REG_WSP
  • Several fixes on arm64 macos @tbodt
  • reg_read_batch and reg_write_batch @hsa1as
  • Fix pc sync issue for SPARC, MIPS, x86. This also fixes PC sync issue within UC_HOOK_BLOCK hooks.
  • Allow cmake to install files on Windows and allow cmake not to generate Unicorn 1 style all-in-one objects archive
  • Make i386 instructions RDTSC and RDTSCP hookable @t0rr3sp3dr0
  • Allow Statically Linking in Go @t0rr3sp3dr0
  • Rust bindings improvements @Sanae6
  • Patch multiple UC_HOOK_MEM callbacks for unaligned access @Michael-c0de
  • Fix UC_MEM_FETCH_PROT for data read
  • Remove more Unicorn 1 hacks to improve performance.
  • Docs & unit test updates. @saicao
  • Allow uc_ctl_set_page_size() for arm64 @droe
  • Musl builds @clan
  • mips16 fix @ZakDanger
  • Fix UC_HOOK_MEM on arm32 @xndcn
  • Fix heap buffer overflow in op_cksm function @Shivam7-1

New Contributors

Full Changelog: 2.1.1...2.1.2

As usual, thanks to all contributors and sorry if I missed your name here (please tell me @wtdcode !).

Lastly and personally, I would like to express my big thanks to @Antelox @elicn and @PhilippTakacs for spending lots of time improving Unicorn Engine. Also, there are a few big pull requests adding new architectures (RH850, TCI, LoongArch64, AVR) and I will actively push them to 2.2.0.

Version v2.1.1

26 Sep 12:25
d568885
Compare
Choose a tag to compare

This is a small release to fix a few urgent issues.

  • Remove pkg_resources usage
  • Fix wheels distribution for x86_64 macos
  • Fix redundant wheel hacks
  • Support musllinux distribution @Antelox

Full Changelog: 2.1.0...2.1.1

Version v2.1.0

21 Sep 16:06
3f230f3
Compare
Choose a tag to compare

It has been a while since the last release, and 2.1.0 brings several exciting features. Below is the changelog from the latest to the oldest (though not strictly).

Highlights

  • Revive QEMU logs, now we have -DUNICORN_LOGGING=yes to enable all qemu logs. @BitMaskMixer
  • Faster (up to 40x) write performance by not always doing store_helper and cleaning page locks. @tunz @boborjan2
  • Brand new python bindings, with strongly typed and many improvements. @elicn
  • Fix to a long-standing MinGW random segfault bug.
  • We bring python2 compatibility back.
  • We now fully support M1, both building and a pre-built wheel.
  • We support snapshot memory now, with a very low overhead copy-on-write fashion. @PhilippTakacs
  • An option to bypass MMU is also added, check our FAQ. @PhilippTakacs
  • A brand new (and modern) java bindings. We are also working to publish it to maven. @nneonneo
  • We have zig integrated. @kassane @atipls
  • Now Unicorn no longer allocates 2GB memory for every instance. The memory will be only committed once used and the upper limit can be adjusted with uc_ctl.
  • New DotNet binding, with published to both Github and Nuget. @TSRBerry
  • The release will attach all binaries, thanks to @marameref

Fixes & Improvements

New Contributors

Full Changelog: 2.0.1...2.1.0

Again, thanks for all contributors and sorry if I missed your name here (please tell me @wtdcode !). 2.1.1 is also coming because we expect some minor break changes to fix.

Version 2.0.1.post1

22 Nov 20:18
e9c1c17
Compare
Choose a tag to compare

This is a small release to complement the previous 2.0.1 release.

Fix:

  • Fix the endianness detection in tests.
  • Fix the version number in CMakeLists.txt.

Version 2.0.1

01 Nov 15:39
Compare
Choose a tag to compare

Unicorn2 makes the first step to Debian packages and vcpkg! Thanks @roehling and @LilyWangL !

Features:

  • Support building & running on BE hosts. #1710
  • Fix and support clang-cl on Windows. #1687
  • Fix python sdist and add aarch64 Linux wheels. Note pip can build Unicorn2 on M1 now!
  • C# binding is refined and upgraded to .Net 6. #1723

Fix/Improvements:

  • Various bindings improvements. #1723
  • Improvements for tests. #1684 #1683 #1691 #1711
  • Fail explicitly when VEX.L is set. #1658
  • Fix endianness when writing PPC32 CR register. #1659
  • Fix a bug in uc_ctl_set_cpu_model check.
  • Fix Tricore PC not updating. #1668
  • Fix the mapping not updated if users modify the mappings in the hooks.
  • Handle pathological cases consistently. #1651
  • Fix memory leaks in PPC target. #1680
  • Fix memory leaks in Tricore target. #1681
  • Fix MSVC handling in cmake. #1693
  • Fix PC sync-ing problems for UC_HOOK_BLOCK hooks.
  • Fix PC sync-ed twice when users request a soft restart.
  • Prevent overflow with pre-allocated RAM blocks. #1712
  • Add FPCR and FPSR registers #1722
  • Fix ARM CPU state not deep copied.
  • Fix PC not sync-ed for memory operation on aarch64.
  • Exit invalid store operations early to avoid the target registers being overwritten.
  • Improve the support for ARM BE32.

Thanks:

@roehling @LilyWangL @mrexodia @zachriggle @Yu3H0 @rhelmot @relapids @sh4w1 @TSRBerry

Version 2.0.0

07 Jul 15:51
Compare
Choose a tag to compare

Features:

  • TriCore Support (#1568)

Fixes/Improvements:

  • Build both shared library and static archive as unicorn1 does.
  • Misc bindings improvements. #1569 #1600 #1609 #1613 #1616
  • Make sure setjmp-setjmp-wrapper-win32 participates in the build. #1604
  • Improve Rust bindings build logic.
  • Fix wrong python binding for UC_CTL_TB_REMOVE_CACHE
  • Flush translation blocks when the count hook is removed.
  • Fix unicorn crash when nested uc_emu_start deletes a hook
  • Fix CPU not fully resumed when writing PC.
  • Don't quit TB if uc_mem_protect doesn't change the protection of current TB memory.
  • Add type annotations for python bindings.
  • Add CPUID hook for python bindings. #1618
  • Don't repeat memory hooks if there is already an unhandled error. #1618
  • Support reads and writes over all Arm SIMD registers #1621
  • Fix wrong registers range in python bindings.
  • Fix uc_mem_protect on mmio regions
  • Fix a UAF caused by hook cache.
  • Fix the value collision between UC_MODE_ARMBE8 and UC_MODE_ARM926

Thanks:

@AfoHT @mrexodia @bet4it @lowlyw @ekilmer @ondryaso @QDucasse @PalumboN @uberwoozle

Version 2.0.0-rc7

17 Apr 15:10
185a6fe
Compare
Choose a tag to compare
Version 2.0.0-rc7 Pre-release
Pre-release

This release is expected to be the real last RC release of Unicorn2. ;)

Features:

  • Correctly generate static archives for the static build and have CI auto-tested.
  • Rust bindings revised. #1584
  • Compatible with clang-cl compiler. #1581
  • Implement UC_HOOK_INSN for aarch64 MRS/MSR/SYS/SYSL

Fixes/Improvements:

  • Several corner cases on our API. #1587 #1595
  • Fix the codegen buffer leak.
  • Rust bindins improvements. #1574 #1575
  • Add "holes" to allow unicorn lib as a drop-in replacement for older ones. #1572
  • s390x backports. #1570
  • Fix exits wrongly removed in nested uc_emu_start
  • Fix a possible endless loop for only one translation block in a multithreaded environment.
  • Fix wrong PC without UC_HOOK_CODE installed.
  • Update vb6 bindings license. #1563
  • Fix buffer allocation failure on M1. #1559
  • Fix wrong EFLAGS on startup.
  • Fix wrong internal states on nested uc_emu_start.
  • Remove armeb-softmmu and aarcheb-softmmu which are usermode targets.
  • Advance PPC32 PC. #1558
  • Support UC_PPC_REG_CR.
  • Update CI to windows-2019

Thanks:

@shuffle2 @liyansong2018 @rose4096 @nviennot @n1tram1 @iii-i @dzzie @yrashk @bet4it

Version 2.0.0-rc6

13 Feb 10:15
c10639f
Compare
Choose a tag to compare
Version 2.0.0-rc6 Pre-release
Pre-release

This release is expected to be the last RC release of Unicorn2.

Features:

  • SystemZ (aka. s390x) support. #1521 #1547
  • CPUID hook now may return a bool to indicate whether skipping the CPUID instruction.
  • ARM/AARCH64 coprocessor registers read/write support. #889

Fixes/Improvements:

  • Rust improvements. More registers enums #1504 Easier to use #1543 #1545
  • M68k improvements. #1507
  • Golang improvements. Enable uc_ctl_set_model #1506
  • Unit tests improvements. #1512
  • Various ARM system mode fixes. #1500 #1520 #1525 #1531
  • Read/write arm FPSCR and FPSID. #1453
  • Fix the support for ARMv8
  • Fix a large number of memory leaks and unicorn2 now goes with google/oss-fuzz!
  • Add more X87 registers. #1524
  • Add more PPC registers.
  • Fix the exception not cleared in python bindings. #1537
  • Correctly support ARM big endian and drops armeb-softmmu and aarch64eb-softmmu
  • Fix ARM CPSR.E not reflected during runtime.
  • Resolve fuzzing speed problem on macOS.
  • Modernize CmakeFileLists.txt. #1544
  • Fix an issue in nested uc_emu_start

Thanks:

@Kritzefitz @zznop @QDucasse @gerph @bet4it @mrexodia @iii-i @jbcayrou @scribam