summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2021-10-18 15:16:02 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2021-10-18 20:22:03 -1000
commit67823a544414def2a36c212abadb55b23bcda00c (patch)
treeac1b6f9e9e1e589695faa509f501696c636eacac /tools/perf/scripts/python
parent9037c57681d25e4dcc442d940d6dbe24dd31f461 (diff)
downloadkernel-67823a544414def2a36c212abadb55b23bcda00c.tar.gz
mm, slub: fix potential use-after-free in slab_debugfs_fops
When sysfs_slab_add failed, we shouldn't call debugfs_slab_add() for s because s will be freed soon. And slab_debugfs_fops will use s later leading to a use-after-free. Link: https://lkml.kernel.org/r/20210916123920.48704-5-linmiaohe@huawei.com Fixes: 64dd68497be7 ("mm: slub: move sysfs slab alloc/free interfaces to debugfs") Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Reviewed-by: Vlastimil Babka <vbabka@suse.cz> Cc: Andrey Konovalov <andreyknvl@gmail.com> Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com> Cc: Bharata B Rao <bharata@linux.ibm.com> Cc: Christoph Lameter <cl@linux.com> Cc: David Rientjes <rientjes@google.com> Cc: Faiyaz Mohammed <faiyazm@codeaurora.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: Kees Cook <keescook@chromium.org> Cc: Pekka Enberg <penberg@kernel.org> Cc: Roman Gushchin <guro@fb.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
'>2008-03-04[IPV6]: Make ndisc_flow_init() common for later use.YOSHIFUJI Hideaki 2008-03-04[IPV6] SYSCTL: complete initialization for sysctl table in subsystem code.YOSHIFUJI Hideaki 2008-03-03ipv6: fix inet6_init/icmpv6_cleanup sections mismatchAlexey Dobriyan 2008-02-29[NETNS]: Make icmpv6_sk per namespace.Denis V. Lunev 2008-02-29[NETNS]: icmp(v6)_sk should not pin a namespace.Denis V. Lunev 2008-02-29[ICMP]: Allocate data for __icmp(v6)_sk dynamically.Denis V. Lunev 2008-02-29[ICMP]: Pass proper ICMP socket into icmp(v6)_xmit_(un)lock.Denis V. Lunev 2008-02-29[ICMP]: Store sock rather than socket for ICMP flow control.Denis V. Lunev 2008-02-29[INET]: Remove struct net_proto_family* from _init calls.Denis V. Lunev 2008-02-05[ICMP]: Restore pskb_pull calls in receive functionHerbert Xu 2008-01-28[NETNS][IPV6]: inet6_addr - check ipv6 address per namespaceDaniel Lezcano 2008-01-28[NETNS][IPV6]: Make icmpv6_time sysctl per namespace.Daniel Lezcano 2008-01-28[NETNS][IPV6]: Make multiple instance of sysctl tables.Daniel Lezcano 2008-01-28[IPSEC]: Do not let packets pass when ICMP flag is offHerbert Xu 2008-01-28[IPSEC]: Fix reversed ICMP6 policy checkHerbert Xu 2008-01-28[IPSEC]: Add ICMP host relookup supportHerbert Xu 2008-01-28[IPv6] RAW: Compact the API for the kernelPavel Emelyanov 2008-01-21[IPV6]: ICMP6_MIB_OUTMSGS increment duplicatedWang Chen 2007-10-15[IPV6]: Replace sk_buff ** with sk_buff * in input handlersHerbert Xu 2007-10-10[IPV6]: Add ICMPMsgStats MIB (RFC 4293) [rev 2]David L Stevens