summaryrefslogtreecommitdiff
path: root/usermux
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-05-22 00:52:29 +0200
committerJustus Winter <justus@gnupg.org>2016-05-22 14:05:15 +0200
commit60d14f5b3c4ea27af6f4220a15947c328bc888ee (patch)
tree66f3ff31a062972d9c9af3c9e10aaae2e62889ec /usermux
parent0ab3825f250486453892e3e18a702a44538bff6d (diff)
ext2fs: fix pager use-after-free
Previously, pagers had no reference for being part of a node, only for having a send right made for them. Hence we sometimes saw use-after-free errors if the kernel did give up that send right, typically while deleting files. Keep a weak reference as long as the pager is referenced by a node. * ext2fs/pager.c (pager_clear_user_data): Assert that 'pager' has been NULLed. (pager_dropweak): Drop the weak reference and NULL 'pager'. (diskfs_get_filemap): Simplify. Acquire a weak reference.
Diffstat (limited to 'usermux')
0 files changed, 0 insertions, 0 deletions