カーネルのmalloc(9)にバッファ汚染防御(RedZone)を加えました

追加

# DEBUG_REDZONE enables buffer underflows and buffer overflows detection for
# malloc(9).
  • options DEBUG_REDZONE

commit log

Add buffer corruption protection (RedZone) for kernel's malloc(9).
カーネルmalloc(9)にバッファ汚染防御(RedZone)を加えました。
It detects both: buffer underflows and buffer overflows bugs at runtime (on free(9) and realloc(9)) and prints backtraces from where memory was allocated and from where it was freed.
これはどちらも検出します:実行時のバッファーアンダーフローとバッファーオーバーフローバグ(free(9)とrealloc(9)において)、メモリを確保と解放した場所のバックトレースの表示。

Tested by
kris

$FreeBSD: src/sys/conf/NOTES,v 1.1348 2006/01/31 11:09:21 pjd Exp $