diff --git a/mm/usercopy.c b/mm/usercopy.c index ce83e0b137dd3f9292842d995aa5d0e8dd27e581..1f0dcff7bd23cc910b1b2481bfa35803a89ac8e8 100644 --- a/mm/usercopy.c +++ b/mm/usercopy.c @@ -296,7 +296,10 @@ static bool enable_checks __initdata = true; static int __init parse_hardened_usercopy(char *str) { - return strtobool(str, &enable_checks); + if (strtobool(str, &enable_checks)) + pr_warn("Invalid option string for hardened_usercopy: '%s'\n", + str); + return 1; } __setup("hardened_usercopy=", parse_hardened_usercopy);