LKML Archive on lore.kernel.org
 help / color / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Borislav Petkov <bp@alien8.de>
Cc: "Srivatsa S. Bhat" <srivatsa.bhat@linux.vnet.ibm.com>,
	Dave Hansen <dave@sr71.net>, LKML <linux-kernel@vger.kernel.org>,
	Dave Jones <davej@redhat.com>,
	dhillf@gmail.com, Peter Zijlstra <peterz@infradead.org>
Subject: Re: kernel BUG at kernel/smpboot.c:134!
Date: Mon, 8 Apr 2013 14:17:50 +0200 (CEST)
Message-ID: <alpine.LFD.2.02.1304081415570.21884@ionos> (raw)
In-Reply-To: <20130408115553.GA4395@pd.tnic>

On Mon, 8 Apr 2013, Borislav Petkov wrote:
> On Mon, Apr 08, 2013 at 11:24:14AM +0200, Thomas Gleixner wrote:
> > +	/* Rebind ourself to the target cpu */
> > +	if (test_bit(KTHREAD_IS_PER_CPU, &self->flags)) {
> > +		set_cpus_allowed_ptr(currrent, cpumask_of(self->cpu));
> 
> "currrent" is a typo, I fixed it up to the obvious "current" so that it
> builds.

Bah.
 
> [    1.640000] WARNING: at kernel/sched/core.c:963 set_task_cpu+0x12c/0x280()
> [    1.640000] Hardware name: Bochs
> [    1.640000] Modules linked in:
> [    1.640000] Pid: 8, comm: migration/0 Not tainted 3.9.0-rc5+ #5

Hmm, crap migration thread trying to migrate itself via stomp
machine. Not really a brilliant idea.

/me goes back to drawing board.

> [    1.640000] Call Trace:
> [    1.640000]  [<c1035633>] warn_slowpath_common+0x73/0xb0
> [    1.640000]  [<c106a6cc>] ? set_task_cpu+0x12c/0x280
> [    1.640000]  [<c106a6cc>] ? set_task_cpu+0x12c/0x280
> [    1.640000]  [<c1035693>] warn_slowpath_null+0x23/0x30
> [    1.640000]  [<c106a6cc>] set_task_cpu+0x12c/0x280
> [    1.640000]  [<c1068e2b>] ? update_rq_clock+0x3b/0x70
> [    1.640000]  [<c1068ee1>] ? dequeue_task+0x81/0xc0
> [    1.640000]  [<c106a922>] __migrate_task+0x102/0x140
> [    1.640000]  [<c106a960>] ? __migrate_task+0x140/0x140
> [    1.640000]  [<c106a982>] migration_cpu_stop+0x22/0x30
> [    1.640000]  [<c10a0a88>] cpu_stopper_thread+0x68/0x130
> [    1.640000]  [<c106ea11>] ? sched_clock_cpu+0xf1/0x180
> [    1.640000]  [<c106a20d>] ? sub_preempt_count+0x4d/0xb0
> [    1.640000]  [<c106eaee>] ? local_clock+0x4e/0x60
> [    1.640000]  [<c108cf4a>] ? trace_hardirqs_off_caller+0x1a/0x110
> [    1.640000]  [<c108d22d>] ? put_lock_stats.isra.17+0xd/0x30
> [    1.640000]  [<c1512b25>] ? _raw_spin_unlock_irqrestore+0x55/0x70
> [    1.640000]  [<c1512b0b>] ? _raw_spin_unlock_irqrestore+0x3b/0x70
> [    1.640000]  [<c1063f06>] smpboot_thread_fn+0x176/0x260
> [    1.640000]  [<c1063d90>] ? lg_lock_init+0x20/0x20
> [    1.640000]  [<c105b305>] kthread+0x95/0xa0
> [    1.640000]  [<c1510303>] ? schedule_hrtimeout_range_clock+0x163/0x170
> [    1.640000]  [<c151077f>] ? wait_for_common+0xcf/0x110
> [    1.640000]  [<c1060000>] ? hrtimer_run_pending+0x110/0x110
> [    1.640000]  [<c15137b7>] ret_from_kernel_thread+0x1b/0x28
> [    1.640000]  [<c105b270>] ? __kthread_parkme+0xa0/0xa0

  reply index

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-05 21:43 Dave Hansen
2013-04-06  7:12 ` Srivatsa S. Bhat
2013-04-06  8:31   ` Thomas Gleixner
2013-04-07  9:20     ` Thomas Gleixner
2013-04-07  9:50       ` Borislav Petkov
2013-04-08  9:24         ` Thomas Gleixner
2013-04-08 11:55           ` Borislav Petkov
2013-04-08 12:17             ` Thomas Gleixner [this message]
2013-04-09 14:38               ` [PATCH] kthread: Prevent unpark race which puts threads on the wrong cpu Thomas Gleixner
2013-04-09 15:55                 ` Dave Hansen
2013-04-09 18:43                   ` Thomas Gleixner
2013-04-09 19:30                     ` Thomas Gleixner
2013-04-09 20:38                       ` Dave Hansen
2013-04-09 20:54                         ` Dave Hansen
2013-04-10  8:29                         ` Thomas Gleixner
2013-04-10 10:51                           ` Thomas Gleixner
2013-04-10 19:41                             ` Dave Hansen
2013-04-11 10:19                               ` Thomas Gleixner
2013-04-11 10:48                                 ` Srivatsa S. Bhat
2013-04-11 11:43                                   ` Srivatsa S. Bhat
2013-04-11 11:59                                     ` Srivatsa S. Bhat
2013-04-11 12:51                                     ` Thomas Gleixner
2013-04-11 12:54                                     ` Thomas Gleixner
2013-04-11 13:46                                   ` Thomas Gleixner
2013-04-11 18:07                                 ` Dave Hansen
2013-04-11 19:48                                   ` Thomas Gleixner
2013-04-10 14:03                   ` [PATCH] CPU hotplug, smpboot: Fix crash in smpboot_thread_fn() Srivatsa S. Bhat
2013-04-11  8:10                     ` Thomas Gleixner
2013-04-11 10:19                       ` Srivatsa S. Bhat
2013-04-11 19:16                 ` [PATCH] kthread: Prevent unpark race which puts threads on the wrong cpu Srivatsa S. Bhat
2013-04-11 20:47                   ` Thomas Gleixner
2013-04-11 21:19                     ` Srivatsa S. Bhat
2013-04-12 10:59                       ` Thomas Gleixner
2013-04-12 11:26                         ` Srivatsa S. Bhat
2013-04-15 19:49                         ` Dave Hansen
2013-04-12 10:41                 ` Peter Zijlstra
2013-04-12 12:32                 ` [tip:core/urgent] " tip-bot for Thomas Gleixner
2014-09-23  0:09 kernel BUG at kernel/smpboot.c:134! Brian Norris

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=alpine.LFD.2.02.1304081415570.21884@ionos \
    --to=tglx@linutronix.de \
    --cc=bp@alien8.de \
    --cc=dave@sr71.net \
    --cc=davej@redhat.com \
    --cc=dhillf@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=srivatsa.bhat@linux.vnet.ibm.com \
    /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

LKML Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/lkml/0 lkml/git/0.git
	git clone --mirror https://lore.kernel.org/lkml/1 lkml/git/1.git
	git clone --mirror https://lore.kernel.org/lkml/2 lkml/git/2.git
	git clone --mirror https://lore.kernel.org/lkml/3 lkml/git/3.git
	git clone --mirror https://lore.kernel.org/lkml/4 lkml/git/4.git
	git clone --mirror https://lore.kernel.org/lkml/5 lkml/git/5.git
	git clone --mirror https://lore.kernel.org/lkml/6 lkml/git/6.git
	git clone --mirror https://lore.kernel.org/lkml/7 lkml/git/7.git
	git clone --mirror https://lore.kernel.org/lkml/8 lkml/git/8.git
	git clone --mirror https://lore.kernel.org/lkml/9 lkml/git/9.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 lkml lkml/ https://lore.kernel.org/lkml \
		linux-kernel@vger.kernel.org
	public-inbox-index lkml

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-kernel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git