[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87bjuqsnd3.wl-kuninori.morimoto.gx@renesas.com>
Date: Tue, 25 Feb 2025 03:40:40 +0000
From: Kuninori Morimoto <kuninori.morimoto.gx@...esas.com>
To: Kees Cook <kees@...nel.org>
Cc: Andy Shevchenko <andy@...nel.org>,
linux-hardening@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: Question about strings of string_choices.h
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
Powered by blists - more mailing lists