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

!13302 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/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/13302

 

Reviewed-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parents da9f57ed 28e223f0
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;