beehive-lab / mambo

A low-overhead dynamic binary instrumentation and modification tool for ARM (both AArch32 and AArch64 support) and RISC-V (RV64GC).
Apache License 2.0
323 stars 69 forks source link

Unknown A64 instruction #77

Closed WanghongLin closed 2 years ago

WanghongLin commented 2 years ago

It looks like the aarch64 instruction set not fully handled in Mambo. I got the following error when I run Mambo on an Android device.

$ ./dbm /system/bin/toybox ls

MAMBO: Unknown A64 instruction: 82 (0x78688269) at 0x7e31501dd8
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xb8280008) at 0x7e315007ec
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xb87f8269) at 0x7e314e6b38
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xb87f8289) at 0x7e314e09e8
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xb87f8269) at 0x7e314e0e10
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xf8ec0169) at 0x7e3146a374
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xb8681268) at 0x7e31502c64
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xb8680268) at 0x7e31502c24
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xb8688008) at 0x7e2d367abc
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0x78688269) at 0x7e2d374ff4
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xb8681268) at 0x7e2d376274
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xb87f8269) at 0x7e2d30fffc
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xb8f38100) at 0x7e2d317128
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xb8690108) at 0x7e2d2d6028
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xf8290100) at 0x7e2d2e1ba0
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xf83a0108) at 0x7e2d2df388
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xf8280128) at 0x7e2d2df3d8
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xf8280128) at 0x7e2d2d557c
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xf8280128) at 0x7e2d309a1c
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xb8290108) at 0x7e2d2e1b78
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0x78698269) at 0x7e2d3750c8
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xb8290108) at 0x7e2d2e1b8c
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xf8280128) at 0x7e2d2d5a04
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xf8280128) at 0x7e2d2e0128
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xf8290108) at 0x7e2d2e34c0
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xf8370108) at 0x7e2d2e34cc
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xf8390108) at 0x7e2d2e34e0
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xf82a0128) at 0x7e2d2e34e4
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xf8280128) at 0x7e2d30ac6c
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xb8e90108) at 0x7e2d14a7f8
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xb8280008) at 0x7e2d3733b0
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xf8280128) at 0x7e2d15a410
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0xf8e80128) at 0x7e2d15a428
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0x78698269) at 0x7e31501eac
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

MAMBO: Unknown A64 instruction: 82 (0x78688269) at 0x7e2d374ff4
Copying it unmodified, but future problems are possible
Report crashes at https://github.com/beehive-lab/mambo

Could you add support for these instructions? Attachment is the binary I tested. toybox.zip