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>] [day] [month] [year] [list]
Message-ID: <202302011445.9d99dae2-oliver.sang@intel.com>
Date:   Wed, 1 Feb 2023 14:32:15 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Boqun Feng <boqun.feng@...il.com>
CC:     <oe-lkp@...ts.linux.dev>, <lkp@...el.com>,
        Linux Memory Management List <linux-mm@...ck.org>,
        "Paul E. McKenney" <paulmck@...nel.org>,
        <linux-kernel@...r.kernel.org>
Subject: [linux-next:master] [locking/lockdep]  90d0a9b894:
 WARNING:at_kernel/locking/lockdep.c:#__lock_acquire


Greeting,

FYI, we noticed WARNING:at_kernel/locking/lockdep.c:#__lock_acquire due to commit (built with gcc-11):

commit: 90d0a9b894dd6b859a48fc21d52b0cf21b080d32 ("locking/lockdep: Improve the deadlock scenario print for sync and read lock")
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master

[test failed on linux-next/master 80bd9028fecadae4e8e3a278cd32d74badc2a6e0]

in testcase: kernel-selftests
version: kernel-selftests-x86_64-d4cf28ee-1_20230110
with following parameters:

	group: locking

test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel.
test-url: https://www.kernel.org/doc/Documentation/kselftest.txt


on test machine: 4 threads Intel(R) Xeon(R) CPU E3-1225 v5 @ 3.30GHz (Skylake) with 16G 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>
| Link: https://lore.kernel.org/oe-lkp/202302011445.9d99dae2-oliver.sang@intel.com


