Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2801483pxb; Tue, 9 Mar 2021 11:09:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJyuG4CfbzXv/ZUqE4L5ctLEGUcsT7eZL0d0gnWB75ABGwsc0GjkN6eAc+77KNSS6/cRCvTO X-Received: by 2002:a17:906:eb89:: with SMTP id mh9mr22441840ejb.122.1615316995673; Tue, 09 Mar 2021 11:09:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615316995; cv=none; d=google.com; s=arc-20160816; b=s5ZiX0DI1eLwRsWr18kFtCs8ROIgdEi6RmFDpxji7PDE0gxZ3Vu8C0WeCWEouA0feC CQuhZbScW54PoF5REhvuma/qmzrgymLGYIXLUQc2W9n3OUwLugknJ/tLL5LGFek7AAYH 1TdmwjFqtnyngsfR6FoYC6gYAsjnIBjI68LEyoii+NOFEXtvC77HbrhM4TuqaIzSEWY9 ArW2iYn84UaN7Bx41QlkRtJ9wKshbEDal6phay5lKZafBJ0p6+hK6B7AGeeeIo1c5EmJ C/MPV+5cJSq9VtvD1AoR45GCDnXytOMUArhpcdwzc7SBzgeCqABEwYHEhp9Rw8R6xyza wZsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:dkim-filter; bh=gHcj+lnNbA3JG9iSZjbM+AptgA8q9s4PdaW8jlPZx6g=; b=r5GmltnuJsPLp7bAAnD5YMO1SjDS/X1kzbiGPBkxUr+vTYbGWVH9WEGyCafnJzHQT6 h5uzUH2+2v9RO/7pPq6jjhdssD6+RjhZ7XOcpwtqlipy/Fpwo8lBCrmKMgHO2ZYio3fb 6SykRqOfj1BERj/cZY2f87wtwwTjSCzFZpb4mPvOtVtKGlxGmyhMyMw9qjRG5q21IVtQ aemDYUhKmIOtxmvTcez3/wN4m+9h6yQDoIcr66QZ9p9yG2MqgtcshlcwF0/3LTjwgLUX EKgxRtjWrp36KZ7NABT6gh8E1EfVpFh5Auk1TRyKN0Et3mpyCFWWu6qHz1v5Iwsgmwft Lwvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=kQbPUcla; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si9398002edr.381.2021.03.09.11.09.33; Tue, 09 Mar 2021 11:09:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=kQbPUcla; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231368AbhCITIi (ORCPT + 99 others); Tue, 9 Mar 2021 14:08:38 -0500 Received: from conssluserg-02.nifty.com ([210.131.2.81]:51191 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231309AbhCITIG (ORCPT ); Tue, 9 Mar 2021 14:08:06 -0500 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 129J7dEZ025638 for ; Wed, 10 Mar 2021 04:07:39 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 129J7dEZ025638 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1615316859; bh=gHcj+lnNbA3JG9iSZjbM+AptgA8q9s4PdaW8jlPZx6g=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=kQbPUclaMNIJqA/hwXsXnA2ipPIfMnhNNK1/FV/lwu33g2MATlNGsdu2JrceOaJgc HDMWyJe5H/15Vf24+28+Wl7wqPuRs7NALRIqOIgJXGMrPN3cFkBqCtYA2S9vLw/iOj 2aIzg75+jUubaA6lO72bsv+He9cD26rduUjF5ExhO0+tO1ZnqiPtIye1Ku0I6EKCUH zL7WUutvm/jQPIxkHlEf0+5JlsRBsjU1SVf2dEQhTEcYnAgLVxeTJLkN91q1D0pDU8 JSOn5MKmZ0cshIUbMjkOj0lcXjGrtBnZ2J7eqU8p1UARKsughcX2lKQkaUBX6gqGyP R9ztP8KRzg8Cw== X-Nifty-SrcIP: [209.85.210.179] Received: by mail-pf1-f179.google.com with SMTP id m6so10118165pfk.1 for ; Tue, 09 Mar 2021 11:07:39 -0800 (PST) X-Gm-Message-State: AOAM532Spf9X6F/V4rmuF1Hantm9zrAbPiABBuJJV5by7rUVYqH1Zu7U RTKCt/q5pdt3N0vL6SlGdWq6e3eCXMi9DG/3+80= X-Received: by 2002:aa7:956d:0:b029:1f1:5ba6:2a58 with SMTP id x13-20020aa7956d0000b02901f15ba62a58mr4811151pfq.63.1615316858583; Tue, 09 Mar 2021 11:07:38 -0800 (PST) MIME-Version: 1.0 References: <20210309123544.14040-1-msuchanek@suse.de> <20210309133523.GX6564@kitsune.suse.cz> <20210309151046.GZ6564@kitsune.suse.cz> In-Reply-To: <20210309151046.GZ6564@kitsune.suse.cz> From: Masahiro Yamada Date: Wed, 10 Mar 2021 04:07:00 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arm64: make STACKPROTECTOR_PER_TASK configurable. To: =?UTF-8?Q?Michal_Such=C3=A1nek?= Cc: linux-arm-kernel , Catalin Marinas , Will Deacon , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 10, 2021 at 12:10 AM Michal Such=C3=A1nek w= rote: > > On Tue, Mar 09, 2021 at 11:53:21PM +0900, Masahiro Yamada wrote: > > On Tue, Mar 9, 2021 at 10:35 PM Michal Such=C3=A1nek wrote: > > > > > > On Tue, Mar 09, 2021 at 10:22:36PM +0900, Masahiro Yamada wrote: > > > > On Tue, Mar 9, 2021 at 9:35 PM Michal Suchanek = wrote: > > > > > > > > > > When using dummy-tools STACKPROTECTOR_PER_TASK is unconditionally > > > > > selected. This defeats the purpose of the all-enabled tool. > > > > > > > > > > Description copied from arm > > > > > > > > > > Cc: Masahiro Yamada > > > > > Signed-off-by: Michal Suchanek > > > > > > > > > > > > Could you explain what problem > > > > this patch is trying to solve? > > > > > > The option cannot be disabled when compiler has the required capabili= ty. > > > > > > Yes. > > Currently, this symbol claims "def_bool y", > > so there is no way to disable it. > > > > But, it comes from the nature of Kconfig in general. > > > > dummy-tools is completely unrelated here. > > dummy-tools makes all configuration options available in order to be > able to author configuration files on system different from the one > where the kernel is built. This prevents authoring a configuration file > with this option disabled. No. dummy-tools enables as many $(cc-option, ...) and $(shell, ...) as possible. That's it. In my understanding, STACKPROTECTOR_PER_TASK should not be user-configurable. That is why 'def_bool y'. -- Best Regards Masahiro Yamada