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: <202410111400.130b9d53-lkp@intel.com>
Date: Fri, 11 Oct 2024 14:19:42 +0800
From: kernel test robot <oliver.sang@...el.com>
To: Alexander Aring <aahringo@...hat.com>
CC: <oe-lkp@...ts.linux.dev>, <lkp@...el.com>, <gfs2@...ts.linux.dev>,
	<teigland@...hat.com>, <song@...nel.org>, <yukuai3@...wei.com>,
	<agruenba@...hat.com>, <mark@...heh.com>, <jlbec@...lplan.org>,
	<joseph.qi@...ux.alibaba.com>, <gregkh@...uxfoundation.org>,
	<rafael@...nel.org>, <akpm@...ux-foundation.org>,
	<linux-kernel@...r.kernel.org>, <linux-raid@...r.kernel.org>,
	<ocfs2-devel@...ts.linux.dev>, <netdev@...r.kernel.org>,
	<vvidic@...entin-vidic.from.hr>, <heming.zhao@...e.com>,
	<lucien.xin@...il.com>, <donald.hunter@...il.com>, <aahringo@...hat.com>,
	<oliver.sang@...el.com>
Subject: Re: [PATCHv2 dlm/next 10/12] dlm: separate dlm lockspaces per
 net-namespace



Hello,

kernel test robot noticed "fs/dlm/midcomms.c:#RCU-list_traversed_in_non-reader_section" on:

commit: e89c4c2902364b7dda0fda243da1b7e84a1faae5 ("[PATCHv2 dlm/next 10/12] dlm: separate dlm lockspaces per net-namespace")
url: https://github.com/intel-lab-lkp/linux/commits/Alexander-Aring/dlm-introduce-dlm_find_lockspace_name/20241001-041944
base: https://git.kernel.org/cgit/linux/kernel/git/gregkh/driver-core.git ad46e8f95e931e113cb98253daf6d443ac244cde
patch link: https://lore.kernel.org/all/20240930201358.2638665-11-aahringo@redhat.com/
patch subject: [PATCHv2 dlm/next 10/12] dlm: separate dlm lockspaces per net-namespace

in testcase: trinity
version: 
with following parameters:

	runtime: 300s
	group: group-00
	nr_groups: 5



compiler: clang-18
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G

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


+-------------------------------------------------------------------------+------------+------------+
|                                                                         | 7bd2eb99b7 | e89c4c2902 |
+-------------------------------------------------------------------------+------------+------------+
| fs/dlm/midcomms.c:#RCU-list_traversed_in_non-reader_section             | 0          | 12         |
| fs/dlm/lowcomms.c:#RCU-list_traversed_in_non-reader_section             | 0          | 12         |
+-------------------------------------------------------------------------+------------+------------+


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 <oliver.sang@...el.com>
| Closes: https://lore.kernel.org/oe-lkp/202410111400.130b9d53-lkp@intel.com


