Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8178058ybi; Tue, 9 Jul 2019 10:33:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXz3RJCtH2DkOTZTmGPg1oqgrIJsiy1ElaQwfJc1UzyHAaGs0hwbwm41fqJizZY/CUAz/9 X-Received: by 2002:a17:90a:db42:: with SMTP id u2mr1435022pjx.48.1562693627110; Tue, 09 Jul 2019 10:33:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562693627; cv=none; d=google.com; s=arc-20160816; b=rfm4w0wW6XZlWRHetfR0ar29mGHpaTBn4AcmftEBFWXPKxy7Rmun4KDDomith1IJcG e5IiHh30t2hosiC34yZ5W1D5gMDJIgeC8ntkeAoG0qmCZOuvMAk7mvw7QjYEapny0Cw0 ZKkM6vV+4TEaN5fq6Sc0V88LCJfvhXDB7zRTcCRgI3G8VmAyd6qbHGj1Oq5AfSaZ68mY XRzwx3SKrVZ0l59pO1nPEBPtjRk3xVnZTekyF/08rZLJ1qzW2FKk3HSowq1LDEY13SVl OuvHv6xmgFeQE3zhF12vh7EJ4Omb3/m5tZ2bwDIQIWJa/+p/N1uylsuPjr3Mq5d6hsYN s1+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=KzQBi+No8ph3UEJD2VAcK9TOC9/dG2woHn2ySVokkbA=; b=Jp5HpVht96iQ0vnwSE2PIZ7LjH6vX2R8pC0kKnZOYTx+lJodnXNUybpkVWLqXkWpwS A6NrBnFD+aQ6/q0ZjgBMvFKHJhCmq6ZZYGOx8ZsDwr7iqQFGMS9/ht82Ph87iHSOiUR0 2/Pjx1hSmKSvSdlwKch02+hCb0r08L7MGH2YW2o5/0/olgVOhFZYOOd99cdE3qQUFwnx CIWcLC0+MNznUk1ZwfWAtt5J9W8vqs85C0VrS7OIYJoUP5uddKygFEjFGckSz4Kv17VY Ce1+bVbEEQWXzBnR345hSklvrrl0YIDXbW+HfRvARzSsVYFLpSi9kQdswWps03yeAGTR 3Y4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ETwRLHzW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h69si23773682pge.543.2019.07.09.10.33.31; Tue, 09 Jul 2019 10:33:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ETwRLHzW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726449AbfGIRcn (ORCPT + 99 others); Tue, 9 Jul 2019 13:32:43 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:46121 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725816AbfGIRcm (ORCPT ); Tue, 9 Jul 2019 13:32:42 -0400 Received: by mail-oi1-f196.google.com with SMTP id 65so15945826oid.13 for ; Tue, 09 Jul 2019 10:32:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=KzQBi+No8ph3UEJD2VAcK9TOC9/dG2woHn2ySVokkbA=; b=ETwRLHzWaCjexBzhMiLsQW5sSwoEpykycj/oT4Mm3+BM1ASKQYYp9nANFQkqIEo9VH fDTONrWhFj6eQq/YstmDB9znc9kMTXievTkLEmbVQlntYk7u3XniFCciHp17el38ptqW 25B1nl6puEZ++ekvORfKaesjtzV/qytTztHR8ZJSV4pc8Cm1EXc6zeV1WyGwRInt/5cq 8JvSqh2tLOnYlWU5GlJ4khR8pusZfQAYM2kvLpxqf6AhiMneDtfO3NxJwkvtkNzP8zhk fWqSI1zRZbkMxlL0Jfngnwz9XVqnajOomVwGhPQIXj0OJqCZ68P5diCOFJ3Oyd2ivn9X JUlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=KzQBi+No8ph3UEJD2VAcK9TOC9/dG2woHn2ySVokkbA=; b=ogUgd318bFOZ4+umYj6DlSCJd/yDil6hN87HrEkaxIk+5LRqD3gJIIEMF+xuz+9aGh 9ynlHya6mv5YdhXgOEFB0Bfp17zLcxnIuq/MPTx1vFKstLjHCsXqsjguoGXJ8fOec9bc f2dZpX4Kvb62AkVtL2LaRyLEyA4FyDYk0mwTQU5SNtVK55LJgqe+bz0vEG8tQPM7WrQV IrEuaZY57rjN7476yc8JhUaJZKQ7DegNgoeUUYbcVFIDY9qOGZCJt0fPKfZ3be9WhTed DXhGuJzNc16siqcJhrbkExk6dfeuJsFqBMGqXx/mvJ4jRLEqeicpmjoH/yb8LWPHNJ5I iKfg== X-Gm-Message-State: APjAAAWbFanBAicCBtusIr+pe0Sq+tJiVMP7ySJnPUDHMmHJskL7CFZr fOnm5Nv3wILpKc56V1uORRskAHTK79t5NANqUSg= X-Received: by 2002:a05:6808:6c5:: with SMTP id m5mr664260oih.89.1562693562016; Tue, 09 Jul 2019 10:32:42 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Muni Sekhar Date: Tue, 9 Jul 2019 23:02:30 +0530 Message-ID: Subject: Re: CONFIG_CC_STACKPROTECTOR_STRONG To: Denis Kirjanov Cc: kernelnewbies , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 9, 2019 at 10:56 PM Denis Kirjanov wrote: > > > > On Tuesday, July 9, 2019, Muni Sekhar wrote: >> >> Hi All, >> >> >> My Kernel is built with the following options: >> >> >> >> CONFIG_CC_STACKPROTECTOR=3Dy >> >> CONFIG_CC_STACKPROTECTOR_STRONG=3Dy >> >> >> >> >> >> We use out-of-tree kernel modules in our project and I need to measure t= he 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=E2=80=99m getting the following error: >> >> >> >> Makefile:693: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protec= tor-strong not supported by compiler >> >> >> >> So it looks like gcc 4.8.5 does not support CONFIG_CC_STACKPROTECTOR_STR= ONG option, but how to instruct gcc to ignore this one? >> >> >> >> In runtime, is it possible to instruct kernel to ignore =E2=80=9CCONFIG_= CC_STACKPROTECTOR_STRONG=3Dy=E2=80=9D (without building the kernel) by usin= g 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=3Dy # 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=C3=BC=C3=9Fen, > Denis > --=20 Thanks, Sekhar