oe-lkp.lists.linux.dev archive mirror
 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:rcu/dev] [rcu/nocb]  0e250956fc: BUG:using_smp_processor_id()in_preemptible
Date: Tue, 30 Apr 2024 23:19:59 +0800	[thread overview]
Message-ID: <202404302322.1b0d3358-oliver.sang@intel.com> (raw)



Hello,

kernel test robot noticed "BUG:using_smp_processor_id()in_preemptible" on:

commit: 0e250956fc1ab130068a2ca8a0e2c349da4a9cdc ("rcu/nocb: Use kthread parking instead of ad-hoc implementation")
https://git.kernel.org/cgit/linux/kernel/git/frederic/linux-dynticks.git rcu/dev

in testcase: boot

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

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


+----------------------------------------------------+------------+------------+
|                                                    | d52b617a48 | 0e250956fc |
+----------------------------------------------------+------------+------------+
| BUG:using_smp_processor_id()in_preemptible         | 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@intel.com>
| Closes: https://lore.kernel.org/oe-lkp/202404302322.1b0d3358-oliver.sang@intel.com


[    0.817839][   T17] BUG: using smp_processor_id() in preemptible [00000000] code: rcuop/0/17
[ 0.817908][ T17] caller is rcu_rdp_is_offloaded (kernel/rcu/tree_plugin.h:27 (discriminator 7)) 
[    0.818778][   T17] CPU: 0 PID: 17 Comm: rcuop/0 Not tainted 6.9.0-rc2-00084-g0e250956fc1a #1
[    0.820106][   T17] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[    0.821704][   T17] Call Trace:
[    0.821874][   T17]  <TASK>
[ 0.821874][ T17] dump_stack_lvl (lib/dump_stack.c:117) 
[ 0.821874][ T17] check_preemption_disabled (lib/smp_processor_id.c:49) 
[ 0.821874][ T17] rcu_rdp_is_offloaded (kernel/rcu/tree_plugin.h:27 (discriminator 7)) 
[ 0.821874][ T17] rcu_nocb_cb_kthread (kernel/rcu/tree_nocb.h:936 kernel/rcu/tree_nocb.h:982) 
[ 0.821874][ T17] ? _raw_spin_unlock_irqrestore (arch/x86/include/asm/preempt.h:103 include/linux/spinlock_api_smp.h:152 kernel/locking/spinlock.c:194) 
[ 0.821874][ T17] ? rcu_momentary_dyntick_idle (kernel/rcu/tree_nocb.h:976) 
[ 0.821874][ T17] kthread (kernel/kthread.c:388) 
[ 0.821874][ T17] ? kthread_complete_and_exit (kernel/kthread.c:341) 
[ 0.821874][ T17] ret_from_fork (arch/x86/kernel/process.c:153) 
[ 0.821874][ T17] ? kthread_complete_and_exit (kernel/kthread.c:341) 
[ 0.821874][ T17] ret_from_fork_asm (arch/x86/entry/entry_64.S:256) 
[    0.821874][   T17]  </TASK>
[    0.822254][   T17] BUG: using smp_processor_id() in preemptible [00000000] code: rcuop/0/17
[ 0.823604][ T17] caller is rcu_rdp_is_offloaded (kernel/rcu/tree_plugin.h:27 (discriminator 7)) 
[    0.824520][   T17] CPU: 0 PID: 17 Comm: rcuop/0 Not tainted 6.9.0-rc2-00084-g0e250956fc1a #1
[    0.825854][   T17] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[    0.825874][   T17] Call Trace:
[    0.825874][   T17]  <TASK>
[ 0.825874][ T17] dump_stack_lvl (lib/dump_stack.c:117) 
[ 0.825874][ T17] check_preemption_disabled (lib/smp_processor_id.c:49) 
[ 0.825874][ T17] rcu_rdp_is_offloaded (kernel/rcu/tree_plugin.h:27 (discriminator 7)) 
[ 0.825874][ T17] rcu_nocb_cb_kthread (kernel/rcu/tree_nocb.h:936 kernel/rcu/tree_nocb.h:982) 
[ 0.825874][ T17] ? rcu_momentary_dyntick_idle (kernel/rcu/tree_nocb.h:976) 
[ 0.825874][ T17] kthread (kernel/kthread.c:388) 
[ 0.825874][ T17] ? kthread_complete_and_exit (kernel/kthread.c:341) 
[ 0.825874][ T17] ret_from_fork (arch/x86/kernel/process.c:153) 
[ 0.825874][ T17] ? kthread_complete_and_exit (kernel/kthread.c:341) 
[ 0.825874][ T17] ret_from_fork_asm (arch/x86/entry/entry_64.S:256) 
[    0.825874][   T17]  </TASK>
[    0.831550][   T17] BUG: using smp_processor_id() in preemptible [00000000] code: rcuop/0/17
[ 0.832960][ T17] caller is rcu_rdp_is_offloaded (kernel/rcu/tree_plugin.h:27 (discriminator 7)) 
[    0.833897][   T17] CPU: 0 PID: 17 Comm: rcuop/0 Not tainted 6.9.0-rc2-00084-g0e250956fc1a #1
[    0.835238][   T17] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[    0.836824][   T17] Call Trace:
[    0.837330][   T17]  <TASK>
[ 0.837782][ T17] dump_stack_lvl (lib/dump_stack.c:117) 
[ 0.837874][ T17] check_preemption_disabled (lib/smp_processor_id.c:49) 
[ 0.837874][ T17] rcu_rdp_is_offloaded (kernel/rcu/tree_plugin.h:27 (discriminator 7)) 
[ 0.837874][ T17] rcu_nocb_cb_kthread (kernel/rcu/tree_nocb.h:936 kernel/rcu/tree_nocb.h:982) 
[ 0.837874][ T17] ? rcu_momentary_dyntick_idle (kernel/rcu/tree_nocb.h:976) 
[ 0.837874][ T17] kthread (kernel/kthread.c:388) 
[ 0.837874][ T17] ? kthread_complete_and_exit (kernel/kthread.c:341) 
[ 0.837874][ T17] ret_from_fork (arch/x86/kernel/process.c:153) 
[ 0.837874][ T17] ? kthread_complete_and_exit (kernel/kthread.c:341) 
[ 0.837874][ T17] ret_from_fork_asm (arch/x86/entry/entry_64.S:256) 
[    0.837874][   T17]  </TASK>
[    0.838640][    T1] smp: Bringing up secondary CPUs ...
[    0.839832][   T17] BUG: using smp_processor_id() in preemptible [00000000] code: rcuop/0/17
[ 0.841208][ T17] caller is rcu_rdp_is_offloaded (kernel/rcu/tree_plugin.h:27 (discriminator 7)) 
[    0.841901][   T17] CPU: 0 PID: 17 Comm: rcuop/0 Not tainted 6.9.0-rc2-00084-g0e250956fc1a #1
[    0.843443][   T17] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[    0.845092][   T17] Call Trace:
[    0.845604][   T17]  <TASK>
[ 0.845874][ T17] dump_stack_lvl (lib/dump_stack.c:117) 
[ 0.845874][ T17] check_preemption_disabled (lib/smp_processor_id.c:49) 
[ 0.845874][ T17] rcu_rdp_is_offloaded (kernel/rcu/tree_plugin.h:27 (discriminator 7)) 
[ 0.845874][ T17] rcu_nocb_cb_kthread (kernel/rcu/tree_nocb.h:936 kernel/rcu/tree_nocb.h:982) 
[ 0.845874][ T17] ? rcu_momentary_dyntick_idle (kernel/rcu/tree_nocb.h:976) 
[ 0.845874][ T17] kthread (kernel/kthread.c:388) 
[ 0.845874][ T17] ? kthread_complete_and_exit (kernel/kthread.c:341) 
[ 0.845874][ T17] ret_from_fork (arch/x86/kernel/process.c:153) 
[ 0.845874][ T17] ? kthread_complete_and_exit (kernel/kthread.c:341) 
[ 0.845874][ T17] ret_from_fork_asm (arch/x86/entry/entry_64.S:256) 
[    0.845874][   T17]  </TASK>
[    0.847305][   T17] BUG: using smp_processor_id() in preemptible [00000000] code: rcuop/0/17
[ 0.848655][ T17] caller is rcu_rdp_is_offloaded (kernel/rcu/tree_plugin.h:27 (discriminator 7)) 
[    0.849576][   T17] CPU: 0 PID: 17 Comm: rcuop/0 Not tainted 6.9.0-rc2-00084-g0e250956fc1a #1
[    0.849874][   T17] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[    0.849874][   T17] Call Trace:
[    0.849874][   T17]  <TASK>
[ 0.849874][ T17] dump_stack_lvl (lib/dump_stack.c:117) 
[ 0.849874][ T17] check_preemption_disabled (lib/smp_processor_id.c:49) 
[ 0.849874][ T17] rcu_rdp_is_offloaded (kernel/rcu/tree_plugin.h:27 (discriminator 7)) 
[ 0.849874][ T17] rcu_nocb_cb_kthread (kernel/rcu/tree_nocb.h:936 kernel/rcu/tree_nocb.h:982) 
[ 0.849874][ T17] ? rcu_momentary_dyntick_idle (kernel/rcu/tree_nocb.h:976) 
[ 0.849874][ T17] kthread (kernel/kthread.c:388) 
[ 0.849874][ T17] ? kthread_complete_and_exit (kernel/kthread.c:341) 
[ 0.849874][ T17] ret_from_fork (arch/x86/kernel/process.c:153) 
[ 0.849874][ T17] ? kthread_complete_and_exit (kernel/kthread.c:341) 
[ 0.849874][ T17] ret_from_fork_asm (arch/x86/entry/entry_64.S:256) 
[    0.849874][   T17]  </TASK>
[    0.850627][    T1] smpboot: x86: Booting SMP configuration:
[    0.851575][    T1] .... node  #0, CPUs:      #1
[    0.852509][   T29] BUG: using smp_processor_id() in preemptible [00000000] code: rcuop/1/29
[    0.052466][    T0] masked ExtINT on CPU#1
[ 0.853358][ T29] caller is rcu_rdp_is_offloaded (kernel/rcu/tree_plugin.h:27 (discriminator 7)) 
[    0.857578][   T29] CPU: 0 PID: 29 Comm: rcuop/1 Not tainted 6.9.0-rc2-00084-g0e250956fc1a #1
[    0.857874][   T29] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[    0.857874][   T29] Call Trace:
[    0.857874][   T29]  <TASK>
[ 0.857874][ T29] dump_stack_lvl (lib/dump_stack.c:117) 
[ 0.857874][ T29] check_preemption_disabled (lib/smp_processor_id.c:49) 
[ 0.857874][ T29] rcu_rdp_is_offloaded (kernel/rcu/tree_plugin.h:27 (discriminator 7)) 
[ 0.857874][ T29] rcu_nocb_cb_kthread (kernel/rcu/tree_nocb.h:936 kernel/rcu/tree_nocb.h:982) 
[ 0.857874][ T29] ? _raw_spin_unlock_irqrestore (arch/x86/include/asm/preempt.h:103 include/linux/spinlock_api_smp.h:152 kernel/locking/spinlock.c:194) 
[ 0.857874][ T29] ? rcu_momentary_dyntick_idle (kernel/rcu/tree_nocb.h:976) 
[ 0.857874][ T29] kthread (kernel/kthread.c:388) 
[ 0.857874][ T29] ? kthread_complete_and_exit (kernel/kthread.c:341) 
[ 0.857874][ T29] ret_from_fork (arch/x86/kernel/process.c:153) 
[ 0.857874][ T29] ? kthread_complete_and_exit (kernel/kthread.c:341) 
[ 0.857874][ T29] ret_from_fork_asm (arch/x86/entry/entry_64.S:256) 
[    0.857874][   T29]  </TASK>
[    0.857979][   T17] BUG: using smp_processor_id() in preemptible [00000000] code: rcuop/0/17
[ 0.859295][ T17] caller is rcu_rdp_is_offloaded (kernel/rcu/tree_plugin.h:27 (discriminator 7)) 
[    0.860172][   T17] CPU: 0 PID: 17 Comm: rcuop/0 Not tainted 6.9.0-rc2-00084-g0e250956fc1a #1
[    0.861449][   T17] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[    0.861874][   T17] Call Trace:
[    0.861874][   T17]  <TASK>
[ 0.861874][ T17] dump_stack_lvl (lib/dump_stack.c:117) 
[ 0.861874][ T17] check_preemption_disabled (lib/smp_processor_id.c:49) 
[ 0.861874][ T17] rcu_rdp_is_offloaded (kernel/rcu/tree_plugin.h:27 (discriminator 7)) 
[ 0.861874][ T17] rcu_nocb_cb_kthread (kernel/rcu/tree_nocb.h:936 kernel/rcu/tree_nocb.h:982) 
[ 0.861874][ T17] ? rcu_momentary_dyntick_idle (kernel/rcu/tree_nocb.h:976) 
[ 0.861874][ T17] kthread (kernel/kthread.c:388) 
[ 0.861874][ T17] ? kthread_complete_and_exit (kernel/kthread.c:341) 
[ 0.861874][ T17] ret_from_fork (arch/x86/kernel/process.c:153) 
[ 0.861874][ T17] ? kthread_complete_and_exit (kernel/kthread.c:341) 
[ 0.861874][ T17] ret_from_fork_asm (arch/x86/entry/entry_64.S:256) 
[    0.861874][   T17]  </TASK>
[    0.862467][    T1] smp: Brought up 1 node, 2 CPUs
[    0.863219][    T1] smpboot: Total of 2 processors activated (10774.03 BogoMIPS)
[    0.871835][    T1] devtmpfs: initialized
[    0.876771][   T17] BUG: using smp_processor_id() in preemptible [00000000] code: rcuop/0/17
[ 0.877915][ T17] caller is rcu_rdp_is_offloaded (kernel/rcu/tree_plugin.h:27 (discriminator 7)) 
[    0.878875][   T17] CPU: 0 PID: 17 Comm: rcuop/0 Not tainted 6.9.0-rc2-00084-g0e250956fc1a #1
[    0.880223][   T17] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[    0.881840][   T17] Call Trace:
[    0.881874][   T17]  <TASK>
[ 0.881874][ T17] dump_stack_lvl (lib/dump_stack.c:117) 
[ 0.881874][ T17] check_preemption_disabled (lib/smp_processor_id.c:49) 
[ 0.881874][ T17] rcu_rdp_is_offloaded (kernel/rcu/tree_plugin.h:27 (discriminator 7)) 
[ 0.881874][ T17] rcu_nocb_cb_kthread (kernel/rcu/tree_nocb.h:936 kernel/rcu/tree_nocb.h:982) 
[ 0.881874][ T17] ? rcu_momentary_dyntick_idle (kernel/rcu/tree_nocb.h:976) 
[ 0.881874][ T17] kthread (kernel/kthread.c:388) 
[ 0.881874][ T17] ? kthread_complete_and_exit (kernel/kthread.c:341) 
[ 0.881874][ T17] ret_from_fork (arch/x86/kernel/process.c:153) 
[ 0.881874][ T17] ? kthread_complete_and_exit (kernel/kthread.c:341) 
[ 0.881874][ T17] ret_from_fork_asm (arch/x86/entry/entry_64.S:256) 
[    0.881874][   T17]  </TASK>
[    0.881909][   T29] BUG: using smp_processor_id() in preemptible [00000000] code: rcuop/1/29
[ 0.883248][ T29] caller is rcu_rdp_is_offloaded (kernel/rcu/tree_plugin.h:27 (discriminator 7)) 
[    0.884180][   T29] CPU: 0 PID: 29 Comm: rcuop/1 Not tainted 6.9.0-rc2-00084-g0e250956fc1a #1
[    0.885538][   T29] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[    0.885874][   T29] Call Trace:
[    0.885874][   T29]  <TASK>
[ 0.885874][ T29] dump_stack_lvl (lib/dump_stack.c:117) 
[ 0.885874][ T29] check_preemption_disabled (lib/smp_processor_id.c:49) 
[ 0.885874][ T29] rcu_rdp_is_offloaded (kernel/rcu/tree_plugin.h:27 (discriminator 7)) 
[ 0.885874][ T29] rcu_nocb_cb_kthread (kernel/rcu/tree_nocb.h:936 kernel/rcu/tree_nocb.h:982) 
[ 0.885874][ T29] ? rcu_momentary_dyntick_idle (kernel/rcu/tree_nocb.h:976) 
[ 0.885874][ T29] kthread (kernel/kthread.c:388) 
[ 0.885874][ T29] ? kthread_complete_and_exit (kernel/kthread.c:341) 
[ 0.885874][ T29] ret_from_fork (arch/x86/kernel/process.c:153) 
[ 0.885874][ T29] ? kthread_complete_and_exit (kernel/kthread.c:341) 
[ 0.885874][ T29] ret_from_fork_asm (arch/x86/entry/entry_64.S:256) 
[    0.885874][   T29]  </TASK>
[    0.885986][   T17] BUG: using smp_processor_id() in preemptible [00000000] code: rcuop/0/17
[ 0.887343][ T17] caller is rcu_rdp_is_offloaded (kernel/rcu/tree_plugin.h:27 (discriminator 7)) 
[    0.885994][    T1] Running RCU synchronous self tests
[    0.888231][   T17] CPU: 0 PID: 17 Comm: rcuop/0 Not tainted 6.9.0-rc2-00084-g0e250956fc1a #1
[    0.888238][   T17] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[    0.889874][   T17] Call Trace:
[    0.889874][   T17]  <TASK>
[ 0.889874][ T17] dump_stack_lvl (lib/dump_stack.c:117) 
[ 0.889874][ T17] check_preemption_disabled (lib/smp_processor_id.c:49) 
[ 0.889874][ T17] rcu_rdp_is_offloaded (kernel/rcu/tree_plugin.h:27 (discriminator 7)) 
[ 0.889874][ T17] rcu_nocb_cb_kthread (kernel/rcu/tree_nocb.h:936 kernel/rcu/tree_nocb.h:982) 
[ 0.889874][ T17] ? rcu_momentary_dyntick_idle (kernel/rcu/tree_nocb.h:976) 
[ 0.889874][ T17] kthread (kernel/kthread.c:388) 
[ 0.889874][ T17] ? kthread_complete_and_exit (kernel/kthread.c:341) 
[ 0.889874][ T17] ret_from_fork (arch/x86/kernel/process.c:153) 
[ 0.889874][ T17] ? kthread_complete_and_exit (kernel/kthread.c:341) 
[ 0.889874][ T17] ret_from_fork_asm (arch/x86/entry/entry_64.S:256) 
[    0.889874][   T17]  </TASK>


The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20240430/202404302322.1b0d3358-oliver.sang@intel.com



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


                 reply	other threads:[~2024-04-30 15:20 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=202404302322.1b0d3358-oliver.sang@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).