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=-16.9 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 887CFC2D0A8 for ; Mon, 28 Sep 2020 07:03:37 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E7F7D2311C for ; Mon, 28 Sep 2020 07:03:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="jfeK2OwT" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E7F7D2311C 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 2DAD36B005D; Mon, 28 Sep 2020 03:03:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 28B2C6B0062; Mon, 28 Sep 2020 03:03:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1A1E96B0068; Mon, 28 Sep 2020 03:03:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0112.hostedemail.com [216.40.44.112]) by kanga.kvack.org (Postfix) with ESMTP id 051506B005D for ; Mon, 28 Sep 2020 03:03:36 -0400 (EDT) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id B9404181AE865 for ; Mon, 28 Sep 2020 07:03:35 +0000 (UTC) X-FDA: 77311579590.04.blood77_4f094512717f Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin04.hostedemail.com (Postfix) with ESMTP id A050D800DDFB for ; Mon, 28 Sep 2020 07:03:35 +0000 (UTC) X-HE-Tag: blood77_4f094512717f X-Filterd-Recvd-Size: 7165 Received: from mail-oi1-f195.google.com (mail-oi1-f195.google.com [209.85.167.195]) by imf23.hostedemail.com (Postfix) with ESMTP for ; Mon, 28 Sep 2020 07:03:35 +0000 (UTC) Received: by mail-oi1-f195.google.com with SMTP id w16so266521oia.2 for ; Mon, 28 Sep 2020 00:03:35 -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=C/Qpr32EfMGBDFnNDrDqSVauN6ep9cWaocm5eivByKA=; b=jfeK2OwTfKCXfUf4o7zlIAlecp/bmeMZHTIl7FA8S6N4MSCcWGsGngAhQWP7oGmELe VbslGMs8beKd2fxaaupCQnjAwFeWLKfzlRE/07EUWnlodYnD1AYEXpBf4xtvIpm6G3ss xU4MpGiPBYiFy2xaIiRlZ31GWKlM5Fy3Nh+3jRpNmkLgxW2JGquzdmVetBdBYwAnh8eG uxhkUMRg9QZgyVvTO+EHcFMEkwlOjIT3XuNRCMNzFLsl6ETrhhEtAx5oMEhuZc/3bA+1 Kr+l7YL7Oo5u1v1CmN3BKKkJWiJvL4cLsr8pRD29y0nFMvofBCw3srI0qpInPVtJEwBc M5WA== 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=C/Qpr32EfMGBDFnNDrDqSVauN6ep9cWaocm5eivByKA=; b=ISzwnvkd6sZSnhHxxUrRf3za6Rt4ivjI6QHHud56IkQv+4zbFviVlSk/uGuxNpByL7 MRIvoXQ0LlueoAGrcWxFIheALhmZ1pnRLlbwvVkgh41mtj8TpJr9AWUPGRaMhlO3gcRy I+VU77pdJ1T0AdW1o6f9XCa2Iqg0kLN2yDDdHql6xR72SRw0dsYlXq3bqNhMVCnxU5Wt Ep/orlxLrb0rVYKLxtXk+vi0gaBdrfv4eC6RxnVN8nMvCV4umvMDbAoXdr8JhrYsAEnP I6uAWfw6olwvqhx1O3cZGOZzUARr+70gAHvu9ByMPGML9j6L2pKkRf+ahro5y8iAzVYt SIQw== X-Gm-Message-State: AOAM530vGjMGw5HpYVCTSZyWXi99531Rd+cjdKGLGys4QKeMCs2LFWp0 gZFmSNNJFpK4PqnliGnXaJrjWYY0gxGll96zb0bAWg== X-Google-Smtp-Source: ABdhPJy2XU8xAj1W9RSB+wVQl++GsRMbLAfJ0a95oX5pXpcKIPOEjZgdTHo6I5m/azDMKDZJoA1SXud5oWehd+dibdU= X-Received: by 2002:aca:5158:: with SMTP id f85mr122075oib.121.1601276614185; Mon, 28 Sep 2020 00:03:34 -0700 (PDT) MIME-Version: 1.0 References: <202009280455.Qidf5AqU%lkp@intel.com> In-Reply-To: <202009280455.Qidf5AqU%lkp@intel.com> From: Marco Elver Date: Mon, 28 Sep 2020 09:03:22 +0200 Message-ID: Subject: Re: [linux-next:master 11080/11173] drivers/media/common/saa7146/saa7146_hlp.c:648:5: warning: stack frame size of 1072 bytes in function 'saa7146_enable_overlay' To: kernel test robot Cc: George Popescu , kbuild-all@lists.01.org, clang-built-linux , David Brazdil , 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 Sun, 27 Sep 2020 at 22:14, kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: 20dc779fdefc40bf7dd9736cea01704f29228fae > commit: 2ce416ba162877d5cf267ac35548ea45eba84150 [11080/11173] ubsan: introduce CONFIG_UBSAN_LOCAL_BOUNDS for Clang > config: powerpc-randconfig-r004-20200927 (attached as .config) > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 6d374cf78c8a80a0bbfc7ce9bc80b3f183f44c80) > 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 powerpc cross compiling tool for clang build > # apt-get install binutils-powerpc-linux-gnu > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=2ce416ba162877d5cf267ac35548ea45eba84150 > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout 2ce416ba162877d5cf267ac35548ea45eba84150 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > > >> drivers/media/common/saa7146/saa7146_hlp.c:648:5: warning: stack frame size of 1072 bytes in function 'saa7146_enable_overlay' [-Wframe-larger-than=] > int saa7146_enable_overlay(struct saa7146_fh *fh) > ^ > 1 warning generated. This warning must have existed before, because the UBSAN patch didn't add any features, it just guarded them with extra Kconfig options. Also, this is with Clang 12, which is very much in development and quite unstable. > vim +/saa7146_enable_overlay +648 drivers/media/common/saa7146/saa7146_hlp.c > > ^1da177e4c3f41 drivers/media/common/saa7146_hlp.c Linus Torvalds 2005-04-16 647 > ^1da177e4c3f41 drivers/media/common/saa7146_hlp.c Linus Torvalds 2005-04-16 @648 int saa7146_enable_overlay(struct saa7146_fh *fh) > ^1da177e4c3f41 drivers/media/common/saa7146_hlp.c Linus Torvalds 2005-04-16 649 { > ^1da177e4c3f41 drivers/media/common/saa7146_hlp.c Linus Torvalds 2005-04-16 650 struct saa7146_dev *dev = fh->dev; > ^1da177e4c3f41 drivers/media/common/saa7146_hlp.c Linus Torvalds 2005-04-16 651 struct saa7146_vv *vv = dev->vv_data; > ^1da177e4c3f41 drivers/media/common/saa7146_hlp.c Linus Torvalds 2005-04-16 652 > 5da545ad08a3c6 drivers/media/common/saa7146_hlp.c Hans Verkuil 2012-05-01 653 saa7146_set_window(dev, vv->ov.win.w.width, vv->ov.win.w.height, vv->ov.win.field); > 5da545ad08a3c6 drivers/media/common/saa7146_hlp.c Hans Verkuil 2012-05-01 654 saa7146_set_position(dev, vv->ov.win.w.left, vv->ov.win.w.top, vv->ov.win.w.height, vv->ov.win.field, vv->ov_fmt->pixelformat); > ^1da177e4c3f41 drivers/media/common/saa7146_hlp.c Linus Torvalds 2005-04-16 655 saa7146_set_output_format(dev, vv->ov_fmt->trans); > ^1da177e4c3f41 drivers/media/common/saa7146_hlp.c Linus Torvalds 2005-04-16 656 saa7146_set_clipping_rect(fh); > ^1da177e4c3f41 drivers/media/common/saa7146_hlp.c Linus Torvalds 2005-04-16 657 > ^1da177e4c3f41 drivers/media/common/saa7146_hlp.c Linus Torvalds 2005-04-16 658 /* enable video dma1 */ > ^1da177e4c3f41 drivers/media/common/saa7146_hlp.c Linus Torvalds 2005-04-16 659 saa7146_write(dev, MC1, (MASK_06 | MASK_22)); > ^1da177e4c3f41 drivers/media/common/saa7146_hlp.c Linus Torvalds 2005-04-16 660 return 0; > ^1da177e4c3f41 drivers/media/common/saa7146_hlp.c Linus Torvalds 2005-04-16 661 } > ^1da177e4c3f41 drivers/media/common/saa7146_hlp.c Linus Torvalds 2005-04-16 662 > > :::::: The code at line 648 was first introduced by commit > :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 > > :::::: TO: Linus Torvalds > :::::: CC: Linus Torvalds > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org