From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7AEC9C2D0E4 for ; Tue, 24 Nov 2020 11:52:11 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C5B382076B for ; Tue, 24 Nov 2020 11:52:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="oXPgSdbP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C5B382076B Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E92A06B00BF; Tue, 24 Nov 2020 06:52:09 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E1D126B00C0; Tue, 24 Nov 2020 06:52:09 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CE4526B00C1; Tue, 24 Nov 2020 06:52:09 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0215.hostedemail.com [216.40.44.215]) by kanga.kvack.org (Postfix) with ESMTP id B593A6B00BF for ; Tue, 24 Nov 2020 06:52:09 -0500 (EST) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 85D57180AD807 for ; Tue, 24 Nov 2020 11:52:09 +0000 (UTC) X-FDA: 77519148378.01.brain67_390e4fe2736d Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin01.hostedemail.com (Postfix) with ESMTP id 67E8110047F95 for ; Tue, 24 Nov 2020 11:52:09 +0000 (UTC) X-HE-Tag: brain67_390e4fe2736d X-Filterd-Recvd-Size: 5987 Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by imf01.hostedemail.com (Postfix) with ESMTP for ; Tue, 24 Nov 2020 11:52:08 +0000 (UTC) Received: by mail-pg1-f195.google.com with SMTP id 34so17247589pgp.10 for ; Tue, 24 Nov 2020 03:52:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vNU3GMWTx/DC3GaJXt/7EgHjQNLt/FBx4UlGxf6Gj2U=; b=oXPgSdbPFZzPWmlTC79K7X8Eh2kSULaa7iirpjhRBjDNVs3uVtcwoz1px9+bF16sf2 2YTND1A9WSX+R3qE3itaCGGR1wTig52shV/tE9XIDtGe3m+Y+PM0xcoqzlBgciciwk7p vl+pjBvlVXLpb63ynw3edmYofKoU+1p4xIZfPozqnOr2A2/q1WOqe6zCQi7DXdw9yG+5 t2kMB8J4UlVaojX3V0y7gWIVEH1gi1GRU9kYeFHi52Mcw31uSqtz/tQBjUDhHkTniqZ/ SJtPzpkuLxXDQo8MfHmLY6cPIE7Jao6x+DzvPYHmIUqaCj7woBamENq0v5tDS6TiAFmN ofrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vNU3GMWTx/DC3GaJXt/7EgHjQNLt/FBx4UlGxf6Gj2U=; b=AXRIlkwxT6GIaaqka8jfx1Iv+GVcbMT3kM21pinoDT2rHXhTOilujij4pyxceYblir bhqgwq+omngNeqPkUGnnjMVrIZTVCzyhuVPqi3rKQqr2uVqCtR8qOdiNTEBwNgWseQZ9 W4PoB+wj8pL5y+eRu36p0XFlh2LZiF5TlPwsPONYKoLzlQo93m0EG+h06Z+IJaCt5/Uv hjkOXdIbxIsKsxHwO3PtTu049Jp50itcUtdvrCJFSsKFZJPjD3b75YlFuznm0ryztP5r 4uQ1z+S6eGgCr00bdyfKKpqAtYl0Y0vWum5v47OmWnYGD2FsDwWfv+PjDkBkBEtSNcx8 8W7g== X-Gm-Message-State: AOAM533mL753kYdjqlLG5KY67kVUnGIIkEYqFTMKhE+Smw8pJ6wQtXje k0yzb7+V2wOBi2a+cM1UraH0ahz0GG6anbLcce0qgQ== X-Google-Smtp-Source: ABdhPJz06UPRTC1bBiQswJ+8jW8anup8pq2AWgtNsGnY64BywytSkHDz6zYJwq+/MHp9LYPqfpkSQYCpoa4pWa/3WBc= X-Received: by 2002:a62:3205:0:b029:197:f692:6a8b with SMTP id y5-20020a6232050000b0290197f6926a8bmr3638811pfy.2.1606218727772; Tue, 24 Nov 2020 03:52:07 -0800 (PST) MIME-Version: 1.0 References: <202011200603.Fq2dmeMk-lkp@intel.com> <71e44c1f-3c9f-db89-0347-3e23699d67cb@intel.com> In-Reply-To: <71e44c1f-3c9f-db89-0347-3e23699d67cb@intel.com> From: Andrey Konovalov Date: Tue, 24 Nov 2020 12:51:57 +0100 Message-ID: Subject: Re: [kbuild-all] Re: drivers/net/wan/slic_ds26522.c:205:12: warning: stack frame size of 12288 bytes in function 'slic_ds26522_probe' To: Rong Chen Cc: kernel test robot , kbuild-all@lists.01.org, clang-built-linux , LKML , Andrew Morton , Linux Memory Management List Content-Type: text/plain; charset="UTF-8" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Nov 24, 2020 at 9:02 AM Rong Chen wrote: > > On 11/23/20 10:15 PM, Andrey Konovalov wrote: > > On Thu, Nov 19, 2020 at 11:16 PM kernel test robot wrote: > >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > >> head: 3494d58865ad4a47611dbb427b214cc5227fa5eb > >> commit: cae9dc35ed9ff82a99754e51d57ff6c332e1f7e4 kasan: allow enabling stack tagging for tag-based mode > >> date: 3 months ago > >> config: arm64-randconfig-r002-20201119 (attached as .config) > >> compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b2613fb2f0f53691dd0211895afbb9413457fca7) > >> reproduce (this is a W=1 build): > >> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > >> chmod +x ~/bin/make.cross > >> # install arm64 cross compiling tool for clang build > >> # apt-get install binutils-aarch64-linux-gnu > >> # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cae9dc35ed9ff82a99754e51d57ff6c332e1f7e4 > >> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > >> git fetch --no-tags linus master > >> git checkout cae9dc35ed9ff82a99754e51d57ff6c332e1f7e4 > >> # save the attached .config to linux build tree > >> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 > >> > >> If you fix the issue, kindly add following tag as appropriate > >> Reported-by: kernel test robot > >> > >> All warnings (new ones prefixed by >>): > >> > >>>> drivers/net/wan/slic_ds26522.c:205:12: warning: stack frame size of 12288 bytes in function 'slic_ds26522_probe' [-Wframe-larger-than=] > >> static int slic_ds26522_probe(struct spi_device *spi) > >> ^ > >> 1 warning generated. > >> -- > >>>> drivers/gpu/drm/panel/panel-sitronix-st7789v.c:194:12: warning: stack frame size of 18352 bytes in function 'st7789v_prepare' [-Wframe-larger-than=] > >> static int st7789v_prepare(struct drm_panel *panel) > >> ^ > >> 1 warning generated. > > Same issue as reported previously. Copying my response from the other > > email just in case: > > > > This is the same issue in LLVM that was reported by Arnd for generic > > KASAN (also see KASAN_STACK_ENABLE option description). By default > > KASAN shouldn't have stack instrumentation enabled unless > > KASAN_STACK_ENABLE is specified. Perhaps it makes sense to disable it > > for KASAN_SW_TAGS config on the kernel test robot. > > > > [1] https://bugs.llvm.org/show_bug.cgi?id=38809 > > Hi Andrey, > > Thanks for the explanation, we'll disable CONFIG_KASAN_SW_TAGS. Hi Rong, No, no, if you have a CONFIG_KASAN_SW_TAGS-based config - keep it enabled, just disable CONFIG_KASAN_STACK_ENABLE to avoid these stack overflows. Thanks!