Re: [PATCH] arm64: Add config to limit user space to 47bits

From: Alexander Graf
Date: Thu Jul 14 2016 - 04:02:21 EST



> Am 14.07.2016 um 09:49 schrieb Zheng Xu <Zheng.Xu@xxxxxxx>:
>
> Sorry, I might misunderstand the issue. I thought there are still issues with master.
>
> I saw that you've mentioned there are pointers to .rodata. And I only fixed the heap. So I am just worried if there can be issues with .rodata. If pointers to .rodata are not tagged and used as js objects, it should be fine.

Please don't top post on kernel mailing lists.

The old Spidermonkey (which is used by couchdb) has some string allocation optimization in jsstr.cpp that directly pregenerates js strings in .rodata at compile time. Just try to run couchdb on a 48bit va aarch64 system and it will fall apart.

Fixing mozjs master doesn't really help here, since couchdb requires the ancient spidermonkey 1.8.5. An alternative to fixing that old js implementation would obviously also be to move couchdb to mozjs master.


Alex