Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp511125pxb; Wed, 15 Sep 2021 07:10:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2FfIB/fqwE/CYnUHT+JDF/UFVC11+Uzv1hLYN8gaSkFNqP/d1Jug9PdX/QcwkKey4viMm X-Received: by 2002:a50:fb8f:: with SMTP id e15mr230727edq.162.1631715057173; Wed, 15 Sep 2021 07:10:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631715057; cv=none; d=google.com; s=arc-20160816; b=vjKVioQcMrZrLu85ZIaAzA0pOM9q6/TIME31kbb8H3NguXDE7vVP6zgDZuo+obmF6X h+JsVNBg7c4R02DxtMo068DtJDHLOmAVQzYLbxcevlUT7SHNNn25oLcQEr9wHlXzk3tY W0fiC63D7Zp/uog8INTLioMQLh7o2fFvlvUkrGN2m/szFPsO6Z7j8deVinrmWVLGK/b1 fv8IG7dBlrcnlulkmg1CdLEbapR83lwYT+zDDbtqWA9imSf5BTraZ8SvpdcrADrl/HBZ XwuWfVLfL0dKbUMreLpUxCw63amFeHCd15l8Z4R00fLHaHVrsCc6Sq9Y+HBKImkpNVFW FqiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:sender:dkim-signature; bh=I2A31vkH1KuWdXSd5ju0bH7L4mFuHVmLMgvk3FgHJY0=; b=quEhgrauKn9rVXdPWmd9dbl+ghFOMn4g518BAS9ycsU1uUtcWwqc9u0z8lHdw8DWwc M/gFy0v3hRb/LUOds6Agtv9JAN0Y4Z0pnlE0O40ddXq8jcQWAQF7X3c/BAkc2Iof+zCI MPQ9B79mLwBef0ykeArBhd2G3u/P2G69MdGsxMYSUESlp3tNLk4htrLkV2Eb0GVNOxfB 6I56N8eN1a+ReM/Gt2pmrc5qXIQr3oeIplwgeILWpgHyYTuk9Pljtpm4OabQC2Gd5nyw Yaio9hgyVv7q6BWyLjZWc5JUpeL3ucfTbEnGjuxUGzsGoCufIVduDNaNypS3zFhNn6mL gnUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NRdaicJW; 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 bu1si45443ejb.482.2021.09.15.07.10.28; Wed, 15 Sep 2021 07:10:57 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=NRdaicJW; 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 S237693AbhIOOJp (ORCPT + 99 others); Wed, 15 Sep 2021 10:09:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233793AbhIOOJo (ORCPT ); Wed, 15 Sep 2021 10:09:44 -0400 Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CB63C061574; Wed, 15 Sep 2021 07:08:25 -0700 (PDT) Received: by mail-ot1-x334.google.com with SMTP id g66-20020a9d12c8000000b0051aeba607f1so3663615otg.11; Wed, 15 Sep 2021 07:08:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=I2A31vkH1KuWdXSd5ju0bH7L4mFuHVmLMgvk3FgHJY0=; b=NRdaicJWp7ayqH9jsDFb73Gz8Cf3R628eZgQGNYYYw73nlRDwX0MhDq3KweoJDhTJT GbxOItv3OOUX8L6g6LLw54GEZtCbyUbRDJreqRfzf2kQ8+ZBCa8lt7i4hA/D3w+b7J2H wtIcXm/k2Y7EJx6QRC43Tt790k2irXPm+bEBOiLhnMjNuCig1kv00lMutBWUUMGqlhAR zWFwosOLm5A+i4su+fgeaWORBHdDvNj1IC8X2pHlSWR5+qMfJzc+Ph80lhUZNCxml7gm 9roMymlF1nIpeN4Wgqc4sQUWQYe2isgncBD/xw6u3wE1W54GJ0aJneuYsgYJrBw/zyx5 tWVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=I2A31vkH1KuWdXSd5ju0bH7L4mFuHVmLMgvk3FgHJY0=; b=LjqWHg+LYMtJ0SQ5DsfD/yIlqSu9l5AcyWB7zfpMEiHvj15YiS3HBDdLU61c2I3nta lJDNeizp7gElqeGtYQDkx0K4gzz6Va7mGWYzuZXqlye7/Eg3zC3DGffa2uJDTfh+l5e6 4WJl06Eb2UH74wBX0AC2cvt/dSRq9eSFUtuHs+DgAZy3oN0iY6YB19N+EC0cbaDTkmWc DGR43WzH9sbWQRPaT4U4OnxE51VjiCScFoxJKCCzI9SbFo0vBx3wN2zuqstYFjUqLItv vif2UB/kfL+3KXJrWuzwrElWpPfBw5CNElGvT6aL/LDulF3AcJzDxtaEs3C+keWdvNlW SU9w== X-Gm-Message-State: AOAM5323gLFyU1umpH9pofWphM9sfUBB50FQltXK+fReCyJ0fGqxyJz1 QruX2z44+L4Ifqpkeu325R5Is+Ahofw= X-Received: by 2002:a9d:4589:: with SMTP id x9mr111337ote.52.1631714904722; Wed, 15 Sep 2021 07:08:24 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id v5sm20358oos.17.2021.09.15.07.08.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Sep 2021 07:08:23 -0700 (PDT) Sender: Guenter Roeck Subject: Re: [PATCH] s390: Add WARN_DYNAMIC_STACK dependencies To: Christian Borntraeger , Heiko Carstens Cc: Vasily Gorbik , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210915044010.640499-1-linux@roeck-us.net> <80b7dbc9-0c09-197f-0f40-ab92d2e3fe3c@de.ibm.com> From: Guenter Roeck Message-ID: <84949d48-435a-e76b-9977-d072f7359d91@roeck-us.net> Date: Wed, 15 Sep 2021 07:08:21 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <80b7dbc9-0c09-197f-0f40-ab92d2e3fe3c@de.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/15/21 2:02 AM, Christian Borntraeger wrote: > > > On 15.09.21 06:40, Guenter Roeck wrote: >> s390:allmodconfig fails to build with the following errors. >> >> arch/s390/kernel/syscall.c: In function '__do_syscall': >> arch/s390/kernel/syscall.c:168:1: error: >>     '__do_syscall' uses dynamic stack allocation >> >> lib/test_kasan.c: In function 'kasan_alloca_oob_right': >> lib/test_kasan.c:782:1: error: >>     'kasan_alloca_oob_right' uses dynamic stack allocation >> >> lib/test_kasan.c: In function 'kasan_alloca_oob_left': >> lib/test_kasan.c:767:1: error: >>     'kasan_alloca_oob_left' uses dynamic stack allocation >> >> The first error is seen if RANDOMIZE_KSTACK_OFFSET_DEFAULT, >> WARN_DYNAMIC_STACK, and WERROR are enabled. The other problems >> are seen if KASAN_KUNIT_TEST, WARN_DYNAMIC_STACK, and WERROR >> are enabled. >> >> It does not make sense to abort a build in that situation. >> If either RANDOMIZE_KSTACK_OFFSET_DEFAULT or KASAN_KUNIT_TEST >> is enabled, dynamic stack allocation is on purpose and should >> not fail the build. Add dependencies to reflect that situation. >> > > Thanks for the patch. I think Heiko (on vacation) has a patch to > get rid  of this config alltogether, which is probably the better > solution. > I did consider that, but concluded that this would be something a maintainer should do and went with what I thought was the least invasive method. I did check the various mailing lists for other patches, but I did not find anything there. Sorry if I missed it. Guenter