[driver-core:debugfs_cleanup] [sysfs] 343c07ecbe: WARNING:at_fs/sysfs/group.c:#sysfs_remove_group
kernel test robot <[email protected]>
| Newsgroups | org.linuxdriverproject.driverdev-devel,dev.linux.lists.oe-lkp,org.kernel.vger.linux-fsdevel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
kernel test robot noticed "WARNING:at_fs/sysfs/group.c:#sysfs_remove_group" on:
commit: 343c07ecbea0cd660887ee27c643b9ddd3ff261b ("sysfs: do not create empty directories if no attributes are present")
https://git.kernel.org/cgit/linux/kernel/git/gregkh/driver-core.git debugfs_cleanup
in testcase: boot
compiler: clang-15
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -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 <[email protected]>
| Closes: https://lore.kernel.org/oe-lkp/[email protected]
[ 4.919515][ T1] ------------[ cut here ]------------
[ 4.920608][ T1] sysfs group 'power' not found for kobject 'platform'
[ 4.921989][ T1] WARNING: CPU: 0 PID: 1 at fs/sysfs/group.c:297 sysfs_remove_group+0xa4/0x100
[ 4.922999][ T1] Modules linked in:
[ 4.923783][ T1] CPU: 0 PID: 1 Comm: swapper Not tainted 6.4.0-11312-g343c07ecbea0 #1 7e5b11a8783ae80132a673d389c6e9a6749070a8
[ 4.926082][ T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[ 4.926968][ T1] RIP: 0010:sysfs_remove_group+0xa4/0x100
[ 4.928081][ T1] Code: 8b 1f 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 6e 9f e4 ff 49 8b 16 48 c7 c7 20 7b 53 90 48 89 de e8 5c 8e 8f ff <0f> 0b eb 38 4c 89 ef e8 10 25 ff ff 4c 89 ef 4c 89 fe e8 45 00 00
[ 4.930969][ T1] RSP: 0000:ffff888102657da8 EFLAGS: 00010246
[ 4.932053][ T1] RAX: 0000000000000000 RBX: ffffffff9082f2a0 RCX: 0000000000000000
[ 4.933536][ T1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 4.934966][ T1] RBP: ffff888102657dd0 R08: 0000000000000000 R09: 0000000000000000
[ 4.936467][ T1] R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000
[ 4.937972][ T1] R13: 0000000000000000 R14: ffffffff91c4d060 R15: ffffffff9082f2c0
[ 4.938970][ T1] FS: 0000000000000000(0000) GS:ffffffff912d4000(0000) knlGS:0000000000000000
[ 4.940688][ T1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 4.941944][ T1] CR2: ffff88843ffff000 CR3: 00000002cbc98000 CR4: 00000000000406b0
[ 4.942973][ T1] Call Trace:
[ 4.943604][ T1] <TASK>
[ 4.944166][ T1] ? show_regs+0x57/0x80
[ 4.944976][ T1] ? __warn+0xe5/0x240
[ 4.945790][ T1] ? sysfs_remove_group+0xa4/0x100
[ 4.946807][ T1] ? report_bug+0x159/0x380
[ 4.946983][ T1] ? handle_bug+0x41/0x80
[ 4.947811][ T1] ? exc_invalid_op+0x1b/0x80
[ 4.948687][ T1] ? asm_exc_invalid_op+0x1b/0x40
[ 4.949691][ T1] ? sysfs_remove_group+0xa4/0x100
[ 4.950666][ T1] ? sysfs_remove_group+0xa4/0x100
[ 4.950975][ T1] dpm_sysfs_add+0x14b/0x1c0
[ 4.951859][ T1] device_add+0x57b/0xac0
[ 4.952726][ T1] device_register+0x15/0x40
[ 4.953602][ T1] platform_bus_init+0x16/0x80
[ 4.954511][ T1] driver_init+0x33/0x80
[ 4.954969][ T1] do_basic_setup+0x10/0x80
[ 4.955855][ T1] kernel_init_freeable+0xdd/0x180
[ 4.956799][ T1] ? rest_init+0x240/0x240
[ 4.957669][ T1] kernel_init+0x18/0x140
[ 4.958520][ T1] ? rest_init+0x240/0x240
[ 4.958972][ T1] ret_from_fork+0x1f/0x40
[ 4.959865][ T1] </TASK>
[ 4.960450][ T1] irq event stamp: 6041
[ 4.961244][ T1] hardirqs last enabled at (6049): [<ffffffff8dcae9a3>] __up_console_sem+0xa3/0x100
[ 4.962967][ T1] hardirqs last disabled at (6068): [<ffffffff8dcae988>] __up_console_sem+0x88/0x100
[ 4.964739][ T1] softirqs last enabled at (6066): [<ffffffff901f9911>] __do_softirq+0x4d1/0x627
[ 4.966459][ T1] softirqs last disabled at (6057): [<ffffffff8dbcaca6>] __irq_exit_rcu+0xa6/0x140
[ 4.966967][ T1] ---[ end trace 0000000000000000 ]---
To reproduce:
# build kernel
cd linux
cp config-6.4.0-11312-g343c07ecbea0 .config
make HOSTCC=clang-15 CC=clang-15 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules
make HOSTCC=clang-15 CC=clang-15 ARCH=x86_64 INSTALL_MOD_PATH=<mod-install-dir> modules_install
cd <mod-install-dir>
find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp qemu -k <bzImage> -m modules.cgz job-script # job-script is attached in this email
# if come across any failure that blocks the test,
# please remove ~/.lkp and /lkp dir to run from a clean state.
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
config-6.4.0-11312-g343c07ecbea0
(text/plain, 138.7 KB) - not displayed
job-script
(text/plain, 4.8 KB)
#!/bin/sh
export_top_env()
{
export suite='boot'
export testcase='boot'
export category='functional'
export timeout='10m'
export job_origin='boot.yaml'
export queue_cmdline_keys='branch
commit'
export queue='bisect'
export testbox='vm-snb'
export tbox_group='vm-snb'
export branch='driver-core/debugfs_cleanup'
export commit='343c07ecbea0cd660887ee27c643b9ddd3ff261b'
export kconfig='x86_64-randconfig-x003-20230703'
export nr_vm=300
export submit_id='64a46c9757921d0fc4165593'
export job_file='/lkp/jobs/queued/bisect/vm-snb/boot-1-debian-11.1-i386-20220923.cgz-x86_64-randconfig-x003-20230703-343c07ecbea0-20230705-4036-u3xuzv-0.yaml'
export id='eff959def4d4f0c431d36b3010460f3249748728'
export queuer_version='/zday/lkp'
export model='qemu-system-x86_64 -enable-kvm -cpu SandyBridge'
export nr_cpu=2
export memory='16G'
export need_kconfig=\{\"KVM_GUEST\"\=\>\"y\"\}
export ssh_base_port=23032
export kernel_cmdline_hw='vmalloc=256M initramfs_async=0 page_owner=on'
export rootfs='debian-11.1-i386-20220923.cgz'
export compiler='clang-15'
export enqueue_time='2023-07-05 03:01:44 +0800'
export _id='64a46c9757921d0fc4165593'
export _rt='/result/boot/1/vm-snb/debian-11.1-i386-20220923.cgz/x86_64-randconfig-x003-20230703/clang-15/343c07ecbea0cd660887ee27c643b9ddd3ff261b'
export user='lkp'
export LKP_SERVER='internal-lkp-server'
export scheduler_version='/lkp/lkp/.src-20230704-185249'
export arch='i386'
export max_uptime=600
export initrd='/osimage/debian/debian-11.1-i386-20220923.cgz'
export bootloader_append='root=/dev/ram0
RESULT_ROOT=/result/boot/1/vm-snb/debian-11.1-i386-20220923.cgz/x86_64-randconfig-x003-20230703/clang-15/343c07ecbea0cd660887ee27c643b9ddd3ff261b/3
BOOT_IMAGE=/pkg/linux/x86_64-randconfig-x003-20230703/clang-15/343c07ecbea0cd660887ee27c643b9ddd3ff261b/vmlinuz-6.4.0-11312-g343c07ecbea0
branch=driver-core/debugfs_cleanup
job=/lkp/jobs/scheduled/vm-meta-200/boot-1-debian-11.1-i386-20220923.cgz-x86_64-randconfig-x003-20230703-343c07ecbea0-20230705-4036-u3xuzv-0.yaml
user=lkp
ARCH=x86_64
kconfig=x86_64-randconfig-x003-20230703
commit=343c07ecbea0cd660887ee27c643b9ddd3ff261b
nmi_watchdog=0
vmalloc=256M initramfs_async=0 page_owner=on
max_uptime=600
LKP_SERVER=internal-lkp-server
selinux=0
debug
apic=debug
sysrq_always_enabled
rcupdate.rcu_cpu_stall_timeout=100
net.ifnames=0
printk.devkmsg=on
panic=-1
softlockup_panic=1
nmi_watchdog=panic
oops=panic
load_ramdisk=2
prompt_ramdisk=0
drbd.minor_count=8
systemd.log_level=err
ignore_loglevel
console=tty0
earlyprintk=ttyS0,115200
console=ttyS0,115200
vga=normal
rw'
export modules_initrd='/pkg/linux/x86_64-randconfig-x003-20230703/clang-15/343c07ecbea0cd660887ee27c643b9ddd3ff261b/modules.cgz'
export bm_initrd='/osimage/deps/debian-11.1-i386-20220923.cgz/run-ipconfig_20220923.cgz,/osimage/deps/debian-11.1-i386-20220923.cgz/lkp_20220923.cgz,/osimage/deps/debian-11.1-i386-20220923.cgz/rsync-rootfs_20220923.cgz'
export lkp_initrd='/osimage/user/lkp/lkp-i386.cgz'
export site='inn'
export LKP_CGI_PORT=80
export LKP_CIFS_PORT=139
export job_initrd='/lkp/jobs/scheduled/vm-meta-200/boot-1-debian-11.1-i386-20220923.cgz-x86_64-randconfig-x003-20230703-343c07ecbea0-20230705-4036-u3xuzv-0.cgz'
export kernel='/pkg/linux/x86_64-randconfig-x003-20230703/clang-15/343c07ecbea0cd660887ee27c643b9ddd3ff261b/vmlinuz-6.4.0-11312-g343c07ecbea0'
export result_root='/result/boot/1/vm-snb/debian-11.1-i386-20220923.cgz/x86_64-randconfig-x003-20230703/clang-15/343c07ecbea0cd660887ee27c643b9ddd3ff261b/3'
export meta_host='vm-meta-200'
[ -n "$LKP_SRC" ] ||
export LKP_SRC=/lkp/${user:-lkp}/src
}
run_job()
{
echo $$ > $TMP/run-job.pid
. $LKP_SRC/lib/http.sh
. $LKP_SRC/lib/job.sh
. $LKP_SRC/lib/env.sh
export_top_env
run_setup $LKP_SRC/setup/sanity-check
run_monitor $LKP_SRC/monitors/one-shot/wrapper boot-slabinfo
run_monitor $LKP_SRC/monitors/one-shot/wrapper boot-meminfo
run_monitor $LKP_SRC/monitors/one-shot/wrapper memmap
run_monitor $LKP_SRC/monitors/no-stdout/wrapper boot-time
run_monitor $LKP_SRC/monitors/wrapper kmsg
run_monitor $LKP_SRC/monitors/wrapper heartbeat
run_monitor $LKP_SRC/monitors/wrapper meminfo
run_monitor $LKP_SRC/monitors/wrapper kmemleak
run_monitor $LKP_SRC/monitors/wrapper oom-killer
run_monitor $LKP_SRC/monitors/plain/watchdog
run_test $LKP_SRC/tests/wrapper sleep 1
}
extract_stats()
{
export stats_part_begin=
export stats_part_end=
$LKP_SRC/stats/wrapper boot-slabinfo
$LKP_SRC/stats/wrapper boot-meminfo
$LKP_SRC/stats/wrapper memmap
$LKP_SRC/stats/wrapper boot-memory
$LKP_SRC/stats/wrapper boot-time
$LKP_SRC/stats/wrapper kernel-size
$LKP_SRC/stats/wrapper kmsg
$LKP_SRC/stats/wrapper sleep
$LKP_SRC/stats/wrapper meminfo
$LKP_SRC/stats/wrapper kmemleak
$LKP_SRC/stats/wrapper time sleep.time
$LKP_SRC/stats/wrapper dmesg
$LKP_SRC/stats/wrapper kmsg
$LKP_SRC/stats/wrapper last_state
$LKP_SRC/stats/wrapper stderr
$LKP_SRC/stats/wrapper time
}
"$@"
dmesg.xz
(application/x-xz, 7.6 KB) - not displayed