diff --git a/fs/namespace.c b/fs/namespace.c index 6b140594302b..3347c1d1decf 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -2708,7 +2708,7 @@ void *copy_mount_options(const void __user * data) * the remainder of the page. */ /* copy_from_user cannot cross TASK_SIZE ! */ - size = TASK_SIZE - (unsigned long)data; + size = TASK_SIZE - (unsigned long)untagged_addr(data); if (size > PAGE_SIZE) size = PAGE_SIZE;