lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220312140520.GA1189@xsang-OptiPlex-9020>
Date:   Sat, 12 Mar 2022 22:05:20 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Won Chung <wonchung@...gle.com>
Cc:     0day robot <lkp@...el.com>, LKML <linux-kernel@...r.kernel.org>,
        lkp@...ts.01.org,
        Heikki Krogerus <heikki.krogerus@...ux.intel.com>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        "Rafael J . Wysocki" <rafael@...nel.org>,
        Benson Leung <bleung@...omium.org>,
        Prashant Malani <pmalani@...omium.org>,
        Won Chung <wonchung@...gle.com>
Subject: [driver core]  0f62946614:
 WARNING:at_fs/sysfs/group.c:#sysfs_remove_group



Greeting,

FYI, we noticed the following commit (built with gcc-9):

commit: 0f629466144d6d8ec3ffe9639382f19c428a7039 ("[PATCH v5] driver core: Add sysfs support for physical location of a device")
url: https://github.com/0day-ci/linux/commits/Won-Chung/driver-core-Add-sysfs-support-for-physical-location-of-a-device/20220311-052431
base: https://git.kernel.org/cgit/linux/kernel/git/gregkh/driver-core.git 4a248f85b3dd8e010ff8335755c927130e9b0764
patch link: https://lore.kernel.org/lkml/20220310212217.2258637-1-wonchung@google.com

in testcase: xfstests
version: xfstests-x86_64-1de1db8-1_20220217
with following parameters:

	disk: 4HDD
	fs: xfs
	test: xfs-reflink-16
	ucode: 0x28

test-description: xfstests is a regression test suite for xfs and other files ystems.
test-url: git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git


on test machine: 8 threads 1 sockets Intel(R) Core(TM) i7-4790 v3 @ 3.60GHz with 6G memory

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):



If you fix the issue, kindly add following tag
Reported-by: kernel test robot <oliver.sang@...el.com>


[ 3.954010][ T1] WARNING: CPU: 1 PID: 1 at fs/sysfs/group.c:278 sysfs_remove_group (fs/sysfs/group.c:278 fs/sysfs/group.c:269) 
[    3.962886][    T1] Modules linked in:
[    3.966664][    T1] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.17.0-rc6-00042-g0f629466144d #1
[    3.975367][    T1] Hardware name: Dell Inc. OptiPlex 9020/03CPWF, BIOS A11 04/01/2015
[ 3.983288][ T1] RIP: 0010:sysfs_remove_group (fs/sysfs/group.c:278 fs/sysfs/group.c:269) 
[ 3.988963][ T1] Code: 48 89 d9 49 8b 14 24 48 b8 00 00 00 00 00 fc ff df 48 c1 e9 03 80 3c 01 00 75 48 48 8b 33 48 c7 c7 e0 df b7 83 e8 cc 74 8c 01 <0f> 0b 48 83 c4 08 5b 5d 41 5c c3 e8 15 3f d1 ff e9 02 ff ff ff 48
All code
========
   0:	48 89 d9             	mov    %rbx,%rcx
   3:	49 8b 14 24          	mov    (%r12),%rdx
   7:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
   e:	fc ff df 
  11:	48 c1 e9 03          	shr    $0x3,%rcx
  15:	80 3c 01 00          	cmpb   $0x0,(%rcx,%rax,1)
  19:	75 48                	jne    0x63
  1b:	48 8b 33             	mov    (%rbx),%rsi
  1e:	48 c7 c7 e0 df b7 83 	mov    $0xffffffff83b7dfe0,%rdi
  25:	e8 cc 74 8c 01       	callq  0x18c74f6
  2a:*	0f 0b                	ud2    		<-- trapping instruction
  2c:	48 83 c4 08          	add    $0x8,%rsp
  30:	5b                   	pop    %rbx
  31:	5d                   	pop    %rbp
  32:	41 5c                	pop    %r12
  34:	c3                   	retq   
  35:	e8 15 3f d1 ff       	callq  0xffffffffffd13f4f
  3a:	e9 02 ff ff ff       	jmpq   0xffffffffffffff41
  3f:	48                   	rex.W

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2    
   2:	48 83 c4 08          	add    $0x8,%rsp
   6:	5b                   	pop    %rbx
   7:	5d                   	pop    %rbp
   8:	41 5c                	pop    %r12
   a:	c3                   	retq   
   b:	e8 15 3f d1 ff       	callq  0xffffffffffd13f25
  10:	e9 02 ff ff ff       	jmpq   0xffffffffffffff17
  15:	48                   	rex.W
