Guenter Roeck
2c7a5c5c48
openrisc: Define __ro_after_init to avoid crash
openrisc qemu tests fail with the following crash.
Unable to handle kernel access at virtual address 0xc0300c34
Oops#: 0001
CPU #: 0
PC: c016c710 SR: 0000ae67 SP: c1017e04
GPR00: 00000000 GPR01: c1017e04 GPR02: c0300c34 GPR03: c0300c34
GPR04: 00000000 GPR05: c0300cb0 GPR06: c0300c34 GPR07: 000000ff
GPR08: c107f074 GPR09: c0199ef4 GPR10: c1016000 GPR11: 00000000
GPR12: 00000000 GPR13: c107f044 GPR14: c0473774 GPR15: 07ce0000
GPR16: 00000000 GPR17: c107ed8a GPR18: 00009600 GPR19: c107f044
GPR20: c107ee74 GPR21: 00000003 GPR22: c0473770 GPR23: 00000033
GPR24: 000000bf GPR25: 00000019 GPR26: c046400c GPR27: 00000001
GPR28: c0464028 GPR29: c1018000 GPR30: 00000006 GPR31: ccf37483
RES: 00000000 oGPR11: ffffffff
Process swapper (pid: 1, stackpage=c1001960)
Stack: Stack dump [0xc1017cf8]:
sp + 00: 0xc1017e04
sp + 04: 0xc0300c34
sp + 08: 0xc0300c34
sp + 12: 0x00000000
...
Bisect points to commit d2ec3f77de
("pty: make ptmx file ops read-only
after init"). Fix by defining __ro_after_init for the openrisc
architecture, similar to parisc.
Fixes: d2ec3f77de
("pty: make ptmx file ops read-only after init")
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Stafford Horne <shorne@gmail.com>
2016-11-06 08:01:12 -08:00
..
2011-07-22 18:46:39 +02:00
2011-07-22 18:46:39 +02:00
2014-04-18 14:20:40 +02:00
2016-11-06 08:01:12 -08:00
2011-07-22 18:46:39 +02:00
2011-07-22 18:46:39 +02:00
2016-01-20 17:09:18 -08:00
2013-02-26 02:46:08 -05:00
2011-07-22 18:46:28 +02:00
2012-10-25 16:06:57 +02:00
2014-09-03 13:11:02 +00:00
2011-07-22 18:46:33 +02:00
2015-07-17 16:39:53 -07:00
2011-07-22 18:46:39 +02:00
2011-07-22 18:46:28 +02:00
2011-07-22 18:46:28 +02:00
2011-07-22 18:46:39 +02:00
2016-04-22 10:08:34 +01:00
2016-06-24 17:23:52 -07:00
2015-02-11 17:06:03 -08:00
2016-05-20 17:58:30 -07:00
2012-10-09 09:47:18 +01:00
2011-07-22 18:46:39 +02:00
2011-07-22 18:46:39 +02:00
2011-07-22 18:46:39 +02:00
2011-07-22 18:46:39 +02:00
2014-09-23 16:20:10 -04:00
2012-11-28 23:43:40 -05:00
2015-04-12 21:03:30 +02:00
2011-07-22 18:46:32 +02:00
2011-07-22 18:46:28 +02:00
2011-07-22 18:46:28 +02:00
2016-09-27 21:15:14 -04:00
2011-07-22 18:46:39 +02:00