Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp426920pxb; Tue, 14 Sep 2021 00:08:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxr3reS4BBDSukK+4dqassGPRgyaLWF0KHVJL2wxwGX5trzQhKqLizQ+1DKDcQlVdPfsNLD X-Received: by 2002:a05:6402:11c9:: with SMTP id j9mr17580255edw.134.1631603333668; Tue, 14 Sep 2021 00:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631603333; cv=none; d=google.com; s=arc-20160816; b=GRAaWZeNtvC7VYeU6xX+t3z2NQgqwI1MdH/rOvRnDPgyr5S6Rc2BHOb5YOeEUoYcOy FqyWZXuL8WH1rKuz8sj5aWaA3sc2bFMzafqijRTDhWpfTK7DQQ87Qr9pVgyePz3sqJtJ hgWvr2xeuoM7prNowtAScJU4EKmX4x8SQcfmVX6/7pLFz6qrQCttiPsgwq9CBpBqFI6G hhTHGFUEJwvzuRYzeFPzuey6SvRuLjU94J+HFck/Eg2bnljbRvhp9QEqc+nNXDv44nge 4l/eCAdohzdvn50yL/GEZUr1Bc/vCZ8GKPm271zfOiX9JeG+b+5YrWNZAJZnJrUo5J8h ZBcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=B2/VApyJZoRqB7L/N6VX+qLKsuRTi0j0Ev7mIRjfSzk=; b=wndA542ClD8dKOF4twD4qrg+smC2sjAnhYM6gEpcFKXfHjCZlJCKWp5bzo0CIQeoGo AUaI9umZXE7Y4I8Yff7rzCkVFYp2FqkZJBuu+yUCDJxhveCmyS0ZsyQw1SqpMl9RTAQC xSgGTT0Ameqy12M+4pAYH8zR4Be4XP7cd8a4M4gKiajVWI2iEsMntlsfzxzrORAf7Cwa zqwjW6wQ+wLjjxu7sogCutPmP2yN+03mmUnNLBj3bUP47yfCU7VIiDT4suoUWdIeAAd7 FozEerFfUwPJvX2VUSU0qJSJj/kcFJ3PKj5t/AC0kvDWgZdspDpRuL39eMd7GpqB4Jhy NJzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IemX1JxG; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id og49si9363365ejc.305.2021.09.14.00.08.30; Tue, 14 Sep 2021 00:08:53 -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=IemX1JxG; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240456AbhINHGe (ORCPT + 99 others); Tue, 14 Sep 2021 03:06:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240468AbhINHGZ (ORCPT ); Tue, 14 Sep 2021 03:06:25 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFD06C061762 for ; Tue, 14 Sep 2021 00:05:08 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id kt8so26576426ejb.13 for ; Tue, 14 Sep 2021 00:05:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B2/VApyJZoRqB7L/N6VX+qLKsuRTi0j0Ev7mIRjfSzk=; b=IemX1JxGW12b/l8eossorB4QY091xodevGLbTavaDgizjgxnuUyf/hunquBOn2xbr3 HZMMGQVAS1gBFy9qMLnbclwWPfNwCH1uKE0+JBJkIz70jkjNjq/B4BqjupE8y50kG8QS 02OoJYwW8RHILm9bXFAHwFXgKLBJNEnJ9qM5DnoTOCzFX8QC4PFQfnHYzHbQSRcSANbK PI9Zfm+8xhispKdYwn1NpURo2Vcl6kYiXgkIHWX9Djr8AGf1Ze8NCun97cqDPI0sbMzd aFXOW4D2zaykbvTiEyvHJBJfIgo8Ah9XjdWS/jf2DwLJBnAB9dlCS5uz8q9RYhAGqRik kfsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=B2/VApyJZoRqB7L/N6VX+qLKsuRTi0j0Ev7mIRjfSzk=; b=YThPnvxPl54FA+bTCG+epObdqB/WsI2hqsciPvkjFefe1jLQn75DvShQg3ZFVSTK2s +3DB+aiJK8X2G/fl9NrboELm6oxiugFLsAn4JD+0jb78oxbRPrd+GF2gBL1MXUEjh3iP yoZEzieqMJHj1/0ZYJcKPsb1cAuc0boo/XzG+PR/7oknhgGtqTn2Yn5P81d3Wcx37M0m YihH/KUCEU5P0LPxsgqotzFtSZTaEqalQMj/G5dV6A0WE+ayj/XaAbAo9/mkO15bxqrP QK35jyoAK+34As8Lm2cVRTr1WhGwPICKf4q1wR8iC6biSQlRjk7OmpZ62P027BpvyyTX yQYw== X-Gm-Message-State: AOAM530I89nBl3LhdM0jG1qitjefXANsMkY4KgIoi+EnxATa/NSmOwTv J6odNVXGPKCrz1wl2fQ+mi0WhSpka8Mcqt5ShPo= X-Received: by 2002:a17:906:4dc1:: with SMTP id f1mr17398909ejw.288.1631603107570; Tue, 14 Sep 2021 00:05:07 -0700 (PDT) MIME-Version: 1.0 References: <20210912025235.3514761-1-linux@roeck-us.net> <315e4a23990444f585a15d2e23a39b8f@AcuMS.aculab.com> <46f59bf8-f243-b65c-07b3-8ecbf7b410fa@roeck-us.net> In-Reply-To: <46f59bf8-f243-b65c-07b3-8ecbf7b410fa@roeck-us.net> From: Max Filippov Date: Tue, 14 Sep 2021 00:04:56 -0700 Message-ID: Subject: Re: [PATCH] xtensa: Increase size of gcc stack frame check To: Guenter Roeck Cc: David Laight , Andrew Morton , Masahiro Yamada , "linux-xtensa@linux-xtensa.org" , "linux-kernel@vger.kernel.org" , Chris Zankel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 13, 2021 at 9:11 AM Guenter Roeck wrote: > The functions I checked typically have pretty large local data > (like, more than 700-800 bytes). The errors are only observed > with xtensa:allmodconfig test builds. While it may be arguable > if those functions really need that much data on the stack, it > is unreasonable to assume that all those errors (again, more > than 50) are ever going to get fixed, especially since the errors > are only seen with xtensa and not with any other architecture That's not what I observe. If I build allmodconfig on v5.15-rc1 for arm with gcc-8.3 I get 69 of them. > (including parisc; setting a stack limit of 1024 works just fine > with that architecture, at least with gcc 11.x). So the realistic This comparison is a bit biased because allmodconfig on xtensa enables KASAN which is not supported by the parisc. Disabling KASAN roughly halves the size of stack frames for a few instances that I've checked. -- Thanks. -- Max