Displaying 2 results from an estimated 2 matches for "2873,35".
Did you mean:
2773,35
2019 Jun 08
0
[PATCH libnbd v3] lib: Atomically update h->state when leaving the locked region.
...t;);\n" (permitted_state_text permitted_states);
+ pr " return false;\n";
+ pr " }\n";
+ pr " return true;\n";
+ pr "}\n";
+ pr "\n"
+ );
+
let ret_c_type, errcode =
match ret with
| RBool
@@ -2873,35 +2901,30 @@ let generate_lib_api_c () =
);
if permitted_states <> [] then (
pr " /* We can check the state outside the handle lock because the\n";
- pr " * the state is atomic.\n";
+ pr " * the state is atomic. However to avoid TOCT...
2019 Jun 08
4
[PATCH libnbd v3] lib: Atomically update h->state when leaving the locked region.
v1 was here:
https://www.redhat.com/archives/libguestfs/2019-June/thread.html#00055
v2 was here:
https://www.redhat.com/archives/libguestfs/2019-June/thread.html#00067
v3:
- Fix atomicly -> atomically in commit message.
- Fix a comment.
- Fix TOCTTOU: There is now an inline function generated called
<name>_is_permitted_state, and this is called twice, first outside
the