]> git.baikalelectronics.ru Git - kernel.git/commit
module: Rework layout alignment to avoid BUG_ON()s
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 23 Feb 2022 09:01:00 +0000 (10:01 +0100)
committerLuis Chamberlain <mcgrof@kernel.org>
Tue, 5 Apr 2022 15:43:04 +0000 (08:43 -0700)
commit10d8b4f01115e7eb8218c802d4373bcbc1c9341c
tree335a6a86daae4db2d7bf305df6439fa4bf53dbb6
parent8667eb2e1b1a984b85980d76662503eae3c969b2
module: Rework layout alignment to avoid BUG_ON()s

Perform layout alignment verification up front and WARN_ON()
and fail module loading instead of crashing the machine.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/module/internal.h
kernel/module/main.c
kernel/module/strict_rwx.c