[   35.412526][  T331] WARNING: suspicious RCU usage
[   35.412943][  T331] 6.11.0-11738-ge89c4c290236 #1 Not tainted
[   35.413404][  T331] -----------------------------
[   35.413801][  T331] fs/dlm/midcomms.c:1170 RCU-list traversed in non-reader section!!
[   35.414429][  T331]
[   35.414429][  T331] other info that might help us debug this:
[   35.414429][  T331]
[   35.415231][  T331]
[   35.415231][  T331] rcu_scheduler_active = 2, debug_locks = 1
[   35.415867][  T331] 4 locks held by kworker/u8:1/331:
[ 35.416277][ T331] #0: 83de38c4 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work (kernel/workqueue.c:?) 
[ 35.417037][ T331] #1: ed2b9f04 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work (kernel/workqueue.c:?) 
[ 35.417746][ T331] #2: 82eec22c (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net (net/core/net_namespace.c:583) 
[ 35.418427][ T331] #3: eaba3c70 (&dn->nodes_srcu){.+.+}-{0:0}, at: srcu_lock_acquire (include/linux/srcu.h:150) 
[   35.419124][  T331]
[   35.419124][  T331] stack backtrace:
[   35.419618][  T331] CPU: 0 UID: 0 PID: 331 Comm: kworker/u8:1 Not tainted 6.11.0-11738-ge89c4c290236 #1
[   35.420349][  T331] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[   35.421318][  T331] Workqueue: netns cleanup_net
[   35.422067][  T331] Call Trace:
[ 35.422612][ T331] dump_stack_lvl (lib/dump_stack.c:122) 
[ 35.423303][ T331] dump_stack (lib/dump_stack.c:129) 
[ 35.423991][ T331] lockdep_rcu_suspicious (kernel/locking/lockdep.c:6803) 
[ 35.424808][ T331] dlm_midcomms_exit (fs/dlm/midcomms.c:?) 
[ 35.425565][ T331] dlm_net_exit (fs/dlm/config.c:70) 
[ 35.426219][ T331] cleanup_net (net/core/net_namespace.c:174 net/core/net_namespace.c:626) 
[ 35.426927][ T331] ? __this_cpu_preempt_check (lib/smp_processor_id.c:67) 
[ 35.427809][ T331] process_one_work (kernel/workqueue.c:3234) 
[ 35.428581][ T331] worker_thread (kernel/workqueue.c:3304 kernel/workqueue.c:3391) 
[ 35.429358][ T331] kthread (kernel/kthread.c:391) 
[ 35.430046][ T331] ? pr_cont_work (kernel/workqueue.c:3337) 
[ 35.430782][ T331] ? kthread_blkcg (kernel/kthread.c:342) 
[ 35.431480][ T331] ? kthread_blkcg (kernel/kthread.c:342) 
[ 35.432219][ T331] ret_from_fork (arch/x86/kernel/process.c:153) 
[ 35.432972][ T331] ret_from_fork_asm (??:?) 
[ 35.433732][ T331] entry_INT80_32 (init_task.c:?) 
[   35.434945][  T331]
[   35.435452][  T331] =============================
[   35.436245][  T331] WARNING: suspicious RCU usage
[   35.437033][  T331] 6.11.0-11738-ge89c4c290236 #1 Not tainted
[   35.440279][  T331] -----------------------------
[   35.442812][  T331] fs/dlm/lowcomms.c:1961 RCU-list traversed in non-reader section!!
[   35.446360][  T331]
[   35.446360][  T331] other info that might help us debug this:
[   35.446360][  T331]
[   35.450959][  T331]
[   35.450959][  T331] rcu_scheduler_active = 2, debug_locks = 1
[   35.454214][  T331] 4 locks held by kworker/u8:1/331:
[ 35.456221][ T331] #0: 83de38c4 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work (kernel/workqueue.c:?) 
[ 35.459107][ T331] #1: ed2b9f04 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work (kernel/workqueue.c:?) 
[ 35.461940][ T331] #2: 82eec22c (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net (net/core/net_namespace.c:583) 
[ 35.464777][ T331] #3: eaba3afc (&dn->connections_srcu){.+.+}-{0:0}, at: srcu_lock_acquire (include/linux/srcu.h:150) 
[   35.472495][  T331]
[   35.472495][  T331] stack backtrace:
[   35.473301][  T331] CPU: 0 UID: 0 PID: 331 Comm: kworker/u8:1 Not tainted 6.11.0-11738-ge89c4c290236 #1
[   35.474444][  T331] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[   35.475498][  T331] Workqueue: netns cleanup_net
[   35.475954][  T331] Call Trace:
[ 35.476282][ T331] dump_stack_lvl (lib/dump_stack.c:122) 
[ 35.476700][ T331] dump_stack (lib/dump_stack.c:129) 
[ 35.477272][ T331] lockdep_rcu_suspicious (kernel/locking/lockdep.c:6803) 
[ 35.478275][ T331] dlm_lowcomms_exit (fs/dlm/lowcomms.c:?) 
[ 35.479318][ T331] dlm_midcomms_exit (fs/dlm/midcomms.c:1186) 
[ 35.480266][ T331] dlm_net_exit (fs/dlm/config.c:70) 
[ 35.481123][ T331] cleanup_net (net/core/net_namespace.c:174 net/core/net_namespace.c:626) 
[ 35.481942][ T331] ? __this_cpu_preempt_check (lib/smp_processor_id.c:67) 
[ 35.482925][ T331] process_one_work (kernel/workqueue.c:3234) 
[ 35.483825][ T331] worker_thread (kernel/workqueue.c:3304 kernel/workqueue.c:3391) 
[ 35.484571][ T331] kthread (kernel/kthread.c:391) 
[ 35.485382][ T331] ? pr_cont_work (kernel/workqueue.c:3337) 
[ 35.486288][ T331] ? kthread_blkcg (kernel/kthread.c:342) 
[ 35.487171][ T331] ? kthread_blkcg (kernel/kthread.c:342) 
[ 35.488014][ T331] ret_from_fork (arch/x86/kernel/process.c:153) 
[ 35.488786][ T331] ret_from_fork_asm (??:?) 
[ 35.489648][ T331] entry_INT80_32 (init_task.c:?) 



The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20241011/202410111400.130b9d53-lkp@intel.com



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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