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 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 :::::: CC: Greg Kroah-Hartman --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org