AArch64 lifting issues

Aperta
#8,618 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
76/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
cpp

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
C++
Stelle
1.3k
Fork
304
Merge medio
2g 20h
PR unite (30g)
10

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Vector35/binaryninja-api

Tutte le issue di Vector35/binaryninja-api

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.