[    4.008355][    T1] RSP: 0000:ffffc900000378d8 EFLAGS: 00010286
[    4.014290][    T1] RAX: 0000000000000000 RBX: ffffffff83cff1c0 RCX: 0000000000000000
[    4.022127][    T1] RDX: c0000000ffff7fff RSI: ffffc900000375f8 RDI: fffff52000006f0d
[    4.029964][    T1] RBP: 0000000000000000 R08: 0000000000000000 R09: fffff52000006ea9
[    4.037803][    T1] R10: ffffc90000037547 R11: fffff52000006ea8 R12: ffff888100eb4000
[    4.045638][    T1] R13: ffff888100eb4000 R14: dffffc0000000000 R15: ffff888100eb4048
[    4.053474][    T1] FS:  0000000000000000(0000) GS:ffff888138c80000(0000) knlGS:0000000000000000
[    4.062263][    T1] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    4.068711][    T1] CR2: 0000000000000000 CR3: 000000019ce0e001 CR4: 00000000001706e0
[    4.076551][    T1] Call Trace:
[    4.079727][    T1]  <TASK>
[ 4.082557][ T1] sysfs_remove_groups (fs/sysfs/group.c:311 fs/sysfs/group.c:304) 
[ 4.087371][ T1] device_remove_attrs (drivers/base/core.c:2786 drivers/base/core.c:2686) 
[ 4.092262][ T1] ? device_remove_file (drivers/base/core.c:2681) 
[ 4.097163][ T1] ? up_write (arch/x86/include/asm/atomic64_64.h:172 include/linux/atomic/atomic-long.h:95 include/linux/atomic/atomic-instrumented.h:1348 kernel/locking/rwsem.c:1318 kernel/locking/rwsem.c:1567) 
[ 4.101193][ T1] ? kernfs_remove_by_name_ns (fs/kernfs/dir.c:1579) 
[ 4.106695][ T1] device_del (drivers/base/core.c:3603) 
[ 4.110916][ T1] ? __device_link_del (drivers/base/core.c:3559) 
[ 4.115911][ T1] ? rcu_gp_is_expedited (arch/x86/include/asm/atomic.h:29 include/linux/atomic/atomic-instrumented.h:28 kernel/rcu/update.c:158) 
[ 4.120907][ T1] device_unregister (drivers/base/core.c:3522 drivers/base/core.c:3636) 
[ 4.125539][ T1] wakeup_source_unregister (drivers/base/power/wakeup.c:253) 
[ 4.132839][ T1] device_wakeup_enable (drivers/base/power/wakeup.c:322 drivers/base/power/wakeup.c:352) 
[ 4.137913][ T1] acpi_button_add (drivers/acpi/button.c:571) 
[ 4.142545][ T1] acpi_device_probe (drivers/acpi/bus.c:994) 
[ 4.147265][ T1] really_probe (drivers/base/dd.c:751) 
[ 4.152252][ T1] __driver_probe_device (drivers/base/dd.c:755) 
[ 4.157410][ T1] driver_probe_device (drivers/base/dd.c:785) 
[ 4.162299][ T1] __driver_attach (drivers/base/dd.c:1145) 
[ 4.166939][ T1] ? __device_attach_driver (drivers/base/dd.c:1097) 
[ 4.172354][ T1] bus_for_each_dev (drivers/base/bus.c:301) 
[ 4.177081][ T1] ? _raw_spin_lock_bh (kernel/locking/spinlock.c:153) 
[ 4.182059][ T1] ? subsys_dev_iter_exit (drivers/base/bus.c:290) 
[ 4.187118][ T1] ? klist_node_init (arch/x86/include/asm/atomic.h:41 include/linux/atomic/atomic-instrumented.h:42 include/linux/refcount.h:136 include/linux/kref.h:31 lib/klist.c:111) 
[ 4.191846][ T1] bus_add_driver (drivers/base/bus.c:619) 
[ 4.196389][ T1] driver_register (drivers/base/driver.c:171) 
[ 4.201021][ T1] ? dmi_first_match (drivers/firmware/dmi_scan.c:921) 
[ 4.205654][ T1] ? acpi_ac_init (drivers/acpi/button.c:658) 
[ 4.210036][ T1] do_one_initcall (init/main.c:1300) 
[ 4.214591][ T1] ? trace_event_raw_event_initcall_level (init/main.c:1291) 
[ 4.221212][ T1] ? parameq (kernel/params.c:170) 
[ 4.225322][ T1] ? kasan_unpoison (mm/kasan/shadow.c:108 mm/kasan/shadow.c:142) 
[ 4.229886][ T1] ? __kasan_slab_alloc (mm/kasan/common.c:431 mm/kasan/common.c:469) 
[ 4.234784][ T1] kernel_init_freeable (init/main.c:1372 init/main.c:1389 init/main.c:1408 init/main.c:1613) 
[ 4.239878][ T1] ? console_on_rootfs (init/main.c:1584) 
[ 4.244693][ T1] ? _raw_spin_lock_irq (arch/x86/include/asm/atomic.h:202 include/linux/atomic/atomic-instrumented.h:543 include/asm-generic/qspinlock.h:82 include/linux/spinlock.h:185 include/linux/spinlock_api_smp.h:120 kernel/locking/spinlock.c:170) 
[ 4.249584][ T1] ? _raw_spin_lock (kernel/locking/spinlock.c:169) 
[ 4.254299][ T1] ? rest_init (init/main.c:1494) 
[ 4.258597][ T1] kernel_init (init/main.c:1504) 
[ 4.262806][ T1] ret_from_fork (arch/x86/entry/entry_64.S:301) 
[    4.267091][    T1]  </TASK>
[    4.270008][    T1] ---[ end trace 0000000000000000 ]---
[    4.275431][    T1] ACPI: button: Power Button [PWRB]
[    4.280738][    T1] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
[    4.288963][    T1] ------------[ cut here ]------------
[    4.294284][    T1] sysfs group 'physical_location' not found for kobject 'wakeup17'


To reproduce:

        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        sudo bin/lkp install job.yaml           # job file is attached in this email
        bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run
        sudo bin/lkp run generated-yaml-file

        # 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://lists.01.org/hyperkitty/list/lkp@lists.01.org

Thanks,
Oliver Sang


View attachment "config-5.17.0-rc6-00042-g0f629466144d" of type "text/plain" (165720 bytes)

View attachment "job-script" of type "text/plain" (5873 bytes)

Download attachment "dmesg.xz" of type "application/x-xz" (130200 bytes)

View attachment "xfstests" of type "text/plain" (2020 bytes)

View attachment "job.yaml" of type "text/plain" (4849 bytes)

View attachment "reproduce" of type "text/plain" (951 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