Re: 2.6.17-mm4




* Ingo Molnar <mingo@xxxxxxx> wrote:

i'm too hunting use-after-free bugs - the ones fixed below fix certain
crashes, but i'm still seeing a nasty one.

the crash is independent on lockdep enabled or disabled. See:

http://redhat.com/~mingo/misc/

for the config and the crash.log.

ok, managed to debug the reason for this crash via .config bisecting,
it's caused by:

CONFIG_SCSI_PATA_QDI=y

which is a new option in -mm4. Disabling it makes the -mm4 allyesconfig
bzImage work again.

and running qdi_init() either causes memory corruption, or it causes
something to be misprogrammed on the motherboard (something wrt. irq
routing perhaps), which crashes the box afterwards. (but that happens
dozens of initcalls later, so the breakage is subtle)

it does things like:

static const unsigned long qd_port[2] = { 0x30, 0xB0 };
static const unsigned long ide_port[2] = { 0x170, 0x1F0 };

[...]
unsigned long port = qd_port[i];
[...]
r = inb_p(port);
outb_p(0x19, port);
res = inb_p(port);
outb_p(r, port);

so it reads/writes port 0x30 and 0xb0. Are those used by something else
on modern hardware?

i know, i shouldnt be running an ancient Vesa Local Bus driver's init
routine, but still, the allyesconfig bzImage is quite useful in finding
various bugs ...

Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • RE: How to ensure a script to run when system crashes
    ... If the latter (Crash) there is no way to run some code AFTER the system has ... Your best bet is disabling Wake-On-Lan in the BIOS which should disable your ... I am running wmi script to enable one of the LAN connections during system ... for shut down but the unload event is not called when the system crashes. ...
    (microsoft.public.win32.programmer.wmi)
  • Re: What to do when Word constantly crashes?
    ... crash", but I use them all day every day (I am a professional Technical ... Microsoft was one of the first to realise that being "The first to be wrong" ...  Keep the updates up to date. ...  Your crashes should stop! ...
    (microsoft.public.mac.office.word)
  • Several, bring coffie
    ... >>> The point is that not that RosAsm crashes. ... Obviously the best way to prevent this> happening is to make an application which never crashes, but,> even then, there are events which can cause a crash -- such as ... this is not a LuxAsm problem...this ...
    (alt.lang.asm)
  • Re: Word 2004 crashes when cutting text - FIXED!!!
    ... I could not do it because I got also a crash when copying such ... I later on found that I could copy/paste in other Mac with Word ... files which generated the crashes did not have pictures for sure. ... >> And now it seems that frequent savings manually can also ...
    (microsoft.public.mac.office.word)
  • Re: Word 2004 crashes when cutting text - FIXED!!!
    ... > for you to send me directly the text file of your Crash Log? ... >> external FireWire disk (different for each Mac). ... it is easier "Shift Command Home" on a 29-page long document. ... 99% of my crashes are on documents without tables. ...
    (microsoft.public.mac.office.word)