Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2823430pxb; Tue, 9 Mar 2021 11:45:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwMXUGmy+sELoYufBemq6Gh5Coi8Z9hWapgoLpYTSncf/VT4qhAEgPI6Ynr2Tlbk5KpC/3m X-Received: by 2002:a05:6402:30a2:: with SMTP id df2mr6029107edb.29.1615319154057; Tue, 09 Mar 2021 11:45:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615319154; cv=none; d=google.com; s=arc-20160816; b=EHnSZ1av4HLPjGMIIBKQ2guYpv9Hb+dKgD45xYwGZALcmqujgI3CWlU6eCIJwWzI7Y fO910WV35RJA7QQwpCfp8pMUI5pZmA7RGqgZ8CnK3AqAxKb1xk/hXMOfXLim+cG4fEu9 2g4FW+8/vQ9Yq2bztAYcv3XWdds0kRhf2iCed0pHdVVmbnGSXbDTZmE9VsV4UIeLZLEz hJag5QsrvkDBq/LmAKpnJzhYAm+cZ0JPquhI7ABtmtjK8yfTuRVv5ePw4/XJbtODU9ax Qi/KZutOjxDLXlO48HueQCu4QmptYpgERjJ4MifdWr4v4JcXiSxbp73798VrdlkFgs3z 33Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=q6vnwegpkv+QYlIDGZ0sLJ/O/xAKT/SPJTwr4NPz5QA=; b=sDVt9Mh8v1Ne7+EAJPeaewHdnyqFFrMzpu54a4Gnu5bOLenufV2pfiXei7sISA1ylu D9/T37C1BjcxStPU8uVgrwYFxsnW+zJu4oyLRkXBRXxZ/PjbcDzrWAb6CiGkN+VuvtkI JiIZ4elSGe/65AOawgB3JnJ3DRnBNY24e5KLPMTBBrkVRmRKyMd1BMwTzCVyhQDuZ1FO gfqqDYPNi149hPAzyTa/vYWXVINvmw3zYNJ3ol7YlfVBDJFXMzFPvDRWLbxsbGTyjobX OX/ZOO9iDsRFSPRvmTv7eyv7TjkFcS7PsbU2Q33ZFfngSQiwwoxluOgKt3aj2X7h+G6r 5IWw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k24si10018225ejs.280.2021.03.09.11.45.31; Tue, 09 Mar 2021 11:45:54 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231286AbhCIToR (ORCPT + 99 others); Tue, 9 Mar 2021 14:44:17 -0500 Received: from mx2.suse.de ([195.135.220.15]:43306 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231326AbhCIToH (ORCPT ); Tue, 9 Mar 2021 14:44:07 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id EC710AC1F; Tue, 9 Mar 2021 19:44:05 +0000 (UTC) Date: Tue, 9 Mar 2021 20:44:04 +0100 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: Masahiro Yamada Cc: linux-arm-kernel , Catalin Marinas , Will Deacon , Linux Kernel Mailing List Subject: Re: [PATCH] arm64: make STACKPROTECTOR_PER_TASK configurable. Message-ID: <20210309194404.GC6564@kitsune.suse.cz> References: <20210309123544.14040-1-msuchanek@suse.de> <20210309133523.GX6564@kitsune.suse.cz> <20210309151046.GZ6564@kitsune.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 10, 2021 at 04:07:00AM +0900, Masahiro Yamada wrote: > On Wed, Mar 10, 2021 at 12:10 AM Michal Such?nek wrote: > > > > On Tue, Mar 09, 2021 at 11:53:21PM +0900, Masahiro Yamada wrote: > > > On Tue, Mar 9, 2021 at 10:35 PM Michal Such?nek 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 capability. > > > > > > > > > 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'. How do you author a specific configuration with dummy-tools when options are allowed to unconditionally follow these options that dummy-tools enables? Thanks Michal