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
..
2013-06-07 10:39:45 +00:00
2013-08-21 14:59:23 +02:00
2013-05-17 18:24:19 +01:00
2013-02-11 18:16:41 +00: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
2013-06-07 17:58:30 +01:00
2012-09-17 13:42:00 +01:00
2013-04-23 11:47:26 +01:00
2013-04-25 17:45:50 +01:00
2012-09-17 13:42:21 +01:00
2012-09-17 13:41:59 +01:00
2013-06-20 17:03:59 +01:00
2013-07-19 15:49:43 +01:00
2013-06-11 18:15:55 +01:00
2013-06-07 17:57:23 +01:00
2013-09-02 16:35:50 +01:00
2013-04-17 15:58:25 +01:00
2013-03-26 16:02:23 +00:00
2012-09-17 13:42:21 +01:00
2012-09-17 13:42:04 +01:00
2012-11-08 16:06:20 +00:00
2012-12-05 11:26:50 +00:00
2013-02-11 18:16:41 +00:00
2013-03-26 16:02:23 +00: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
2013-06-07 10:39:45 +00:00
2013-06-07 10:39:50 +00:00
2013-03-26 16:02:23 +00:00
2012-09-17 13:42:02 +01:00
2013-04-25 17:45:47 +01:00
2013-06-07 14:03:32 +01:00
2013-08-09 13:19:28 +01:00
2013-06-12 16:42:16 +01:00
2013-06-12 16:42:15 +01:00
2013-08-09 13:42:43 +01:00
2013-06-07 14:03:38 +01:00
2013-06-07 14:03:35 +01:00
2013-06-12 16:40:32 +01:00
2012-10-20 11:12:01 +01:00
2012-09-17 13:41:56 +01:00
2013-06-07 14:03:31 +01:00
2013-06-07 18:00:11 +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:57 +01:00
2013-01-29 16:56:17 +00:00
2012-09-17 13:41:57 +01:00
2012-09-17 13:41:56 +01:00
2013-08-22 11:44:41 +01:00
2012-09-17 13:41:56 +01:00
2013-08-22 11:44:41 +01:00
2013-09-03 10:18:02 +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-11-16 22:28:43 -05:00
2012-09-17 13:42:21 +01:00
2013-01-29 16:56:37 +00:00
2013-06-12 11:23:02 +01:00
2012-09-17 13:42:07 +01:00
2012-10-11 11:05:13 +01:00
2012-09-17 13:42:12 +01:00
2013-03-20 17:26:24 +00: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
2013-06-07 17:58:31 +01:00
2012-09-17 10:24:46 +01:00
2012-10-11 11:05:13 +01:00
2013-03-21 17:39:30 +00:00
2013-06-07 10:39:45 +00:00
2012-09-17 13:42:18 +01:00
2013-02-14 09:17:29 -05:00
2013-07-19 15:57:08 +01:00
2013-07-26 13:37:29 +01:00
2013-06-10 17:58:20 +01:00
2013-08-16 08:52:46 -07:00
2013-06-14 09:52:41 +01:00
2012-09-17 10:24:46 +01:00
2013-09-25 16:42:21 +01:00
2013-03-18 10:42:16 +00:00
2013-05-09 13:46:38 -04: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
2013-07-23 11:00:24 +01:00