From: Frederik Deweerdt <deweerdt@free.fr>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>,
Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, Andi Kleen <ak@suse.de>,
kraxel@redhat.com
Subject: Re: [-mm patch] enforce noreplace-smp in alternative_instructions()
Date: Sat, 25 Aug 2007 14:23:24 +0200 [thread overview]
Message-ID: <20070825122324.GA6138@slug> (raw)
In-Reply-To: <1188043649.20041.81.camel@localhost.localdomain>
On Sat, Aug 25, 2007 at 10:07:29PM +1000, Rusty Russell wrote:
> On Fri, 2007-08-24 at 10:22 +0200, Frederik Deweerdt wrote:
> > [Added Gerd Hoffman and Rusty Russel to cc]
> > On Thu, Aug 23, 2007 at 11:46:52PM -0700, Jeremy Fitzhardinge wrote:
> > > Frederik Deweerdt wrote:
> > > > That means that even when you specify noreplace_smp, some replacing
> > > > takes place anyway. One of the consequences, besides noreplace_smp not
> > > > working as expected, is that lguest crashes when you feed it an SMP kernel
> > > > (I suspect that you can not replace alternatives for smp _and_ paravirt).
> > > >
> > >
> > > No, that should be fine. Why does lguest crash?
> > It dies with:
> > [ 0.131000] SMP alternatives: switching to UP code
> > lguest: bad stack page 0xc057a000
Hello Rusty,
>
> How odd! This means that the guest set the kernel to a stack which it
> hadn't mapped writable (or perhaps not mapped at all). I always run SMP
I had time to investigate this a little further, it appears that in fact
0xc057a000 is the beginning of the __smp_locks section.
The crash responsible function call is in alternative_instructions():
free_init_pages("SMP alternatives",
(unsigned long)__smp_locks,
(unsigned long)__smp_locks_end);
Ie, if I comment this out, I can boot lguest without passing
noreplace_smp.
BTW, to make things clear: the patch I sent does _not_ fix the
lguest/alternatives problem. It just makes noreplace_smp functional
again and hence allows working around the lguest/alternatives bug.
> kernels, and that seems a very strange side effect of a patching
> problem...
>
> Nonetheless, I did have a previous problem with a bug in the patching
> code which didn't show up native and did show up under lguest.
>
> Can you send your config?
Here it is:
http://fdeweerdt.free.fr/lguest_smp/dot_config
> Do you need noreplace-smp even on 2.6.23-rc3,
> or only 2.6.23-rc3-mm1?
I'll try ASAP.
Thanks,
Frederik
next prev parent reply other threads:[~2007-08-25 12:28 UTC|newest]
Thread overview: 207+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-22 9:06 2.6.23-rc3-mm1 Andrew Morton
2007-08-22 10:11 ` [BUG] fs/xfs/xfs_bmap_btree.c:2312: error: 'b' undeclared (first use in this function) (Was Re: 2.6.23-rc3-mm1) Michal Piotrowski
2007-08-22 10:27 ` Michal Piotrowski
2007-08-23 5:27 ` Tim Shimmin
2007-08-22 13:02 ` [BUG] 2.6.23-rc3-mm1 - kernel BUG at net/core/skbuff.c:95! Kamalesh Babulal
2007-08-22 15:50 ` Andrew Morton
2007-08-22 17:58 ` Kay Sievers
2007-08-22 19:04 ` Balbir Singh
2007-08-22 20:55 ` Kay Sievers
2007-08-22 21:10 ` Balbir Singh
2007-08-23 18:59 ` Balbir Singh
2007-08-22 13:33 ` 2.6.23-rc3-mm1 Gabriel C
2007-08-22 16:09 ` 2.6.23-rc3-mm1 Andrew Morton
2007-08-22 17:01 ` 2.6.23-rc3-mm1 Gabriel C
2007-08-27 21:27 ` [-mm patch] make types.h usable for non-gcc C parsers Adrian Bunk
2007-08-27 21:34 ` Mike Frysinger
2007-08-27 21:36 ` Adrian Bunk
2007-08-27 21:42 ` Mike Frysinger
2007-08-28 7:37 ` Andrew Morton
2007-08-28 8:43 ` Sam Ravnborg
2007-08-28 14:19 ` Michael Matz
2007-08-28 14:40 ` Randy Dunlap
2007-08-28 14:42 ` Adrian Bunk
2007-08-28 17:06 ` Sam Ravnborg
2007-08-28 17:42 ` Mike Frysinger
2007-08-28 17:59 ` Adrian Bunk
2007-08-28 18:37 ` Sam Ravnborg
2007-08-22 14:19 ` 2.6.23-rc3-mm1 Michal Piotrowski
2007-08-22 16:17 ` 2.6.23-rc3-mm1 Andrew Morton
2007-08-22 15:30 ` net/ipv4/fib_trie.c - compile error (Re: 2.6.23-rc3-mm1) Gabriel C
2007-08-22 15:41 ` Adrian Bunk
2007-08-22 16:32 ` Gabriel C
2007-08-22 17:03 ` Paul E. McKenney
2007-08-27 6:36 ` Jarek Poplawski
2007-08-27 16:23 ` Paul E. McKenney
2007-08-22 16:15 ` drivers/scsi/advansys.c - ld error ( Re: 2.6.23-rc3-mm1 ) Gabriel C
2007-08-22 16:28 ` Matthew Wilcox
2007-08-22 16:57 ` Gabriel C
2007-08-22 16:33 ` 2.6.23-rc3-mm1: fix b43 compilation Rafael J. Wysocki
2007-08-22 21:56 ` Michael Buesch
2007-08-23 2:56 ` John W. Linville
2007-08-23 7:07 ` Andrew Morton
2007-08-22 17:10 ` drivers/net/ppp_generic - __modpost error ( Re: 2.6.23-rc3-mm1 ) Gabriel C
2007-08-22 17:17 ` 2.6.23-rc3-mm1 Mel Gorman
2007-08-22 18:10 ` 2.6.23-rc3-mm1 Andrew Morton
2007-08-23 11:39 ` 2.6.23-rc3-mm1 Mel Gorman
2007-08-23 12:03 ` 2.6.23-rc3-mm1 Andy Whitcroft
2007-08-23 12:22 ` 2.6.23-rc3-mm1 Andi Kleen
2007-08-23 12:34 ` 2.6.23-rc3-mm1 Andy Whitcroft
2007-08-23 12:28 ` 2.6.23-rc3-mm1 Sam Ravnborg
2007-08-23 14:24 ` 2.6.23-rc3-mm1 Sam Ravnborg
2007-08-23 12:07 ` 2.6.23-rc3-mm1 Andi Kleen
2007-08-23 16:25 ` 2.6.23-rc3-mm1 Mel Gorman
2007-08-22 17:24 ` 2.6.23-rc3-mm1 Torsten Kaiser
2007-08-22 18:14 ` 2.6.23-rc3-mm1 Andrew Morton
2007-08-22 17:26 ` 2.6.23-rc3-mm1: locking boot-time self-test failure Mariusz Kozlowski
2007-08-22 21:27 ` Frederik Deweerdt
2007-08-22 17:30 ` 2.6.23-rc3-mm1: WARNING: during resume from suspend on x86_64 Rafael J. Wysocki
2007-08-22 18:03 ` 2.6.23-rc3-mm1 Randy Dunlap
2007-08-22 18:32 ` 2.6.23-rc3-mm1 Andrew Morton
2007-08-22 19:38 ` 2.6.23-rc3-mm1 Andi Kleen
2007-08-22 19:17 ` 2.6.23-rc3-mm1 Randy Dunlap
2007-08-22 20:53 ` 2.6.23-rc3-mm1 Andi Kleen
2007-08-22 20:03 ` 2.6.23-rc3-mm1 Randy Dunlap
2007-08-22 21:14 ` 2.6.23-rc3-mm1 Andi Kleen
2007-08-22 20:37 ` 2.6.23-rc3-mm1 Randy Dunlap
2007-08-22 19:04 ` 2.6.23-rc3-mm1: kgdb build failure on powerpc Mariusz Kozlowski
2007-08-22 19:47 ` Andrew Morton
2007-08-22 22:44 ` [Kgdb-bugreport] " Jason Wessel
2007-08-22 23:53 ` Andrew Morton
2007-08-23 3:25 ` Jason Wessel
2007-08-29 23:43 ` Pete/Piet Delaney
2007-08-30 0:05 ` Pete/Piet Delaney
2007-08-30 1:19 ` Pete/Piet Delaney
2007-08-30 1:38 ` Randy Dunlap
2007-08-30 2:07 ` Jason Wessel
2007-08-30 2:13 ` Jason Wessel
2007-08-22 19:16 ` 2.6.23-rc3-mm1: net/wireless/rt2x00mac.c build failure Mariusz Kozlowski
2007-08-22 19:31 ` Ivo van Doorn
2007-08-22 19:54 ` Mariusz Kozlowski
2007-08-22 20:12 ` Ivo van Doorn
2007-08-22 20:22 ` Rafael J. Wysocki
2007-08-22 19:58 ` John W. Linville
2007-08-22 20:23 ` 2.6.23-rc3-mm1: inlining failures in sound/pci/hda/hda_codec.c Mariusz Kozlowski
2007-08-22 21:07 ` Takashi Iwai
2007-08-22 21:18 ` Mariusz Kozlowski
2007-08-22 21:44 ` Adrian Bunk
2007-08-22 20:25 ` [-mm patch] enforce noreplace-smp in alternative_instructions() Frederik Deweerdt
2007-08-23 21:50 ` Andrew Morton
2007-08-24 6:04 ` Frederik Deweerdt
2007-08-24 6:46 ` Jeremy Fitzhardinge
2007-08-24 8:22 ` Frederik Deweerdt
2007-08-25 12:07 ` Rusty Russell
2007-08-25 12:23 ` Frederik Deweerdt [this message]
2007-08-25 21:14 ` Frederik Deweerdt
2007-08-27 16:09 ` [PATCH] Fix lguest page-pinning logic ("lguest: bad stack page 0xc057a000") Rusty Russell
2007-08-30 16:38 ` Frederik Deweerdt
2007-08-30 22:12 ` Rusty Russell
2007-08-30 22:14 ` [PATCH] Fix out-by-one error in traps.c Rusty Russell
2007-08-31 4:44 ` Linus Torvalds
2007-08-31 6:03 ` Rusty Russell
2007-08-31 7:51 ` Linus Torvalds
2007-08-31 17:37 ` Rusty Russell
2007-08-31 18:24 ` Linus Torvalds
2007-09-04 18:18 ` Rusty Russell
2007-08-23 23:16 ` [-mm patch] enforce noreplace-smp in alternative_instructions() Jeremy Fitzhardinge
2007-08-24 6:06 ` Frederik Deweerdt
2007-08-22 23:30 ` drivers/char/nozomi.c - compile error ( Re: 2.6.23-rc3-mm1 ) Gabriel C
2007-08-23 3:45 ` Randy Dunlap
2007-08-22 23:34 ` fs/xfs/xfs_bmap_btree.c - compile error (Re: 2.6.23-rc3-mm1) Gabriel C
2007-08-23 3:47 ` Randy Dunlap
2007-08-23 2:08 ` 2.6.23-rc3-mm1 - memory layout change? - lost support for MAP_32BIT? - mono crashes Zan Lynx
2007-08-23 6:57 ` Andrew Morton
2007-08-23 9:28 ` Jiri Kosina
2007-08-23 17:32 ` Zan Lynx
2007-08-23 23:52 ` Andrew Morton
2007-08-24 0:09 ` Jiri Kosina
2007-08-24 16:17 ` Arjan van de Ven
2007-08-23 11:24 ` x86_64-dynticks-disable-hpet_id_legsup-hpets.patch hangs the system Gautham R Shenoy
2007-08-23 20:47 ` Andrew Morton
2007-08-23 20:56 ` Thomas Gleixner
2007-08-23 13:33 ` 2.6.23-rc3-mm1 - irda goes belly up Valdis.Kletnieks
2007-08-23 17:37 ` Alexey Dobriyan
2007-08-23 18:45 ` Valdis.Kletnieks
2007-08-23 21:16 ` Andrew Morton
2007-08-24 3:11 ` Eric W. Biederman
2007-08-24 3:46 ` Eric W. Biederman
2007-08-24 3:53 ` [PATCH 1/2] sysctl: Properly register the irda binary sysctl numbers Eric W. Biederman
2007-08-24 3:55 ` [PATCH 2/2] sysctl: For irda update sysctl_checks list of binary paths Eric W. Biederman
2007-08-26 22:03 ` Samuel Ortiz
2007-08-25 8:29 ` [PATCH 1/2] sysctl: Properly register the irda binary sysctl numbers Valdis.Kletnieks
2007-08-25 12:57 ` Eric W. Biederman
2007-08-25 14:07 ` Valdis.Kletnieks
2007-08-25 17:59 ` Eric W. Biederman
2007-08-28 18:40 ` Valdis.Kletnieks
2007-08-28 21:06 ` Eric W. Biederman
2007-08-25 18:03 ` [PATCH] sysctl: Update sysctl_check to handle compiled out code Eric W. Biederman
2007-08-28 18:44 ` Valdis.Kletnieks
2007-08-26 22:02 ` [PATCH 1/2] sysctl: Properly register the irda binary sysctl numbers Samuel Ortiz
2007-08-24 23:27 ` 2.6.23-rc3-mm1 Tilman Schmidt
2007-08-25 0:07 ` 2.6.23-rc3-mm1 Andrew Morton
2007-08-25 0:13 ` 2.6.23-rc3-mm1 Pallipadi, Venkatesh
2007-08-25 0:38 ` 2.6.23-rc3-mm1 Pallipadi, Venkatesh
2007-08-25 23:26 ` 2.6.23-rc3-mm1 Tilman Schmidt
2007-08-25 23:57 ` 2.6.23-rc3-mm1 Randy Dunlap
2007-08-27 13:35 ` 2.6.23-rc3-mm1 Tilman Schmidt
2007-08-25 0:14 ` 2.6.23-rc3-mm1 Dave Jones
2007-08-25 0:21 ` 2.6.23-rc3-mm1 john stultz
2007-08-25 22:39 ` 2.6.23-rc3-mm1 Tilman Schmidt
2007-08-25 0:47 ` 2.6.23-rc3-mm1 Tilman Schmidt
2007-08-25 3:30 ` 2.6.23-rc3-mm1 Andrew Morton
2007-08-25 4:28 ` 2.6.23-rc3-mm1 Dave Jones
2007-08-25 7:55 ` 2.6.23-rc3-mm1 Paul Rolland
2007-08-25 23:37 ` 2.6.23-rc3-mm1 Tilman Schmidt
2007-09-05 20:41 ` Clock trouble retest results with 2.6.23-rc4-mm1 (was: 2.6.23-rc3-mm1) Tilman Schmidt
2007-08-26 13:04 ` X freezes kernel during exit [Re: 2.6.23-rc3-mm1] Jiri Slaby
2007-08-28 11:41 ` Jiri Slaby
2007-09-09 11:44 ` Jiri Slaby
2007-09-09 12:47 ` Andrew Morton
2007-09-09 13:04 ` Jiri Slaby
2007-09-09 14:08 ` Jiri Slaby
2007-09-09 14:17 ` Andi Kleen
2007-09-09 14:26 ` Jiri Slaby
2007-09-09 14:33 ` Andi Kleen
2007-09-09 14:35 ` Jiri Slaby
2007-09-09 14:43 ` Jiri Slaby
2007-09-09 15:01 ` Andi Kleen
2007-09-09 15:49 ` Jiri Slaby
2007-09-11 15:18 ` Dave Airlie
2007-09-17 11:09 ` Jiri Slaby
2007-08-27 21:27 ` [-mm patch] make "struct menu_governor" static (again) Adrian Bunk
2007-08-27 22:32 ` Adam Belay
2007-08-27 21:27 ` [-mm patch] remove parport_device_num() Adrian Bunk
2007-08-27 21:27 ` [-mm patch] make do_restart_poll() static Adrian Bunk
2007-08-27 21:27 ` [-mm patch] unexport snd_ctl_elem_{read,write} Adrian Bunk
2007-08-27 21:27 ` [-mm patch] unexport sys_{open,read} Adrian Bunk
2007-08-27 22:53 ` Arjan van de Ven
2007-08-27 23:17 ` Adrian Bunk
2007-08-27 21:27 ` 2.6.23-rc3-mm1: m32r defconfig compile error Adrian Bunk
2007-08-28 3:50 ` Hirokazu Takata
2007-08-27 21:27 ` [-mm patch] remove unwind exports Adrian Bunk
2007-08-27 21:28 ` [-mm patch] unexport noautodma Adrian Bunk
2007-08-27 21:28 ` [-mm patch] mousedev.c:mixdev_open_devices() bugfix Adrian Bunk
2007-08-27 21:29 ` [-mm patch] ivtv-fb.c bugfix Adrian Bunk
2007-08-28 6:30 ` [v4l-dvb-maintainer] " Hans Verkuil
2007-08-27 21:29 ` [-mm patch] iwl-base.c bugfixes Adrian Bunk
2007-08-27 22:34 ` Tomas Winkler
2007-08-27 21:29 ` 2.6.23-rc3-mm1: i386: -maccumulate-outgoing-args unconditionally Adrian Bunk
2007-08-28 11:32 ` oops at sr_block_release [Re: 2.6.23-rc3-mm1] Jiri Slaby
2007-08-28 15:08 ` Satyam Sharma
2007-08-28 15:21 ` Jiri Slaby
2007-08-29 2:58 ` Andrew Morton
2007-08-29 14:04 ` 2.6.23-rc3-mm1 Valdis.Kletnieks
2007-08-29 17:37 ` 2.6.23-rc3-mm1 - vdso and gettimeofday issues with glibc Valdis.Kletnieks
2007-08-29 23:15 ` Andrew Morton
2007-08-30 2:46 ` Ulrich Drepper
2007-08-30 14:08 ` Valdis.Kletnieks
2007-08-31 21:21 ` Chuck Ebbert
2007-08-30 16:27 ` Chuck Ebbert
2007-09-09 0:24 ` Valdis.Kletnieks
2007-09-09 7:27 ` Andi Kleen
2007-09-10 19:07 ` Valdis.Kletnieks
2007-08-30 16:30 ` Chuck Ebbert
2007-09-01 10:07 ` Andi Kleen
2007-09-07 19:39 ` Chuck Ebbert
2007-09-08 8:57 ` Andi Kleen
2007-09-09 3:20 ` Valdis.Kletnieks
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=20070825122324.GA6138@slug \
--to=deweerdt@free.fr \
--cc=ak@suse.de \
--cc=akpm@linux-foundation.org \
--cc=jeremy@goop.org \
--cc=kraxel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/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