[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202512292101.U530Lg4A-lkp@intel.com>
Date: Mon, 29 Dec 2025 21:56:34 +0800
From: kernel test robot <lkp@...el.com>
To: Ryan Foster <foster.ryan.r@...il.com>,
linux-security-module@...r.kernel.org
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
paul@...l-moore.com, serge@...lyn.com,
Ryan Foster <foster.ryan.r@...il.com>
Subject: Re: [PATCH v4] security: Add KUnit tests for kuid_root_in_ns and
vfsuid_root_in_currentns
Hi Ryan,
kernel test robot noticed the following build errors:
[auto build test ERROR on pcmoore-selinux/next]
[also build test ERROR on linus/master v6.19-rc3 next-20251219]
[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/Ryan-Foster/security-Add-KUnit-tests-for-kuid_root_in_ns-and-vfsuid_root_in_currentns/20251229-035056
base: https://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git next
patch link: https://lore.kernel.org/r/20251228194838.32214-2-foster.ryan.r%40gmail.com
patch subject: [PATCH v4] security: Add KUnit tests for kuid_root_in_ns and vfsuid_root_in_currentns
config: i386-randconfig-011-20251229 (https://download.01.org/0day-ci/archive/20251229/202512292101.U530Lg4A-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251229/202512292101.U530Lg4A-lkp@intel.com/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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512292101.U530Lg4A-lkp@intel.com/
All errors (new ones prefixed by >>):
ld: security/commoncap.o: in function `kunit_kmalloc':
>> include/kunit/test.h:501:(.text+0xb59): undefined reference to `kunit_kmalloc_array'
ld: security/commoncap.o: in function `test_kuid_root_in_ns_init_ns_nonzero':
>> security/commoncap_test.c:121:(.text+0x109c): undefined reference to `kunit_unary_assert_format'
>> ld: security/commoncap_test.c:121:(.text+0x10aa): undefined reference to `__kunit_do_failed_assertion'
ld: security/commoncap.o: in function `test_kuid_root_in_ns_init_ns_uid0':
security/commoncap_test.c:101:(.text+0x1101): undefined reference to `kunit_unary_assert_format'
ld: security/commoncap_test.c:101:(.text+0x110f): undefined reference to `__kunit_do_failed_assertion'
ld: security/commoncap.o: in function `test_vfsuid_root_in_currentns_nonzero':
security/commoncap_test.c:80:(.text+0x14aa): undefined reference to `kunit_unary_assert_format'
ld: security/commoncap_test.c:80:(.text+0x14b8): undefined reference to `__kunit_do_failed_assertion'
ld: security/commoncap.o: in function `test_vfsuid_root_in_currentns_init_ns':
security/commoncap_test.c:42:(.text+0x1544): undefined reference to `kunit_unary_assert_format'
ld: security/commoncap_test.c:42:(.text+0x1552): undefined reference to `__kunit_do_failed_assertion'
ld: security/commoncap.o: in function `test_kuid_root_in_ns_with_mapping':
security/commoncap_test.c:219:(.text+0x166a): undefined reference to `kunit_unary_assert_format'
ld: security/commoncap_test.c:219:(.text+0x1678): undefined reference to `__kunit_do_failed_assertion'
>> ld: security/commoncap_test.c:220:(.text+0x16ca): undefined reference to `kunit_unary_assert_format'
ld: security/commoncap_test.c:220:(.text+0x16d8): undefined reference to `__kunit_do_failed_assertion'
>> ld: security/commoncap_test.c:210:(.text+0x16f8): undefined reference to `kunit_ptr_not_err_assert_format'
ld: security/commoncap_test.c:210:(.text+0x1706): undefined reference to `__kunit_do_failed_assertion'
>> ld: security/commoncap_test.c:210:(.text+0x170d): undefined reference to `__kunit_abort'
ld: security/commoncap_test.c:213:(.text+0x172c): undefined reference to `kunit_unary_assert_format'
ld: security/commoncap_test.c:213:(.text+0x173a): undefined reference to `__kunit_do_failed_assertion'
ld: security/commoncap_test.c:216:(.text+0x175c): undefined reference to `kunit_unary_assert_format'
ld: security/commoncap_test.c:216:(.text+0x176a): undefined reference to `__kunit_do_failed_assertion'
ld: security/commoncap.o: in function `test_kuid_root_in_ns_with_different_mappings':
security/commoncap_test.c:254:(.text+0x18fa): undefined reference to `kunit_unary_assert_format'
ld: security/commoncap_test.c:254:(.text+0x1908): undefined reference to `__kunit_do_failed_assertion'
ld: security/commoncap_test.c:259:(.text+0x19da): undefined reference to `kunit_unary_assert_format'
ld: security/commoncap_test.c:259:(.text+0x19e8): undefined reference to `__kunit_do_failed_assertion'
ld: security/commoncap_test.c:267:(.text+0x1af2): undefined reference to `kunit_unary_assert_format'
ld: security/commoncap_test.c:267:(.text+0x1b00): undefined reference to `__kunit_do_failed_assertion'
ld: security/commoncap_test.c:241:(.text+0x1b20): undefined reference to `kunit_ptr_not_err_assert_format'
ld: security/commoncap_test.c:241:(.text+0x1b2e): undefined reference to `__kunit_do_failed_assertion'
ld: security/commoncap_test.c:241:(.text+0x1b35): undefined reference to `__kunit_abort'
ld: security/commoncap_test.c:245:(.text+0x1b50): undefined reference to `kunit_ptr_not_err_assert_format'
ld: security/commoncap_test.c:245:(.text+0x1b61): undefined reference to `__kunit_do_failed_assertion'
ld: security/commoncap_test.c:245:(.text+0x1b68): undefined reference to `__kunit_abort'
ld: security/commoncap_test.c:249:(.text+0x1b80): undefined reference to `kunit_ptr_not_err_assert_format'
ld: security/commoncap_test.c:249:(.text+0x1b8e): undefined reference to `__kunit_do_failed_assertion'
ld: security/commoncap_test.c:249:(.text+0x1b95): undefined reference to `__kunit_abort'
ld: security/commoncap_test.c:252:(.text+0x1bb4): undefined reference to `kunit_unary_assert_format'
ld: security/commoncap_test.c:252:(.text+0x1bc5): undefined reference to `__kunit_do_failed_assertion'
ld: security/commoncap_test.c:266:(.text+0x1bec): undefined reference to `kunit_unary_assert_format'
ld: security/commoncap_test.c:266:(.text+0x1bfa): undefined reference to `__kunit_do_failed_assertion'
ld: security/commoncap_test.c:265:(.text+0x1c1c): undefined reference to `kunit_unary_assert_format'
ld: security/commoncap_test.c:265:(.text+0x1c2a): undefined reference to `__kunit_do_failed_assertion'
ld: security/commoncap_test.c:264:(.text+0x1c4c): undefined reference to `kunit_unary_assert_format'
ld: security/commoncap_test.c:264:(.text+0x1c5a): undefined reference to `__kunit_do_failed_assertion'
ld: security/commoncap_test.c:253:(.text+0x1c7c): undefined reference to `kunit_unary_assert_format'
ld: security/commoncap_test.c:253:(.text+0x1c8d): undefined reference to `__kunit_do_failed_assertion'
ld: security/commoncap_test.c:258:(.text+0x1cb4): undefined reference to `kunit_unary_assert_format'
ld: security/commoncap_test.c:258:(.text+0x1cc2): undefined reference to `__kunit_do_failed_assertion'
ld: security/commoncap_test.c:257:(.text+0x1ce4): undefined reference to `kunit_unary_assert_format'
ld: security/commoncap_test.c:257:(.text+0x1cf2): undefined reference to `__kunit_do_failed_assertion'
vim +501 include/kunit/test.h
7122debb4367ee Daniel Latypov 2021-05-03 487
7122debb4367ee Daniel Latypov 2021-05-03 488 /**
7122debb4367ee Daniel Latypov 2021-05-03 489 * kunit_kmalloc() - Like kmalloc() except the allocation is *test managed*.
7122debb4367ee Daniel Latypov 2021-05-03 490 * @test: The test context object.
7122debb4367ee Daniel Latypov 2021-05-03 491 * @size: The size in bytes of the desired memory.
7122debb4367ee Daniel Latypov 2021-05-03 492 * @gfp: flags passed to underlying kmalloc().
7122debb4367ee Daniel Latypov 2021-05-03 493 *
7122debb4367ee Daniel Latypov 2021-05-03 494 * See kmalloc() and kunit_kmalloc_array() for more information.
57e3cded99e9c8 David Gow 2023-05-25 495 *
57e3cded99e9c8 David Gow 2023-05-25 496 * Note that some internal context data is also allocated with GFP_KERNEL,
57e3cded99e9c8 David Gow 2023-05-25 497 * regardless of the gfp passed in.
7122debb4367ee Daniel Latypov 2021-05-03 498 */
7122debb4367ee Daniel Latypov 2021-05-03 499 static inline void *kunit_kmalloc(struct kunit *test, size_t size, gfp_t gfp)
7122debb4367ee Daniel Latypov 2021-05-03 500 {
7122debb4367ee Daniel Latypov 2021-05-03 @501 return kunit_kmalloc_array(test, 1, size, gfp);
7122debb4367ee Daniel Latypov 2021-05-03 502 }
0a756853586ce1 Brendan Higgins 2019-09-23 503
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists