提交 e3fb13b7 编写于 作者: L Linus Torvalds

Merge tag 'modules-for-v5.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux

Pull modules fixes from Jessica Yu:
 "Fix BUG_ON() being triggered in frob_text() due to non-page-aligned
  module sections"

* tag 'modules-for-v5.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux:
  modules: page-align module section allocations only for arches supporting strict module rwx
  modules: always page-align module section allocations
...@@ -65,9 +65,9 @@ ...@@ -65,9 +65,9 @@
/* /*
* Modules' sections will be aligned on page boundaries * Modules' sections will be aligned on page boundaries
* to ensure complete separation of code and data, but * to ensure complete separation of code and data, but
* only when CONFIG_STRICT_MODULE_RWX=y * only when CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y
*/ */
#ifdef CONFIG_STRICT_MODULE_RWX #ifdef CONFIG_ARCH_HAS_STRICT_MODULE_RWX
# define debug_align(X) ALIGN(X, PAGE_SIZE) # define debug_align(X) ALIGN(X, PAGE_SIZE)
#else #else
# define debug_align(X) (X) # define debug_align(X) (X)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册