Re: Will smp alternative try to patch init text also?

2007-02-14 Thread Vivek Goyal
On Wed, Feb 14, 2007 at 11:51:31AM +0100, Gerd Hoffmann wrote: > Vivek Goyal wrote: > > So what happens if somebody builds a SMP kernel and runs on a UP machine. > > Later it hotplus one CPU. Then kernel will switch to SMP mode. Looking > > at the code it looks like it will also try to patch init

Re: Will smp alternative try to patch init text also?

2007-02-14 Thread Gerd Hoffmann
Vivek Goyal wrote: > So what happens if somebody builds a SMP kernel and runs on a UP machine. > Later it hotplus one CPU. Then kernel will switch to SMP mode. Looking > at the code it looks like it will also try to patch init text which is > no more there and will corrupt something else? There

Will smp alternative try to patch init text also?

2007-02-14 Thread Vivek Goyal
Hi, I just built a 2.6.20 kernel with CONFIG_RELOCATABLE=y. While going through relocation entries for .smp_locks section, I see some relocation entries present w.r.t to init section also. Below I am pasting just few of them. Relocation section '.rel.smp_locks' at offset 0x6079c8 contains 4662

Will smp alternative try to patch init text also?

2007-02-14 Thread Vivek Goyal
Hi, I just built a 2.6.20 kernel with CONFIG_RELOCATABLE=y. While going through relocation entries for .smp_locks section, I see some relocation entries present w.r.t to init section also. Below I am pasting just few of them. Relocation section '.rel.smp_locks' at offset 0x6079c8 contains 4662

Re: Will smp alternative try to patch init text also?

2007-02-14 Thread Gerd Hoffmann
Vivek Goyal wrote: So what happens if somebody builds a SMP kernel and runs on a UP machine. Later it hotplus one CPU. Then kernel will switch to SMP mode. Looking at the code it looks like it will also try to patch init text which is no more there and will corrupt something else? There are

Re: Will smp alternative try to patch init text also?

2007-02-14 Thread Vivek Goyal
On Wed, Feb 14, 2007 at 11:51:31AM +0100, Gerd Hoffmann wrote: Vivek Goyal wrote: So what happens if somebody builds a SMP kernel and runs on a UP machine. Later it hotplus one CPU. Then kernel will switch to SMP mode. Looking at the code it looks like it will also try to patch init text