AKASHI Takahiro 1f65c13efe arm64: avoid multiple evaluation of ptr in get_user/put_user()
get_user() is defined as a function macro in arm64, and trace_get_user()
calls it as followed:
     get_user(ch, ptr++);
Since the second parameter occurs twice in the definition, 'ptr++' is
unexpectedly evaluated twice and trace_get_user() will generate a bogus
string from user-provided one. As a result, some ftrace sysfs operations,
like "echo FUNCNAME > set_ftrace_filter," hit this case and eventually fail.
This patch fixes the issue both in get_user() and put_user().

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
[catalin.marinas@arm.com: added __user type annotation and s/optr/__p/]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2013-09-25 16:42:21 +01:00
..
2012-09-17 13:42:21 +01:00
2013-03-21 17:39:31 +00:00
2012-09-17 13:42:00 +01:00
2012-09-17 13:42:00 +01:00
2012-09-17 13:42:21 +01:00
2012-09-17 13:41:59 +01:00
2012-09-17 13:42:21 +01:00
2012-09-17 13:42:04 +01:00
2013-06-14 09:52:40 +01:00
2012-09-17 13:42:14 +01:00
2013-09-20 09:56:07 +01:00
2012-09-17 13:42:02 +01:00
2013-06-07 14:03:32 +01:00
2013-06-07 14:03:38 +01:00
2013-06-12 16:40:32 +01:00
2012-09-17 13:41:56 +01:00
2013-01-22 17:51:01 +00:00
2012-09-17 13:42:19 +01:00
2013-08-20 12:12:26 +01:00
2012-09-17 13:41:56 +01:00
2012-09-17 13:41:56 +01:00
2013-07-03 10:31:38 -07:00
2012-09-17 13:42:17 +01:00
2012-09-17 13:41:59 +01:00
2012-09-17 13:42:21 +01:00
2012-09-17 13:42:07 +01:00
2013-01-29 16:56:37 +00:00
2012-09-17 13:41:56 +01:00
2012-09-17 13:42:06 +01:00
2012-09-17 10:24:46 +01:00
2013-06-14 09:52:41 +01:00
2012-09-17 10:24:46 +01:00
2013-02-14 09:21:15 -05:00
2012-09-17 13:42:09 +01:00
2012-09-17 13:42:09 +01:00