summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2024-04-18 23:10:21 -0700
committerJohn Johansen <john.johansen@canonical.com>2026-08-10 22:49:42 -0700
commitc37e23f84a361aeb319edd60021604336c8cc57a (patch)
tree431b70f62dd48dea189955415f341bf910665d6a /include/linux/stackprotector.h
parent812aa0aa67d50c251d9788f1d225438e747507f0 (diff)
apparmor: fix race condition in label replacement
label replacement can result in the need for locking on two separate trees. Currently this is done by locking the tree to remove and then the tree to add to. For compound labels the race can result in the old label proxy pointing to the the new label that lost the race and that was not inserted in to the new tree. This does not break mediation, but it does result in a task that will not update its profile correctly on future mediation, and that will leak its refcount due to a circular reference in its proxy, resulting in a memory leak. Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions