update riscv64 patch

(cherry picked from commit 90ada69b75285d8d57e5e947154b1f091c9a1b8f)
This commit is contained in:
laokz 2024-05-30 14:31:58 +08:00 committed by openeuler-sync-bot
parent cb258bcb37
commit b1f863bc96
2 changed files with 17 additions and 1 deletions

View File

@ -23,3 +23,16 @@ diff -Nur a/include/tscore/ink_queue.h b/include/tscore/ink_queue.h
/* Layout of FREELIST_POINTER
*
* 0 ~ 47 bits : 48 bits, Virtual Address
diff --git a/iocore/eventsystem/UnixEventProcessor.cc b/iocore/eventsystem/UnixEventProcessor.cc
index 7980f08..1f9f30d 100644
--- a/iocore/eventsystem/UnixEventProcessor.cc
+++ b/iocore/eventsystem/UnixEventProcessor.cc
@@ -141,7 +141,7 @@ void
ThreadAffinityInitializer::setup_stack_guard(void *stack, int stackguard_pages)
{
#if !(defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__arm64__) || defined(__aarch64__) || \
- defined(__mips__) || defined(__powerpc64__))
+ defined(__mips__) || defined(__powerpc64__) || defined(__riscv))
#error Unknown stack growth direction. Determine the stack growth direction of your platform.
// If your stack grows upwards, you need to change this function and the calculation of stack_begin in do_alloc_stack.
#endif

View File

@ -1,7 +1,7 @@
%define _hardened_build 1
Name: trafficserver
Version: 9.2.3
Release: 2
Release: 3
Summary: Apache Traffic Server, a reverse, forward and transparent HTTP proxy cache
License: Apache-2.0
URL: https://trafficserver.apache.org/
@ -133,6 +133,9 @@ getent passwd ats >/dev/null || useradd -r -u 176 -g ats -d / -s /sbin/nologin -
%{_datadir}/pkgconfig/trafficserver.pc
%changelog
* Thu May 30 2024 laokz <zhangkai@iscas.ac.cn> - 9.2.3-3
- Update riscv64 patch
* Sun Apr 07 2024 wangkai <13474090681@163.com> - 9.2.3-2
- Fix CVE-2024-31309