Re: [RFC PATCH v2 12/20] objtool: Warn about non __ro_after_init static key usage in .noinstr

From
Valentin Schneider <vschneid@redhat.com>
Date
2023-07-31 11:19:46
Also in
bpf, kvm, linux-doc, linux-kselftest, linux-mm, lkml, rcu
Reply to
Josh Poimboeuf, 2023-07-28
On 28/07/23 11:02, Josh Poimboeuf wrote:
On Thu, Jul 20, 2023 at 05:30:48PM +0100, Valentin Schneider wrote:
quoted
Later commits will depend on having no runtime-mutable text in early entry
code. (ab)use the .noinstr section as a marker of early entry code and warn
about static keys used in it that can be flipped at runtime.
Similar to my comment on patch 13, this could also use a short
justification for adding the feature, i.e. why runtime-mutable text
isn't going to be allowed in .noinstr.

Also, please add a short description of the warning (and why it exists)
to tools/objtool/Documentation/objtool.txt.
I had missed this, thanks for the pointer.
--
Josh
  
Thread (76 messages) 76 messages, 12 authors, last reply 2023-10-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help