aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorQinglang Miao <miaoqinglang@huawei.com>2020-12-10 09:29:43 +0800
committerTejun Heo <tj@kernel.org>2020-12-16 10:10:32 -0500
commit2d18e54dd8662442ef5898c6bdadeaf90b3cebbc (patch)
tree62410b73261b6637ad0984221581500d85eefe09 /tools/perf/scripts/python/export-to-sqlite.py
parentcgroup/cgroup.c: replace 'of->kn->priv' with of_cft() (diff)
downloadlinux-2d18e54dd8662442ef5898c6bdadeaf90b3cebbc.tar.gz
linux-2d18e54dd8662442ef5898c6bdadeaf90b3cebbc.zip
cgroup: Fix memory leak when parsing multiple source parameters
A memory leak is found in cgroup1_parse_param() when multiple source parameters overwrite fc->source in the fs_context struct without free. unreferenced object 0xffff888100d930e0 (size 16): comm "mount", pid 520, jiffies 4303326831 (age 152.783s) hex dump (first 16 bytes): 74 65 73 74 6c 65 61 6b 00 00 00 00 00 00 00 00 testleak........ backtrace: [<000000003e5023ec>] kmemdup_nul+0x2d/0xa0 [<00000000377dbdaa>] vfs_parse_fs_string+0xc0/0x150 [<00000000cb2b4882>] generic_parse_monolithic+0x15a/0x1d0 [<000000000f750198>] path_mount+0xee1/0x1820 [<0000000004756de2>] do_mount+0xea/0x100 [<0000000094cafb0a>] __x64_sys_mount+0x14b/0x1f0 Fix this bug by permitting a single source parameter and rejecting with an error all subsequent ones. Fixes: 8d2451f4994f ("cgroup1: switch to option-by-option parsing") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com> Reviewed-by: Zefan Li <lizefan@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
2019-01-23 13:21:28 -0500'>2019-01-23hv_netvsc: Fix hash key value reset after other opsHaiyang Zhang4-7/+19 2019-01-23hv_netvsc: Refactor assignments of struct netvsc_device_infoHaiyang Zhang1-49/+85 2019-01-23hv_netvsc: Fix ethtool change hash key errorHaiyang Zhang1-6/+19 2019-01-23ravb: expand rx descriptor data to accommodate hw checksumSimon Horman1-5/+7 2019-01-22net: phy: Fixup GPLv2+ SPDX tags based on license textAndrew Lunn3-28/+5 2019-01-22net: fec: get regulator optionalStefan Agner1-1/+1 2019-01-22net/ipv6: lower the level of "link is not ready" messagesLubomir Rintel1-2/+2 2019-01-22net: altera_tse: fix connect_local_phy error pathAtsushi Nemoto1-1/+3 2019-01-22net: dpaa2: improve PTP Kconfig optionYangbo Lu1-2/+3 2019-01-22qede: Error recovery processTomer Tayar4-74/+314 2019-01-22qed: Add infrastructure for error detection and recoveryTomer Tayar11-16/+251 2019-01-22qed: Revise load sequence to avoid PCI errorsTomer Tayar7-112/+178 2019-01-22net/ipv6: don't return positive numbers when nothing was dumpedJakub Kicinski1-0/+2 2019-01-22net: ip_gre: use erspan key field for tunnel lookupLorenzo Bianconi3-13/+17 2019-01-22net: sun: cassini: Cleanup license conflictThomas Gleixner2-28/+2 2019-01-22can: flexcan: fix NULL pointer exception during bringupUwe Kleine-König1-1/+1 2019-01-22can: flexcan: fix 'passing zero to ERR_PTR()' warningYueHaibing1-1/+1 2019-01-22can: bcm: check timer values before ktime conversionOliver Hartkopp1-0/+27 2019-01-22can: dev: __can_get_echo_skb(): fix bogous check for non-existing skb by remo...Manfred Schlaegl1-14/+13 2019-01-21Linux 5.0-rc3v5.0-rc3Linus Torvalds1-1/+1 2019-01-20pstore/ram: Avoid allocation and leak of platform dataKees Cook1-6/+3 2019-01-20gcc-plugins: arm_ssp_per_task_plugin: fix for GCC 9+Ard Biesheuvel1-0/+18 2019-01-20gcc-plugins: arm_ssp_per_task_plugin: sign extend the SP maskArd Biesheuvel1-2/+3 2019-01-21fix int_sqrt64() for very large numbersFlorian La Roche1-1/+1 2019-01-20x86: uaccess: Inhibit speculation past access_ok() in user_access_begin()Will Deacon1-1/+1 2019-01-20bpf: in __bpf_redirect_no_mac pull mac only if presentWillem de Bruijn2-10/+12 2019-01-19virtio_net: bulk free tx skbsMichael S. Tsirkin1-6/+6 2019-01-19clang-format: Update .clang-format with the latest for_each macro listJason Gunthorpe1-1/+42 2019-01-19net: phy: phy driver features are mandatoryCamelia Groza2-2/+7 2019-01-19isdn: avm: Fix string plus integer warning from ClangNathan Chancellor1-1/+1 2019-01-19powerpc: chrp: Use of_node_is_type to access device_typeRob Herring1-2/+1 2019-01-18net/mlx5e: Fix cb_ident duplicate in indirect block registerEli Britstein1-13/+16 2019-01-18net/mlx5e: Fix wrong (zero) TX drop counter indication for representorTariq Toukan1-0/+1 2019-01-18net/mlx5e: Fix wrong error code return on FEC query failureShay Agroskin1-1/+4 2019-01-18net/mlx5e: Force CHECKSUM_UNNECESSARY for short ethernet framesCong Wang1-0/+13 2019-01-18tools: bpftool: Cleanup license messThomas Gleixner2-11/+1 2019-01-18bpf: fix inner map masking to prevent oob under speculationDaniel Borkmann1-2/+15