* Option CONFIG_DEBUG_SET_MODULE_RONX not working for kernel 3.10
@ 2014-08-14 10:24 Chetan Nanda
2014-08-14 17:19 ` Nathan Lynch
0 siblings, 1 reply; 7+ messages in thread
From: Chetan Nanda @ 2014-08-14 10:24 UTC (permalink / raw)
To: linux-arm-kernel
Hi,
I am trying to enable 'CONFIG_DEBUG_SET_MODULE_RONX' config option on
3.10 kernel via writing CONFIG_DEBUG_SET_MODULE_RONX=y at the end of
board specific config file.
But .config generated after kernel build do not have this option enabled.
Do I need to enable any other option also before enabling this one?
Thanks,
Chetan Nanda
^ permalink raw reply [flat|nested] 7+ messages in thread
* Option CONFIG_DEBUG_SET_MODULE_RONX not working for kernel 3.10
@ 2014-08-14 11:16 Chetan Nanda
2014-08-14 13:38 ` Valdis.Kletnieks at vt.edu
0 siblings, 1 reply; 7+ messages in thread
From: Chetan Nanda @ 2014-08-14 11:16 UTC (permalink / raw)
To: kernelnewbies
Hi,
I am trying to enable 'CONFIG_DEBUG_SET_MODULE_RONX' config option on
3.10 kernel (for ARM arch) via writing CONFIG_DEBUG_SET_MODULE_RONX=y
at the end of
board specific config file.
But .config generated after kernel build do not have this option enabled.
Do I need to enable any other option also before enabling this one?
Thanks,
Chetan Nanda
^ permalink raw reply [flat|nested] 7+ messages in thread
* Option CONFIG_DEBUG_SET_MODULE_RONX not working for kernel 3.10
2014-08-14 11:16 Chetan Nanda
@ 2014-08-14 13:38 ` Valdis.Kletnieks at vt.edu
2014-08-15 10:49 ` Paul Bolle
0 siblings, 1 reply; 7+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2014-08-14 13:38 UTC (permalink / raw)
To: kernelnewbies
On Thu, 14 Aug 2014 16:46:22 +0530, Chetan Nanda said:
> Hi,
>
> I am trying to enable 'CONFIG_DEBUG_SET_MODULE_RONX' config option on
> 3.10 kernel (for ARM arch) via writing CONFIG_DEBUG_SET_MODULE_RONX=y
> at the end of
> board specific config file.
>
> But .config generated after kernel build do not have this option enabled.
>
> Do I need to enable any other option also before enabling this one?
Go into 'make menuconfig', Enter a '/'. In the textbox, enter a substring
of the symbol (I entered 'MODULE_RONX').
At least on x86_64, this shows me:
x Symbol: DEBUG_SET_MODULE_RONX [=y] x
x Type : boolean x
x Prompt: Set loadable kernel module data as NX and text as RO x
x Location: x
x (1) -> Kernel hacking x
x Defined at arch/x86/Kconfig.debug:112 x
x Depends on: MODULES [=y]
Perhaps it's different on ARM - seems pretty silly to enable MODULE_RONX
if your kernel doesn't have CONFIG_MODULES=y in the build.
But in general, you should *NOT* simply edit the config file, because
that does *not* do any checking of select/depend as you make the change.
Then when you actually make the kernel, it *will* re-drive the select/depend
logic, and convert the provided .config to a self-consistent form. Of course,
there is zero guarantee that the self-consistent form corresponds to your
intentions....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140814/8ec6fde9/attachment.bin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Option CONFIG_DEBUG_SET_MODULE_RONX not working for kernel 3.10
2014-08-14 10:24 Option CONFIG_DEBUG_SET_MODULE_RONX not working for kernel 3.10 Chetan Nanda
@ 2014-08-14 17:19 ` Nathan Lynch
2014-08-17 7:55 ` Chetan Nanda
0 siblings, 1 reply; 7+ messages in thread
From: Nathan Lynch @ 2014-08-14 17:19 UTC (permalink / raw)
To: linux-arm-kernel
On 08/14/2014 05:24 AM, Chetan Nanda wrote:
> Hi,
>
> I am trying to enable 'CONFIG_DEBUG_SET_MODULE_RONX' config option on
> 3.10 kernel via writing CONFIG_DEBUG_SET_MODULE_RONX=y at the end of
> board specific config file.
>
> But .config generated after kernel build do not have this option enabled.
That feature appears to have been added well after 3.10, so unless
you've backported it, this is expected behavior.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Option CONFIG_DEBUG_SET_MODULE_RONX not working for kernel 3.10
2014-08-14 13:38 ` Valdis.Kletnieks at vt.edu
@ 2014-08-15 10:49 ` Paul Bolle
2014-08-17 7:57 ` Chetan Nanda
0 siblings, 1 reply; 7+ messages in thread
From: Paul Bolle @ 2014-08-15 10:49 UTC (permalink / raw)
To: kernelnewbies
On Thu, 2014-08-14 at 09:38 -0400, Valdis Kletnieks wrote:
> On Thu, 14 Aug 2014 16:46:22 +0530, Chetan Nanda said:
> > I am trying to enable 'CONFIG_DEBUG_SET_MODULE_RONX' config option on
> > 3.10 kernel (for ARM arch) via writing CONFIG_DEBUG_SET_MODULE_RONX=y
> > at the end of
> > board specific config file.
> >
> > But .config generated after kernel build do not have this option enabled.
> >
> > Do I need to enable any other option also before enabling this one?
>
> Go into 'make menuconfig', Enter a '/'. In the textbox, enter a substring
> of the symbol (I entered 'MODULE_RONX').
>
> At least on x86_64, this shows me:
>
> x Symbol: DEBUG_SET_MODULE_RONX [=y] x
> x Type : boolean x
> x Prompt: Set loadable kernel module data as NX and text as RO x
> x Location: x
> x (1) -> Kernel hacking x
> x Defined at arch/x86/Kconfig.debug:112 x
> x Depends on: MODULES [=y]
>
> Perhaps it's different on ARM - seems pretty silly to enable MODULE_RONX
> if your kernel doesn't have CONFIG_MODULES=y in the build.
DEBUG_SET_MODULE_RONX was added for ARM in v3.14:
$ git grep -nw DEBUG_SET_MODULE_RONX v3.13
v3.13:arch/s390/Kconfig.debug:32:config DEBUG_SET_MODULE_RONX
v3.13:arch/x86/Kconfig.debug:103:config DEBUG_SET_MODULE_RONX
$ git grep -nw DEBUG_SET_MODULE_RONX v3.14
v3.14:arch/arm/Kconfig.debug:1198:config DEBUG_SET_MODULE_RONX
v3.14:arch/s390/Kconfig.debug:32:config DEBUG_SET_MODULE_RONX
v3.14:arch/x86/Kconfig.debug:103:config DEBUG_SET_MODULE_RONX
See commit dca9aa92fc7c ("ARM: add DEBUG_SET_MODULE_RONX option to
Kconfig"). So using that Kconfig symbol in v3.10 is pointless (for ARM).
> But in general, you should *NOT* simply edit the config file, because
> that does *not* do any checking of select/depend as you make the change.
>
> Then when you actually make the kernel, it *will* re-drive the select/depend
> logic, and convert the provided .config to a self-consistent form.
And, as Chetan noticed, it will also drop Kconfig symbols that are
unknown for that build (as, in this case, DEBUG_SET_MODULE_RONX).
> Of course,
> there is zero guarantee that the self-consistent form corresponds to your
> intentions....
Paul Bolle
^ permalink raw reply [flat|nested] 7+ messages in thread
* Option CONFIG_DEBUG_SET_MODULE_RONX not working for kernel 3.10
2014-08-14 17:19 ` Nathan Lynch
@ 2014-08-17 7:55 ` Chetan Nanda
0 siblings, 0 replies; 7+ messages in thread
From: Chetan Nanda @ 2014-08-17 7:55 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Aug 14, 2014 at 10:49 PM, Nathan Lynch <Nathan_Lynch@mentor.com> wrote:
> On 08/14/2014 05:24 AM, Chetan Nanda wrote:
>> Hi,
>>
>> I am trying to enable 'CONFIG_DEBUG_SET_MODULE_RONX' config option on
>> 3.10 kernel via writing CONFIG_DEBUG_SET_MODULE_RONX=y at the end of
>> board specific config file.
>>
>> But .config generated after kernel build do not have this option enabled.
>
> That feature appears to have been added well after 3.10, so unless
> you've backported it, this is expected behavior.
>
Hi Nathan,
Thanks for you mail, It seems that support is there in 3.10 kernel
(atleast module.c file contains this flag) could be that CONFIG
support for ARM is missing,
As there is no entry for this flag in arm/Kconfig.debug.
Thanks,
Chetan Nanda
^ permalink raw reply [flat|nested] 7+ messages in thread
* Option CONFIG_DEBUG_SET_MODULE_RONX not working for kernel 3.10
2014-08-15 10:49 ` Paul Bolle
@ 2014-08-17 7:57 ` Chetan Nanda
0 siblings, 0 replies; 7+ messages in thread
From: Chetan Nanda @ 2014-08-17 7:57 UTC (permalink / raw)
To: kernelnewbies
On Fri, Aug 15, 2014 at 4:19 PM, Paul Bolle <pebolle@tiscali.nl> wrote:
> On Thu, 2014-08-14 at 09:38 -0400, Valdis Kletnieks wrote:
>> On Thu, 14 Aug 2014 16:46:22 +0530, Chetan Nanda said:
>> > I am trying to enable 'CONFIG_DEBUG_SET_MODULE_RONX' config option on
>> > 3.10 kernel (for ARM arch) via writing CONFIG_DEBUG_SET_MODULE_RONX=y
>> > at the end of
>> > board specific config file.
>> >
>> > But .config generated after kernel build do not have this option enabled.
>> >
>> > Do I need to enable any other option also before enabling this one?
>>
>> Go into 'make menuconfig', Enter a '/'. In the textbox, enter a substring
>> of the symbol (I entered 'MODULE_RONX').
>>
>> At least on x86_64, this shows me:
>>
>> x Symbol: DEBUG_SET_MODULE_RONX [=y] x
>> x Type : boolean x
>> x Prompt: Set loadable kernel module data as NX and text as RO x
>> x Location: x
>> x (1) -> Kernel hacking x
>> x Defined at arch/x86/Kconfig.debug:112 x
>> x Depends on: MODULES [=y]
>>
>> Perhaps it's different on ARM - seems pretty silly to enable MODULE_RONX
>> if your kernel doesn't have CONFIG_MODULES=y in the build.
>
> DEBUG_SET_MODULE_RONX was added for ARM in v3.14:
> $ git grep -nw DEBUG_SET_MODULE_RONX v3.13
> v3.13:arch/s390/Kconfig.debug:32:config DEBUG_SET_MODULE_RONX
> v3.13:arch/x86/Kconfig.debug:103:config DEBUG_SET_MODULE_RONX
> $ git grep -nw DEBUG_SET_MODULE_RONX v3.14
> v3.14:arch/arm/Kconfig.debug:1198:config DEBUG_SET_MODULE_RONX
> v3.14:arch/s390/Kconfig.debug:32:config DEBUG_SET_MODULE_RONX
> v3.14:arch/x86/Kconfig.debug:103:config DEBUG_SET_MODULE_RONX
>
> See commit dca9aa92fc7c ("ARM: add DEBUG_SET_MODULE_RONX option to
> Kconfig"). So using that Kconfig symbol in v3.10 is pointless (for ARM).
>
>> But in general, you should *NOT* simply edit the config file, because
>> that does *not* do any checking of select/depend as you make the change.
>>
>> Then when you actually make the kernel, it *will* re-drive the select/depend
>> logic, and convert the provided .config to a self-consistent form.
>
> And, as Chetan noticed, it will also drop Kconfig symbols that are
> unknown for that build (as, in this case, DEBUG_SET_MODULE_RONX).
>
>> Of course,
>> there is zero guarantee that the self-consistent form corresponds to your
>> intentions....
>
Hi Valdis, Paul,
Thanks for your mails.
I would try to backport 'DEBUG_SET_MODULE_RONX' support from v3.14
Thanks,
Chetan Nanda
>
> Paul Bolle
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-08-17 7:57 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-14 10:24 Option CONFIG_DEBUG_SET_MODULE_RONX not working for kernel 3.10 Chetan Nanda
2014-08-14 17:19 ` Nathan Lynch
2014-08-17 7:55 ` Chetan Nanda
-- strict thread matches above, loose matches on Subject: below --
2014-08-14 11:16 Chetan Nanda
2014-08-14 13:38 ` Valdis.Kletnieks at vt.edu
2014-08-15 10:49 ` Paul Bolle
2014-08-17 7:57 ` Chetan Nanda
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.