From: kernel test robot <lkp@intel.com>
To: Mathias Nyman <mathias.nyman@linux.intel.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: [stable:linux-5.4.y 84/946] drivers/usb/host/xhci-debugfs.c:213:12: warning: stack frame size (1184) exceeds limit (1024) in 'xhci_ring_trb_show'
Date: Sun, 7 Nov 2021 00:32:23 +0800 [thread overview]
Message-ID: <202111070015.3LMtBwgk-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3029 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.y
head: c65356f0f7268b1260dd64415c2145e73640872e
commit: d31a4c35b92575eaa4aa0c222fac704844d66e06 [84/946] xhci: fix unsafe memory usage in xhci tracing
config: powerpc64-randconfig-r033-20211027 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=d31a4c35b92575eaa4aa0c222fac704844d66e06
git remote add stable https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
git fetch --no-tags stable linux-5.4.y
git checkout d31a4c35b92575eaa4aa0c222fac704844d66e06
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/usb/host/xhci-debugfs.c:213:12: warning: stack frame size (1184) exceeds limit (1024) in 'xhci_ring_trb_show' [-Wframe-larger-than]
static int xhci_ring_trb_show(struct seq_file *s, void *unused)
^
1 warning generated.
vim +/xhci_ring_trb_show +213 drivers/usb/host/xhci-debugfs.c
02b6fdc2a153e6 Lu Baolu 2017-10-05 212
02b6fdc2a153e6 Lu Baolu 2017-10-05 @213 static int xhci_ring_trb_show(struct seq_file *s, void *unused)
02b6fdc2a153e6 Lu Baolu 2017-10-05 214 {
02b6fdc2a153e6 Lu Baolu 2017-10-05 215 int i;
fa2dfd0ec22e00 Zhengjun Xing 2018-02-12 216 struct xhci_ring *ring = *(struct xhci_ring **)s->private;
02b6fdc2a153e6 Lu Baolu 2017-10-05 217 struct xhci_segment *seg = ring->first_seg;
02b6fdc2a153e6 Lu Baolu 2017-10-05 218
02b6fdc2a153e6 Lu Baolu 2017-10-05 219 for (i = 0; i < ring->num_segs; i++) {
02b6fdc2a153e6 Lu Baolu 2017-10-05 220 xhci_ring_dump_segment(s, seg);
02b6fdc2a153e6 Lu Baolu 2017-10-05 221 seg = seg->next;
02b6fdc2a153e6 Lu Baolu 2017-10-05 222 }
02b6fdc2a153e6 Lu Baolu 2017-10-05 223
02b6fdc2a153e6 Lu Baolu 2017-10-05 224 return 0;
02b6fdc2a153e6 Lu Baolu 2017-10-05 225 }
02b6fdc2a153e6 Lu Baolu 2017-10-05 226
:::::: The code at line 213 was first introduced by commit
:::::: 02b6fdc2a153e61b957937772a562fb6357dc861 usb: xhci: Add debugfs interface for xHCI driver
:::::: TO: Lu Baolu <baolu.lu@linux.intel.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30807 bytes --]
reply other threads:[~2021-11-06 16:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202111070015.3LMtBwgk-lkp@intel.com \
--to=lkp@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=mathias.nyman@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®