Avi Kivity
50d65f1d86
smp: protect lifetime of function parameter to submit_to()
...
When submit_to() calls to a different core, and when the function to
be executed is a temporary (the usual case), we copy it to the heap for
the duration of execution. However when the function happens to execute
locally, we don't copy it, which can lead to a use-after-free if the function
defers.
Fix by detecting the case of local execution of a temporary function, and
copying it to the heap in that case.
2015-05-12 14:33:18 +03:00
..
2015-03-01 15:29:13 +02:00
2015-02-19 16:52:34 +02:00
2015-03-04 17:34:59 +01:00
2015-02-19 16:52:34 +02:00
2015-03-10 12:57:13 +02:00
2015-02-19 16:52:34 +02:00
2015-02-19 16:52:34 +02:00
2014-09-22 17:18:46 +03:00
2015-02-19 16:52:34 +02:00
2015-02-19 16:52:34 +02:00
2015-03-30 11:18:16 +03:00
2015-04-02 10:27:38 +03:00
2015-04-19 10:33:38 +03:00
2015-04-08 09:02:17 +03:00
2015-03-01 13:36:30 +02:00
2015-03-10 15:43:39 -03:00
2015-03-31 10:26:03 +03:00
2015-03-11 14:45:43 +02:00
2015-04-08 17:10:51 +03:00
2015-04-14 15:13:15 +03:00
2015-04-01 11:33:19 +03:00
2015-04-09 12:03:40 +03:00
2015-05-05 10:11:18 +03:00
2015-04-20 10:32:43 +03:00
2015-02-19 16:52:34 +02:00
2015-04-10 18:46:13 +02:00
2015-03-15 20:18:17 +02:00
2015-02-19 16:52:34 +02:00
2015-02-19 16:52:34 +02:00
2015-02-19 16:52:34 +02:00
2015-02-19 16:52:34 +02:00
2015-05-12 12:42:19 +03:00
2015-05-12 14:33:18 +03:00
2015-02-19 16:52:34 +02:00
2015-02-19 16:52:34 +02:00
2015-03-03 14:58:58 +02:00
2015-03-10 15:01:51 +02:00
2015-05-07 15:23:28 +03:00
2015-05-12 12:42:19 +03:00
2015-05-12 11:30:44 +02:00
2015-05-11 13:33:33 +03:00
2015-02-19 16:52:34 +02:00
2015-05-06 11:41:51 +03:00
2015-03-24 10:12:47 +02:00
2015-03-16 10:02:06 +02:00
2015-04-30 15:03:27 +03:00
2015-02-19 16:52:34 +02:00
2015-04-20 10:32:11 +03:00
2015-04-19 10:33:36 +03:00
2015-02-19 16:52:34 +02:00
2015-03-15 15:44:56 +02:00
2015-02-19 16:52:34 +02:00
2015-02-19 16:52:34 +02:00
2015-02-19 16:52:34 +02:00