]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - mm/usercopy.c
UBUNTU: Ubuntu-5.15.0-37.39
[mirror_ubuntu-jammy-kernel.git] / mm / usercopy.c
index b3de3c4eefba750836d2368a89ef42ed47995884..540968b481e7eb54f4a83ec38aaacde87b89f50c 100644 (file)
@@ -294,7 +294,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);