From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Kees Cook <kees@kernel.org>
Cc: Andy Shevchenko <andy@kernel.org>,
linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Question about strings of string_choices.h
Date: Tue, 25 Feb 2025 03:40:40 +0000 [thread overview]
Message-ID: <87bjuqsnd3.wl-kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <202502241928.4405326B13@keescook>
Hi Kees
> > I would like to use string_choices helper, and want to add well used
> > but not yet supported strings. But before that I would like to ask one
> > thing about it.
> >
> > I wonder is it guaranteed that the strings were persist after the
> > function returned ? In normally, function local variable will disappear
> > when it returns from the function. But I'm not sure in case of
> > static inline const, etc.
> >
> > If it is guaranteed, I'm very happy.
>
> Yes, the compiler puts them in the .rodata section, so they will always
> be present.
Thanks. Nice to know !
Best regards
---
Kuninori Morimoto
prev parent reply other threads:[~2025-02-25 3:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-25 1:43 Kuninori Morimoto
2025-02-25 3:29 ` Kees Cook
2025-02-25 3:40 ` Kuninori Morimoto [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=87bjuqsnd3.wl-kuninori.morimoto.gx@renesas.com \
--to=kuninori.morimoto.gx@renesas.com \
--cc=andy@kernel.org \
--cc=kees@kernel.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@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®