All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <oliver.sang@intel.com>
To: Frederic Weisbecker <fweisbec@gmail.com>
Cc: <oe-lkp@lists.linux.dev>, <lkp@intel.com>, <oliver.sang@intel.com>
Subject: [frederic-dynticks:kthread/core] [mm]  e6ec2411d3: WARNING:possible_circular_locking_dependency_detected
Date: Mon, 30 Jun 2025 10:48:48 +0800	[thread overview]
Message-ID: <202506300421.acdd1f02-lkp@intel.com> (raw)



Hello,

kernel test robot noticed "WARNING:possible_circular_locking_dependency_detected" on:

commit: e6ec2411d37d569fdb7986fa0e23d2234c8046ed ("mm: vmstat: Prepare to protect against concurrent isolated cpuset change")
https://git.kernel.org/cgit/linux/kernel/git/frederic/linux-dynticks.git kthread/core

in testcase: trinity
version: trinity-i386-abe9de86-1_20230429
with following parameters:

	runtime: 600s



config: i386-randconfig-017-20250530
compiler: gcc-12
test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 4G

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


+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
|                                                                                                                                                                            | 52e18f45a9 | e6ec2411d3 |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
| WARNING:possible_circular_locking_dependency_detected                                                                                                                      | 0          | 18         |
| WARNING:possible_circular_locking_dependency_detected_kworker##is_trying_to_acquire_lock:at:unregister_netdevice_many_notify_but_task_is_already_holding_lock:at:rtnl_lock | 0          | 18         |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+


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@intel.com>
| Closes: https://lore.kernel.org/oe-lkp/202506300421.acdd1f02-lkp@intel.com


