1SYSCALL_ROLLBACK(9) Machine State SYSCALL_ROLLBACK(9)
2
3
4
6 syscall_rollback - roll back registers after an aborted system call
7
9 void syscall_rollback(struct task_struct * task,
10 struct pt_regs * regs);
11
13 task
14 task of interest, must be in system call exit tracing
15
16 regs
17
18 task_pt_regs of task
19
21 It´s only valid to call this when task is stopped for system call exit
22 tracing (due to TIF_SYSCALL_TRACE or TIF_SYSCALL_AUDIT), after
23 tracehook_report_syscall_entry returned nonzero to prevent the system
24 call from taking place.
25
26 This rolls back the register state in regs so it´s as if the system
27 call instruction was a no-op. The registers containing the system call
28 number and arguments are as they were before the system call
29 instruction. This may not be the same as what the register state looked
30 like at system call entry tracing.
31
32
33
34Kernel Hackers Manual 2.6. June 2019 SYSCALL_ROLLBACK(9)