aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorWang Weiyang <wangweiyang2@huawei.com>2022-01-14 14:05:42 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2022-01-15 16:30:27 +0200
commit06b2c3b08ce134c9555d91a1cf15cd03646cc287 (patch)
tree8efe1c53e245236a200f076b8c0dbdb1680b171b /tools/perf/scripts/python/export-to-postgresql.py
parentmemcg: better bounds on the memcg stats updates (diff)
downloadwireguard-linux-06b2c3b08ce134c9555d91a1cf15cd03646cc287.tar.xz
wireguard-linux-06b2c3b08ce134c9555d91a1cf15cd03646cc287.zip
mm/memcg: use struct_size() helper in kzalloc()
Make use of the struct_size() helper instead of an open-coded version, in order to avoid any potential type mistakes or integer overflows that, in the worst scenario, could lead to heap overflows. Link: https://github.com/KSPP/linux/issues/160 Link: https://lkml.kernel.org/r/20211216022024.127375-1-wangweiyang2@huawei.com Signed-off-by: Wang Weiyang <wangweiyang2@huawei.com> Reviewed-by: Muchun Song <songmuchun@bytedance.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Cc: Michal Hocko <mhocko@kernel.org> Cc: Vladimir Davydov <vdavydov.dev@gmail.com> 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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions