No description
Find a file
Xiu Jianfeng d552cdde73 apparmor: Fix memleak in aa_simple_write_to_buffer()
commit 417ea9fe97 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: a6a52579e5 ("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>
2023-04-19 17:53:01 +08:00
arch x86/kprobes: Fix JNG/JNLE emulation 2023-04-19 17:52:59 +08:00
block block: don't allow the same type rq_qos add more than once 2023-04-19 17:52:53 +08:00
certs certs/blacklist_hashes.c: fix const confusion in certs blacklist 2023-04-19 17:50:34 +08:00
crypto KEYS: asymmetric: enforce SM2 signature use pkey algo 2023-04-19 17:52:55 +08:00
Documentation dt-bindings: usb: mtk-xhci: Allow wakeup interrupt-names to be optional 2023-04-19 17:53:00 +08:00
drivers can: ems_usb: fix clang's -Wunaligned-access warning 2023-04-19 17:53:00 +08:00
fs cifs: Fix memory leak on the deferred close 2023-04-19 17:52:59 +08:00
include locking/atomic: Make test_and_*_bit() ordered on failure 2023-04-19 17:52:59 +08:00
init stack: Declare {randomize_,}kstack_offset to fix Sparse warnings 2023-04-19 17:52:12 +08:00
ipc ipc/mqueue: use get_tree_nodev() in mqueue_get_tree() 2023-04-19 17:49:52 +08:00
kernel tracing: Have filter accept "common_cpu" to be consistent 2023-04-19 17:53:00 +08:00
lib crypto: lib/blake2s - reduce stack frame usage in self test 2023-04-19 17:52:56 +08:00
LICENSES LICENSES/dual/CC-BY-4.0: Git rid of "smart quotes" 2021-07-15 06:31:24 -06:00
mm mm/mmap.c: fix missing call to vm_unacct_memory in mmap_region 2023-04-19 17:52:39 +08:00
net rds: add missing barrier to release_refill 2023-04-19 17:52:58 +08:00
samples samples/landlock: Format with clang-format 2023-04-19 17:50:01 +08:00
scripts scripts/faddr2line: Fix vmlinux detection on arm64 2023-04-19 17:52:48 +08:00
security apparmor: Fix memleak in aa_simple_write_to_buffer() 2023-04-19 17:53:01 +08:00
sound ALSA: usb-audio: More comprehensive mixer map for ASUS ROG Zenith II 2023-04-19 17:53:00 +08:00
tools tools/thermal: Fix possible path truncations 2023-04-19 17:52:48 +08:00
usr usr/include/Makefile: add linux/nfc.h to the compile-test coverage 2023-04-19 17:44:58 +08:00
virt KVM: Unconditionally get a ref to /dev/kvm module when creating a VM 2023-04-19 17:52:58 +08:00
.clang-format clang-format: Update with the latest for_each macro list 2021-05-12 23:32:39 +02:00
.cocciconfig scripts: add Linux .cocciconfig for coccinelle 2016-07-22 12:13:39 +02:00
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl 2019-05-16 10:53:40 -07:00
.gitattributes .gitattributes: use 'dts' diff driver for dts files 2019-12-04 19:44:11 -08:00
.gitignore .gitignore: ignore only top-level modules.builtin 2021-05-02 00:43:35 +09:00
.mailmap mailmap: add Andrej Shadura 2021-10-18 20:22:03 -10:00
COPYING COPYING: state that all contributions really are covered by this file 2020-02-10 13:32:20 -08:00
CREDITS MAINTAINERS: Move Daniel Drake to credits 2021-09-21 08:34:58 +03:00
Kbuild kbuild: rename hostprogs-y/always to hostprogs/always-y 2020-02-04 01:53:07 +09:00
Kconfig kbuild: ensure full rebuild when the compiler is updated 2020-05-12 13:28:33 +09:00
MAINTAINERS Input: goodix - add a goodix.h header file 2023-04-19 17:50:59 +08:00
Makefile Linux 5.15.62 2023-04-19 17:52:58 +08:00
README Drop all 00-INDEX files from Documentation/ 2018-09-09 15:08:58 -06:00

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.