mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 08:30:47 -09:00
https://www.python.org/downloads/release/python-3147/
https://docs.python.org/release/3.14.7/whatsnew/changelog.html
Rebased patch 0010 due to upstream commit:
04735deeb2 (diff-b9d5f29e160364d4616b4bcc3b04538fca8d1d1cca809af4196bcaf16c7c5d40)
Removed patches 0011-0015 which are included in this release.
Fixes CVE-2026-12003 and others.
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
56 lines
2.4 KiB
Diff
56 lines
2.4 KiB
Diff
From 528429e329047ee572248da0e1212f7cc1ef7d11 Mon Sep 17 00:00:00 2001
|
|
From: Pablo Galindo Salgado <Pablogsal@gmail.com>
|
|
Date: Thu, 25 Sep 2025 00:16:44 +0100
|
|
Subject: [PATCH] gh-139275: Fix compilation of
|
|
Modules/_remote_debugging_module.c when the system doesn't have
|
|
process_vm_readv (#139307)
|
|
|
|
Upstream: https://github.com/python/cpython/commit/1963e701001839389cfb1b11d803b0743f4705d7
|
|
|
|
[ Bernd Kuhls: ported to Python 3.14.7]
|
|
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
|
---
|
|
.../2025-09-24-17-32-52.gh-issue-139275.novrqf.rst | 2 ++
|
|
Modules/_remote_debugging_module.c | 2 +-
|
|
Python/remote_debug.h | 2 +-
|
|
3 files changed, 4 insertions(+), 2 deletions(-)
|
|
create mode 100644 Misc/NEWS.d/next/Core_and_Builtins/2025-09-24-17-32-52.gh-issue-139275.novrqf.rst
|
|
|
|
diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-09-24-17-32-52.gh-issue-139275.novrqf.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-09-24-17-32-52.gh-issue-139275.novrqf.rst
|
|
new file mode 100644
|
|
index 00000000000..8cb4b972ad6
|
|
--- /dev/null
|
|
+++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-09-24-17-32-52.gh-issue-139275.novrqf.rst
|
|
@@ -0,0 +1,2 @@
|
|
+Fix compilation problems in ``_remote_debugging_module.c`` when the system
|
|
+doesn't have ``process_vm_readv``. Patch by Pablo Galindo
|
|
diff --git a/Modules/_remote_debugging_module.c b/Modules/_remote_debugging_module.c
|
|
index b46538b76df..e86a27d5812 100644
|
|
--- a/Modules/_remote_debugging_module.c
|
|
+++ b/Modules/_remote_debugging_module.c
|
|
@@ -1329,7 +1329,7 @@ _Py_RemoteDebug_GetAsyncioDebugAddress(proc_handle_t* handle)
|
|
_PyErr_ChainExceptions1(exc);
|
|
}
|
|
}
|
|
-#elif defined(__linux__)
|
|
+#elif defined(__linux__) && HAVE_PROCESS_VM_READV
|
|
// On Linux, search for asyncio debug in executable or DLL
|
|
address = search_linux_map_for_section(handle, "AsyncioDebug", "_asyncio.cpython", NULL);
|
|
if (address == 0) {
|
|
diff --git a/Python/remote_debug.h b/Python/remote_debug.h
|
|
index 8f9b6cd4c49..b7d17a0f345 100644
|
|
--- a/Python/remote_debug.h
|
|
+++ b/Python/remote_debug.h
|
|
@@ -1174,7 +1174,7 @@
|
|
_PyErr_ChainExceptions1(exc);
|
|
}
|
|
}
|
|
-#elif defined(__linux__)
|
|
+#elif defined(__linux__) && HAVE_PROCESS_VM_READV
|
|
// On Linux, search for 'python' in executable or DLL
|
|
address = search_linux_map_for_section(handle, "PyRuntime", "python",
|
|
_Py_RemoteDebug_ValidatePyRuntimeCookie);
|
|
--
|
|
2.47.3
|
|
|