2.6系のmremapシステムコールの修正が二転三転している

http://d.hatena.ne.jp/gentoo/20040107#p3
上記の話の続き。過去に議論があって、DOSEMUでold_len==0を使用されていることが認められていたようだ。
http://marc.theaimsgroup.com/?l=linux-kernel&m=107395617022670&w=2
このメールでさらなる修正案が提示されている。


- /* Don't allow the degenerate cases */
- if (!old_len || !new_len)
+ /*
+ * We allow a zero old-len as a special case
+ * for DOS-emu "duplicate shm area" thing. But
+ * a zero new-len is nonsensical.
+ */
+ if (!new_len)
この修正に対応した-rcパッチ等はまだ出ていない。おそらくLinusがまだオーストラリアにいるからだろう。