[   84.353969][   T36] ------------[ cut here ]------------
[   84.359311][   T36] DEBUG_LOCKS_WARN_ON(hlock->references < references)
[   84.359317][   T36] WARNING: CPU: 2 PID: 36 at kernel/locking/lockdep.c:4992 __lock_acquire+0xdc0/0x1840
[   84.375456][   T36] Modules linked in: test_ww_mutex(+) openvswitch nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 btrfs blake2b_generic xor raid6_pq intel_rapl_msr zstd_compress libcrc32c intel_rapl_common x86_pkg_temp_thermal intel_powerclamp sd_mod t10_pi coretemp crc64_rocksoft_generic kvm_intel crc64_rocksoft crc64 sg kvm ipmi_devintf irqbypass crct10dif_pclmul ipmi_msghandler crc32_pclmul i915 crc32c_intel ghash_clmulni_intel drm_buddy sha512_ssse3 intel_gtt mei_wdt drm_display_helper rapl ahci ttm libahci intel_cstate mei_me wmi_bmof drm_kms_helper intel_uncore syscopyarea serio_raw i2c_i801 sysfillrect video libata mei sysimgblt i2c_smbus intel_pch_thermal ie31200_edac intel_pmc_core wmi acpi_pad tpm_infineon binfmt_misc fuse drm ip_tables
[   84.443239][   T36] CPU: 2 PID: 36 Comm: kworker/u8:3 Not tainted 6.2.0-rc1-00188-g90d0a9b894dd #1
[   84.452223][   T36] Hardware name: HP HP Z238 Microtower Workstation/8183, BIOS N51 Ver. 01.63 10/05/2017
[   84.461817][   T36] Workqueue: test-ww_mutex stress_inorder_work [test_ww_mutex]
[   84.469249][   T36] RIP: 0010:__lock_acquire+0xdc0/0x1840
[   84.474682][   T36] Code: d2 0f 85 92 09 00 00 44 8b 25 74 77 f7 03 45 85 e4 0f 85 ee fd ff ff 48 c7 c6 80 80 a9 83 48 c7 c7 60 50 a9 83 e8 4a ad 35 02 <0f> 0b e9 d7 fd ff ff 41 bf 02 00 00 00 e9 e6 f7 ff ff e8 e9 14 e3
[   84.494184][   T36] RSP: 0018:ffffc900002df8a8 EFLAGS: 00010086
[   84.500122][   T36] RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
[   84.507976][   T36] RDX: 0000000000000027 RSI: 0000000000000004 RDI: fffff5200005bf07
[   84.515826][   T36] RBP: ffff888100a20000 R08: 0000000000000001 R09: ffff88837f52898b
[   84.523691][   T36] R10: ffffed106fea5131 R11: 0000000000000001 R12: 0000000000000000
[   84.531554][   T36] R13: 0000000000000000 R14: 00000000000000a0 R15: 0000000000000000
[   84.539407][   T36] FS:  0000000000000000(0000) GS:ffff88837f500000(0000) knlGS:0000000000000000
[   84.548215][   T36] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   84.554697][   T36] CR2: 0000561259596932 CR3: 000000043ce2a003 CR4: 00000000003706e0
[   84.562552][   T36] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   84.570407][   T36] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[   84.578261][   T36] Call Trace:
[   84.581421][   T36]  <TASK>
[   84.584228][   T36]  lock_acquire+0x19a/0x500
[   84.588604][   T36]  ? stress_inorder_work+0x273/0x6a0 [test_ww_mutex]
[   84.595156][   T36]  ? lock_sync+0x170/0x170
[   84.599447][   T36]  ? asm_sysvec_apic_timer_interrupt+0x1a/0x20
[   84.605479][   T36]  ? lock_is_held_type+0x9c/0x110
[   84.610380][   T36]  __ww_mutex_lock+0x1c3/0x2de0
[   84.616144][   T36]  ? stress_inorder_work+0x273/0x6a0 [test_ww_mutex]
[   84.622697][   T36]  ? lock_is_held_type+0x9c/0x110
[   84.627610][   T36]  ? stress_inorder_work+0x273/0x6a0 [test_ww_mutex]
[   84.634161][   T36]  ? stress_inorder_work+0x302/0x6a0 [test_ww_mutex]
[   84.640713][   T36]  ? mutex_lock_interruptible_nested+0x20/0x20
[   84.646766][   T36]  ? __mutex_unlock_slowpath+0x161/0x5e0
[   84.652270][   T36]  ? bit_wait_timeout+0x170/0x170
[   84.657167][   T36]  ? lock_is_held_type+0x9c/0x110
[   84.662067][   T36]  ? ww_mutex_lock+0x3c/0x150
[   84.666616][   T36]  ww_mutex_lock+0x3c/0x150
[   84.670985][   T36]  stress_inorder_work+0x273/0x6a0 [test_ww_mutex]
[   84.677367][   T36]  ? get_random_order+0x150/0x150 [test_ww_mutex]
[   84.683652][   T36]  ? ethnl_set_rings+0x7a0/0x1170
[   84.688548][   T36]  ? lock_is_held_type+0x9c/0x110
[   84.693448][   T36]  process_one_work+0x7dc/0x12e0
[   84.698259][   T36]  ? lock_sync+0x170/0x170
[   84.702548][   T36]  ? pwq_dec_nr_in_flight+0x230/0x230
[   84.707795][   T36]  ? rwlock_bug+0x90/0x90
[   84.712605][   T36]  worker_thread+0x5b0/0xed0
[   84.717072][   T36]  ? __kthread_parkme+0xd9/0x1d0
[   84.721879][   T36]  ? schedule+0x152/0x230
[   84.726075][   T36]  ? process_one_work+0x12e0/0x12e0
[   84.731148][   T36]  ? process_one_work+0x12e0/0x12e0
[   84.736215][   T36]  kthread+0x293/0x330
[   84.740155][   T36]  ? kthread_complete_and_exit+0x30/0x30
[   84.745656][   T36]  ret_from_fork+0x1f/0x30
[   84.749967][   T36]  </TASK>
[   84.752863][   T36] irq event stamp: 20089
[   84.756971][   T36] hardirqs last  enabled at (20089): [<ffffffff8380148a>] asm_sysvec_apic_timer_interrupt+0x1a/0x20
[   84.767608][   T36] hardirqs last disabled at (20088): [<ffffffff8379dd2f>] sysvec_apic_timer_interrupt+0xf/0x90
[   84.777807][   T36] softirqs last  enabled at (14440): [<ffffffff837cbf37>] __do_softirq+0x527/0x87c
[   84.786961][   T36] softirqs last disabled at (14435): [<ffffffff811c8e4b>] __irq_exit_rcu+0x18b/0x1f0
[   84.796289][   T36] ---[ end trace 0000000000000000 ]---



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://github.com/intel/lkp-tests



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

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

View attachment "kernel-selftests" of type "text/plain" (1662 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