Commit Graph
3 Commits
Author SHA1 Message Date
Konstantin BogomolovandgVisor bot 599facdeae Fix close_range syscall tests for Linux kernels <5.11
The CLOEXEC flag for close_range was added in 5.11; if CLOEXEC tests are run on
earlier versions they will return EINVAL.

PiperOrigin-RevId: 537160906
2023-06-01 16:37:00 -07:00
Konstantin BogomolovandgVisor bot be6bfe5598 Fix data race when using UNSHARE in close_range.
Also add test that fails under gotsan without the fix.

PiperOrigin-RevId: 433857741
2022-03-10 14:53:45 -08:00
Konstantin BogomolovandgVisor bot 03113543e2 Implement close_range.
Fixes #5500

PiperOrigin-RevId: 431454836
2022-02-28 09:37:03 -08:00