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 摘要。