Re: [PATCH] lkdtm: Add folio_lock deadlock scenarios
From: kernel test robot
Date: Tue Apr 07 2026 - 00:04:46 EST
Hi Yunseong,
kernel test robot noticed the following build errors:
[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on char-misc/char-misc-next char-misc/char-misc-linus kees/for-next/pstore kees/for-next/kspp shuah-kselftest/next shuah-kselftest/fixes soc/for-next linus/master v7.0-rc6 next-20260403]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Yunseong-Kim/lkdtm-Add-folio_lock-deadlock-scenarios/20260405-145013
base: char-misc/char-misc-testing
patch link: https://lore.kernel.org/r/20260402143947.162844-1-ysk%40kzalloc.com
patch subject: [PATCH] lkdtm: Add folio_lock deadlock scenarios
config: riscv-randconfig-002-20260405 (https://download.01.org/0day-ci/archive/20260405/202604051847.ywz0arFk-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 9.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260405/202604051847.ywz0arFk-lkp@xxxxxxxxx/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604051847.ywz0arFk-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
drivers/misc/lkdtm/deadlock.c: In function 'lkdtm_folio_mutex_kthread':
>> drivers/misc/lkdtm/deadlock.c:99:38: error: parameter name omitted
99 | static int lkdtm_folio_mutex_kthread(void *)
| ^~~~~~
drivers/misc/lkdtm/deadlock.c: In function 'lkdtm_mutex_folio_kthread':
drivers/misc/lkdtm/deadlock.c:112:38: error: parameter name omitted
112 | static int lkdtm_mutex_folio_kthread(void *)
| ^~~~~~
drivers/misc/lkdtm/deadlock.c: In function 'lkdtm_waiter_thread':
drivers/misc/lkdtm/deadlock.c:228:32: error: parameter name omitted
228 | static int lkdtm_waiter_thread(void *)
| ^~~~~~
vim +99 drivers/misc/lkdtm/deadlock.c
97
98 /* Attempting 'folio_lock() A then Mutex B' order */
> 99 static int lkdtm_folio_mutex_kthread(void *)
100 {
101 while (true) {
102 folio_lock(folio_common);
103 mutex_lock(&mutex_b);
104 mutex_unlock(&mutex_b);
105 folio_unlock(folio_common);
106 }
107
108 return 0;
109 }
110
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki