aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl_binary.c
diff options
context:
space:
mode:
authorHimanshu Shukla <himanshu.sh@samsung.com>2016-11-10 16:17:02 +0530
committerCasey Schaufler <casey@schaufler-ca.com>2016-11-10 11:22:06 -0800
commitb437aba85b5c4689543409d8407c016749231aae (patch)
tree9f03c18907323f8703571b2e87dc31cd83907152 /kernel/sysctl_binary.c
parentSMACK: Do not apply star label in smack_setprocattr hook (diff)
downloadlinux-b437aba85b5c4689543409d8407c016749231aae.tar.gz
linux-b437aba85b5c4689543409d8407c016749231aae.zip
SMACK: Fix the memory leak in smack_cred_prepare() hook
Memory leak in smack_cred_prepare()function. smack_cred_prepare() hook returns error if there is error in allocating memory in smk_copy_rules() or smk_copy_relabel() function. If smack_cred_prepare() function returns error then the calling function should call smack_cred_free() function for cleanup. In smack_cred_free() function first credential is extracted and then all rules are deleted. In smack_cred_prepare() function security field is assigned in the end when all function return success. But this function may return before and memory will not be freed. Signed-off-by: Himanshu Shukla <himanshu.sh@samsung.com> Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions
net/dsa/b53/b53_common.c?id=774d977abfd024e6f73484544b9abe5a5cd62de7&follow=1'>net: dsa: b53: check for timeoutTom Rix1-0/+2 2020-08-21ARM64: vdso32: Install vdso32 from vdso_installStephen Boyd2-1/+2 2020-08-21afs: Fix NULL deref in afs_dynroot_depopulate()David Howells1-9/+11 2020-08-21mm, page_alloc: fix core hung in free_pcppages_bulk()Charan Teja Reddy1-0/+5 2020-08-21mm: include CMA pages in lowmem_reserve at bootDoug Berger1-1/+1 2020-08-21squashfs: avoid bio_alloc() failure with 1Mbyte blocksPhillip Lougher1-1/+5 2020-08-21uprobes: __replace_page() avoid BUG in munlock_vma_page()Hugh Dickins1-1/+1 2020-08-21kernel/relay.c: fix memleak on destroy relay channelWei Yongjun1-0/+1 2020-08-21romfs: fix uninitialized memory leak in romfs_dev_read()Jann Horn1-3/+1 2020-08-21mm/rodata_test.c: fix missing function declarationLeon Romanovsky1-0/+1 2020-08-21mm/vunmap: add cond_resched() in vunmap_pmd_rangeAneesh Kumar K.V1-0/+2 2020-08-21khugepaged: adjust VM_BUG_ON_MM() in __khugepaged_enter()Hugh Dickins1-1/+1 2020-08-21hugetlb_cgroup: convert comma to semicolonXu Wang1-2/+2 2020-08-21mailmap: add Andi KleenNick Desaulniers1-0/+1 2020-08-21core/entry: Respect syscall number rewritesThomas Gleixner1-1/+2 2020-08-21x86/entry/64: Do not use RDPID in paranoid entry to accomodate KVMSean Christopherson1-4/+6 2020-08-21MAINTAINERS: Update Mellanox and Cumulus Network addresses to new domainLeon Romanovsky2-29/+31 2020-08-21powerpc/perf/hv-24x7: Move cpumask file to top folder of hv-24x7 driverKajol Jain2-2/+11 2020-08-21powerpc/32s: Fix module loading failure when VMALLOC_END is over 0xf0000000Christophe Leroy1-2/+2 2020-08-21KVM: arm64: Print warning when cpu erratum can cause guests to deadlockRob Herring1-0/+4 2020-08-21arm64: Allow booting of late CPUs affected by erratum 1418040Marc Zyngier1-0/+2 2020-08-21arm64: Move handling of erratum 1418040 into C codeMarc Zyngier2-21/+34 2020-08-21kconfig: qconf: replace deprecated QString::sprintf() with QTextStreamMasahiro Yamada1-54/+62 2020-08-21kconfig: qconf: remove redundant help in the info viewMasahiro Yamada1-6/+1 2020-08-21kconfig: qconf: remove qInfo() to get back Qt4 supportMasahiro Yamada1-2/+0 2020-08-20tipc: call rcu_read_lock() in tipc_aead_encrypt_done()Xin Long1-0/+2 2020-08-20net/sched: act_ct: Fix skb double-free in tcf_ct_handle_fragments() error flowAlaa Hleihel1-1/+1 2020-08-20net: sctp: Fix negotiation of the number of data streams.David Laight1-2/+4 2020-08-20dt-bindings: net: renesas, ether: Improve schema validationGeert Uytterhoeven1-7/+15 2020-08-20gre6: Fix reception with IP6_TNL_F_RCV_DSCP_COPYMark Tomlinson1-1/+9 2020-08-20hv_netvsc: Fix the queue_mapping in netvsc_vf_xmit()Haiyang Zhang1-1/+1 2020-08-20hv_netvsc: Remove "unlikely" from netvsc_select_queueHaiyang Zhang1-1/+1 2020-08-20bpf: selftests: global_funcs: Check err_str before strstrYauheni Kaliuta1-1/+1 2020-08-20bpf: xdp: Fix XDP mode when no mode flags specifiedAndrii Nakryiko1-6/+8 2020-08-20selftests/bpf: Remove test_align leftoversVeronika Kabatova2-2/+1 2020-08-20tools/resolve_btfids: Fix sections with wrong alignmentJiri Olsa1-0/+36 2020-08-20net/smc: Prevent kernel-infoleak in __smc_diag_dump()Peilin Ye1-7/+9 2020-08-20sfc: fix build warnings on 32-bitEdward Cree1-4/+4 2020-08-20net: phy: mscc: Fix a couple of spelling mistakes "spcified" -> "specified"Kaige Li1-2/+2 2020-08-20riscv: Add SiFive drivers to rv32_defconfigBin Meng1-0/+5