Skip to content

Commit

Permalink
usercopy: Disable CONFIG_HARDENED_USERCOPY_PAGESPAN
Browse files Browse the repository at this point in the history
CONFIG_HARDENED_USERCOPY_PAGESPAN has been mostly broken for a while,
and it has become hard to ignore with some recent scsi changes[1].
While there is a more complete series to replace it with better checks[2],
it should have more soak time in -next. Instead, disable the config now,
with the expectation that it will be fully replaced in the next kernel
release.

[1] https://lore.kernel.org/lkml/[email protected]/
[2] https://lore.kernel.org/linux-hardening/[email protected]/

Suggested-by: Christoph Hellwig <[email protected]>
Cc: "Matthew Wilcox (Oracle)" <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
  • Loading branch information
kees committed Mar 24, 2022
1 parent afcf544 commit ef3e787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ config HARDENED_USERCOPY
config HARDENED_USERCOPY_PAGESPAN
bool "Refuse to copy allocations that span multiple pages"
depends on HARDENED_USERCOPY
depends on EXPERT
depends on BROKEN
help
When a multi-page allocation is done without __GFP_COMP,
hardened usercopy will reject attempts to copy it. There are,
Expand Down

0 comments on commit ef3e787

Please sign in to comment.