Kernel Newbies archive on lore.kernel.org
 help / color / Atom feed
From: Muni Sekhar <munisekharrms@gmail.com>
To: kernelnewbies <kernelnewbies@kernelnewbies.org>,
	linux-kernel@vger.kernel.org
Subject: CONFIG_CC_STACKPROTECTOR_STRONG
Date: Tue, 9 Jul 2019 22:54:27 +0530
Message-ID: <CAHhAz+hVweYwjxFuwMw2Hsb74trWiwacH3Qdk=5c78e01==drw@mail.gmail.com> (raw)

[-- 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

             reply index

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-09 17:24 Muni Sekhar [this message]
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

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHhAz+hVweYwjxFuwMw2Hsb74trWiwacH3Qdk=5c78e01==drw@mail.gmail.com' \
    --to=munisekharrms@gmail.com \
    --cc=kernelnewbies@kernelnewbies.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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


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