[   14.077507][   T12] WARNING: possible circular locking dependency detected
[   14.078175][   T12] 6.16.0-rc2-00006-ge6ec2411d37d #1 Not tainted
[   14.078775][   T12] ------------------------------------------------------
[   14.079459][   T12] kworker/u8:0/12 is trying to acquire lock:
[ 14.080035][ T12] c9b2d054 (cpu_hotplug_lock){++++}-{0:0}, at: unregister_netdevice_many_notify (include/linux/find.h:67 net/core/dev.c:6354 net/core/dev.c:12056) 
[   14.081025][   T12]
[   14.081025][   T12] but task is already holding lock:
[ 14.081699][ T12] c9fe21d8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock (net/core/rtnetlink.c:81) 
[   14.082357][   T12]
[   14.082357][   T12] which lock already depends on the new lock.
[   14.082357][   T12]
[   14.083300][   T12]
[   14.083300][   T12] the existing dependency chain (in reverse order) is:
[   14.084119][   T12]
[   14.084119][   T12] -> #2 (rtnl_mutex){+.+.}-{4:4}:
[ 14.084804][ T12] validate_chain (kernel/locking/lockdep.c:3288 kernel/locking/lockdep.c:3911) 
[ 14.085275][ T12] __lock_acquire (kernel/locking/lockdep.c:5240) 
[ 14.085781][ T12] lock_acquire (kernel/locking/lockdep.c:473 kernel/locking/lockdep.c:5873 kernel/locking/lockdep.c:5828) 
[ 14.086248][ T12] __mutex_lock (kernel/locking/mutex.c:604 kernel/locking/mutex.c:747) 
[ 14.086712][ T12] _mutex_lock_killable (kernel/locking/mutex.c:816) 
[ 14.087217][ T12] rtnl_lock_killable (net/core/rtnetlink.c:92) 
[ 14.087710][ T12] register_netdev (net/core/dev.c:11218) 
[ 14.088184][ T12] e1000_probe (drivers/net/ethernet/intel/e1000/e1000_main.c:1196) 
[ 14.088715][ T12] pci_device_probe (drivers/pci/pci-driver.c:324 drivers/pci/pci-driver.c:392 drivers/pci/pci-driver.c:418 drivers/pci/pci-driver.c:452) 
[ 14.089211][ T12] really_probe (drivers/base/dd.c:579 drivers/base/dd.c:657) 
[ 14.089705][ T12] __driver_probe_device (drivers/base/dd.c:799) 
[ 14.090238][ T12] driver_probe_device (drivers/base/dd.c:829) 
[ 14.090748][ T12] __driver_attach (drivers/base/dd.c:1216 drivers/base/dd.c:1155) 
[ 14.091229][ T12] bus_for_each_dev (drivers/base/bus.c:370) 
[ 14.091727][ T12] driver_attach (drivers/base/dd.c:1234) 
[ 14.092192][ T12] bus_add_driver (drivers/base/bus.c:678) 
[ 14.092691][ T12] driver_register (drivers/base/driver.c:249) 
[ 14.093147][ T12] __pci_register_driver (drivers/pci/pci-driver.c:1444) 
[ 14.093688][ T12] e1000_init_module (drivers/net/ethernet/intel/e1000/e1000_main.c:224) 
[ 14.094191][ T12] do_one_initcall (init/main.c:1274) 
[ 14.094729][ T12] do_initcalls (init/main.c:1335 init/main.c:1352) 
[ 14.095218][ T12] kernel_init_freeable (init/main.c:1588) 
[ 14.095759][ T12] kernel_init (init/main.c:1476) 
[ 14.096218][ T12] ret_from_fork (arch/x86/kernel/process.c:154) 
[ 14.096755][ T12] ret_from_fork_asm (arch/x86/entry/entry_32.S:737) 
[ 14.097269][ T12] restore_all_switch_stack (arch/x86/entry/entry_32.S:945) 
[   14.097848][   T12]
[   14.097848][   T12] -> #1 (housekeeping_pcpu_lock){.+.+}-{0:0}:
[ 14.098660][ T12] validate_chain (kernel/locking/lockdep.c:3288 kernel/locking/lockdep.c:3911) 
[ 14.099171][ T12] __lock_acquire (kernel/locking/lockdep.c:5240) 
[ 14.099689][ T12] lock_acquire (kernel/locking/lockdep.c:473 kernel/locking/lockdep.c:5873 kernel/locking/lockdep.c:5828) 
[ 14.100140][ T12] housekeeping_lock (arch/x86/include/asm/preempt.h:80 include/linux/percpu-rwsem.h:55 include/linux/percpu-rwsem.h:77 kernel/sched/isolation.c:31) 
[ 14.100667][ T12] vmstat_shepherd (include/linux/sched/isolation.h:87 mm/vmstat.c:2119) 
[ 14.101145][ T12] process_one_work (kernel/workqueue.c:3243) 
[ 14.101659][ T12] process_scheduled_works (kernel/workqueue.c:3321) 
[ 14.102215][ T12] worker_thread (include/linux/list.h:373 kernel/workqueue.c:946 kernel/workqueue.c:3403) 
[ 14.102707][ T12] kthread (kernel/kthread.c:466) 
[ 14.103153][ T12] ret_from_fork (arch/x86/kernel/process.c:154) 
[ 14.103651][ T12] ret_from_fork_asm (arch/x86/entry/entry_32.S:737) 
[ 14.104181][ T12] restore_all_switch_stack (arch/x86/entry/entry_32.S:945) 
[   14.104824][   T12]
[   14.104824][   T12] -> #0 (cpu_hotplug_lock){++++}-{0:0}:
[ 14.105603][ T12] check_noncircular (kernel/locking/lockdep.c:2178) 
[ 14.106128][ T12] check_prev_add (kernel/locking/lockdep.c:3169) 
[ 14.106639][ T12] validate_chain (kernel/locking/lockdep.c:3288 kernel/locking/lockdep.c:3911) 
[ 14.107158][ T12] __lock_acquire (kernel/locking/lockdep.c:5240) 
[ 14.107676][ T12] lock_acquire (kernel/locking/lockdep.c:473 kernel/locking/lockdep.c:5873 kernel/locking/lockdep.c:5828) 
[ 14.108171][ T12] cpus_read_lock (arch/x86/include/asm/preempt.h:80 include/linux/percpu-rwsem.h:55 include/linux/percpu-rwsem.h:77 kernel/cpu.c:490) 
[ 14.108684][ T12] unregister_netdevice_many_notify (include/linux/find.h:67 net/core/dev.c:6354 net/core/dev.c:12056) 
[ 14.109363][ T12] unregister_netdevice_many (net/core/dev.c:12141) 
[ 14.109953][ T12] default_device_exit_batch (net/core/dev.c:12645) 
[ 14.110542][ T12] ops_undo_list (net/core/net_namespace.c:206 net/core/net_namespace.c:253) 
[ 14.111049][ T12] cleanup_net (net/core/net_namespace.c:688) 
[ 14.111532][ T12] process_one_work (kernel/workqueue.c:3243) 
[ 14.112067][ T12] process_scheduled_works (kernel/workqueue.c:3321) 
[ 14.112695][ T12] worker_thread (include/linux/list.h:373 kernel/workqueue.c:946 kernel/workqueue.c:3403) 
[ 14.113214][ T12] kthread (kernel/kthread.c:466) 
[ 14.113670][ T12] ret_from_fork (arch/x86/kernel/process.c:154) 
[ 14.114174][ T12] ret_from_fork_asm (arch/x86/entry/entry_32.S:737) 
[ 14.114707][ T12] restore_all_switch_stack (arch/x86/entry/entry_32.S:945) 
[   14.115296][   T12]
[   14.115296][   T12] other info that might help us debug this:
[   14.115296][   T12]
[   14.116281][   T12] Chain exists of:
[   14.116281][   T12]   cpu_hotplug_lock --> housekeeping_pcpu_lock --> rtnl_mutex
[   14.116281][   T12]
[   14.117530][   T12]  Possible unsafe locking scenario:
[   14.117530][   T12]
[   14.118254][   T12]        CPU0                    CPU1
[   14.118752][   T12]        ----                    ----
[   14.119257][   T12]   lock(rtnl_mutex);
[   14.119646][   T12]                                lock(housekeeping_pcpu_lock);
[   14.120360][   T12]                                lock(rtnl_mutex);
[   14.120991][   T12]   rlock(cpu_hotplug_lock);
[   14.121444][   T12]
[   14.121444][   T12]  *** DEADLOCK ***
[   14.121444][   T12]
[   14.122220][   T12] 4 locks held by kworker/u8:0/12:
[ 14.122710][ T12] #0: b10fa6b4 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work (kernel/workqueue.c:3213) 
[ 14.123633][ T12] #1: b118df20 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work (kernel/workqueue.c:3214) 
[ 14.124528][ T12] #2: c9fe045c (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net (net/core/net_namespace.c:665) 
[ 14.125358][ T12] #3: c9fe21d8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock (net/core/rtnetlink.c:81) 
[   14.126101][   T12]
[   14.126101][   T12] stack backtrace:
[   14.126679][   T12] CPU: 0 UID: 0 PID: 12 Comm: kworker/u8:0 Not tainted 6.16.0-rc2-00006-ge6ec2411d37d #1 PREEMPT(full)  310c9b7a074c96d55fc763e6a813380c418d9d51
[   14.126686][   T12] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[   14.126689][   T12] Workqueue: netns cleanup_net
[   14.126697][   T12] Call Trace:
[ 14.126701][ T12] dump_stack_lvl (lib/dump_stack.c:123) 
[ 14.126707][ T12] dump_stack (lib/dump_stack.c:130) 
[ 14.126711][ T12] print_circular_bug (kernel/locking/lockdep.c:2048) 
[ 14.126717][ T12] check_noncircular (kernel/locking/lockdep.c:2178) 
[ 14.126722][ T12] ? add_chain_block (kernel/locking/lockdep.c:3445) 
[ 14.126731][ T12] check_prev_add (kernel/locking/lockdep.c:3169) 
[ 14.126736][ T12] validate_chain (kernel/locking/lockdep.c:3288 kernel/locking/lockdep.c:3911) 
[ 14.126742][ T12] __lock_acquire (kernel/locking/lockdep.c:5240) 
[ 14.126746][ T12] ? find_held_lock (kernel/locking/lockdep.c:5353) 
[ 14.126754][ T12] ? unregister_netdevice_many_notify (include/linux/find.h:67 net/core/dev.c:6354 net/core/dev.c:12056) 
[ 14.126761][ T12] lock_acquire (kernel/locking/lockdep.c:473 kernel/locking/lockdep.c:5873 kernel/locking/lockdep.c:5828) 
[ 14.126765][ T12] ? unregister_netdevice_many_notify (include/linux/find.h:67 net/core/dev.c:6354 net/core/dev.c:12056) 
[ 14.126771][ T12] ? lock_is_held (include/linux/lockdep.h:250) 
[ 14.126779][ T12] cpus_read_lock (arch/x86/include/asm/preempt.h:80 include/linux/percpu-rwsem.h:55 include/linux/percpu-rwsem.h:77 kernel/cpu.c:490) 
[ 14.126785][ T12] ? unregister_netdevice_many_notify (include/linux/find.h:67 net/core/dev.c:6354 net/core/dev.c:12056) 
[ 14.126790][ T12] unregister_netdevice_many_notify (include/linux/find.h:67 net/core/dev.c:6354 net/core/dev.c:12056) 
[ 14.126794][ T12] ? __mutex_lock (arch/x86/include/asm/preempt.h:95 kernel/locking/mutex.c:612 kernel/locking/mutex.c:747) 
[ 14.126801][ T12] ? lock_is_held_type (kernel/locking/lockdep.c:5604 kernel/locking/lockdep.c:5943) 
[ 14.126807][ T12] ? mutex_is_locked (kernel/locking/mutex.c:68) 
[ 14.126811][ T12] ? list_add_tail (include/linux/list.h:83 include/linux/list.h:150 include/linux/list.h:183) 
[ 14.126815][ T12] ? unregister_netdevice_queue (include/linux/list.h:312 net/core/dev.c:11979) 
[ 14.126821][ T12] unregister_netdevice_many (net/core/dev.c:12141) 
[ 14.126825][ T12] default_device_exit_batch (net/core/dev.c:12645) 
[ 14.126831][ T12] ops_undo_list (net/core/net_namespace.c:206 net/core/net_namespace.c:253) 
[ 14.126838][ T12] cleanup_net (net/core/net_namespace.c:688) 
[ 14.126844][ T12] process_one_work (kernel/workqueue.c:3243) 
[ 14.126853][ T12] process_scheduled_works (kernel/workqueue.c:3321) 
[ 14.126858][ T12] worker_thread (include/linux/list.h:373 kernel/workqueue.c:946 kernel/workqueue.c:3403) 
[ 14.126863][ T12] kthread (kernel/kthread.c:466) 
[ 14.126869][ T12] ? drain_dead_softirq_workfn (kernel/workqueue.c:3348) 
[ 14.126874][ T12] ? kthread_is_per_cpu (kernel/kthread.c:413) 
[ 14.126878][ T12] ret_from_fork (arch/x86/kernel/process.c:154) 
[ 14.126883][ T12] ? kthread_is_per_cpu (kernel/kthread.c:413) 
[ 14.126888][ T12] ret_from_fork_asm (arch/x86/entry/entry_32.S:737) 
[ 14.126894][ T12] entry_INT80_32 (arch/x86/entry/entry_32.S:945) 
[  OK  ] Started User Login Management.
Starting LSB: Load kernel image with kexec...
Starting Raise network interfaces...
[  OK  ] Started LSB: Load kernel image with kexec.
[  OK  ] Finished Raise network interfaces.
[  OK  ] Reached target Network.
Starting LKP bootstrap...
Starting /etc/rc.local Compatibility...
Starting OpenBSD Secure Shell server...
Starting Permit User Sessions...
[   14.279154] rc.local[230]: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/lkp/lkp/src/bin
[  OK  ] Started /etc/rc.local Compatibility.
LKP: ttyS0: 230: skip deploy intel ucode as no ucode is specified


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



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


                 reply	other threads:[~2025-06-30  2:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202506300421.acdd1f02-lkp@intel.com \
    --to=oliver.sang@intel.com \
    --cc=fweisbec@gmail.com \
    --cc=lkp@intel.com \
    --cc=oe-lkp@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.