All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH vz10] selftests: syscall_user_dispatch: keep the frame pointer in sud_benchmark
Date: Wed, 23 Sep 2026 20:59:29 +0200	[thread overview]
Message-ID: <179018996909.3143442.9111479446736422514.b4-review@b4> (raw)
In-Reply-To: <20260908213300.2677462-1-eva.kurchatova@virtuozzo.com>

On Wed, 09 Sep 2026 00:32:59 +0300, Eva Kurchatova <eva.kurchatova@virtuozzo.com> wrote:
> The SIGSYS handler returns by hand: it loads __NR_rt_sigreturn, runs
> leaveq to drop its frame, adjusts the stack and issues the syscall. leaveq
> restores the stack from the frame pointer, so the sequence only works in a
> function that has one.
> 
> gcc omits the frame pointer from -O1 up, so the handler restores a stack
> that is not the signal frame and rt_sigreturn resumes at a bogus address:
> 
> [...]

Reviewed-by: Konstantin Khorenko <khorenko@virtuozzo.com>

-- 
Konstantin Khorenko <khorenko@virtuozzo.com>
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

  reply	other threads:[~2026-09-23 19:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-08 21:32 Eva Kurchatova
2026-09-23 18:59 ` Konstantin Khorenko [this message]
2026-09-23 19:23 ` Konstantin Khorenko

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=179018996909.3143442.9111479446736422514.b4-review@b4 \
    --to=khorenko@virtuozzo.com \
    --cc=devel@openvz.org \
    --cc=eva.kurchatova@virtuozzo.com \
    /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.