Re: [PATCH v2] modules: fix BUG when load module with rodata=n

2019-06-24 Thread Jessica Yu
+++ Yang Yingliang [20/06/19 10:18 +0800]: When loading a module with rodata=n, it causes an executing NX-protected page BUG. [ 32.379191] kernel tried to execute NX-protected page - exploit attempt? (uid: 0) [ 32.382917] BUG: unable to handle page fault for address: c0005000 [ 32

[PATCH v2] modules: fix BUG when load module with rodata=n

2019-06-19 Thread Yang Yingliang
When loading a module with rodata=n, it causes an executing NX-protected page BUG. [ 32.379191] kernel tried to execute NX-protected page - exploit attempt? (uid: 0) [ 32.382917] BUG: unable to handle page fault for address: c0005000 [ 32.385947] #PF: supervisor instruction fetch in