Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1314436

Re: [PATCH 4/5] x86/alternatives: Add an auxilary section

From "H. Peter Anvin" <hpa@zytor.com>
Newsgroups linux.kernel
Subject Re: [PATCH 4/5] x86/alternatives: Add an auxilary section
Date 2016-01-21 20:20 +0100
Message-ID <qTsVY-1dK-7@gated-at.bofh.it> (permalink)
References <qTsjf-I1-7@gated-at.bofh.it> <qTsjg-I1-9@gated-at.bofh.it> <qTsMi-19q-19@gated-at.bofh.it> <qTsMi-19q-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 01/21/16 11:07, Borislav Petkov wrote:
> On Thu, Jan 21, 2016 at 11:00:03AM -0800, H. Peter Anvin wrote:
>> NAK on this being part of .altinstr_replacement (if anything it ought to
>> simply be part of .text.init).  Otherwise fine.
> 
> You mean .init.text. Brian had it there in his original version. Out of
> curiosity, why don't you want it in .altinstr_replacement? To avoid any
> mixup?
> 

We covered that already:

.altinstr_replacement doesn't need to be +X (and shouldn't be, but
that's another patch.)

.altinstr_replacement is also "special" in that all the instructions are
offset and not run in place.  These are just plain code stubs and are
executed in place, as is.  The only reason to have a special section for
these at all is to avoid the "init code referenced from non-init-code"
warning.

	-hpa

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 4/5] x86/alternatives: Add an auxilary section Borislav Petkov <bp@alien8.de> - 2016-01-21 19:40 +0100
  Re: [PATCH 4/5] x86/alternatives: Add an auxilary section Borislav Petkov <bp@alien8.de> - 2016-01-21 20:10 +0100
    Re: [PATCH 4/5] x86/alternatives: Add an auxilary section "H. Peter Anvin" <hpa@zytor.com> - 2016-01-21 20:20 +0100
  Re: [PATCH 4/5] x86/alternatives: Add an auxilary section "H. Peter Anvin" <hpa@zytor.com> - 2016-01-21 20:10 +0100

csiph-web