# std: fix os.linux.x86.syscall6 · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/a12ce28224f475bd97dc92bc8314ffff60fd6dd2)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: a12ce28224f475bd97dc92bc8314ffff60fd6dd2

Requested commit: a12ce28224f475bd97dc92bc8314ffff60fd6dd2

Commit: a12ce28224f475bd97dc92bc8314ffff60fd6dd2

Tree: b135e02c66ba8f7276817701f7d6468fe6eb0d8c

Author: mlugg

Committer: mlugg

## Message

```
std: fix os.linux.x86.syscall6

It was possible for `arg6` to be passed as an operand relative to esp.
In that case, the `push` at the top clobbered esp and hence made the
reference to arg6 invalid. This was manifesting in this branch as broken
stack traces on x86-linux due to an `mmap2` syscall accidentally passing
the page offset as non-zero!

This commit fixes a bug introduced in cb0e6d8aa.

```

## Parents

- [9901b9389ed963ff262d1ce4973029a570035f19](https://git.cafe/gitcafe/zig/commit/9901b9389ed963ff262d1ce4973029a570035f19?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/a12ce28224f475bd97dc92bc8314ffff60fd6dd2?format=markdown)
