Kernel Newbies archive on lore.kernel.org
 help / color / Atom feed
* CONFIG_CC_STACKPROTECTOR_STRONG
@ 2019-07-09 17:24 Muni Sekhar
  2019-07-09 17:26 ` CONFIG_CC_STACKPROTECTOR_STRONG Denis Kirjanov
  2019-07-09 19:58 ` CONFIG_CC_STACKPROTECTOR_STRONG Greg KH
  0 siblings, 2 replies; 6+ messages in thread
From: Muni Sekhar @ 2019-07-09 17:24 UTC (permalink / raw)
  To: kernelnewbies, linux-kernel

[-- Attachment #1.1: Type: text/plain, Size: 891 bytes --]

Hi All,


My Kernel is built with the following options:



CONFIG_CC_STACKPROTECTOR=y

CONFIG_CC_STACKPROTECTOR_STRONG=y





We use out-of-tree kernel modules in our project and I need to measure the
performance of it by using a bit older gcc version 4.8.5.



I can build the modules with gcc above 5 version, but when I try to use gcc
version 4.8.5 I’m getting the following error:



Makefile:693: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG:
-fstack-protector-strong not supported by compiler



So it looks like gcc 4.8.5 does not support CONFIG_CC_STACKPROTECTOR_STRONG
option, but how to instruct gcc to ignore this one?



In runtime, is it possible to instruct kernel to ignore
“CONFIG_CC_STACKPROTECTOR_STRONG=y” (without building the kernel) by using
sysctl or any other method?


Any help is appreciated.


-- 
Thanks,
Sekhar

[-- Attachment #1.2: Type: text/html, Size: 2675 bytes --]

<div dir="ltr"><div dir="ltr"><div dir="ltr">

<p style="margin:0px"><font color="#000000" face="Calibri" size="3">Hi All,</font></p><p style="margin:0px"><font color="#b00000" face="Calibri" size="3"><br></font></p><p style="margin:0px"><font color="#000000" face="Calibri" size="3">My Kernel is built with the following options:</font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3"> </font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3">CONFIG_CC_STACKPROTECTOR=y</font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3">CONFIG_CC_STACKPROTECTOR_STRONG=y</font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3"> </font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3"> </font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3">We use out-of-tree kernel modules in our project and I need
to measure the performance of it by using a bit older gcc version 4.8.5.</font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3"> </font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3">I can build the modules with gcc above 5 version, but when I
try to use gcc version 4.8.5 I’m getting the following error:</font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3"> </font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3">Makefile:693: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG:
-fstack-protector-strong not supported by compiler</font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3"> </font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3">So it looks like gcc 4.8.5 does not support CONFIG_CC_STACKPROTECTOR_STRONG
option, but how to instruct gcc to ignore this one? </font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3"> </font></p><font color="#b00000" face="Calibri" size="3"><p style="margin:0px"><font color="#000000">In runtime, is it possible to instruct kernel to ignore “CONFIG_CC_STACKPROTECTOR_STRONG=y”
(without building the kernel) by using sysctl or any other method?</font></p><p style="margin:0px">

</p></font><p style="margin:0px"><br></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3">Any help is appreciated.</font></p>

<font face="Calibri"></font><font size="3"></font><font color="#000000"></font><font face="Times New Roman"></font><br clear="all"><br>-- <br><div class="gmail_signature" dir="ltr"><div>Thanks,</div><div>Sekhar</div></div></div></div></div>

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: CONFIG_CC_STACKPROTECTOR_STRONG
  2019-07-09 17:24 CONFIG_CC_STACKPROTECTOR_STRONG Muni Sekhar
@ 2019-07-09 17:26 ` Denis Kirjanov
  2019-07-09 17:32   ` CONFIG_CC_STACKPROTECTOR_STRONG Muni Sekhar
  2019-07-09 19:58 ` CONFIG_CC_STACKPROTECTOR_STRONG Greg KH
  1 sibling, 1 reply; 6+ messages in thread
From: Denis Kirjanov @ 2019-07-09 17:26 UTC (permalink / raw)
  To: Muni Sekhar; +Cc: linux-kernel, kernelnewbies

[-- Attachment #1.1: Type: text/plain, Size: 1127 bytes --]

On Tuesday, July 9, 2019, Muni Sekhar <munisekharrms@gmail.com> wrote:

> Hi All,
>
>
> My Kernel is built with the following options:
>
>
>
> CONFIG_CC_STACKPROTECTOR=y
>
> CONFIG_CC_STACKPROTECTOR_STRONG=y
>
>
>
>
>
> We use out-of-tree kernel modules in our project and I need to measure the
> performance of it by using a bit older gcc version 4.8.5.
>
>
>
> I can build the modules with gcc above 5 version, but when I try to use
> gcc version 4.8.5 I’m getting the following error:
>
>
>
> Makefile:693: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG:
> -fstack-protector-strong not supported by compiler
>
>
>
> So it looks like gcc 4.8.5 does not support CONFIG_CC_STACKPROTECTOR_STRONG
> option, but how to instruct gcc to ignore this one?
>
>
>
> In runtime, is it possible to instruct kernel to ignore
> “CONFIG_CC_STACKPROTECTOR_STRONG=y” (without building the kernel) by
> using sysctl or any other method?
>
>
>

Just disable it in your .config file


> Any help is appreciated.
>
>
> --
> Thanks,
> Sekhar
>


-- 
Regards / Mit besten Grüßen,
Denis

[-- Attachment #1.2: Type: text/html, Size: 3251 bytes --]

<br><br>On Tuesday, July 9, 2019, Muni Sekhar &lt;<a href="mailto:munisekharrms@gmail.com">munisekharrms@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">

<p style="margin:0px"><font color="#000000" face="Calibri" size="3">Hi All,</font></p><p style="margin:0px"><font color="#b00000" face="Calibri" size="3"><br></font></p><p style="margin:0px"><font color="#000000" face="Calibri" size="3">My Kernel is built with the following options:</font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3"> </font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3">CONFIG_CC_STACKPROTECTOR=y</font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3">CONFIG_CC_STACKPROTECTOR_<wbr>STRONG=y</font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3"> </font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3"> </font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3">We use out-of-tree kernel modules in our project and I need
to measure the performance of it by using a bit older gcc version 4.8.5.</font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3"> </font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3">I can build the modules with gcc above 5 version, but when I
try to use gcc version 4.8.5 I’m getting the following error:</font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3"> </font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3">Makefile:693: Cannot use CONFIG_CC_STACKPROTECTOR_<wbr>STRONG:
-fstack-protector-strong not supported by compiler</font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3"> </font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3">So it looks like gcc 4.8.5 does not support CONFIG_CC_STACKPROTECTOR_<wbr>STRONG
option, but how to instruct gcc to ignore this one? </font></p>

<p style="margin:0px"><font color="#000000" face="Calibri" size="3"> </font></p><font color="#b00000" face="Calibri" size="3"><p style="margin:0px"><font color="#000000">In runtime, is it possible to instruct kernel to ignore “CONFIG_CC_STACKPROTECTOR_<wbr>STRONG=y”
(without building the kernel) by using sysctl or any other method?</font></p><p style="margin:0px">

</p></font><p style="margin:0px"><br></p></div></div></div></blockquote><div><br></div><div><br></div><div>Just disable it in your .config file</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">

<p style="margin:0px"><font color="#000000" face="Calibri" size="3">Any help is appreciated.</font></p>

<font face="Calibri"></font><font size="3"></font><font color="#000000"></font><font face="Times New Roman"></font><br clear="all"><br>-- <br><div dir="ltr"><div>Thanks,</div><div>Sekhar</div></div></div></div></div>
</blockquote><br><br>-- <br>Regards / Mit besten Grüßen,<br>Denis<br><br>

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: CONFIG_CC_STACKPROTECTOR_STRONG
  2019-07-09 17:26 ` CONFIG_CC_STACKPROTECTOR_STRONG Denis Kirjanov
@ 2019-07-09 17:32   ` Muni Sekhar
  2019-07-09 17:46     ` CONFIG_CC_STACKPROTECTOR_STRONG Denis Kirjanov
  0 siblings, 1 reply; 6+ messages in thread
From: Muni Sekhar @ 2019-07-09 17:32 UTC (permalink / raw)
  To: Denis Kirjanov; +Cc: linux-kernel, kernelnewbies

On Tue, Jul 9, 2019 at 10:56 PM Denis Kirjanov <kirjanov@gmail.com> wrote:
>
>
>
> On Tuesday, July 9, 2019, Muni Sekhar <munisekharrms@gmail.com> wrote:
>>
>> Hi All,
>>
>>
>> My Kernel is built with the following options:
>>
>>
>>
>> CONFIG_CC_STACKPROTECTOR=y
>>
>> CONFIG_CC_STACKPROTECTOR_STRONG=y
>>
>>
>>
>>
>>
>> We use out-of-tree kernel modules in our project and I need to measure the performance of it by using a bit older gcc version 4.8.5.
>>
>>
>>
>> I can build the modules with gcc above 5 version, but when I try to use gcc version 4.8.5 I’m getting the following error:
>>
>>
>>
>> Makefile:693: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
>>
>>
>>
>> So it looks like gcc 4.8.5 does not support CONFIG_CC_STACKPROTECTOR_STRONG option, but how to instruct gcc to ignore this one?
>>
>>
>>
>> In runtime, is it possible to instruct kernel to ignore “CONFIG_CC_STACKPROTECTOR_STRONG=y” (without building the kernel) by using sysctl or any other method?
>>
>>
>
>
> Just disable it in your .config file

I disabled in /lib/modules/$(uname -r)/build/.config, but still get
that error. Does kernel needs to be recompiled?

CONFIG_CC_STACKPROTECTOR=y
# CONFIG_CC_STACKPROTECTOR_NONE is not set
# CONFIG_CC_STACKPROTECTOR_REGULAR is not set
# CONFIG_CC_STACKPROTECTOR_STRONG is not set

>
>
>>
>> Any help is appreciated.
>>
>>
>>
>> --
>> Thanks,
>> Sekhar
>
>
>
> --
> Regards / Mit besten Grüßen,
> Denis
>


-- 
Thanks,
Sekhar

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: CONFIG_CC_STACKPROTECTOR_STRONG
  2019-07-09 17:32   ` CONFIG_CC_STACKPROTECTOR_STRONG Muni Sekhar
@ 2019-07-09 17:46     ` Denis Kirjanov
  2019-07-09 18:04       ` CONFIG_CC_STACKPROTECTOR_STRONG Muni Sekhar
  0 siblings, 1 reply; 6+ messages in thread
From: Denis Kirjanov @ 2019-07-09 17:46 UTC (permalink / raw)
  To: Muni Sekhar; +Cc: linux-kernel, kernelnewbies

[-- Attachment #1.1: Type: text/plain, Size: 1957 bytes --]

On Tuesday, July 9, 2019, Muni Sekhar <munisekharrms@gmail.com> wrote:

> On Tue, Jul 9, 2019 at 10:56 PM Denis Kirjanov <kirjanov@gmail.com> wrote:
> >
> >
> >
> > On Tuesday, July 9, 2019, Muni Sekhar <munisekharrms@gmail.com> wrote:
> >>
> >> Hi All,
> >>
> >>
> >> My Kernel is built with the following options:
> >>
> >>
> >>
> >> CONFIG_CC_STACKPROTECTOR=y
> >>
> >> CONFIG_CC_STACKPROTECTOR_STRONG=y
> >>
> >>
> >>
> >>
> >>
> >> We use out-of-tree kernel modules in our project and I need to measure
> the performance of it by using a bit older gcc version 4.8.5.
> >>
> >>
> >>
> >> I can build the modules with gcc above 5 version, but when I try to use
> gcc version 4.8.5 I’m getting the following error:
> >>
> >>
> >>
> >> Makefile:693: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG:
> -fstack-protector-strong not supported by compiler
> >>
> >>
> >>
> >> So it looks like gcc 4.8.5 does not support CONFIG_CC_STACKPROTECTOR_STRONG
> option, but how to instruct gcc to ignore this one?
> >>
> >>
> >>
> >> In runtime, is it possible to instruct kernel to ignore
> “CONFIG_CC_STACKPROTECTOR_STRONG=y” (without building the kernel) by
> using sysctl or any other method?
> >>
> >>
> >
> >
> > Just disable it in your .config file
>
> I disabled in /lib/modules/$(uname -r)/build/.config, but still get
> that error. Does kernel needs to be recompiled?
>
> CONFIG_CC_STACKPROTECTOR=y
> # CONFIG_CC_STACKPROTECTOR_NONE is not set
> # CONFIG_CC_STACKPROTECTOR_REGULAR is not set
> # CONFIG_CC_STACKPROTECTOR_STRONG is not set
>
>
You have to disable it in your kernel source directory
and then run ‘make oldconfig’

> >
> >
> >>
> >> Any help is appreciated.
> >>
> >>
> >>
> >> --
> >> Thanks,
> >> Sekhar
> >
> >
> >
> > --
> > Regards / Mit besten Grüßen,
> > Denis
> >
>
>
> --
> Thanks,
> Sekhar
>


-- 
Regards / Mit besten Grüßen,
Denis

[-- Attachment #1.2: Type: text/html, Size: 2860 bytes --]

<br><br>On Tuesday, July 9, 2019, Muni Sekhar &lt;<a href="mailto:munisekharrms@gmail.com">munisekharrms@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Jul 9, 2019 at 10:56 PM Denis Kirjanov &lt;<a href="mailto:kirjanov@gmail.com">kirjanov@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tuesday, July 9, 2019, Muni Sekhar &lt;<a href="mailto:munisekharrms@gmail.com">munisekharrms@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi All,<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; My Kernel is built with the following options:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; CONFIG_CC_STACKPROTECTOR=y<br>
&gt;&gt;<br>
&gt;&gt; CONFIG_CC_STACKPROTECTOR_<wbr>STRONG=y<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; We use out-of-tree kernel modules in our project and I need to measure the performance of it by using a bit older gcc version 4.8.5.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I can build the modules with gcc above 5 version, but when I try to use gcc version 4.8.5 I’m getting the following error:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Makefile:693: Cannot use CONFIG_CC_STACKPROTECTOR_<wbr>STRONG: -fstack-protector-strong not supported by compiler<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; So it looks like gcc 4.8.5 does not support CONFIG_CC_STACKPROTECTOR_<wbr>STRONG option, but how to instruct gcc to ignore this one?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; In runtime, is it possible to instruct kernel to ignore “CONFIG_CC_STACKPROTECTOR_<wbr>STRONG=y” (without building the kernel) by using sysctl or any other method?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; Just disable it in your .config file<br>
<br>
I disabled in /lib/modules/$(uname -r)/build/.config, but still get<br>
that error. Does kernel needs to be recompiled?<br>
<br>
CONFIG_CC_STACKPROTECTOR=y<br>
# CONFIG_CC_STACKPROTECTOR_NONE is not set<br>
# CONFIG_CC_STACKPROTECTOR_<wbr>REGULAR is not set<br>
# CONFIG_CC_STACKPROTECTOR_<wbr>STRONG is not set<br>
<br></blockquote><div><br></div><div>You have to disable it in your kernel source directory </div><div>and then run ‘make oldconfig’ </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Any help is appreciated.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Sekhar<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Regards / Mit besten Grüßen,<br>
&gt; Denis<br>
&gt;<br>
<br>
<br>
-- <br>
Thanks,<br>
Sekhar<br>
</blockquote><br><br>-- <br>Regards / Mit besten Grüßen,<br>Denis<br><br>

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: CONFIG_CC_STACKPROTECTOR_STRONG
  2019-07-09 17:46     ` CONFIG_CC_STACKPROTECTOR_STRONG Denis Kirjanov
@ 2019-07-09 18:04       ` Muni Sekhar
  0 siblings, 0 replies; 6+ messages in thread
From: Muni Sekhar @ 2019-07-09 18:04 UTC (permalink / raw)
  To: Denis Kirjanov; +Cc: linux-kernel, kernelnewbies

[-- Attachment #1.1: Type: text/plain, Size: 2378 bytes --]

On Tue, 9 Jul, 2019, 11:16 PM Denis Kirjanov, <kirjanov@gmail.com> wrote:

>
>
> On Tuesday, July 9, 2019, Muni Sekhar <munisekharrms@gmail.com> wrote:
>
>> On Tue, Jul 9, 2019 at 10:56 PM Denis Kirjanov <kirjanov@gmail.com>
>> wrote:
>> >
>> >
>> >
>> > On Tuesday, July 9, 2019, Muni Sekhar <munisekharrms@gmail.com> wrote:
>> >>
>> >> Hi All,
>> >>
>> >>
>> >> My Kernel is built with the following options:
>> >>
>> >>
>> >>
>> >> CONFIG_CC_STACKPROTECTOR=y
>> >>
>> >> CONFIG_CC_STACKPROTECTOR_STRONG=y
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> We use out-of-tree kernel modules in our project and I need to measure
>> the performance of it by using a bit older gcc version 4.8.5.
>> >>
>> >>
>> >>
>> >> I can build the modules with gcc above 5 version, but when I try to
>> use gcc version 4.8.5 I’m getting the following error:
>> >>
>> >>
>> >>
>> >> Makefile:693: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG:
>> -fstack-protector-strong not supported by compiler
>> >>
>> >>
>> >>
>> >> So it looks like gcc 4.8.5 does not support
>> CONFIG_CC_STACKPROTECTOR_STRONG option, but how to instruct gcc to ignore
>> this one?
>> >>
>> >>
>> >>
>> >> In runtime, is it possible to instruct kernel to ignore
>> “CONFIG_CC_STACKPROTECTOR_STRONG=y” (without building the kernel) by using
>> sysctl or any other method?
>> >>
>> >>
>> >
>> >
>> > Just disable it in your .config file
>>
>> I disabled in /lib/modules/$(uname -r)/build/.config, but still get
>> that error. Does kernel needs to be recompiled?
>>
>> CONFIG_CC_STACKPROTECTOR=y
>> # CONFIG_CC_STACKPROTECTOR_NONE is not set
>> # CONFIG_CC_STACKPROTECTOR_REGULAR is not set
>> # CONFIG_CC_STACKPROTECTOR_STRONG is not set
>>
>>
> You have to disable it in your kernel source directory
> and then run ‘make oldconfig’
>
I got this error while building out of tree module in Ubuntu system. I'm
directly using the Ubuntu distribution kernel , so where should I suppose
to run the 'make old config'? Because I didn't have the kernel source code.

> >
>> >
>> >>
>> >> Any help is appreciated.
>> >>
>> >>
>> >>
>> >> --
>> >> Thanks,
>> >> Sekhar
>> >
>> >
>> >
>> > --
>> > Regards / Mit besten Grüßen,
>> > Denis
>> >
>>
>>
>> --
>> Thanks,
>> Sekhar
>>
>
>
> --
> Regards / Mit besten Grüßen,
> Denis
>
>

[-- Attachment #1.2: Type: text/html, Size: 3709 bytes --]

<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 9 Jul, 2019, 11:16 PM Denis Kirjanov, &lt;<a href="mailto:kirjanov@gmail.com">kirjanov@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br>On Tuesday, July 9, 2019, Muni Sekhar &lt;<a href="mailto:munisekharrms@gmail.com" target="_blank" rel="noreferrer">munisekharrms@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Jul 9, 2019 at 10:56 PM Denis Kirjanov &lt;<a href="mailto:kirjanov@gmail.com" target="_blank" rel="noreferrer">kirjanov@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tuesday, July 9, 2019, Muni Sekhar &lt;<a href="mailto:munisekharrms@gmail.com" target="_blank" rel="noreferrer">munisekharrms@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi All,<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; My Kernel is built with the following options:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; CONFIG_CC_STACKPROTECTOR=y<br>
&gt;&gt;<br>
&gt;&gt; CONFIG_CC_STACKPROTECTOR_STRONG=y<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; We use out-of-tree kernel modules in our project and I need to measure the performance of it by using a bit older gcc version 4.8.5.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I can build the modules with gcc above 5 version, but when I try to use gcc version 4.8.5 I’m getting the following error:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Makefile:693: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; So it looks like gcc 4.8.5 does not support CONFIG_CC_STACKPROTECTOR_STRONG option, but how to instruct gcc to ignore this one?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; In runtime, is it possible to instruct kernel to ignore “CONFIG_CC_STACKPROTECTOR_STRONG=y” (without building the kernel) by using sysctl or any other method?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; Just disable it in your .config file<br>
<br>
I disabled in /lib/modules/$(uname -r)/build/.config, but still get<br>
that error. Does kernel needs to be recompiled?<br>
<br>
CONFIG_CC_STACKPROTECTOR=y<br>
# CONFIG_CC_STACKPROTECTOR_NONE is not set<br>
# CONFIG_CC_STACKPROTECTOR_REGULAR is not set<br>
# CONFIG_CC_STACKPROTECTOR_STRONG is not set<br>
<br></blockquote><div><br></div><div>You have to disable it in your kernel source directory </div><div>and then run ‘make oldconfig’ </div></blockquote></div></div><div dir="auto">I got this error while building out of tree module in Ubuntu system. I&#39;m directly using the Ubuntu distribution kernel , so where should I suppose to run the &#39;make old config&#39;? Because I didn&#39;t have the kernel source code.</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Any help is appreciated.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Sekhar<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Regards / Mit besten Grüßen,<br>
&gt; Denis<br>
&gt;<br>
<br>
<br>
-- <br>
Thanks,<br>
Sekhar<br>
</blockquote><br><br>-- <br>Regards / Mit besten Grüßen,<br>Denis<br><br>
</blockquote></div></div></div>

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: CONFIG_CC_STACKPROTECTOR_STRONG
  2019-07-09 17:24 CONFIG_CC_STACKPROTECTOR_STRONG Muni Sekhar
  2019-07-09 17:26 ` CONFIG_CC_STACKPROTECTOR_STRONG Denis Kirjanov
@ 2019-07-09 19:58 ` Greg KH
  1 sibling, 0 replies; 6+ messages in thread
From: Greg KH @ 2019-07-09 19:58 UTC (permalink / raw)
  To: Muni Sekhar; +Cc: linux-kernel, kernelnewbies

On Tue, Jul 09, 2019 at 10:54:27PM +0530, Muni Sekhar wrote:
> We use out-of-tree kernel modules in our project and I need to measure the
> performance of it by using a bit older gcc version 4.8.5.

You are really on your own here, sorry.  Please use a modern version of
gcc, and then go complain to the vendor that forces you to use
out-of-tree kernel modules, as they are the only ones that can support
you with them :(

Best of luck!

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, back to index

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-09 17:24 CONFIG_CC_STACKPROTECTOR_STRONG Muni Sekhar
2019-07-09 17:26 ` CONFIG_CC_STACKPROTECTOR_STRONG Denis Kirjanov
2019-07-09 17:32   ` CONFIG_CC_STACKPROTECTOR_STRONG Muni Sekhar
2019-07-09 17:46     ` CONFIG_CC_STACKPROTECTOR_STRONG Denis Kirjanov
2019-07-09 18:04       ` CONFIG_CC_STACKPROTECTOR_STRONG Muni Sekhar
2019-07-09 19:58 ` CONFIG_CC_STACKPROTECTOR_STRONG Greg KH

Kernel Newbies archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org kernelnewbies@archiver.kernel.org
	public-inbox-index kernelnewbies

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/ public-inbox