Skip to content

Commit ef3e787

Browse files
committed
usercopy: Disable CONFIG_HARDENED_USERCOPY_PAGESPAN
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]>
1 parent afcf544 commit ef3e787

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ config HARDENED_USERCOPY
166166
config HARDENED_USERCOPY_PAGESPAN
167167
bool "Refuse to copy allocations that span multiple pages"
168168
depends on HARDENED_USERCOPY
169-
depends on EXPERT
169+
depends on BROKEN
170170
help
171171
When a multi-page allocation is done without __GFP_COMP,
172172
hardened usercopy will reject attempts to copy it. There are,

0 commit comments

Comments
 (0)