stress-ng: clone system calls randomly fail with -EINVAL on aarch64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
stress-ng (Ubuntu) |
Fix Released
|
High
|
Colin Ian King | ||
Xenial |
Fix Released
|
High
|
Colin Ian King |
Bug Description
[SRU] Xenial
Getting -EINVAL on stressors that call clone() on aarch64. Turns out that the clone() thread's stack has to be 16 byte aligned.
[REPODUCER + FIX]
For example, run:
stress-ng --vm-rw 1 -v
Without the fix, this can randomly exit with -EINVAL when the stack being passed to the clone() system call is not aligned on a 16 byte boundary.
With the fix, the clone() system call works fine and the stressor will run.
[REGRESSION POTENIAL]
Minimal. I have exhaustively tested this on multiple platforms/
Changed in stress-ng (Ubuntu): | |
status: | Fix Committed → Fix Released |
Fix committed, http:// kernel. ubuntu. com/git/ cking/stress- ng.git/ commit/ ?id=4887d3b4a40 31aab6b108e5700 7c3934ca5aab74