Unverified Commit 1a2048c7 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!13305 CVE-2024-50195

Merge Pull Request from: @ci-robot 
 
PR sync from: Gu Bowen <gubowen5@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/7LDLHJKU7GG5HPEIJQZISI2Q4D4HGUDL/ 
Jinjie Ruan (2):
  posix-clock: Fix missing timespec64 check in pc_clock_settime()
  posix-clock: posix-clock: Fix unbalanced locking in pc_clock_settime()


-- 
2.25.1
 
https://gitee.com/src-openeuler/kernel/issues/IB2YU9 
 
Link:https://gitee.com/openeuler/kernel/pulls/13305

 

Reviewed-by: default avatarYuan Can <yuancan@huawei.com>
Signed-off-by: default avatarYuan Can <yuancan@huawei.com>
parents fc52d496 3ca3229b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -303,6 +303,9 @@ static int pc_clock_settime(clockid_t id, const struct timespec64 *ts)
	struct posix_clock_desc cd;
	int err;

	if (!timespec64_valid_strict(ts))
		return -EINVAL;

	err = get_clock_desc(id, &cd);
	if (err)
		return err;