From: Andrew Morton <akpm@osdl.org>
To: Ashok Raj <ashok.raj@intel.com>
Cc: davidm@hpl.hp.com, linux-kernel@vger.kernel.org,
anil.s.keshavamurthy@intel.com, pj@sgi.com
Subject: Re: (resend) take3: Updated CPU Hotplug patches for IA64 (pj blessed) Patch [6/7]
Date: Tue, 4 May 2004 22:59:07 -0700 [thread overview]
Message-ID: <20040504225907.6c2fe459.akpm@osdl.org> (raw)
In-Reply-To: <20040504211755.A13286@unix-os.sc.intel.com>
Ashok Raj <ashok.raj@intel.com> wrote:
>
> Name: cpu_present_map.patch
This does not play happily with the sched_domains patches.
Program received signal SIGEMT, Emulation trap.
task_rq_lock (p=0x0, flags=0xcff98ee8) at include/linux/sched.h:1087
1087 return p->thread_info->cpu;
(gdb) bt
#0 task_rq_lock (p=0x0, flags=0xcff98ee8) at include/linux/sched.h:1087
#1 0xc01187cd in try_to_wake_up (p=0x0, state=7, sync=0) at kernel/sched.c:844
#2 0xc0118a1d in wake_up_process (p=0x0) at kernel/sched.c:981
#3 0xc011b688 in cpu_attach_domain (sd=0xc120b060, cpu=-805728492) at kernel/sched.c:3804
#4 0xc05db60b in arch_init_sched_domains () at arch/i386/kernel/smpboot.c:1327
#5 0xc05dfb44 in sched_init_smp () at kernel/sched.c:4013
#6 0xc010045d in init (unused=0x0) at init/main.c:643
#7 0xc010428d in kernel_thread_helper () at arch/i386/kernel/process.c:246
(gdb) p cpu_online_map
$1 = 1
(gdb) f 3
#3 0xc011b688 in cpu_attach_domain (sd=0xc120b060, cpu=-805728492) at kernel/sched.c:3804
3804 wake_up_process(rq->migration_thread);
(gdb) p cpu
$2 = -805728492
(gdb) up
#4 0xc05db60b in arch_init_sched_domains () at arch/i386/kernel/smpboot.c:1327
1327 cpu_attach_domain(cpu_domain, i);
(gdb) p i
$3 = 1
(gdb) info thr
5 Thread 32769 (swapper) start_secondary (unused=0x0) at arch/i386/kernel/smpboot.c:446
* 4 Thread 32768 (swapper) 0xc0398ae1 in schedule () at kernel/sched.c:1198
3 Thread 3 (ksoftirqd/0) 0xc0398ae1 in schedule () at kernel/sched.c:1198
2 Thread 2 (migration/0) migration_thread (data=0x0) at include/asm/current.h:10
1 Thread 1 (swapper) task_rq_lock (p=0x0, flags=0xcff98ee8) at include/linux/sched.h:1087
(gdb)
It appears that x86's arch_init_sched_domains() is blindly assuming that
each CPU's migration thread is running and is pointed to by
rq->migration_thread. But from the above you'll see that CPU0's migration
thread is running, but CPU1's has never been created, hence the
null-pointer deref.
I'll drop this final patch. Please reissue it against next -mm. Thanks.
next prev parent reply other threads:[~2004-05-05 6:00 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-05 4:17 (resend) take3: Updated CPU Hotplug patches for IA64 (pj blessed) Patch [6/7] Ashok Raj
2004-05-05 5:59 ` Andrew Morton [this message]
2004-05-05 7:03 ` various cpu patches [was: (resend) take3: Updated CPU Hotplug patches] Paul Jackson
2004-05-05 7:14 ` Andrew Morton
2004-05-05 7:28 ` Paul Jackson
2004-05-05 7:24 ` William Lee Irwin III
2004-05-05 7:44 ` Paul Jackson
2004-05-05 7:52 ` William Lee Irwin III
2004-05-05 7:44 ` (resend) take3: Updated CPU Hotplug patches for IA64 (pj blessed) Patch [6/7] Nick Piggin
2004-05-05 14:07 ` Ashok Raj
2004-05-05 17:47 ` (resend-2) " Ashok Raj
2004-05-06 6:13 ` Andrew Morton
2004-05-06 9:32 ` (resend-3) " Ashok Raj
2004-05-06 9:45 ` Andrew Morton
2004-05-06 9:54 ` Ashok Raj
2004-05-05 17:50 ` (resend-2) take3: Updated CPU Hotplug patches for IA64 (pj blessed) Patch [7/7] Ashok Raj
2004-05-11 23:16 ` (resend) take3: Updated CPU Hotplug patches for IA64 (pj blessed) Patch [6/7] Paul Jackson
2004-05-11 23:38 ` Andrew Morton
2004-05-11 23:55 ` Paul Jackson
2004-05-11 23:58 ` Ashok Raj
2004-05-12 0:37 ` Andrew Morton
-- strict thread matches above, loose matches on Subject: below --
2004-05-12 0:00 Keshavamurthy, Anil S
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=20040504225907.6c2fe459.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=anil.s.keshavamurthy@intel.com \
--cc=ashok.raj@intel.com \
--cc=davidm@hpl.hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pj@sgi.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
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