CC: [email protected]
TO: "Ritesh, Harjani," <[email protected]>
CC: "Theodore Ts'o" <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   48f99181fc118d82dc8bf6c7221ad1c654cb8bc2
commit: e64e813cf070e355ec5ed4fc76ecf5bfcdf279ea [12906/15259] ext4: mballoc: 
add more mb_debug() msgs
:::::: branch date: 3 hours ago
:::::: commit date: 5 days ago
config: arm-randconfig-s032-20200603 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-244-g0ee050a8-dirty
        git checkout e64e813cf070e355ec5ed4fc76ecf5bfcdf279ea
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=arm CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>


sparse warnings: (new ones prefixed by >>)

   fs/ext4/mballoc.c:885:9: sparse: sparse: context imbalance in 
'ext4_mb_init_cache' - different lock contexts for basic block
   fs/ext4/mballoc.c:1789:5: sparse: sparse: context imbalance in 
'ext4_mb_try_best_found' - different lock contexts for basic block
   fs/ext4/mballoc.c:1817:5: sparse: sparse: context imbalance in 
'ext4_mb_find_by_goal' - different lock contexts for basic block
   fs/ext4/mballoc.c:2181:49: sparse: sparse: context imbalance in 
'ext4_mb_regular_allocator' - different lock contexts for basic block
   fs/ext4/mballoc.c:2736:17: sparse: sparse: context imbalance in 
'ext4_mb_release' - different lock contexts for basic block
   fs/ext4/mballoc.c:2856:9: sparse: sparse: context imbalance in 
'ext4_free_data_in_buddy' - wrong count at exit
   fs/ext4/mballoc.c:3064:15: sparse: sparse: context imbalance in 
'ext4_mb_mark_diskspace_used' - different lock contexts for basic block
   fs/ext4/mballoc.c:3316:13: sparse: sparse: context imbalance in 
'ext4_discard_allocated_blocks' - different lock contexts for basic block
   fs/ext4/mballoc.c:3597:13: sparse: sparse: context imbalance in 
'ext4_mb_put_pa' - different lock contexts for basic block
   fs/ext4/mballoc.c:3657:1: sparse: sparse: context imbalance in 
'ext4_mb_new_inode_pa' - different lock contexts for basic block
   fs/ext4/mballoc.c:3751:1: sparse: sparse: context imbalance in 
'ext4_mb_new_group_pa' - different lock contexts for basic block
   fs/ext4/mballoc.c:3949:24: sparse: sparse: context imbalance in 
'ext4_mb_discard_group_preallocations' - different lock contexts for basic block
   fs/ext4/mballoc.c:4097:9: sparse: sparse: context imbalance in 
'ext4_discard_preallocations' - different lock contexts for basic block
   fs/ext4/mballoc.c:4142:9: sparse: sparse: context imbalance in 
'ext4_mb_show_ac' - different lock contexts for basic block
   fs/ext4/mballoc.c:4373:9: sparse: sparse: context imbalance in 
'ext4_mb_discard_lg_preallocations' - different lock contexts for basic block
>> fs/ext4/mballoc.c:4142:9: sparse: sparse: context imbalance in 
>> 'ext4_mb_new_blocks' - different lock contexts for basic block
   fs/ext4/mballoc.c:4846:9: sparse: sparse: context imbalance in 
'ext4_free_blocks' - different lock contexts for basic block
   fs/ext4/mballoc.c:5146:15: sparse: sparse: context imbalance in 
'ext4_group_add_blocks' - different lock contexts for basic block
   fs/ext4/mballoc.c:5186:24: sparse: sparse: context imbalance in 
'ext4_trim_extent' - wrong count at exit
   fs/ext4/mballoc.c:5210:1: sparse: sparse: context imbalance in 
'ext4_trim_all_free' - different lock contexts for basic block
   fs/ext4/mballoc.c:5376:1: sparse: sparse: context imbalance in 
'ext4_mballoc_query_range' - different lock contexts for basic block

# 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e64e813cf070e355ec5ed4fc76ecf5bfcdf279ea
git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update linux-next
git checkout e64e813cf070e355ec5ed4fc76ecf5bfcdf279ea
vim +/ext4_mb_new_blocks +4142 fs/ext4/mballoc.c

