Re: [PATCH slab/for-next 14/14] mm/slab: do not set SLAB_MAY_ACCOUNT for all caches

From: kernel test robot

Date: Sun Oct 25 2026 - 21:03:08 EST



Hello,

kernel test robot noticed "sysfs:cannot_create_duplicate_filename" on:

commit: 74db9d3510fc1c12bbe4e56d0f034a734dd69d2e ("[PATCH slab/for-next 14/14] mm/slab: do not set SLAB_MAY_ACCOUNT for all caches")
url: https://github.com/intel-lab-lkp/linux/commits/Harry-Yoo-Meta/mm-slab-allow-passing-SLAB_MAY_ACCOUNT-to-kmem_cache_create/20261021-124642
patch link: https://lore.kernel.org/all/20261021-memalloc-prof-dont-waste-slabobj-ext-metadata-v1-14-096800aa3330@xxxxxxxxxx/
patch subject: [PATCH slab/for-next 14/14] mm/slab: do not set SLAB_MAY_ACCOUNT for all caches

in testcase: trinity
version: trinity-x86_64-d4c26f234-1_20261018
with following parameters:

runtime: 600s


config: x86_64-kexec
compiler: clang-22
test machine: qemu-system-x86_64 -enable-kvm -cpu IvyBridge,enforce -smp 4 -m 16G

(please refer to attached dmesg/kmsg for entire log/backtrace)


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 <yi1.lai@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-lkp/202610260827.e64ec9d3-lkp@xxxxxxxxx


[ 2.984089][ T1] sched_clock: Marking stable (2784008153, 199498551)->(3129505678, -145998974)
[ 3.004962][ T1] registered taskstats version 1
[ 3.007428][ T1] Loading compiled-in X.509 certificates
[ 3.017205][ T1] sysfs: cannot create duplicate filename '/kernel/slab/:a-0000256'
[ 3.021027][ T1] CPU: 1 UID: 0 PID: 1 Comm: swapper/0 Not tainted 7.3.0-rc1-00024-g74db9d3510fc #1 PREEMPTLAZY
[ 3.021034][ T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[ 3.021036][ T1] Call Trace:
[ 3.021055][ T1] <TASK>
[ 3.021059][ T1] dump_stack_lvl+0x43/0x70
[ 3.021066][ T1] sysfs_warn_dup+0x5b/0x70
[ 3.021072][ T1] sysfs_create_dir_ns+0xae/0x130
[ 3.021077][ T1] kobject_add_internal+0xb2/0x230
[ 3.021081][ T1] kobject_init_and_add+0x81/0xb0
[ 3.021088][ T1] sysfs_slab_add+0x7d/0x1b0
[ 3.021092][ T1] slab_late_init+0x79/0xb0
[ 3.021098][ T1] ? __pfx_slab_late_init+0x10/0x10
[ 3.021101][ T1] do_one_initcall+0xef/0x330
[ 3.021106][ T1] ? __alloc_frozen_pages_noprof+0x145/0x2f0
[ 3.021111][ T1] ? alloc_from_new_slab+0x1b2/0x270
[ 3.021115][ T1] ? refill_objects+0x2cb/0x330
[ 3.021118][ T1] ? irqentry_exit+0x89/0x5f0
[ 3.021124][ T1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 3.021128][ T1] ? __pfx_ignore_unknown_bootoption+0x10/0x10
[ 3.021135][ T1] ? strlen+0x10/0x30
[ 3.021140][ T1] ? parameq+0x17/0x70
[ 3.021146][ T1] ? __pfx_ignore_unknown_bootoption+0x10/0x10
[ 3.021150][ T1] ? parse_args+0x117/0x2b0
[ 3.021154][ T1] do_initcall_level+0x7c/0xf0
[ 3.021159][ T1] do_initcalls+0x59/0xb0
[ 3.021164][ T1] kernel_init_freeable+0xd2/0x170
[ 3.021168][ T1] ? __pfx_kernel_init+0x10/0x10
[ 3.021172][ T1] kernel_init+0x1f/0x130
[ 3.021176][ T1] ret_from_fork+0xe0/0x1f0
[ 3.021180][ T1] ? __pfx_kernel_init+0x10/0x10
[ 3.021184][ T1] ret_from_fork_asm+0x1a/0x30
[ 3.021188][ T1] </TASK>
[ 3.021192][ T1] kobject: kobject_add_internal failed for :a-0000256 with -EEXIST, don't try to register things with the same name in the same directory.


The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20261026/202610260827.e64ec9d3-lkp@xxxxxxxxx



--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki