Re: [PATCH] module: Fix load failure when CONFIG_STRICT_MODULE_RWX is diabled

2019-08-20 Thread Jessica Yu
+++ He Zhe [14/08/19 09:56 +0800]: On 8/14/19 1:59 AM, Jessica Yu wrote: +++ zhe...@windriver.com [10/08/19 15:22 +0800]: From: He Zhe When loading modules with CONFIG_ARCH_HAS_STRICT_MODULE_RWX enabled and CONFIG_STRICT_MODULE_RWX disabled, the memory allocated for modules would not be pag

Re: [PATCH] module: Fix load failure when CONFIG_STRICT_MODULE_RWX is diabled

2019-08-13 Thread He Zhe
On 8/14/19 1:59 AM, Jessica Yu wrote: > +++ zhe...@windriver.com [10/08/19 15:22 +0800]: >> From: He Zhe >> >> When loading modules with CONFIG_ARCH_HAS_STRICT_MODULE_RWX enabled and >> CONFIG_STRICT_MODULE_RWX disabled, the memory allocated for modules would >> not be page-aligned and cause th

Re: [PATCH] module: Fix load failure when CONFIG_STRICT_MODULE_RWX is diabled

2019-08-13 Thread Jessica Yu
+++ zhe...@windriver.com [10/08/19 15:22 +0800]: From: He Zhe When loading modules with CONFIG_ARCH_HAS_STRICT_MODULE_RWX enabled and CONFIG_STRICT_MODULE_RWX disabled, the memory allocated for modules would not be page-aligned and cause the following BUG during frob_text. [ cut he

[PATCH] module: Fix load failure when CONFIG_STRICT_MODULE_RWX is diabled

2019-08-10 Thread zhe.he
From: He Zhe When loading modules with CONFIG_ARCH_HAS_STRICT_MODULE_RWX enabled and CONFIG_STRICT_MODULE_RWX disabled, the memory allocated for modules would not be page-aligned and cause the following BUG during frob_text. [ cut here ] kernel BUG at kernel/module.c:1907