# 绕过编译器：让 IBM i 运行修改后的原生代码

Original title: Beyond the compiler: Making IBM i run modified native code

> Hacker News story 50437505 · language: zh · submitted 2026-11-10
> Web version: https://zeli.app/zh/story/50437505
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 15 · by [dnet](<https://news.ycombinator.com/user?id=dnet>) · 💬 2
[original](<https://blog.silentsignal.eu/2026/11/10/Beyond-the-compiler-Making-IBM-i-run-modified-native-code-PVV/>) · [HN discussion](<https://news.ycombinator.com/item?id=50437505>)

## Summary

我深入剖析了 IBM i 的 Program Validation Value (PVV) 机制，成功重构了其 32 字节的计算逻辑。研究发现，PVV 的 HMAC 密钥完全源自程序属性和固定的 Licensed Internal Code (LIC) 常量，缺乏独立的来源认证密钥。这意味着在 USER 状态下，通过重新计算 PVV 并修复校验，修改后的原生指令可以顺利通过 IBM 的 Restore Object List (QSRRSTO) API 恢复并执行。我通过实验验证了这一点，成功让一个被修改的 MEMDUMP 程序在普通用户权限下运行并读取了特定内存区域，揭示了该机制在特定场景下的可绕过性。

## Key quote

> IBM i 并不将应用程序视为一个碰巧包含 POWER 指令的普通文件。

---

## Cite

- Page: https://zeli.app/zh/story/50437505
- Date: 2026-11-10
- Source: blog.silentsignal.eu (https://blog.silentsignal.eu/2026/11/10/Beyond-the-compiler-Making-IBM-i-run-modified-native-code-PVV/)
- Hacker News: https://news.ycombinator.com/item?id=50437505

## Other languages

- en: https://zeli.app/story/50437505 · markdown: https://zeli.app/story/50437505.md
- ja: https://zeli.app/ja/story/50437505 · markdown: https://zeli.app/ja/story/50437505.md
- ko: https://zeli.app/ko/story/50437505 · markdown: https://zeli.app/ko/story/50437505.md
- de: https://zeli.app/de/story/50437505 · markdown: https://zeli.app/de/story/50437505.md
- es: https://zeli.app/es/story/50437505 · markdown: https://zeli.app/es/story/50437505.md
- ru: https://zeli.app/ru/story/50437505 · markdown: https://zeli.app/ru/story/50437505.md
