News for hackers. Stuff that matters.
Re:Syscall.sh by jagrsw on Sunday July 21, 2024 @05:28AM (#41023718)
This seems useful, especially for CTF players and glibc/musl/.. devs.

PS: x64 is a bit ambiguous, as it was not uncommon to use it for Itanium ;)

Re:Syscall.sh by c0balt on Sunday July 21, 2024 @05:50AM (#41023819)
Besides the point, but are there any deployed Itanium systems left? They seem to have fizzled out somewhere around the 2010s.
Re:Syscall.sh by fullspectrumdev on Sunday July 21, 2024 @06:22AM (#41023957)
I come across them every so often! Usually stuff that just hasn’t been replaced yet because “it works fine” like most other legacy kit :)
Re:Syscall.sh by electroly on Sunday July 21, 2024 @05:14PM (#41028180)
Was it? I'm not saying you're wrong but I don't recall x64 ever referring to Itanium, not even colloquially. "IA-64" was the name that I remember.
Re:Syscall.sh by frereit on Sunday July 21, 2024 @05:42AM (#41023782)
Cool! I built something very similar but for Windows a while back: https://syscalls.win
Re:Syscall.sh by notepad0x90 on Sunday July 21, 2024 @05:53AM (#41023829)
nice work.

(hopefully) constructive feedback from me, it would be nice if you can list all the syscall items in one page for ctrl+f reasons. and if you can somehow enumerate and include the parameters they take that'd be really nice, but I know in windows land you don't have documentation of the function signatures, I get why you didn't do that already, it is super tedious.

Re:Syscall.sh by gkbrk on Sunday July 21, 2024 @06:11AM (#41023916)
Really cool. I always used the Chrome OS one [1] so far. I think yours could use manpage/documentation links from the syscall table too.

[1]: https://www.chromium.org/chromium-os/developer-library/refer...

Re:Syscall.sh by JonChesterfield on Sunday July 21, 2024 @06:17AM (#41023937)
x64 clobbers rcx and r11, I don't see that mentioned in the calling convention. I'm not confident whether the other architectures have additional clobbers.
Re:Syscall.sh by LegionMammal978 on Sunday July 21, 2024 @07:19AM (#41024259)
Indeed, in bytecode golfing, you can actually make use of SYSCALL's use of RCX for its return address: make a dummy syscall, then use RCX-relative addresses to refer to nearby data, since they're significantly shorter than RIP-relative addresses.

(Something I still don't know: On returning from a syscall, is it ever possible for RCX to contain something other than the syscall's return address on Linux, assuming that another process isn't explicitly overwriting it through ptrace or other means? Some people have vaguely hinted so in the case of an interruption by a signal, but I have failed to find any actual example of this.)

Re:Syscall.sh by boomskats on Sunday July 21, 2024 @06:50AM (#41024083)
How up to date is this? It seems to be missing a bunch of newer calls, at least for x64.
Re:Syscall.sh by efilife on Sunday July 21, 2024 @08:35PM (#41029776)
> Use the links above

Not a single link above on mobile