Only kdswap allowed to write pages to avoid stack overflow