summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorXiu Jianfeng <xiujianfeng@huawei.com>2022-06-14 12:00:01 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-08-25 12:37:53 +0300
commit8aab4295582eb397a125d2788b829fa62b88dbf7 (patch)
treea265563949932339cffcaef1e02fb59a27a5c1a4 /Documentation
parent2ceeb3296e9dde1d5772348046affcefdea605e2 (diff)
downloadlinux-8aab4295582eb397a125d2788b829fa62b88dbf7.tar.xz
apparmor: Fix memleak in aa_simple_write_to_buffer()
commit 417ea9fe972d2654a268ad66e89c8fcae67017c3 upstream. When copy_from_user failed, the memory is freed by kvfree. however the management struct and data blob are allocated independently, so only kvfree(data) cause a memleak issue here. Use aa_put_loaddata(data) to fix this issue. Fixes: a6a52579e52b5 ("apparmor: split load data into management struct and data blob") Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com> Signed-off-by: John Johansen <john.johansen@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions