Skip to content
Commit e123386b authored by Chris Metcalf's avatar Chris Metcalf
Browse files

tile: handle __ro_after_init like parisc does



The tile architecture already marks RO_DATA as read-only in
the kernel, so grouping RO_AFTER_INIT_DATA with RO_DATA, as is
done by default, means the kernel faults in init when it tries
to write to RO_AFTER_INIT_DATA.  For now, just arrange that
__ro_after_init is handled like __write_once, i.e. __read_mostly.

Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarChris Metcalf <cmetcalf@mellanox.com>
parent bc33b0ca
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment