commit | e123386bc31bbf467dc558f2f919de0b8b4ba58c | [log] [tgz] |
---|---|---|
author | Chris Metcalf <cmetcalf@mellanox.com> | Mon Nov 07 14:32:02 2016 -0500 |
committer | Chris Metcalf <cmetcalf@mellanox.com> | Mon Nov 14 16:46:41 2016 -0500 |
tree | 547970f8b4d4738328445bacc2431753b3faf6e0 | |
parent | bc33b0ca11e3df467777a4fa7639ba488c9d4911 [diff] |
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: Kees Cook <keescook@chromium.org> Signed-off-by: Chris Metcalf <cmetcalf@mellanox.com>