All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Fredrik Markstrom" <fredrik.markstrom@est.tech>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH v2 2/3] DO NOT MERGE: arm64: perf: Add skip_vmio parameter to control device memory callchain guard
Date: Thu, 30 Apr 2026 11:55:35 +0000	[thread overview]
Message-ID: <20260430115536.1189DC2BCC4@smtp.kernel.org> (raw)
In-Reply-To: <20260430-master-with-pfix-v3-v2-2-bd526ec04a75@est.tech>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The commit is explicitly marked 'DO NOT MERGE' and introduces a module parameter to bypass a safety guard, intentionally triggering a kernel panic.
--

commit 955a332efd3c97ad086c64a2f8f7a0cd30dbaea7
Author: Fredrik Markstrom <fredrik.markstrom@est.tech>

DO NOT MERGE: arm64: perf: Add skip_vmio parameter to control device memory callchain guard

This commit introduces a module parameter to dynamically disable the device
memory guard during user callchain unwinding. Disabling this guard allows
perf to follow frame pointers into device memory, intentionally triggering a
synchronous external abort and kernel panic on arm64 for testing purposes.

> DO NOT MERGE: arm64: perf: Add skip_vmio parameter to control device memory callchain guard

Should this patch be dropped from the queue, given the subject is explicitly
marked "DO NOT MERGE"?

[ ... ]

> diff --git a/arch/arm64/kernel/stacktrace.c b/arch/arm64/kernel/stacktrace.c
> index 4a28df9bbe763..19b5251f214f2 100644
> --- a/arch/arm64/kernel/stacktrace.c
> +++ b/arch/arm64/kernel/stacktrace.c
> @@ -123,6 +124,10 @@ static bool range_is_device_mem(unsigned long start, unsigned long size)
>  	return false;
>  }
>  
> +static bool skip_vmio = true;
> +module_param_unsafe(skip_vmio, bool, 0600);
> +MODULE_PARM_DESC(skip_vmio, "Skip device memory during user callchain unwinding");
> +

Is it intended to merge this debug module parameter into the mainline kernel?

The commit message notes that disabling this guard intentionally triggers a
synchronous external abort and kernel panic.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260430-master-with-pfix-v3-v2-0-bd526ec04a75@est.tech?part=2

  reply	other threads:[~2026-04-30 11:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-30 10:55 [PATCH v2 0/3] arm64: perf: Skip device memory during user callchain unwinding Fredrik Markstrom
2026-04-30 10:55 ` [PATCH v2 1/3] " Fredrik Markstrom
2026-04-30 11:48   ` sashiko-bot
2026-05-01  9:54   ` Fredrik Markstrom
2026-04-30 10:55 ` [PATCH v2 2/3] DO NOT MERGE: arm64: perf: Add skip_vmio parameter to control device memory callchain guard Fredrik Markstrom
2026-04-30 11:55   ` sashiko-bot [this message]
2026-04-30 10:55 ` [PATCH v2 3/3] DO NOT MERGE: selftests: perf_events: Add device memory callchain unwinding test Fredrik Markstrom
2026-04-30 12:08   ` sashiko-bot
2026-05-18 15:06 ` [PATCH v2 0/3] arm64: perf: Skip device memory during user callchain unwinding Will Deacon
2026-05-19  8:25   ` Fredrik Markstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260430115536.1189DC2BCC4@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=fredrik.markstrom@est.tech \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=sashiko@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.