summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2022-05-20 18:10:13 +0100
committerChristoph Hellwig <hch@lst.de>2022-05-23 15:25:40 +0200
commit4a37f3dd9a83186cb88d44808ab35b78375082c9 (patch)
treeba5dc0010beb736ab375eecc72890bb71a4cb131 /tools/perf/scripts/python/bin/stackcollapse-report
parent82806744fd7dde603b64c151eeddaa4ee62193fd (diff)
downloadkernel-4a37f3dd9a83186cb88d44808ab35b78375082c9.tar.gz
dma-direct: don't over-decrypt memory
The original x86 sev_alloc() only called set_memory_decrypted() on memory returned by alloc_pages_node(), so the page order calculation fell out of that logic. However, the common dma-direct code has several potential allocators, not all of which are guaranteed to round up the underlying allocation to a power-of-two size, so carrying over that calculation for the encryption/decryption size was a mistake. Fix it by rounding to a *number* of pages, rather than an order. Until recently there was an even worse interaction with DMA_DIRECT_REMAP where we could have ended up decrypting part of the next adjacent vmalloc area, only averted by no architecture actually supporting both configs at once. Don't ask how I found that one out... Fixes: c10f07aa27da ("dma/direct: Handle force decryption for DMA coherent buffers in common code") Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: David Rientjes <rientjes@google.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
de82'>extable: skip sorting if the table is emptyUwe Kleine-König 2013-04-15extable: Flip the sorting messageBorislav Petkov 2012-04-19extable: Skip sorting if sorted at build time.David Daney 2011-05-20extable, core_kernel_data(): Make sure all archs define _sdataSteven Rostedt 2011-05-20core_kernel_data(): Fix architectures that do not define _sdataIngo Molnar 2011-05-18ftrace: Allow dynamically allocated function tracersSteven Rostedt 2009-04-05Merge branch 'tracing-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds 2009-04-05Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-module-an...Linus Torvalds 2009-03-31module: remove module_text_address()Rusty Russell 2009-03-22tracing, Text Edit Lock: Fix one sparse warning in kernel/extable.cDmitri Vorobiev 2009-03-20tracing, Text Edit Lock - kprobes architecture independent support, nommu fixIngo Molnar 2009-03-19symbols, stacktrace: look up init symbols after module symbolsIngo Molnar 2009-02-09tracing/function-graph-tracer: drop the kernel_text_address checkFrederic Weisbecker 2008-12-30Merge branch 'core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds 2008-12-08tracing/function-graph-tracer: introduce __notrace_funcgraph to filter specia...Frederic Weisbecker 2008-09-10debug: add notifier chain debugging, v2Arjan van de Ven 2008-01-29module: Don't report discarded init pages as kernel text.Rusty Russell