Skip to content

Commit 6e0718e

Browse files
committed
openkal-linux 0.16.1 and openkal-musl 0.20.1
The repair release, and the C library port that reaches it. Both GLOBAL addresses are the upstream tag archives and both CN addresses are the byte-identical gitcode assets, checked against the recorded sha256 for each. openkal-linux 0.16.1 places the program's thread-local image where the linker measured it; openkal-musl 0.20.1 moves its pin, which is what makes the repair reach a consumer of the C library.
1 parent 9f5492b commit 6e0718e

3 files changed

Lines changed: 50 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99

1010
### Added
1111

12+
- **`openkal-linux` 0.16.1 与 `openkal-musl` 0.20.1。** 0.16.1 修掉一处潜伏缺陷:
13+
线程局部存储的镜像被放在变量地址之下八字节(段声明 `p_align = 8, p_memsz = 56`
14+
时,链接器把变量放在 `tp - 56`,而区域按 16 对齐建成 64 深)。0.16.0 新增的
15+
实现自有 TLS 存储使该缺陷显形:两个带初值的线程局部变量互相读到对方的字节,
16+
C++ 的 `thread_local` 对象的 guard 字节落到非零邻居上而不构造 —— 由
17+
openkal-llvm-runtime 的探针在 runner 上报出。0.20.1 只移动锁定版本。
18+
GLOBAL/CN 与 sha256 的取法与前一行相同。
19+
1220
- **`openkal-linux` 0.16.0、`openkal-macos` 0.13.0、`openkal-windows` 0.11.0、
1321
`openkal-emscripten` 0.4.0、`openkal-opensbi` 0.8.2、`openkal-musl` 0.20.0。**
1422
六个同轮仓库的行:GLOBAL 为上游 tag 归档,CN 为字节一致的 gitcode 资源

‎pkgs/o/openkal-linux.lua‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ package = {
1919

2020
xpm = {
2121
linux = {
22+
["0.16.1"] = {
23+
url = {
24+
GLOBAL = "https://github.com/mcpplibs/openkal-linux/archive/refs/tags/0.16.1.tar.gz",
25+
CN = "https://gitcode.com/mcpp-res/openkal-linux/releases/download/0.16.1/openkal-linux-0.16.1.tar.gz",
26+
},
27+
sha256 = "55b85a9ee7df4eca1450af7bd08de8decd021202e45122dda1112e2995bd646c",
28+
},
2229
["0.16.0"] = {
2330
url = {
2431
GLOBAL = "https://github.com/mcpplibs/openkal-linux/archive/refs/tags/0.16.0.tar.gz",
@@ -140,6 +147,13 @@ package = {
140147
},
141148
},
142149
macosx = {
150+
["0.16.1"] = {
151+
url = {
152+
GLOBAL = "https://github.com/mcpplibs/openkal-linux/archive/refs/tags/0.16.1.tar.gz",
153+
CN = "https://gitcode.com/mcpp-res/openkal-linux/releases/download/0.16.1/openkal-linux-0.16.1.tar.gz",
154+
},
155+
sha256 = "55b85a9ee7df4eca1450af7bd08de8decd021202e45122dda1112e2995bd646c",
156+
},
143157
["0.16.0"] = {
144158
url = {
145159
GLOBAL = "https://github.com/mcpplibs/openkal-linux/archive/refs/tags/0.16.0.tar.gz",
@@ -261,6 +275,13 @@ package = {
261275
},
262276
},
263277
windows = {
278+
["0.16.1"] = {
279+
url = {
280+
GLOBAL = "https://github.com/mcpplibs/openkal-linux/archive/refs/tags/0.16.1.tar.gz",
281+
CN = "https://gitcode.com/mcpp-res/openkal-linux/releases/download/0.16.1/openkal-linux-0.16.1.tar.gz",
282+
},
283+
sha256 = "55b85a9ee7df4eca1450af7bd08de8decd021202e45122dda1112e2995bd646c",
284+
},
264285
["0.16.0"] = {
265286
url = {
266287
GLOBAL = "https://github.com/mcpplibs/openkal-linux/archive/refs/tags/0.16.0.tar.gz",

‎pkgs/o/openkal-musl.lua‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ package = {
6464

6565
xpm = {
6666
linux = {
67+
["0.20.1"] = {
68+
url = {
69+
GLOBAL = "https://github.com/mcpplibs/openkal-musl/archive/refs/tags/0.20.1.tar.gz",
70+
CN = "https://gitcode.com/mcpp-res/openkal-musl/releases/download/0.20.1/openkal-musl-0.20.1.tar.gz",
71+
},
72+
sha256 = "66e7e9954486eaea0bb7a9ece727b7a039ccfa3fb140038da7d8304b094d8e7c",
73+
},
6774
["0.20.0"] = {
6875
url = {
6976
GLOBAL = "https://github.com/mcpplibs/openkal-musl/archive/refs/tags/0.20.0.tar.gz",
@@ -283,6 +290,13 @@ package = {
283290
},
284291
},
285292
macosx = {
293+
["0.20.1"] = {
294+
url = {
295+
GLOBAL = "https://github.com/mcpplibs/openkal-musl/archive/refs/tags/0.20.1.tar.gz",
296+
CN = "https://gitcode.com/mcpp-res/openkal-musl/releases/download/0.20.1/openkal-musl-0.20.1.tar.gz",
297+
},
298+
sha256 = "66e7e9954486eaea0bb7a9ece727b7a039ccfa3fb140038da7d8304b094d8e7c",
299+
},
286300
["0.20.0"] = {
287301
url = {
288302
GLOBAL = "https://github.com/mcpplibs/openkal-musl/archive/refs/tags/0.20.0.tar.gz",
@@ -502,6 +516,13 @@ package = {
502516
},
503517
},
504518
windows = {
519+
["0.20.1"] = {
520+
url = {
521+
GLOBAL = "https://github.com/mcpplibs/openkal-musl/archive/refs/tags/0.20.1.tar.gz",
522+
CN = "https://gitcode.com/mcpp-res/openkal-musl/releases/download/0.20.1/openkal-musl-0.20.1.tar.gz",
523+
},
524+
sha256 = "66e7e9954486eaea0bb7a9ece727b7a039ccfa3fb140038da7d8304b094d8e7c",
525+
},
505526
["0.20.0"] = {
506527
url = {
507528
GLOBAL = "https://github.com/mcpplibs/openkal-musl/archive/refs/tags/0.20.0.tar.gz",

0 commit comments

Comments
 (0)