Re: [PATCH v11 25/25] x86/cet/shstk: Add arch_prctl functions for shadow stack

Florian Weimer
2020-08-28T06:24:24Z

* H. J. Lu:

> Can you think of ANY issues of passing more arguments to arch_prctl?

On x32, the glibc arch_prctl system call wrapper only passes two
arguments to the kernel, and applications have no way of detecting that.
musl only passes two arguments on all architectures. It happens to work
anyway with default compiler flags, but that's an accident.

Thanks,
Florian