Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2574553pxb; Tue, 23 Feb 2021 10:07:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJ1+vTq8XWd51uAiFaPid17RlRRA0lDiteEpGPvYLo6g6khS3pHV2/wzYEQTvO9c+EIZOZ X-Received: by 2002:a05:6402:4d5:: with SMTP id n21mr9412517edw.201.1614103625527; Tue, 23 Feb 2021 10:07:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614103625; cv=none; d=google.com; s=arc-20160816; b=KxAOPnSYyZSKB+GVo6KwIwpFHqHzGrfnRJPrc+Ad4oTRUXdHhnsoCY1vaYNYDsbkY9 F8y+qa/DATMVorYF5ygiVqNNfxk0ttyEP3A4aGBv+w01voLQQebuboXOMgxd5Z61339+ 6zr12I5loXBWWA0Ch0Amm/nJvYmKo9sqQYJ0hoFAXNBTPphITKwOsqfEZNONYwwuSK4F Z7sjcTGivQnTjFWOR0ScfZ6SEajYsf9NJxFUb85YN9t1aFWOe9etmSr8yGHRfkVwX1bD oZmVgZZHnzkeHW63ipsUR0toKBdNs5j5+CmBEGAc62bH3k11vu9kNBHBUT1bNu32Ijrd /9Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CRJrQGBIMdvl8HDZ1wcqJa6CD1wYhFACnglRBNcyzLY=; b=vG9RUvJ07p0fnEpvkmXIx8iDNq3xva9fPN8NGnHmAOFT/d5AlzR3cD3m4tVVMX5MzT q4wHfc+PvkpGozaZblUb02x3HoOtVRnSEBNmeM2o6MbGZYauizCEGtpgdftd4MQFrg5A hOo2JMG7MSS3un5ulKg4GlB2eC9cTvaTrB2TkIMR9Mj2uDJOJxsqAq2VP65SFc+YOmfa wWUYi8pyZqbNql9M6PtFZ8lKbwQ64V4R8gzoiQSKcqpIAUfYwPVTbqcY0kmEMzICEesD CSQoKux07GvaGLtXbKRvPelr0TUtikCt8AmqLpURYpM6c9NcsCA3uk22UYEZLeyvyxI6 J/3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=DgCDU8dV; 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ov10si11330192ejb.502.2021.02.23.10.06.17; Tue, 23 Feb 2021 10:07:05 -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=@ibm.com header.s=pp1 header.b=DgCDU8dV; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233115AbhBWSE5 (ORCPT + 99 others); Tue, 23 Feb 2021 13:04:57 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:43300 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233011AbhBWSEz (ORCPT ); Tue, 23 Feb 2021 13:04:55 -0500 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 11NI3xlV164988; Tue, 23 Feb 2021 13:04:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=CRJrQGBIMdvl8HDZ1wcqJa6CD1wYhFACnglRBNcyzLY=; b=DgCDU8dVV02CMzM5NJEDvClYIV2fq99ScIHFvizQr5DMwXbsAV9Ut3omI/RZvvFqdlmV 2Vz+P7x00wkA6YnX+UoHTbi6N1fGm04+vALEkAVos2b8cnKGrlwXwqHhjtjdyd/67pju IumRQ3KmRRLXxyhytBvGMSJKwFS4l1jaXcFxMzBzU3aZk4cCoVyThoV+Bh9xWFKN0Tnn h8j7AT6J3GxfszQtVCPT018aXA2aHx+rdlifm2G3DrxLb7Um8kl4PhzSioKSI8tLAOAl 7gcw0vtCBnJ9+fUdE4SK61Wf+4UpdQLQGefJF8Os+FnlpummUhwp+LyO+ZD6n8m4CC+5 hQ== Received: from ppma01fra.de.ibm.com (46.49.7a9f.ip4.static.sl-reverse.com [159.122.73.70]) by mx0a-001b2d01.pphosted.com with ESMTP id 36vkft2pb7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 Feb 2021 13:04:01 -0500 Received: from pps.filterd (ppma01fra.de.ibm.com [127.0.0.1]) by ppma01fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 11NI3mxJ018893; Tue, 23 Feb 2021 18:03:51 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma01fra.de.ibm.com with ESMTP id 36tt289fwx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 Feb 2021 18:03:51 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 11NI3nIC46006780 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 23 Feb 2021 18:03:49 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 01CCE11C04C; Tue, 23 Feb 2021 18:03:49 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 996E511C064; Tue, 23 Feb 2021 18:03:48 +0000 (GMT) Received: from osiris (unknown [9.171.75.226]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 23 Feb 2021 18:03:48 +0000 (GMT) Date: Tue, 23 Feb 2021 19:03:47 +0100 From: Heiko Carstens To: Guenter Roeck Cc: Masahiro Yamada , Kees Cook , linux-hardening@vger.kernel.org, Linux Kernel Mailing List , Arnd Bergmann Subject: Re: [PATCH] gcc-plugins: Disable GCC_PLUGIN_CYC_COMPLEXITY for s390 Message-ID: References: <20210221225650.33134-1-linux@roeck-us.net> <8d3de6fc-0991-9cef-d5fd-032fdbe2e85e@roeck-us.net> <20210223174140.GA159796@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210223174140.GA159796@roeck-us.net> X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-02-23_08:2021-02-23,2021-02-23 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxscore=0 mlxlogscore=997 priorityscore=1501 impostorscore=0 lowpriorityscore=0 phishscore=0 bulkscore=0 spamscore=0 adultscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102230152 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 23, 2021 at 09:41:40AM -0800, Guenter Roeck wrote: > > I tried to explain why we don't want to set COMPILE_TEST for s390 > > anymore. It overrides architecture dependencies in Kconfig, and lots > > of drivers do not set dependencies for HAS_IOMEM, HAS_DMA, and friends > > correctly. > > This generates constantly fallout which is irrelevant for s390 and > > also for other architectures. It generates just work with close to > > zero benefit. For drivers which matter for s390 we still see those > > errors. > > > > > On the other side, if that flag would be set explicitly by > > > all{yes,mod}config, it would really beg for being misused. We > > > might then as well add a new flag that is explicitly associated > > > with all{yes,mod}config, but not with randconfig. > > > > I think that makes most sense, probably also have a flag that is set > > for randconfig. > > Not sure what value such an option would have, and how it would be used. > I would argue that randconfig should not set COMPILE_TEST to start with, > since its purpose should be to test random valid configurations and not > to compile test arbitrary (and in that case random) code. But that is > a different question, and just my personal opinion. > > Overall, the question is what kind of additional option you would find > useful for s390. You make it clear that you don't want COMPILE_TEST. > At the same time, you still want all{mod,yes}config, but presumably > excluding options currently restricted by !COMPILE_TEST (such as > DEBUG_INFO, BPF_PRELOAD, UBSAN_TRAP, GCC_PLUGIN_CYC_COMPLEXITY, > and a few others). SUPPRESS_NOISY_TESTS would not cover that, but > neither would RANDCONFIG (or whatever it would be called). Well, if we would have e.g. RANDCONFIG, then we could probably revert 334ef6ed06fa ("init/Kconfig: make COMPILE_TEST depend on !S390") and instead let COMPILE_TEST depend on !RANDCONFIG. I think this _could_ solve all common problems we currently see. And it would also do what you suggested.