aboutsummaryrefslogtreecommitdiffstats
path: root/rust/alloc/alloc.rs
diff options
context:
space:
mode:
authorFedor Pchelkin <[email protected]>2024-02-01 14:24:48 +0000
committerJohn Johansen <[email protected]>2024-05-10 15:32:35 +0000
commit2bc73505a5cd2a18a7a542022722f136c19e3b87 (patch)
treefc10914b179c6f2ab2af130e758a51d7d8f0249f /rust/alloc/alloc.rs
parentapparmor: Fix null pointer deref when receiving skb during sock creation (diff)
downloadkernel-2bc73505a5cd2a18a7a542022722f136c19e3b87.tar.gz
kernel-2bc73505a5cd2a18a7a542022722f136c19e3b87.zip
apparmor: use kvfree_sensitive to free data->data
Inside unpack_profile() data->data is allocated using kvmemdup() so it should be freed with the corresponding kvfree_sensitive(). Also add missing data->data release for rhashtable insertion failure path in unpack_profile(). Found by Linux Verification Center (linuxtesting.org). Fixes: e025be0f26d5 ("apparmor: support querying extended trusted helper extra data") Cc: [email protected] Signed-off-by: Fedor Pchelkin <[email protected]> Signed-off-by: John Johansen <[email protected]>
Diffstat (limited to 'rust/alloc/alloc.rs')
0 files changed, 0 insertions, 0 deletions