Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp540160pxx; Thu, 29 Oct 2020 08:30:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBgPh0jnQQP+bh2D482adkgbdnHiv56c6oMCvxvKq0UM/aJ/1TSig973So+1CwgMtsWmEm X-Received: by 2002:a05:6402:289:: with SMTP id l9mr4645418edv.294.1603985410138; Thu, 29 Oct 2020 08:30:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603985410; cv=none; d=google.com; s=arc-20160816; b=WnuK68fK31qHEyHAGZaMHC5cIaMT+y3IOjKHWv8/fA/XQlkyZX/KOq/gHP/cqI58gU xPE3MuyToIeOvA8uTMYDbayNPei1GoVSd/fFbxkn+0n0F0XFTjp9k+wIxz5/CGV/lwdU O+Zkz9YzKZebPDWQaxz233ifo2DfPZaZx0FacGpvvhubWfY6QrE+FZ1NRJVUtQXOuhaL FLEXf0hgWeNFSckIJQt3x/MqndMZjckL3vQf6yYrO9SPjYepgCp/Cw2TWvNsFdilt42Y qwhHdebOSK481rUK/GVHZ6XVMmc6VznjIASpHQ/y151mq4QuhZOqwsgl3XWlHTiAj6d8 NlVg== 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=apFGQpJNldG2edOQE4EMnGm/BVDPDRnfEMKqur5QD6U=; b=wrL4VlE85RWtMUXeW+pduZnk+AitP/8DD37g/t8a+fKMczvlEjUzgFI1tJwlhxp550 37potUcualJsk7F995BmhF3EenyEWdNMKYL/vuhRg//KQC6FUa4rsQIBYdWgjYoAFMzm ev7r2/6NTx/DzYDMPMps7i6hZVYjPXsxBa8laQO/BuazkqJa3AyJMSdS+6ZJDkQCEcUh MfcQCODpLalsKNRTvWyTFCuxv9zXmQ/FoCkfLJtcmrsqcfdvhKc2+lLInLAGK9rWJDl7 TG652DQQOuhjn4/HK/OyWFZPKJD1E61FH9K1qsMuXH2JnUFZcjRFnmF1iSf9Cer6e/58 uoWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=e2b8xCUI; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q1si2084069ejf.509.2020.10.29.08.29.46; Thu, 29 Oct 2020 08:30:10 -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=@google.com header.s=20161025 header.b=e2b8xCUI; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728258AbgJ2P2U (ORCPT + 99 others); Thu, 29 Oct 2020 11:28:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728162AbgJ2P2S (ORCPT ); Thu, 29 Oct 2020 11:28:18 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28A2BC0613D5 for ; Thu, 29 Oct 2020 08:28:18 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id t14so2638418pgg.1 for ; Thu, 29 Oct 2020 08:28:18 -0700 (PDT) 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=apFGQpJNldG2edOQE4EMnGm/BVDPDRnfEMKqur5QD6U=; b=e2b8xCUIBxmMJWZFFdxKTaDEZEhukBhkuQSQMNDi6PdGOWHOuN19BWvM2HH9I65EFP t/aGj0+vE7J7fb3BlbQVFVpc67wqo39xxlB8Fqiz0/XyGjF8jbexNAJAWNmhzlJjyYrH 9sJ1x10AfWGNbZTnJeSQXdhZN4+iEcAyTUQGXae0ZCCwQhVz1G0alZfgRHsYyCjd4MoZ E4b0/whUWA3weFohEH5D4BevvOrulcdh5h1tnhPmOfKePeD0KdpSi0/0InmXOGWbKqNz GRGGQhG5+qptwEw1W9e242HIcLvs2PIvgCOxZppG32w1NBYa5BXmAJjQngyyDZCRJAUo j4tA== 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=apFGQpJNldG2edOQE4EMnGm/BVDPDRnfEMKqur5QD6U=; b=foTWQfccOF4vKecoKsnmWkuHXmPj2DJYb1rSJEg0t/hSlQ7te1my/LQLci0wYtHWVY ZYUJv9atCTKT8K+lEd/F2BHHoASFh9OfMN+ccoonQMRDWUSMu/RcVwc36EzXIphS5GTS VfFMdHh+VtlEwBIsgFuBsZ5SMrYtxFJpz11WLEkugEIWuiIxGaNzeMMQfWgImzb3SgOG PkO8Sa2zoFeXw0wUFfpWGUpTFtubaC9+FW3Z2LxuPlrufmuiis43IrJZnBYM3k2H0M6G 7UuD06+pjeYRemWrciexuH49MQoP21XT2MFUyrMUU6bC44LUZX5eovpvneoInCFR8kTA MqRg== X-Gm-Message-State: AOAM531bBAK8L1yy3I2dPv2q2k1ZD8yKZx7UqbWqEGN+6/alAiorVGth E+rJmGt5Fm+UrSEW9eHswYgoOdKax7PDCPvtdt+/Ug== X-Received: by 2002:a17:90b:807:: with SMTP id bk7mr324734pjb.166.1603985297541; Thu, 29 Oct 2020 08:28:17 -0700 (PDT) MIME-Version: 1.0 References: <202010260230.VivTG0Gb-lkp@intel.com> <20201025121708.04d4070a44e28146baf9a6a7@linux-foundation.org> In-Reply-To: <20201025121708.04d4070a44e28146baf9a6a7@linux-foundation.org> From: Andrey Konovalov Date: Thu, 29 Oct 2020 16:28:06 +0100 Message-ID: Subject: Re: drivers/video/backlight/ltv350qv.c:192:12: warning: stack frame size of 13472 bytes in function 'ltv350qv_power' To: Andrew Morton , kernel test robot Cc: kbuild-all@lists.01.org, clang-built-linux , LKML , Linux Memory Management List , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 25, 2020 at 8:17 PM Andrew Morton wrote: > > On Mon, 26 Oct 2020 02:15:37 +0800 kernel test robot wrote: > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > head: d76913908102044f14381df865bb74df17a538cb > > commit: cae9dc35ed9ff82a99754e51d57ff6c332e1f7e4 kasan: allow enabling stack tagging for tag-based mode > > date: 3 months ago > > config: arm64-randconfig-r005-20201026 (attached as .config) > > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 1c8371692dfe8245bc6690ff1262dcced4649d21) > > 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/video/backlight/ltv350qv.c:192:12: warning: stack frame size of 13472 bytes in function 'ltv350qv_power' [-Wframe-larger-than=] > > That's a lot of stack. > > > static int ltv350qv_power(struct ltv350qv *lcd, int power) > > ^ > > 1 warning generated. > > > > vim +/ltv350qv_power +192 drivers/video/backlight/ltv350qv.c > > Odd - the code looks pretty normal. It is possible that your compiler > is (crazily) inlining ltv350qv_write_reg()? 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