* [linux-next:master 7041/9715] fs/ntfs3/fsntfs.c:770:5: warning: stack frame size (2112) exceeds limit (1024) in function 'ntfs_clear_mft_tail'
@ 2021-08-24 10:48 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-24 10:48 UTC (permalink / raw)
To: Konstantin Komarov
Cc: clang-built-linux, kbuild-all, Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 5054 bytes --]
Hi Konstantin,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 46debfec12b4e038b93c62a86bd78ae62f9ba4ea
commit: 6e5be40d32fb1907285277c02e74493ed43d77fe [7041/9715] fs/ntfs3: Add NTFS3 in fs/Kconfig and fs/Makefile
config: hexagon-randconfig-r013-20210824 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d26000e4cc2bc65e207a84fa26cb6e374d60aa12)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=6e5be40d32fb1907285277c02e74493ed43d77fe
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 6e5be40d32fb1907285277c02e74493ed43d77fe
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=hexagon
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 >>):
fs/ntfs3/fsntfs.c:1874:9: warning: variable 'cnt' set but not used [-Wunused-but-set-variable]
size_t cnt, off;
^
>> fs/ntfs3/fsntfs.c:770:5: warning: stack frame size (2112) exceeds limit (1024) in function 'ntfs_clear_mft_tail' [-Wframe-larger-than]
int ntfs_clear_mft_tail(struct ntfs_sb_info *sbi, size_t from, size_t to)
^
2 warnings generated.
vim +/ntfs_clear_mft_tail +770 fs/ntfs3/fsntfs.c
82cae269cfa953 Konstantin Komarov 2021-08-13 763
82cae269cfa953 Konstantin Komarov 2021-08-13 764 /*
82cae269cfa953 Konstantin Komarov 2021-08-13 765 * ntfs_clear_mft_tail
82cae269cfa953 Konstantin Komarov 2021-08-13 766 *
82cae269cfa953 Konstantin Komarov 2021-08-13 767 * formats empty records [from, to)
82cae269cfa953 Konstantin Komarov 2021-08-13 768 * sbi->mft.bitmap is locked for write
82cae269cfa953 Konstantin Komarov 2021-08-13 769 */
82cae269cfa953 Konstantin Komarov 2021-08-13 @770 int ntfs_clear_mft_tail(struct ntfs_sb_info *sbi, size_t from, size_t to)
82cae269cfa953 Konstantin Komarov 2021-08-13 771 {
82cae269cfa953 Konstantin Komarov 2021-08-13 772 int err;
82cae269cfa953 Konstantin Komarov 2021-08-13 773 u32 rs;
82cae269cfa953 Konstantin Komarov 2021-08-13 774 u64 vbo;
82cae269cfa953 Konstantin Komarov 2021-08-13 775 struct runs_tree *run;
82cae269cfa953 Konstantin Komarov 2021-08-13 776 struct ntfs_inode *ni;
82cae269cfa953 Konstantin Komarov 2021-08-13 777
82cae269cfa953 Konstantin Komarov 2021-08-13 778 if (from >= to)
82cae269cfa953 Konstantin Komarov 2021-08-13 779 return 0;
82cae269cfa953 Konstantin Komarov 2021-08-13 780
82cae269cfa953 Konstantin Komarov 2021-08-13 781 rs = sbi->record_size;
82cae269cfa953 Konstantin Komarov 2021-08-13 782 ni = sbi->mft.ni;
82cae269cfa953 Konstantin Komarov 2021-08-13 783 run = &ni->file.run;
82cae269cfa953 Konstantin Komarov 2021-08-13 784
82cae269cfa953 Konstantin Komarov 2021-08-13 785 down_read(&ni->file.run_lock);
82cae269cfa953 Konstantin Komarov 2021-08-13 786 vbo = (u64)from * rs;
82cae269cfa953 Konstantin Komarov 2021-08-13 787 for (; from < to; from++, vbo += rs) {
82cae269cfa953 Konstantin Komarov 2021-08-13 788 struct ntfs_buffers nb;
82cae269cfa953 Konstantin Komarov 2021-08-13 789
82cae269cfa953 Konstantin Komarov 2021-08-13 790 err = ntfs_get_bh(sbi, run, vbo, rs, &nb);
82cae269cfa953 Konstantin Komarov 2021-08-13 791 if (err)
82cae269cfa953 Konstantin Komarov 2021-08-13 792 goto out;
82cae269cfa953 Konstantin Komarov 2021-08-13 793
82cae269cfa953 Konstantin Komarov 2021-08-13 794 err = ntfs_write_bh(sbi, &sbi->new_rec->rhdr, &nb, 0);
82cae269cfa953 Konstantin Komarov 2021-08-13 795 nb_put(&nb);
82cae269cfa953 Konstantin Komarov 2021-08-13 796 if (err)
82cae269cfa953 Konstantin Komarov 2021-08-13 797 goto out;
82cae269cfa953 Konstantin Komarov 2021-08-13 798 }
82cae269cfa953 Konstantin Komarov 2021-08-13 799
82cae269cfa953 Konstantin Komarov 2021-08-13 800 out:
82cae269cfa953 Konstantin Komarov 2021-08-13 801 sbi->mft.used = from;
82cae269cfa953 Konstantin Komarov 2021-08-13 802 up_read(&ni->file.run_lock);
82cae269cfa953 Konstantin Komarov 2021-08-13 803 return err;
82cae269cfa953 Konstantin Komarov 2021-08-13 804 }
82cae269cfa953 Konstantin Komarov 2021-08-13 805
:::::: The code at line 770 was first introduced by commit
:::::: 82cae269cfa953032fbb8980a7d554d60fb00b17 fs/ntfs3: Add initialization of super block
:::::: TO: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
:::::: CC: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
---
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: 25806 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-24 10:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-24 10:48 [linux-next:master 7041/9715] fs/ntfs3/fsntfs.c:770:5: warning: stack frame size (2112) exceeds limit (1024) in function 'ntfs_clear_mft_tail' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).