0xAX / 0xAX/linux-insides

[BUG] The syscall argument registers are misleading in syscalls part one

Abierto
#855 0 comentarios 0 reacciones 0 asignados Ver en GitHub
area:syscalls todo
Lenguaje dominante
Python
Estrellas
33.5k
Forks
3.6k
Merge medio
8 h 41 min
PR fusionados (30 d)
11

Descripción

In part two (https://0xax.gitbooks.io/linux-insides/content/SysCall/linux-syscall-2.html section "Preparation before system call handler will be called") its clear that for example ECX is not used as an argument register since RIP is stored in it. However in part 1 of the syscall series:
![image](https://github.com/user-attachments/assets/7ed318b3-2eb9-44d3-8dd6-d75b23bf4476)
This is the order used when calling functions yes, but not when calling syscalls. Also I think syscalls don't take arguments from the stack. This is a useful reference: https://elixir.bootlin.com/linux/v6.10.10/source/arch/x86/entry/entry_64.S#L69

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

The issue points to a specific figure in part one of the syscall series and a reference in the Linux kernel source (arch/x86/entry/entry_64.S). To correct the documentation, locate the misleading diagram or text in the book's source files (likely in a Markdown or AsciiDoc file for the syscall part one). Compare with the correct register usage described in part two and the linked assembly code. The fix is to update the text or image to reflect that syscalls use different argument registers (e.g., ECX is used for RIP, not as an argument).

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Área
documentation
Tipo de issue
Documentación
Dificultad
1/5
Tiempo estimado
Menos de una hora
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
40/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.