aboutsummaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorCarlos Llamas2022-03-25 23:24:54 +0000
committerGreg Kroah-Hartman2022-04-22 17:21:49 +0200
commita8a570c6d0fd9e96d52697133f33962bf08b445b (patch)
treefaa08efd9b9a0816c8e66c1136fb14a60cdfefbb /samples
parente5052bec7e3e460e47d77bbaf13e483b68c710be (diff)
binder: hold fd_install until allocating fds first
Al noted in [1] that fd_install can't be undone, so it must come last in the fd translation sequence, only after we've successfully reserved all descriptors and copied them into the transaction buffer. This patch takes Al's proposed fix in [2] and makes a few tweaks to fold the traversal of t->fd_fixups during release. [1] https://lore.kernel.org/driverdev-devel/YHnJwRvUhaK3IM0l@zeniv-ca.linux.org.uk [2] https://lore.kernel.org/driverdev-devel/YHo6Ln9VI1T7RmLK@zeniv-ca.linux.org.uk Cc: Christian Brauner <christian.brauner@ubuntu.com> Suggested-by: Al Viro <viro@zeniv.linux.org.uk> Acked-by: Todd Kjos <tkjos@google.com> Signed-off-by: Carlos Llamas <cmllamas@google.com> Link: https://lore.kernel.org/r/20220325232454.2210817-1-cmllamas@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions