diff options
| author | Tobias Klauser <[email protected]> | 2023-03-08 10:51:26 +0000 |
|---|---|---|
| committer | Christian Brauner (Microsoft) <[email protected]> | 2023-03-08 11:31:34 +0000 |
| commit | a402f1e35313fc7ce2ca60f543c4402c2c7c3544 (patch) | |
| tree | 9de4756376f8c5d9a4d3999b830ca3ac8901415b /drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | |
| parent | Linux 6.3-rc1 (diff) | |
| download | kernel-a402f1e35313fc7ce2ca60f543c4402c2c7c3544.tar.gz kernel-a402f1e35313fc7ce2ca60f543c4402c2c7c3544.zip | |
fork: allow CLONE_NEWTIME in clone3 flags
Currently, calling clone3() with CLONE_NEWTIME in clone_args->flags
fails with -EINVAL. This is because CLONE_NEWTIME intersects with
CSIGNAL. However, CSIGNAL was deprecated when clone3 was introduced in
commit 7f192e3cd316 ("fork: add clone3"), allowing re-use of that part
of clone flags.
Fix this by explicitly allowing CLONE_NEWTIME in clone3_args_valid. This
is also in line with the respective check in check_unshare_flags which
allow CLONE_NEWTIME for unshare().
Fixes: 769071ac9f20 ("ns: Introduce Time Namespace")
Cc: Andrey Vagin <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: [email protected]
Signed-off-by: Tobias Klauser <[email protected]>
Reviewed-by: Christian Brauner <[email protected]>
Signed-off-by: Christian Brauner (Microsoft) <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c')
0 files changed, 0 insertions, 0 deletions
