linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: CONFIG_CC_STACKPROTECTOR_STRONG
       [not found] ` <CAHj3AV=v9ub2BYDZE_q3u9YEWbCLJaSNTVUC+z-nOVw-XQUziQ@mail.gmail.com>
@ 2019-07-09 17:32   ` Muni Sekhar
  0 siblings, 0 replies; 2+ messages in thread
From: Muni Sekhar @ 2019-07-09 17:32 UTC (permalink / raw)
  To: Denis Kirjanov; +Cc: kernelnewbies, linux-kernel

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

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

* Re: CONFIG_CC_STACKPROTECTOR_STRONG
       [not found] <CAHhAz+hVweYwjxFuwMw2Hsb74trWiwacH3Qdk=5c78e01==drw@mail.gmail.com>
       [not found] ` <CAHj3AV=v9ub2BYDZE_q3u9YEWbCLJaSNTVUC+z-nOVw-XQUziQ@mail.gmail.com>
@ 2019-07-09 19:58 ` Greg KH
  1 sibling, 0 replies; 2+ messages in thread
From: Greg KH @ 2019-07-09 19:58 UTC (permalink / raw)
  To: Muni Sekhar; +Cc: kernelnewbies, linux-kernel

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

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

end of thread, other threads:[~2019-07-09 19:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAHhAz+hVweYwjxFuwMw2Hsb74trWiwacH3Qdk=5c78e01==drw@mail.gmail.com>
     [not found] ` <CAHj3AV=v9ub2BYDZE_q3u9YEWbCLJaSNTVUC+z-nOVw-XQUziQ@mail.gmail.com>
2019-07-09 17:32   ` CONFIG_CC_STACKPROTECTOR_STRONG Muni Sekhar
2019-07-09 19:58 ` CONFIG_CC_STACKPROTECTOR_STRONG Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).