Get the latest tech news

Where Do the Bytes Go?


where do the bytes go? Or perhaps more precisely, how do they get there? What happens when you call write? trap The write function in libc sets things up and makes the system call, which probably enters somewhere in locore.s like Xsyscall_meltdown, but eventually we end up in syscall in arch/amd64/amd64/trap.c. Or we might be in svc_handler in arch/arm64/arm64/syscall.c.

The write function in libc sets things up and makes the system call, which probably enters somewhere in locore.s like Xsyscall_meltdown, but eventually we end up in syscall in arch/amd64/amd64/trap.c. There’s a full page of code just checking for debug flags and trace points and stack validity and also pledge and pins. There’s quite a bit going on here, but the short version is we’re setting up a reasonable transfer size, and getting a buffer from the cache for the correct disk location.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of bytes

bytes

Related news:

News photo

ByteCraft: Generating video games and animations through bytes

News photo

Wallbleed vulnerability unearths secrets of China's Great Firewall 125 bytes at a time

News photo

Wallbleed vulnerability unearths secrets of China's Great Firewall 125 bytes at a time