Skip to content

Comments

module: Taint the kernel when write-protecting ro_after_init fails#60

Closed
modules-kpd-app[bot] wants to merge 2 commits intomodules-next_basefrom
series/940956=>modules-next
Closed

module: Taint the kernel when write-protecting ro_after_init fails#60
modules-kpd-app[bot] wants to merge 2 commits intomodules-next_basefrom
series/940956=>modules-next

Conversation

@modules-kpd-app
Copy link

Pull request for series with
subject: module: Taint the kernel when write-protecting ro_after_init fails
version: 1
url: https://patchwork.kernel.org/project/linux-modules/list/?series=940956

@modules-kpd-app
Copy link
Author

Upstream branch: afa9286
series: https://patchwork.kernel.org/project/linux-modules/list/?series=940956
version: 1

@modules-kpd-app
Copy link
Author

Upstream branch: afa9286
series: https://patchwork.kernel.org/project/linux-modules/list/?series=940956
version: 1

@modules-kpd-app modules-kpd-app bot force-pushed the series/940956=>modules-next branch from 87c7db5 to 5519fcb Compare March 6, 2025 17:02
@modules-kpd-app
Copy link
Author

Upstream branch: 085c5e3
series: https://patchwork.kernel.org/project/linux-modules/list/?series=940956
version: 1

@modules-kpd-app modules-kpd-app bot force-pushed the series/940956=>modules-next branch from 5519fcb to 0d5ca8f Compare March 18, 2025 22:56
@modules-kpd-app modules-kpd-app bot force-pushed the modules-next_base branch from 7c2b408 to 2996654 Compare April 7, 2025 01:58
@modules-kpd-app
Copy link
Author

Upstream branch: 897c0b4
series: https://patchwork.kernel.org/project/linux-modules/list/?series=940956
version: 1

@modules-kpd-app modules-kpd-app bot force-pushed the series/940956=>modules-next branch from 0d5ca8f to 763fd3e Compare April 7, 2025 01:59
@modules-kpd-app modules-kpd-app bot force-pushed the modules-next_base branch from 2996654 to d4037eb Compare April 7, 2025 14:12
@modules-kpd-app
Copy link
Author

Upstream branch: b464e57
series: https://patchwork.kernel.org/project/linux-modules/list/?series=940956
version: 1

@modules-kpd-app modules-kpd-app bot force-pushed the series/940956=>modules-next branch from 763fd3e to cba9279 Compare April 7, 2025 14:13
@modules-kpd-app modules-kpd-app bot force-pushed the modules-next_base branch from d4037eb to 39f16b8 Compare May 5, 2025 08:22
@modules-kpd-app modules-kpd-app bot force-pushed the modules-next_base branch from 39f16b8 to d6fb02c Compare May 18, 2025 12:05
@modules-kpd-app
Copy link
Author

Upstream branch: a0b018a
series: https://patchwork.kernel.org/project/linux-modules/list/?series=940956
version: 1

@modules-kpd-app modules-kpd-app bot force-pushed the series/940956=>modules-next branch from cba9279 to 6b3b34d Compare May 18, 2025 12:06
@modules-kpd-app modules-kpd-app bot force-pushed the modules-next_base branch from d6fb02c to b788ac1 Compare June 2, 2025 09:03
In the unlikely case that setting ro_after_init data to read-only fails, it
is too late to cancel loading of the module. The loader then issues only
a warning about the situation. Given that this reduces the kernel's
protection, it was suggested to make the failure more visible by tainting
the kernel.

Allow TAINT_BAD_PAGE to be set per-module and use it in this case. The flag
is set in similar situations and has the following description in
Documentation/admin-guide/tainted-kernels.rst: "bad page referenced or some
unexpected page flags".

Adjust the warning that reports the failure to avoid references to internal
functions and to add information about the kernel being tainted, both to
match the style of other messages in the file. Additionally, merge the
message on a single line because checkpatch.pl recommends that for the
ability to grep for the string.

Suggested-by: Kees Cook <kees@kernel.org>
Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
@modules-kpd-app
Copy link
Author

Upstream branch: a0b018a
series: https://patchwork.kernel.org/project/linux-modules/list/?series=940956
version: 1

@modules-kpd-app modules-kpd-app bot force-pushed the series/940956=>modules-next branch from 6b3b34d to 784f0b9 Compare June 2, 2025 09:04
@modules-kpd-app modules-kpd-app bot force-pushed the modules-next_base branch from cbdca0b to 6a1a12c Compare June 25, 2025 20:39
@modules-kpd-app modules-kpd-app bot force-pushed the modules-next_base branch 2 times, most recently from 6381fa5 to aaa7ece Compare June 26, 2025 18:03
@dagomez137 dagomez137 force-pushed the modules-next_base branch 2 times, most recently from b4d1c4e to 61dc34e Compare July 4, 2025 19:48
@modules-kpd-app modules-kpd-app bot force-pushed the modules-next_base branch 2 times, most recently from 1df8185 to 9aab33d Compare July 8, 2025 19:00
@dagomez137 dagomez137 force-pushed the modules-next_base branch from 9aab33d to 99d099e Compare July 8, 2025 19:46
@modules-kpd-app modules-kpd-app bot force-pushed the modules-next_base branch from 99d099e to 3aed49d Compare July 8, 2025 19:56
@modules-kpd-app modules-kpd-app bot force-pushed the modules-next_base branch 3 times, most recently from 0299e02 to cdc6b9e Compare October 22, 2025 10:27
@modules-kpd-app modules-kpd-app bot closed this Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant