From: Christian Brauner <brauner@kernel.org>
To: Oleg Nesterov <oleg@redhat.com>,
Andrew Morton <akpm@linux-foundation.org>,
Henry Martin <bsdhenrymartin@gmail.com>
Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH] signal: initialize k_sigaction in sys_signal()
Date: Tue, 01 Dec 2026 13:56:49 +0100 [thread overview]
Message-ID: <20261201-stadt-beehrt-tarnt-fa3990bfee74@brauner> (raw)
In-Reply-To: <20261123091329.3658965-1-bsdhenrymartin@gmail.com>
On Mon, 23 Nov 2026 17:13:29 +0800, Henry Martin wrote:
> sys_signal() builds a struct k_sigaction on the stack and only sets
> sa_handler, sa_flags and sa_mask. sa_restorer (and, on sparc,
> ka_restorer) keep whatever the previous syscall left at the same stack
> slot, and do_sigaction() stores the whole struct into
> sighand->action[sig - 1].
>
> A 32-bit process can read sa_restorer back through compat
> rt_sigaction(oact), which always copies it to userspace. The leaked low
> 32 bits are stale kernel stack content, in practice a kernel text return
> address, so the two syscalls reveal the KASLR slide.
>
> [...]
Applied to the master branch of the vfs/vfs.git tree.
Patches in the master branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: master
[1/1] signal: initialize k_sigaction in sys_signal()
https://git.kernel.org/vfs/vfs/c/792614349ea5
prev parent reply other threads:[~2026-12-01 12:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 9:13 Henry Martin
2026-11-23 11:56 ` Oleg Nesterov
2026-12-01 12:56 ` Christian Brauner [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=20261201-stadt-beehrt-tarnt-fa3990bfee74@brauner \
--to=brauner@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=bsdhenrymartin@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oleg@redhat.com \
--cc=stable@vger.kernel.org \
/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
all inboxes | Powered by JetHome®