Summary of this year's development & hack on OpenBSD/luna88k. Also rough explanation about KARL, one of new features on OpenBSD 6.2.
This short talk is held at NBUG meeting 2017-02.
7
リリース編:なんとか間に合いました
•OpenBSD 6.1, ReleasedApril 11, 2017
•OpenBSD 6.2, Released October 9, 2017
•最近は tree locked からリリースまでが短縮
•5⽉1日、11⽉1日より早くなった
•CD-ROM作らなくなったから?
•Luna88kだとリリースバイナリ作成に2週間 :-<
2017年のLUNA
8.
8
OpenBSD 6.2の新機能:KARL
•KARL: KernelAddress Randomized Link (KARL)
a new "link-kit" allows the .o files of the kernel to be
relinked in a random order, creating a unique kernel
for each boot.
•カーネルのメモリ配置を毎回変えてセキュリティを
高める
•ちなみに 6.0 以降は、libc も起動時に毎回ランダム
にリンクし直すようになっています
(luna88kでは起動が遅くなるのでコメントアウト運用:-)
Port maintainerから⾒た
10
KARL:ざっくりと解説(2)
•起動時、/etc/rc の最後で再度カーネルをリンク
•次回起動時はこのカーネルが使われる
:
# Re-linkthe kernel, placing the objects in a random order.
# Replace current with relinked kernel and inform root about it.
/usr/libexec/reorder_kernel &
:
cd $COMPILE_DIR/$KERNEL
make newbsd
make newinstall
echo "¥nKernel has been relinked and is active on next reboot.¥n"
/usr/libexec/reorder_kernel の最後
/etc/rc の最後
カーネルの .o ファイルがあるディレクトリで
make && make install する
… もう一度リンクすると何が変わるのか?