c9de560ded61fa Alex Tomas         2008-01-29  4130  
6ba495e9259cd9 Theodore Ts'o      2009-09-18  4131  #ifdef CONFIG_EXT4_DEBUG
286ecbd5a415d9 Ritesh Harjani     2020-05-10  4132  static inline void 
ext4_mb_show_pa(struct super_block *sb)
c9de560ded61fa Alex Tomas         2008-01-29  4133  {
286ecbd5a415d9 Ritesh Harjani     2020-05-10  4134      ext4_group_t i, ngroups;
c9de560ded61fa Alex Tomas         2008-01-29  4135  
a0b30c12297eb6 Theodore Ts'o      2013-02-09  4136      if (!ext4_mballoc_debug 
||
4dd89fc6251a6b Theodore Ts'o      2011-02-27  4137          
(EXT4_SB(sb)->s_mount_flags & EXT4_MF_FS_ABORTED))
e3570639c8b5f2 Eric Sandeen       2010-07-27  4138              return;
e3570639c8b5f2 Eric Sandeen       2010-07-27  4139  
8df9675f8b498d Theodore Ts'o      2009-05-01  4140      ngroups = 
ext4_get_groups_count(sb);
286ecbd5a415d9 Ritesh Harjani     2020-05-10  4141      ext4_msg(sb, KERN_ERR, 
"groups: ");
8df9675f8b498d Theodore Ts'o      2009-05-01 @4142      for (i = 0; i < 
ngroups; i++) {
c9de560ded61fa Alex Tomas         2008-01-29  4143              struct 
ext4_group_info *grp = ext4_get_group_info(sb, i);
c9de560ded61fa Alex Tomas         2008-01-29  4144              struct 
ext4_prealloc_space *pa;
c9de560ded61fa Alex Tomas         2008-01-29  4145              ext4_grpblk_t 
start;
c9de560ded61fa Alex Tomas         2008-01-29  4146              struct 
list_head *cur;
c9de560ded61fa Alex Tomas         2008-01-29  4147              
ext4_lock_group(sb, i);
c9de560ded61fa Alex Tomas         2008-01-29  4148              
list_for_each(cur, &grp->bb_prealloc_list) {
c9de560ded61fa Alex Tomas         2008-01-29  4149                      pa = 
list_entry(cur, struct ext4_prealloc_space,
c9de560ded61fa Alex Tomas         2008-01-29  4150                              
        pa_group_list);
c9de560ded61fa Alex Tomas         2008-01-29  4151                      
spin_lock(&pa->pa_lock);
c9de560ded61fa Alex Tomas         2008-01-29  4152                      
ext4_get_group_no_and_offset(sb, pa->pa_pstart,
c9de560ded61fa Alex Tomas         2008-01-29  4153                              
                     NULL, &start);
c9de560ded61fa Alex Tomas         2008-01-29  4154                      
spin_unlock(&pa->pa_lock);
1c718505171b06 Akira Fujita       2009-07-05  4155                      
printk(KERN_ERR "PA:%u:%d:%u \n", i,
c9de560ded61fa Alex Tomas         2008-01-29  4156                             
start, pa->pa_len);
c9de560ded61fa Alex Tomas         2008-01-29  4157              }
60bd63d1928c65 Solofo Ramangalahy 2008-04-29  4158              
ext4_unlock_group(sb, i);
c9de560ded61fa Alex Tomas         2008-01-29  4159  
1c718505171b06 Akira Fujita       2009-07-05  4160              printk(KERN_ERR 
"%u: %d/%d \n",
c9de560ded61fa Alex Tomas         2008-01-29  4161                     i, 
grp->bb_free, grp->bb_fragments);
c9de560ded61fa Alex Tomas         2008-01-29  4162      }
c9de560ded61fa Alex Tomas         2008-01-29  4163      printk(KERN_ERR "\n");
c9de560ded61fa Alex Tomas         2008-01-29  4164  }
286ecbd5a415d9 Ritesh Harjani     2020-05-10  4165  

:::::: The code at line 4142 was first introduced by commit
:::::: 8df9675f8b498d0bfa1f0b5b06f56bf1ff366dd5 ext4: Avoid races caused by 
on-line resizing and SMP memory reordering

:::::: TO: Theodore Ts'o <[email protected]>
:::::: CC: Theodore Ts'o <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to