From: Vineet Gupta <Vineet.Gupta1@synopsys.com>
To: Masahiro Yamada <masahiroy@kernel.org>,
"linux-snps-arc@lists.infradead.org"
<linux-snps-arc@lists.infradead.org>
Cc: Kate Stewart <kstewart@linuxfoundation.org>,
Kees Cook <keescook@chromium.org>, Arnd Bergmann <arnd@arndb.de>,
"Gustavo A. R. Silva" <gustavo@embeddedor.com>,
Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>,
Nick Desaulniers <ndesaulniers@google.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Allison Randal <allison@lohutok.net>
Subject: Re: [PATCH] arc: remove #ifndef CONFIG_AS_CFI_SIGNAL_FRAME
Date: Mon, 13 Apr 2020 05:38:27 +0000 [thread overview]
Message-ID: <eff00d87-3659-e036-3e24-3f8c9414fda9@synopsys.com> (raw)
In-Reply-To: <20200413020538.31322-1-masahiroy@kernel.org>
On 4/12/20 7:05 PM, Masahiro Yamada wrote:
> CONFIG_AS_CFI_SIGNAL_FRAME is never defined for ARC.
>
> Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
Where, how ?
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
>
> arch/arc/kernel/unwind.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/arch/arc/kernel/unwind.c b/arch/arc/kernel/unwind.c
> index 27ea64b1fa33..f87758a6851b 100644
> --- a/arch/arc/kernel/unwind.c
> +++ b/arch/arc/kernel/unwind.c
> @@ -1178,11 +1178,9 @@ int arc_unwind(struct unwind_frame_info *frame)
> #endif
>
> /* update frame */
> -#ifndef CONFIG_AS_CFI_SIGNAL_FRAME
> if (frame->call_frame
> && !UNW_DEFAULT_RA(state.regs[retAddrReg], state.dataAlign))
> frame->call_frame = 0;
> -#endif
> cfa = FRAME_REG(state.cfa.reg, unsigned long) + state.cfa.offs;
> startLoc = min_t(unsigned long, UNW_SP(frame), cfa);
> endLoc = max_t(unsigned long, UNW_SP(frame), cfa);
Actually there's more scope for cleanup here. The while signal frame stuff is not
relevant here at all as this is only kernel stack frames. So all of
frame->call_frame stuff is bogus at best.
I once had an branch with ~15 patches to clean this all up. Let me go find it.
Curious though about the CC list, is this patch part of a bigger series or some
such. So many people from all over suddenly interested in ARC ;-)
-Vineet
next prev parent reply other threads:[~2020-04-13 5:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-13 2:05 [PATCH] arc: remove #ifndef CONFIG_AS_CFI_SIGNAL_FRAME Masahiro Yamada
2020-04-13 5:38 ` Vineet Gupta [this message]
2020-04-13 6:01 ` Masahiro Yamada
2020-04-13 18:20 ` Nick Desaulniers
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=eff00d87-3659-e036-3e24-3f8c9414fda9@synopsys.com \
--to=vineet.gupta1@synopsys.com \
--cc=allison@lohutok.net \
--cc=arnd@arndb.de \
--cc=gustavo@embeddedor.com \
--cc=keescook@chromium.org \
--cc=kstewart@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-snps-arc@lists.infradead.org \
--cc=masahiroy@kernel.org \
--cc=ndesaulniers@google.com \
--cc=pankaj.laxminarayan.bharadiya@intel.com \
--cc=tglx@linutronix.de \
/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