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

!13323 [sync] PR-13302: CVE-2024-50195

Merge Pull Request from: @openeuler-sync-bot 
 

Origin pull request: 
https://gitee.com/openeuler/kernel/pulls/13302 
 
PR sync from: Gu Bowen <gubowen5@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/QE65NAQYRXZKI7NABS4K7W6OXRFW23AR/ 
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/13323

 

Reviewed-by: default avatarLi Nan <linan122@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parents bf0212da 7c47380f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -290,6 +290,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;