AArch64 lifting issues

未关闭
#8,618 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
76/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
cpp

调研方向

Start in arch/arm64/il.cpp at lines 2743 and 2162, then inspect how the supplied kat-aarch64.o instructions are lifted. Check the resulting LLIL for the masked register shift and raw-bit fmov transfer, and use the emulator behavior described in the issue to verify that fmov no longer stops as unimplemented.

由索引模型根据 Issue 内容生成。

描述

Binary files and instruction addresses (ZIP available for upload separately):

  • kat-aarch64.o: 0x400358, 0x401db0; SHA-256 16de40ff0f7ee4c526831624f1af4aea30b044ebf59fc799494d35d026f718a1

1: AArch64 register shifts

Binary instruction: kat-aarch64.o / md5 at 0x400358; bytes 6d25ca1a.

Disassembly: lsr w13, w11, w10.

Current lifted LLIL (relevant lines):

w13 = w11 u>> w10

Expected LLIL (semantic sketch):

w13 = w11 u>> (w10 & 0x1f)

Out-of-range counts can occur in rotate idioms even though the ISA ignores their upper bits.

Code: arch/arm64/il.cpp:2743

2: AArch64 fmov d0, x9

Binary instruction: kat-aarch64.o / bitcount_probe at 0x401db0; bytes 2001679e.

Disassembly: fmov d0, x9.

Current lifted LLIL (relevant lines):

d0 = float.d(x9)

Expected LLIL (semantic sketch):

d0 = x9  // copy the 64 raw bits

fmov transfers the 64 raw bits without numeric conversion. A direct LLIL register assignment expresses that transfer; no bitcast is needed. Here float.d(x9) is an LLIL_INT_TO_FLOAT expression; the emulator does not implement that operation and stops as unimplemented before writing d0. If it performed the numeric conversion indicated by this LLIL, the result would also have the wrong bits.

Code: arch/arm64/il.cpp:2162

主要语言
C++
星标
1.3k
派生
304
平均合并
2 天 20 小时
30 天内合并 PR
10

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Vector35/binaryninja-api 的其他 Issue

查看 Vector35/binaryninja-api 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。