Home
last modified time | relevance | path

Searched hist:c73275cf6834787ca090317f1d20dbfa3b7f05aa (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/security/apparmor/
H A Dapparmorfs.cdiff c73275cf6834787ca090317f1d20dbfa3b7f05aa Mon Aug 22 20:15:03 CDT 2022 Gaosheng Cui <cuigaosheng1@huawei.com> apparmor: fix a memleak in multi_transaction_new()

In multi_transaction_new(), the variable t is not freed or passed out
on the failure of copy_from_user(t->data, buf, size), which could lead
to a memleak.

Fix this bug by adding a put_multi_transaction(t) in the error path.

Fixes: 1dea3b41e84c5 ("apparmor: speed up transactional queries")
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>