tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 4d41ead6ead97c3730bbd186a601a64828668f01 commit: 8ad8b72721d0f07fa02dbe71f901743f9c71c8e6 riscv: Add KASAN support date: 7 months ago config: riscv-randconfig-s031-20200829 (attached as .config) compiler: riscv64-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.2-191-g10164920-dirty git checkout 8ad8b72721d0f07fa02dbe71f901743f9c71c8e6 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=riscv If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) mm/kasan/report.c:80:13: sparse: sparse: context imbalance in 'start_report' - wrong count at exit mm/kasan/report.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/mm.h, ...): >> include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'end_report' - unexpected unlock # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8ad8b72721d0f07fa02dbe71f901743f9c71c8e6 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 8ad8b72721d0f07fa02dbe71f901743f9c71c8e6 vim +/end_report +393 include/linux/spinlock.h c2f21ce2e31286 Thomas Gleixner 2009-12-02 390 3490565b633c70 Denys Vlasenko 2015-07-13 391 static __always_inline void spin_unlock_irqrestore(spinlock_t *lock, unsigned long flags) c2f21ce2e31286 Thomas Gleixner 2009-12-02 392 { c2f21ce2e31286 Thomas Gleixner 2009-12-02 @393 raw_spin_unlock_irqrestore(&lock->rlock, flags); c2f21ce2e31286 Thomas Gleixner 2009-12-02 394 } c2f21ce2e31286 Thomas Gleixner 2009-12-02 395 :::::: The code at line 393 was first introduced by commit :::::: c2f21ce2e31286a0a32f8da0a7856e9ca1122ef3 locking: Implement new raw_spinlock :::::: TO: Thomas Gleixner :::::: CC: Thomas Gleixner --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org