For those interested, Linux has a remarkably interesting way to determine whether to use the modern sysenter/sysexit routines or the ancient 0x80 interrupt vector. http://www.trilithium.com/johan/2005/08/linux-gate/ discuses the system quite nicely.
SYSCALL/SYSRET is my favorite one, since it does not change ESP/RSP:
http://web.archive.org/web/20120615223202/http://www.x86-64....
What is even worse is that I think Intel made the mistake of checking for canonical addresses and GP#ing on the SYSRET instruction itself.
See e.g. [1] for a more comprehensive overview concerning the handling of system calls on Linux.
[1] http://blog.packagecloud.io/eng/2016/04/05/the-definitive-gu...