aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorSeongJae Park <[email protected]>2021-11-20 00:43:49 +0000
committerLinus Torvalds <[email protected]>2021-11-20 18:35:54 +0000
commitdb7a347b26fe05d2e8c115bb24dfd908d0252bc3 (patch)
treeb123d99dbb6f6e783eaa1a9910d639fc82b57c4a /tools/perf/scripts/python/intel-pt-events.py
parentkasan: test: silence intentional read overflow warnings (diff)
downloadkernel-db7a347b26fe05d2e8c115bb24dfd908d0252bc3.tar.gz
kernel-db7a347b26fe05d2e8c115bb24dfd908d0252bc3.zip
mm/damon/dbgfs: use '__GFP_NOWARN' for user-specified size buffer allocation
Patch series "DAMON fixes". This patch (of 2): DAMON users can trigger below warning in '__alloc_pages()' by invoking write() to some DAMON debugfs files with arbitrarily high count argument, because DAMON debugfs interface allocates some buffers based on the user-specified 'count'. if (unlikely(order >= MAX_ORDER)) { WARN_ON_ONCE(!(gfp & __GFP_NOWARN)); return NULL; } Because the DAMON debugfs interface code checks failure of the 'kmalloc()', this commit simply suppresses the warnings by adding '__GFP_NOWARN' flag. Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Fixes: 4bc05954d007 ("mm/damon: implement a debugfs-based user space interface") Signed-off-by: SeongJae Park <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions