mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Fix ERESTART for lcall $7,$0 syscalls.
The lcall trampoline enters kernel by int $0x80, which sets up invalid length of the instruction for %rip rewind. Reviewed by: bde Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
f407f5fb88
commit
2d7e563c39
1 changed files with 1 additions and 0 deletions
|
|
@ -146,6 +146,7 @@ ia32_fetch_syscall_args(struct thread *td)
|
|||
frame->tf_rip = eip;
|
||||
frame->tf_cs = cs;
|
||||
frame->tf_rsp += 2 * sizeof(u_int32_t);
|
||||
frame->tf_err = 7; /* size of lcall $7,$0 */
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue