qilingframework / qilingframework/qiling

Default syscalls not implemented in Posix OS

Open Beginner friendly
#1,458 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
6.1k
Forks
798
Avg merge
1d 1h
Merged PRs (30d)
9

Description

Using the Android binaries provided in the rootfs, Qiling stops because of tgkill and sigaltstack syscalls are not implemented.

The code snippet below must be added in the signal.py file which is defined for the Posix OS:

def ql_syscall_sigaltstack(ql: Qiling, ss: int, oss: int):
    return 0


def ql_syscall_tgkill(ql: Qiling, tgid: int, tid: int, sig: int):
    return 0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open qiling/os/posix/syscall/signal.py and locate the existing POSIX signal syscall handlers. Add the requested tgkill and sigaltstack handlers, then verify that the Android binaries from the rootfs no longer stop on these syscalls.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
operating-systems, reverse-engineering
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.