Files
meta-openembedded/meta-oe/recipes-dbs/postgresql/files/0001-Add-support-for-RISC-V.patch
T
Leon Anavi fb71bdf1cb postgresql: Upgrade 18.4 -> 18.6
Upgrade to release 18.6. It does not require a dump/restore when
upgrading from another 18.x release. However, it brings numerous
security fixes and the first three security entries below describe
configuration adjustments and data cleanups that you may need to
make after updating:

- Restrict logical decoding output plugins to the set specified by
  a new server parameter output_plugin_libraries (Jacob Champion)
  The PostgreSQL Project thanks Shishir Sharma for reporting
  this problem. (CVE-2026-14663)

- Fix psql to skip in-line data following a scripted COPY ... FROM
  STDIN command, even if the COPY fails before sending
  PGRES_COPY_IN (Tom Lane)
  The PostgreSQL Project thanks Alexander Lakhin for
  reporting this problem. (CVE-2026-6464)

- Cross-check the output row type of a portal running EXECUTE or
  FETCH (Robert Haas)
  The PostgreSQL Project thanks Ben Morris (in collaboration with
  Claude and Anthropic Research) and Peter Geoghegan for reporting
  this problem. (CVE-2026-16239)

- Fix buffer overrun in regexp match/split functions (Masahiko
  Sawada)
  The PostgreSQL Project thanks Francesco Verardi for reporting
  this problem. (CVE-2026-14664)

- Fix various places that mistakenly assumed they would not have
  to deal with more than FUNC_MAX_ARGS function arguments
  (Tom Lane)
  The PostgreSQL Project thanks Zheng Yu, ylwangtju, and Masahiko
  Sawada for reporting these problems. (CVE-2026-14679)

For more details and the full changelog have a look at:
https://www.postgresql.org/docs/release/18.6/

Note: 18.5 was never released, due to a regression discovered
post-wrap.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-09-21 16:21:39 -07:00

42 lines
1.4 KiB
Diff

From b61d11e4cd29671b88f43d114c69306639135e2f Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Sun, 20 Nov 2016 15:04:52 +0000
Subject: [PATCH] Add support for RISC-V.
The architecture is sufficiently similar to aarch64 that simply
extending the existing aarch64 macro works.
Upstream-Status: Pending
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
src/include/storage/s_lock.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h
index 2f73f9f..04b0f8a 100644
--- a/src/include/storage/s_lock.h
+++ b/src/include/storage/s_lock.h
@@ -243,11 +243,12 @@ spin_delay(void)
/*
* On ARM and ARM64, we use __sync_lock_test_and_set(int *, int) if available.
+ * On RISC-V, the same.
*
* We use the int-width variant of the builtin because it works on more chips
* than other widths.
*/
-#if defined(__arm__) || defined(__arm) || defined(__aarch64__)
+#if defined(__arm__) || defined(__arm) || defined(__aarch64__) || defined(__riscv)
#ifdef HAVE_GCC__SYNC_INT32_TAS
#define HAS_TEST_AND_SET
@@ -287,7 +288,7 @@ spin_delay(void)
#endif /* __aarch64__ */
#endif /* HAVE_GCC__SYNC_INT32_TAS */
-#endif /* __arm__ || __arm || __aarch64__ */
+#endif /* __arm__ || __arm || __aarch64__ || __riscv */
/* S/390 and S/390x Linux (32- and 64-bit zSeries) */