Linux Serial subsystem development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Ian Rogers" <irogers@google.com>
Cc: linux-serial@vger.kernel.org
Subject: Re: [PATCH] tty: sysrq: Fix missing SYSRQ_ENABLE_DUMP mask on 'q' and 'd' keys
Date: Thu, 03 Dec 2026 18:13:20 +0000	[thread overview]
Message-ID: <sashiko-outbox-248358@kernel.org> (raw)
In-Reply-To: <20261203171729.442393-1-irogers@google.com>

> Both sysrq_show_timers_op ('q', show-all-timers) and sysrq_showlocks_op
> ('d', show-all-locks) are diagnostic dump operations, just like 'l',
> 'p', 't', 'w', 'm', and 'z', which all set SYSRQ_ENABLE_DUMP (0x8).
> 
> Because .enable_mask was omitted in sysrq_show_timers_op and
> sysrq_showlocks_op, it defaulted to 0. When /proc/sys/kernel/sysrq is
> configured with a bitmask (> 1) such as 0x8 (SYSRQ_ENABLE_DUMP),
> sysrq_on_mask(0) evaluates (sysrq_enabled & 0) == 0, preventing 'q' and
> 'd' from working via SysRq key combinations unless all SysRq functions
> are unconditionally enabled (sysrq == 1).
> 
> Found with Clang's require_explicit_initialization attribute on
> struct sysrq_key_op.
> 
> Fixes: 88ad0bf68905 ("[PATCH] Add SysRq-Q to print timer_list debug info")
> Fixes: de5097c2e73f ("[PATCH] mutex subsystem, more debugging code")
> Signed-off-by: Ian Rogers <irogers@google.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203171729.442393-1-irogers@google.com?part=1

      reply	other threads:[~2026-12-03 18:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 17:17 [PATCH] tty: sysrq: Fix missing SYSRQ_ENABLE_DUMP mask on 'q' and 'd' keys Ian Rogers
2026-12-03 18:13 ` sashiko-bot [this message]

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=sashiko-outbox-248358@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=irogers@google.com \
    --cc=linux-serial@vger.kernel.org \
    --cc=sashiko-reviews@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox