diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-17 16:43:02 +0000 |
|---|---|---|
| committer | John Johansen <john.johansen@canonical.com> | 2026-10-29 08:30:53 -0700 |
| commit | 8f1f7f664c1822af34c5465f9820b4e39146786b (patch) | |
| tree | 1d8c5413193e30fe110da769812669c7ab359e06 /scripts/Makefile.thinlto | |
| parent | afe5d5a747393cb3d00795db31d7fce5108a766a (diff) | |
| download | linux-8f1f7f664c1822af34c5465f9820b4e39146786b.tar.gz linux-8f1f7f664c1822af34c5465f9820b4e39146786b.zip | |
apparmor: Fix namespace reference leak in __aa_find_or_create_ns()
When the namespace already exists, the reference taken by aa_get_ns() is
overwritten with ERR_PTR(-EEXIST) without being released. The caller in
apparmorfs.c clears ns on IS_ERR() and so cannot drop it either, leaking
the reference on raced mkdir of an existing namespace.
Release the reference before returning -EEXIST.
Fixes: 73688d1ed0b8 ("apparmor: refactor prepare_ns() and make usable from different views")
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
